/* ============================================================
   Vision AI — visual premium
   ============================================================ */
:root {
  --bg: #060b16;
  --bg-2: #0a1120;
  --ink: #eaf1ff;
  --muted: #8ea3cf;
  --muted-2: #5f7099;
  --cyan: #5ee0ff;
  --cyan-deep: #22b8ff;
  --blue: #3b82f6;
  --violet: #6d5efc;
  --emerald: #34d399;
  --emerald-deep: #10b981;
  --rose: #fb7185;
  --gold: #f5c451;
  --line: #ffffff14;
  --line-strong: #5ee0ff33;
  --card: rgba(16, 26, 50, 0.55);
  --card-solid: #0e1830;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -30px #000, 0 2px 0 #ffffff08 inset;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --display: "Orbitron", var(--font);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; min-height: 100vh; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
}
.hidden { display: none !important; }
img { display: block; }
::selection { background: #5ee0ff44; }

/* ---- Icones SVG (Lucide) — herdam a cor do contexto ---- */
.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.ic.sm { width: 16px; height: 16px; }
.ic.lg { width: 30px; height: 30px; }

/* ---- Fundo profundo ---- */
.bg-aurora {
  position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 40% at 20% 15%, #1c3aa855 0%, transparent 60%),
    radial-gradient(45% 45% at 85% 10%, #0e63b455 0%, transparent 60%),
    radial-gradient(50% 50% at 60% 90%, #4326a844 0%, transparent 60%),
    radial-gradient(40% 40% at 10% 80%, #0891b244 0%, transparent 60%);
  filter: blur(30px);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2%, -1.5%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.04); }
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(#5ee0ff0a 1px, transparent 1px),
    linear-gradient(90deg, #5ee0ff0a 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 85%);
}

/* ---- Glass ---- */
.glass {
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: var(--shadow);
  position: relative;
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(140deg, #5ee0ff55, transparent 30%, transparent 70%, #6d5efc44);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .8;
}

/* ============================================================
   AUTH
   ============================================================ */
.auth-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 18px; gap: 16px; }
.auth-card { width: 100%; max-width: 410px; border-radius: 26px; padding: 30px 26px 24px; }
.auth-logo { display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.auth-logo-img { width: 100%; max-width: 290px; height: auto; filter: drop-shadow(0 12px 34px #2b7bff55); }
.auth-title { text-align: center; font-size: 25px; margin: 10px 0 4px; font-weight: 800; letter-spacing: -.2px; }
.auth-title span { color: var(--cyan); }
.auth-sub { text-align: center; color: var(--muted); margin: 0 0 22px; font-size: 13.5px; }

.auth-form { display: flex; flex-direction: column; gap: 12px; }
.field {
  display: flex; align-items: center; gap: 11px;
  background: #0a1226; border: 1px solid var(--line); border-radius: 40px;
  padding: 0 18px; height: 56px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px #5ee0ff1f; background: #0b1530; }
.field .ico { color: var(--cyan); width: 20px; display: flex; align-items: center; justify-content: center; opacity: .9; }
.field .ico .ic { width: 18px; height: 18px; }
.field input { flex: 1; background: transparent; border: none; outline: none; color: var(--ink); font-size: 16px; font-family: var(--font); min-width: 0; }
.field input::placeholder { color: var(--muted-2); }
.field .eye { background: none; border: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 10px; margin: -10px -6px -10px 0; min-width: 42px; min-height: 42px; }
.field .eye:active { color: var(--cyan); }

.btn-primary {
  position: relative; margin-top: 6px; height: 56px; border: none; border-radius: 40px; cursor: pointer;
  background: linear-gradient(100deg, var(--cyan) 0%, var(--cyan-deep) 45%, var(--blue) 100%);
  color: #04121f; font-weight: 800; font-size: 16.5px; font-family: var(--font); overflow: hidden;
  box-shadow: 0 14px 34px -12px #22b8ffaa, 0 0 0 1px #ffffff22 inset;
  transition: transform .1s, filter .2s;
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, #ffffff88, transparent); transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 140%; } }
.btn-primary:active { transform: scale(.985); }
.btn-primary:disabled { filter: grayscale(.3) brightness(.85); cursor: default; }
.btn-label { position: relative; z-index: 1; }

.auth-note { text-align: center; color: var(--muted); font-size: 12.5px; margin: 12px 4px 0; line-height: 1.55; }
.link-btn { background: none; border: none; color: var(--cyan); cursor: pointer; font-size: 14px; margin: 8px auto 0; display: block; }
.auth-error { background: #351320; border: 1px solid #7a2233; color: #ffb3bf; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-top: 14px; text-align: center; }
.auth-trust { display: flex; gap: 18px; color: var(--muted-2); font-size: 12px; }
.auth-trust span { display: flex; align-items: center; gap: 6px; }

.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); display: inline-block; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.85); } }

/* ============================================================
   MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 60; background: #030712dd; backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { width: 100%; max-width: 370px; text-align: center; border-radius: 24px; padding: 30px 26px; }
.modal-check { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #34d399, #10b981); color: #04140a; font-size: 30px; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px -8px #10b981aa; }
.modal-mark { width: 100%; max-width: 200px; height: auto; margin: 0 auto 6px; filter: drop-shadow(0 8px 20px #2b7bff55); }
.modal-card h2 { margin: 6px 0 4px; font-size: 20px; color: var(--cyan); }
.modal-card p { color: var(--muted); margin: 4px 0; font-size: 14px; }
.temp-pass { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: 4px; color: var(--cyan); background: #0a1226; border: 1px dashed var(--line-strong); border-radius: 14px; padding: 14px; margin: 14px 0; }
.modal-sub { font-size: 12.5px; }
.modal-card .btn-primary { width: 100%; margin-top: 14px; }

/* ============================================================
   PANEL
   ============================================================ */
.panel { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-radius: 0; border-left: none; border-right: none; border-top: none;
  background: #070d1ad9;
}
.topbar::before { display: none; }
.topbar-brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; letter-spacing: 1px; font-size: 15px; }
.topbar-brand b { color: var(--cyan); }
.topbar-mark { height: 36px; width: auto; filter: drop-shadow(0 3px 8px #22b8ff66); }
.topbar-logo { height: 46px; width: auto; filter: drop-shadow(0 3px 10px #22b8ff55); }
.test-badge { margin-left: auto; display: flex; align-items: center; gap: 7px; background: linear-gradient(90deg, #0e2a3f, #10243f); border: 1px solid #1f5b6a55; color: #b8f5df; font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 30px; }
.test-badge b { color: var(--cyan); }
.menu-btn { background: none; border: none; color: var(--muted); cursor: pointer; padding: 8px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.menu-btn:active { background: #ffffff10; color: var(--cyan); }
#owner-bell { color: var(--cyan); }

.panel-scroll { flex: 1; overflow-y: auto; padding: 18px 14px 44px; max-width: 640px; width: 100%; margin: 0 auto; }

.card { border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head h2 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.2px; }
.sec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); position: relative; }
.sec-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #5ee0ff55; animation: ripple 2s infinite; }
@keyframes ripple { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.ai-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: #b8f5df; background: #0c2233; border: 1px solid #1f5b6a55; padding: 5px 10px; border-radius: 20px; }
.ai-chip.muted { color: var(--muted-2); background: #0c1526; border-color: var(--line); }
.rank-refresh { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--cyan); background: #0c2233; border: 1px solid #1f5b6a55; padding: 6px 12px; border-radius: 20px; cursor: pointer; font-family: var(--font); transition: background .15s; }
.rank-refresh:active { background: #123043; }
.rr-ico { display: inline-block; font-size: 13px; }
.rank-refresh.loading { color: var(--muted); }
.rank-refresh.loading .rr-ico { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ranking-list.refreshing { animation: rankPulse .85s ease; }
@keyframes rankPulse { 0% { opacity: 1; } 45% { opacity: .3; } 100% { opacity: 1; } }

/* ---- chart top ---- */
.chart-topline { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-end; }
.asset-pick { position: relative; flex: 1 1 auto; min-width: 0; }
.asset-pick label, .balance-box label { display: block; color: var(--muted-2); font-size: 10.5px; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .6px; }
.asset-trigger {
  width: 100%; height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #0a1226; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px;
  cursor: pointer; color: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 700;
  transition: border-color .2s, box-shadow .2s;
}
.asset-trigger:hover { border-color: var(--line-strong); }
.asset-trigger[aria-expanded="true"] { border-color: var(--cyan); box-shadow: 0 0 0 3px #5ee0ff1f; }
.asset-current { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-caret { color: var(--cyan); font-size: 11px; transition: transform .2s; flex-shrink: 0; }
.asset-trigger[aria-expanded="true"] .asset-caret { transform: rotate(180deg); }

.asset-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: #0b1428; border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 26px 64px -22px #000, 0 0 0 1px #ffffff08 inset; overflow: hidden; animation: menuIn .16s ease;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.asset-search-wrap { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--line); background: #0a1226; }
.asset-search-ico { color: var(--muted-2); font-size: 13px; }
.asset-search { flex: 1; background: transparent; border: none; outline: none; color: var(--ink); font-size: 14px; font-family: var(--font); }
.asset-search::placeholder { color: var(--muted-2); }
.asset-list { max-height: 288px; overflow-y: auto; overscroll-behavior: contain; }
.asset-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; border-bottom: 1px solid #ffffff08; transition: background .12s; }
.asset-item:last-child { border-bottom: none; }
.asset-item:hover, .asset-item.active { background: linear-gradient(90deg, #12244a, #0e1c3a); }
.asset-item .ai-name { flex: 1; font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-item .ai-badge { font-size: 9px; font-weight: 800; letter-spacing: .4px; padding: 2px 6px; border-radius: 6px; text-transform: uppercase; flex-shrink: 0; }
.asset-item .ai-badge.otc { background: #10233f; color: var(--cyan); border: 1px solid #1f4d6a; }
.asset-item .ai-badge.open { background: #1a2140; color: #9fb2d8; border: 1px solid #2a3560; }
.asset-item .ai-payout, .asset-item .ai-assert { font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--cyan); min-width: 44px; text-align: right; flex-shrink: 0; }
.asset-empty { padding: 18px; text-align: center; color: var(--muted-2); font-size: 13px; }

/* Scrollbar bonita (dropdown + ranking) */
.asset-list::-webkit-scrollbar, .ranking-list::-webkit-scrollbar { width: 9px; }
.asset-list::-webkit-scrollbar-track, .ranking-list::-webkit-scrollbar-track { background: transparent; }
.asset-list::-webkit-scrollbar-thumb, .ranking-list::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #2b7bff, #5ee0ff88); border-radius: 10px; border: 2px solid #0b1428; }
.asset-list::-webkit-scrollbar-thumb:hover, .ranking-list::-webkit-scrollbar-thumb:hover { background: var(--cyan); }
.asset-list, .ranking-list { scrollbar-width: thin; scrollbar-color: #2b7bff transparent; }

/* Banner instalar app */
.install-banner { display: flex; align-items: center; gap: 12px; background: linear-gradient(100deg, #0e2a3f, #12203f); border: 1px solid var(--line-strong); border-radius: 16px; padding: 13px 14px; margin-bottom: 14px; position: relative; }
.install-ico { height: 44px; width: auto; flex-shrink: 0; filter: drop-shadow(0 3px 8px #22b8ff66); }
.install-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.install-txt b { font-size: 14px; }
.install-txt span { font-size: 11.5px; color: var(--muted); }
.install-btn { flex-shrink: 0; border: none; border-radius: 30px; cursor: pointer; padding: 10px 18px; background: linear-gradient(100deg, var(--cyan), var(--blue)); color: #04121f; font-weight: 800; font-size: 13px; box-shadow: 0 10px 24px -12px #22b8ffaa; }
.install-close { position: absolute; top: 7px; right: 9px; background: none; border: none; color: var(--muted-2); font-size: 11px; cursor: pointer; padding: 4px; }

/* Passos iOS */
.ios-steps { text-align: left; color: var(--muted); font-size: 13.5px; line-height: 1.7; padding-left: 20px; margin: 12px 0 4px; }
.ios-steps b { color: var(--ink); }
.ios-share { display: inline-block; background: #0a1226; border: 1px solid var(--line-strong); color: var(--cyan); border-radius: 6px; padding: 0 7px; font-size: 13px; }
.balance-box { flex: 0 0 auto; min-width: 0; max-width: 60%; }
.balance-box label { text-align: right; }
/* Caixa do saldo se ajusta ao conteudo (pequena com pouco saldo, cresce com mais digitos) */
.balance-value { height: 46px; display: inline-flex; width: auto; min-width: 92px; align-items: center; justify-content: flex-end; padding: 0 16px; background: linear-gradient(180deg, #0c1a30, #0a1226); border: 1px solid var(--line-strong); border-radius: 14px; }
.balance-box b { color: var(--emerald); font-size: 18px; font-weight: 800; font-family: var(--font); letter-spacing: .2px; white-space: nowrap; }

.chart-wrap { position: relative; background: linear-gradient(180deg, #071129, #060d20); border: 1px solid var(--line); border-radius: 16px; padding: 6px; overflow: hidden; }
#chart { width: 100%; height: 190px; display: block; }
.chart-badge { position: absolute; top: 12px; left: 14px; font-size: 12px; font-weight: 700; color: #cfe0ff; background: #0a142899; padding: 4px 9px; border-radius: 8px; backdrop-filter: blur(4px); }
.chart-live { position: absolute; top: 12px; right: 14px; font-size: 11px; color: #b8f5df; display: flex; align-items: center; gap: 5px; background: #0a142899; padding: 4px 9px; border-radius: 8px; }
.live-dot { width: 7px; height: 7px; background: var(--emerald); border-radius: 50%; animation: pulse 1.4s infinite; }
.live-dot.amber { background: var(--gold); }
.chart-live.reconnecting { color: var(--gold); }
.chart-scan { position: absolute; top: 0; bottom: 0; width: 90px; left: -90px; pointer-events: none; background: linear-gradient(90deg, transparent, #5ee0ff22, #5ee0ff11, transparent); }
.chart-scan.on { animation: scan 1.5s linear infinite; }
@keyframes scan { 0% { left: -90px; } 100% { left: 100%; } }

/* ---- AI core ---- */
.ai-core { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px; border-radius: 14px; background: linear-gradient(90deg, #0a1a33, #0b1226); border: 1px solid var(--line-strong); }
.ai-rings { position: relative; width: 46px; height: 46px; flex-shrink: 0; }
.ai-rings span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #5ee0ff; opacity: 0; animation: coreRing 1.8s ease-out infinite; }
.ai-rings span:nth-child(2) { animation-delay: .6s; }
.ai-rings span:nth-child(3) { animation-delay: 1.2s; }
@keyframes coreRing { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.ai-orb { position: absolute; inset: 34%; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #aef1ff, #22b8ff); box-shadow: 0 0 16px #22b8ff; animation: pulse 1.4s infinite; }
.ai-core-text { flex: 1; min-width: 0; }
.ai-core-text b { display: block; font-size: 14px; color: #d9f6ff; }
.ai-core-text b #ai-core-pct { color: var(--cyan); font-family: var(--display); font-size: 13px; }
.ai-core-text small { color: var(--muted); font-size: 12px; display: block; }
.ai-progress { height: 5px; border-radius: 4px; background: #ffffff14; overflow: hidden; margin-top: 8px; }
.ai-progress i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .25s ease; box-shadow: 0 0 10px #22b8ff88; }

/* ---- analyze button ---- */
.btn-analyze {
  position: relative; width: 100%; height: 54px; margin-top: 14px; border: none; border-radius: 15px; cursor: pointer;
  background: linear-gradient(100deg, var(--cyan) 0%, var(--cyan-deep) 50%, var(--blue) 100%);
  color: #04121f; font-weight: 800; font-size: 16px; letter-spacing: .3px; font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 9px; overflow: hidden;
  box-shadow: 0 14px 32px -12px #22b8ffaa, 0 0 0 1px #ffffff22 inset;
  transition: transform .1s;
}
.btn-analyze::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, #ffffff77, transparent); transform: skewX(-20deg); animation: shine 3.4s ease-in-out infinite; }
.btn-analyze:active { transform: scale(.99); }
.btn-analyze.loading { background: linear-gradient(100deg, #14224a, #182f5e); color: var(--cyan); box-shadow: none; }
.btn-analyze.loading::after { display: none; }
/* Sem depósito: o botão vira aviso (dourado, sem brilho correndo). */
.btn-analyze.locked { background: linear-gradient(100deg, #2a2108, #3a2d0c); color: var(--gold); box-shadow: none; border: 1px solid #f5c45144; }
.btn-analyze.locked::after { display: none; }
.mag { position: relative; z-index: 1; }

/* ---- signal ---- */
.signal-box { margin-top: 15px; border-radius: 15px; padding: 16px; border: 1px solid var(--line); background: #0a1327; }
.signal-box.buy { border-color: #176b4a66; background: linear-gradient(180deg, #0c2a1e, #0a1327); box-shadow: 0 0 40px -18px #10b98188; }
.signal-box.sell { border-color: #7a223366; background: linear-gradient(180deg, #2a1016, #0a1327); box-shadow: 0 0 40px -18px #fb718588; }
.signal-dir { font-family: var(--display); font-size: 24px; font-weight: 800; text-align: center; letter-spacing: 2px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.signal-dir .ic { width: 22px; height: 22px; }
.signal-box.buy .signal-dir { color: var(--emerald); text-shadow: 0 0 20px #10b98166; }
.signal-box.sell .signal-dir { color: var(--rose); text-shadow: 0 0 20px #fb718566; }
.signal-order { display: flex; gap: 8px; margin-top: 14px; }
.signal-order div { flex: 1; min-width: 0; text-align: center; background: #0a1428; border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; }
.signal-order span { display: block; color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px; }
.signal-order b { display: block; font-size: 14px; color: var(--ink); font-family: var(--display); letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signal-meta { display: flex; justify-content: space-around; margin-top: 12px; }
.signal-meta div { text-align: center; }
.signal-meta span { display: block; color: var(--muted-2); font-size: 11px; margin-bottom: 2px; }
.signal-meta b { font-size: 17px; color: var(--ink); font-family: var(--display); }
.signal-hint { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 12px; line-height: 1.5; }
.btn-operate {
  width: 100%; height: 50px; margin-top: 14px; border: none; border-radius: 13px; cursor: pointer;
  background: linear-gradient(100deg, var(--emerald), var(--emerald-deep));
  color: #04140a; font-weight: 800; font-size: 15px; letter-spacing: .3px; font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 12px 28px -12px #10b981aa;
}
.btn-operate span { font-size: 17px; }
.btn-operate:active { transform: scale(.99); }

/* ---- robot ---- */
.card-robot .robot-body { display: flex; align-items: center; gap: 13px; background: #0a1226; border: 1px solid var(--line); border-radius: 15px; padding: 14px; }
.robot-avatar { width: 60px; height: 60px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 40% 30%, #12335a, #0a1a33); border: 1px solid var(--line-strong); }
.robot-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.robot-text b { font-size: 15px; }
.robot-text span { color: var(--gold); font-size: 13px; font-weight: 600; }
.robot-text small { color: var(--muted-2); font-size: 11.5px; line-height: 1.45; }
.robot-text.on span { color: var(--emerald); }
.btn-unlock { flex-shrink: 0; border: none; border-radius: 30px; cursor: pointer; padding: 11px 16px; background: linear-gradient(100deg, var(--blue), #5b9bff); color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 10px 24px -12px #3b82f6cc; }

/* Config do robo — grade de 6 colunas em DUAS linhas. O painel tem no maximo
   640px, entao os cinco controles nunca caberiam lado a lado sem espremer
   rotulo e botao (mesmo num monitor grande). Os spans somam 6 na ordem do HTML:
   linha 1 = conta + valor + meta, linha 2 = gale + entradas. */
.robot-config { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 14px; }
.rc-field { min-width: 0; }
.rc-conta { grid-column: span 2; }
.rc-valor { grid-column: span 2; }
.rc-meta { grid-column: span 2; }
.rc-galef { grid-column: span 4; }
.rc-entradas { grid-column: span 2; }

/* Progresso da meta do dia */
.goal-bar { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #0a1226; border: 1px solid var(--line); }
.goal-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.goal-label { color: var(--muted-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; }
.goal-top b { font-family: var(--display); font-size: 13.5px; color: var(--ink); letter-spacing: .3px; }
.goal-track { height: 7px; border-radius: 20px; background: #16203c; overflow: hidden; }
.goal-track i { display: block; height: 100%; width: 0; border-radius: 20px;
  background: linear-gradient(90deg, var(--cyan), var(--emerald)); transition: width .5s ease; }
.goal-bar.done { border-color: #1e6b4355; background: #0b1f18; }
.goal-bar.done .goal-top b { color: var(--emerald); }
.rc-field > label { display: block; color: var(--muted-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.rc-amount { display: flex; align-items: center; gap: 6px; background: #0a1226; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 44px; }
.rc-amount span { color: var(--cyan); font-weight: 700; font-size: 14px; }
.rc-amount input { flex: 1; width: 100%; background: transparent; border: none; outline: none; color: var(--ink); font-size: 16px; font-weight: 700; font-family: var(--display); }
.rc-gale { display: flex; background: #0a1226; border: 1px solid var(--line); border-radius: 12px; padding: 3px; height: 44px; }
.rc-gale button { flex: 1; border: none; background: transparent; color: var(--muted); font-weight: 700; font-size: 12.5px; cursor: pointer; border-radius: 9px; font-family: var(--font); transition: background .15s, color .15s; }
.rc-gale button.active { background: linear-gradient(100deg, #2b7bff, #3b82f6); color: #fff; box-shadow: 0 6px 16px -8px #3b82f6, 0 0 0 1px #ffffff22 inset; }
/* Seletor de conta do robo: demo (todo mundo) x real (so quem depositou) */
.rc-wallet button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.rc-wallet button .lock { width: 12px; height: 12px; opacity: .75; }
.rc-wallet button[data-wallet="demo"].active { background: linear-gradient(100deg, var(--emerald-deep), var(--emerald)); color: #04121f; box-shadow: 0 6px 16px -8px var(--emerald), 0 0 0 1px #ffffff22 inset; }
.rc-wallet button.locked { opacity: .55; cursor: not-allowed; }
.rc-wallet button.locked:hover { color: var(--muted); }
.rc-wallet button:not(.locked) .lock { display: none; }
/* Celular: Conta em cima, os dois valores lado a lado, gale e entradas
   inteiros — quatro linhas, em vez de cinco blocos empilhados. */
@media (max-width: 560px) {
  .robot-config { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rc-conta, .rc-galef, .rc-entradas { grid-column: span 2; }
  .rc-valor, .rc-meta { grid-column: span 1; }
  .rc-field > label { font-size: 10px; }
  .rc-amount { padding: 0 10px; }
  .rc-amount input { font-size: 15px; }
  .rc-gale button { font-size: 12px; }
  /* Cabecalho do robo: o botao de depositar desce para a linha de baixo, em
     largura cheia, em vez de espremer o texto do status. */
  .card-robot .robot-body { flex-wrap: wrap; padding: 13px; gap: 11px; }
  .card-robot .robot-avatar { width: 46px; height: 46px; }
  .card-robot .robot-text { flex: 1 1 60%; }
  .card-robot .btn-unlock { flex: 1 0 100%; padding: 12px 16px; }
  .goal-bar { padding: 11px 12px; }
}
@media (max-width: 480px) { .signal-order b { font-size: 12.5px; } .signal-order span { font-size: 9px; } }

/* Ativo que está no gráfico agora (na lista do seletor) */
.asset-item { cursor: pointer; }
.asset-item.atual { background: #5ee0ff14; box-shadow: inset 2px 0 0 var(--cyan); }

/* switch */
.switch { position: relative; display: inline-block; width: 48px; height: 27px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #223154; border-radius: 30px; transition: .25s; border: 1px solid var(--line); }
.slider::before { content: ""; position: absolute; height: 19px; width: 19px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; }
.switch input:checked + .slider { background: linear-gradient(90deg, var(--cyan), var(--emerald)); }
.switch input:checked + .slider::before { transform: translateX(21px); }
.switch input:disabled + .slider { opacity: .5; cursor: not-allowed; }

/* ---- unlock banner ---- */
.unlock-banner { position: relative; border: 1px solid #f5c45155; background: linear-gradient(180deg, #221a0d, #10131d); border-radius: 16px; padding: 18px; margin-bottom: 15px; overflow: hidden; }
.unlock-banner::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(60% 80% at 100% 0%, #f5c4511f, transparent 60%); }
.unlock-lock { font-size: 24px; margin-bottom: 6px; position: relative; }
.unlock-banner h3 { margin: 0 0 8px; font-size: 18px; color: var(--gold); line-height: 1.35; position: relative; }
.unlock-banner h3 span { color: #ffe08a; }
.unlock-banner p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.5; position: relative; }
.unlock-banner b { color: var(--ink); }
.btn-deposit { position: relative; width: 100%; height: 52px; border: none; border-radius: 13px; cursor: pointer; background: linear-gradient(100deg, var(--emerald), var(--emerald-deep)); color: #04140a; font-weight: 800; font-size: 16px; letter-spacing: .5px; box-shadow: 0 14px 30px -12px #10b981bb; overflow: hidden; }
.btn-deposit::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, #ffffff66, transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }

/* ---- ranking ---- */
.ranking { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ranking-head, .rank-row { display: grid; grid-template-columns: 30px 1fr 58px 92px; align-items: center; gap: 8px; padding: 11px 14px; }
.ranking-head { color: var(--muted-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; background: #0a1226; border-bottom: 1px solid var(--line); }
.ranking-list { max-height: 360px; overflow-y: auto; }
.rank-row { border-bottom: 1px solid #ffffff08; font-size: 14px; transition: background .15s; }
.rank-row:hover { background: #ffffff05; }
.rank-row:last-child { border-bottom: none; }
.rank-row .rk { color: var(--muted); font-weight: 800; font-family: var(--display); font-size: 13px; }
.rank-row.top1 .rk { color: var(--gold); }
.rank-asset { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rank-asset .lock { font-size: 13px; }
.rank-asset .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.rank-row.locked .nm { filter: blur(5px); user-select: none; color: var(--muted); }
.rank-asset .hidden-asset { color: var(--muted-2); font-weight: 600; }
.rank-asset .lock { opacity: .85; }
.rank-payout { color: var(--cyan); font-weight: 700; font-size: 13px; }
.rank-assert-wrap { display: flex; flex-direction: column; gap: 4px; }
.rank-assert { font-weight: 800; font-family: var(--display); font-size: 13px; letter-spacing: .3px; }
.rank-assert.hi { color: var(--emerald); }
.rank-assert.mid { color: var(--gold); }
.rank-assert.low { color: var(--rose); }
.rank-bar { height: 4px; border-radius: 3px; background: #ffffff12; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--emerald)); }
.rank-row.locked .rank-assert, .rank-row.locked .rank-payout { color: var(--muted-2); }
.rank-row.locked .rank-bar i { background: #ffffff20; }

.panel-footer { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted-2); font-size: 11.5px; padding: 22px 0 8px; text-align: center; }
.footer-mark { height: 30px; width: auto; opacity: .8; }

/* toast */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #101c36; border: 1px solid var(--line-strong); color: var(--ink); padding: 12px 20px; border-radius: 30px; font-size: 14px; z-index: 80; box-shadow: 0 16px 40px -12px #000; }

@media (min-width: 560px) { #chart { height: 210px; } }
@media (max-width: 380px) {
  .balance-value { padding: 0 12px; }
  .balance-box b { font-size: 16px; }
}

/* ============================================================
   ADICOES (ajustes do Eduardo)
   ============================================================ */

/* Botoes pulsando (depositar / operar) */
.btn-deposit.pulse, .btn-operate.pulse { animation: pulseGreen 1.7s ease-in-out infinite; }
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 12px 28px -12px #10b981cc, 0 0 0 0 #10b98155; }
  55% { box-shadow: 0 12px 28px -12px #10b981cc, 0 0 0 12px #10b98100; }
}

/* Copiar senha */
.btn-copy { display: inline-flex; align-items: center; gap: 8px; margin: 4px auto 2px; padding: 10px 18px; border: 1px solid var(--line-strong); background: #0a1226; color: var(--cyan); border-radius: 30px; cursor: pointer; font-weight: 700; font-size: 13px; font-family: var(--font); }
.btn-copy:active { background: #12243f; }

/* Popup de confirmar saida */
.modal-warn { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #2b7bff, #1e5fd0); color: #eaf3ff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px -8px #2b7bffaa; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.btn-ghost, .btn-danger { flex: 1; height: 48px; border: none; border-radius: 13px; cursor: pointer; font-weight: 700; font-size: 15px; font-family: var(--font); }
.btn-ghost { background: #16203c; color: var(--muted); border: 1px solid var(--line); }
.btn-danger { background: linear-gradient(100deg, #fb7185, #e11d48); color: #fff; box-shadow: 0 12px 26px -12px #e11d48aa; }
.btn-ghost:active, .btn-danger:active { transform: scale(.98); }

/* Dropdown de ativos: dica em cima da lista. Todo item pode ser aberto:
   escolher o grafico e livre, quem depende de deposito e a analise. */
.asset-hint { padding: 9px 14px; font-size: 11.5px; color: var(--muted-2); background: #0a1428; border-bottom: 1px solid var(--line); }

/* Sinal expirado + nova analise */
.signal-box.expired { border-color: #33415e; background: linear-gradient(180deg, #121826, #0a1327); }
.signal-box.expired .signal-dir { color: var(--muted); }
.btn-analyze-again { width: 100%; height: 46px; margin-top: 12px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; background: #10203f; color: var(--cyan); font-weight: 700; font-size: 14px; font-family: var(--font); }
.btn-analyze-again:active { transform: scale(.99); }

/* Flash do banner de deposito quando "Desbloquear" e clicado */
.unlock-banner.flash { animation: flashBanner 1.1s ease; }
@keyframes flashBanner { 0%, 100% { box-shadow: none; } 25% { box-shadow: 0 0 0 3px #f5c45199; } }

/* Lock do ranking (agora SVG) */
.rank-asset .lock { color: var(--muted); display: inline-flex; align-items: center; }
.rank-row.locked .lock { color: var(--muted-2); }

/* ---- Responsividade extra (celular estreito / muito zoom) ---- */
.asset-list { max-height: min(288px, 46vh); }
/* No celular o seletor divide a linha com a banca e fica estreito demais: o
   menu passa a abrir na largura da linha toda para o nome nao cortar.
   Abaixo de 360px a linha ja vira coluna e o seletor ocupa tudo sozinho. */
@media (min-width: 361px) and (max-width: 420px) {
  .chart-topline { position: relative; }
  .asset-pick { position: static; }
}
@media (max-width: 420px) {
  .panel-scroll { padding: 16px 10px 40px; }
  .card { padding: 15px; }
  .signal-order { gap: 6px; }
  .signal-order div { padding: 9px 4px; }
}
@media (max-width: 360px) {
  .chart-topline { flex-direction: column; gap: 10px; align-items: stretch; }
  .asset-pick { flex: none; width: 100%; }
  .balance-box { flex: none; align-self: flex-start; max-width: 100%; }
  .balance-box label { text-align: left; }
  .balance-value { justify-content: flex-start; }
  .ranking-head, .rank-row { grid-template-columns: 20px 1fr 44px 72px; gap: 6px; padding: 10px 9px; }
  .rank-row { font-size: 13px; }
  .topbar { gap: 8px; padding: 10px 12px; }
  .topbar-logo { height: 40px; }
  .test-badge { font-size: 11px; padding: 6px 10px; }
}
@media (max-width: 300px) {
  .rank-payout { display: none; }
  .ranking-head span:nth-child(3) { display: none; }
  .ranking-head, .rank-row { grid-template-columns: 20px 1fr 72px; }
}
