:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --hover: #eef0f3;
  --line: #e7e9ee;
  --text: #0a0b0d;
  --muted: #5b616e;
  --faint: #8a919e;
  --brand: #e3262f;
  --brand-ink: #b3141c;
  --brand-soft: #fdecec;
  --brand-focus: rgba(227, 38, 47, .18);
  --up: #098551;
  --down: #cf202f;
  --side: 240px;
  --top: 72px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Figtree', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
svg { display: block; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.up { color: var(--up); } .down { color: var(--down); }
.muted { color: var(--muted); }

/* botões e campos */
.btn { height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: background-color .15s; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-ink); }
.btn-brand:disabled { background: #f3a9ad; cursor: not-allowed; }
.btn-soft { background: var(--surface); }
.btn-soft:hover { background: var(--hover); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.link { color: var(--brand); font-weight: 700; font-size: 14px; }
.link:hover { text-decoration: underline; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.input, .select { width: 100%; height: 48px; border: 1px solid #d6d9df; border-radius: 10px; padding: 0 14px; background: #fff; outline: 0; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b616e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; cursor: pointer; }
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-focus); }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; font-weight: 700; margin: 18px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- onboarding ---------- */
.ob { min-height: 100vh; display: flex; flex-direction: column; }
.ob-top { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.ob-top img { width: 32px; height: 32px; border-radius: 50%; }
.ob-top a { font-weight: 700; font-size: 14px; }
.ob-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 64px 16px 48px; }
.ob-card { width: 100%; max-width: 420px; border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.ob-card.wide { max-width: 480px; border: 0; padding: 0; }
.ob-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px; }
.ob-card .lead { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 24px; }
.ob-card .small { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 18px; }
.ob-card .small a { color: var(--brand); text-decoration: underline; }
.ob-progress { display: flex; gap: 6px; margin-bottom: 24px; }
.ob-progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.ob-progress i.on { background: var(--brand); }
.ob-illu { display: flex; gap: 4px; align-items: flex-end; margin-bottom: 16px; }
.ob-illu b { width: 16px; height: 16px; border-radius: 50%; background: #ffc531; }
.ob-illu i { width: 14px; height: 14px; background: var(--brand); border-radius: 3px; }
.ob-illu s { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 15px solid #c9ccd3; }

.stepper { margin: 24px 0; }
.st { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.st:last-child { padding-bottom: 0; }
.st:not(:last-child)::after { content: ''; position: absolute; left: 11px; top: 28px; bottom: 4px; width: 2px; background: var(--line); }
.st.done:not(:last-child)::after { background: var(--brand); }
.st .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c9ccd3; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--muted); flex: none; background: #fff; }
.st.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.st b { display: block; font-size: 15px; }
.st span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.st em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--up); margin-top: 4px; }
.st em.brand { color: var(--brand); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; margin-bottom: 20px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin-top: 1px; }

.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 4px 12px 20px; font-weight: 800; font-size: 17px; }
.side .logo img { width: 32px; height: 32px; border-radius: 50%; }
.nav-item { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--text); transition: background-color .15s; }
.nav-item:hover { background: var(--surface); }
.nav-item.on { background: var(--surface); color: var(--brand); }
.nav-item .count { margin-left: auto; font-size: 12px; font-weight: 800; background: var(--brand); color: #fff; border-radius: 999px; padding: 2px 7px; }
.side .spacer { flex: 1; }
.side .foot { color: var(--faint); font-size: 12px; line-height: 1.5; padding: 12px; }

.topbar { height: var(--top); display: flex; align-items: center; gap: 16px; padding: 0 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); z-index: 10; }
.topbar h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; flex: 1; }
.search { position: relative; width: 320px; }
.search .box { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--faint); }
.search .box:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--brand); }
.search input { border: 0; outline: 0; background: none; width: 100%; color: var(--text); }
.search kbd { font: inherit; font-size: 12px; font-weight: 700; color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: #fff; }
.results { position: absolute; top: 52px; left: 0; right: 0; background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(10,11,13,.14), 0 0 0 1px var(--line); padding: 8px; display: none; }
.results.open { display: block; }
.results a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; }
.results a:hover, .results a.sel { background: var(--surface); }
.results a .r { margin-left: auto; text-align: right; font-size: 14px; font-weight: 700; }
.results .empty { padding: 16px; color: var(--muted); font-size: 14px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.icon-btn:hover { background: var(--surface); }
.icon-btn .pip { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px #fff; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }

.pop { position: absolute; right: 32px; top: 64px; width: 360px; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(10,11,13,.14), 0 0 0 1px var(--line); padding: 8px; z-index: 20; }
.pop h3 { font-size: 16px; padding: 10px 12px 6px; }
.pop .n { display: flex; gap: 12px; padding: 12px; border-radius: 12px; }
.pop .n:hover { background: var(--surface); }
.pop .n b { display: block; font-size: 14px; }
.pop .n span { color: var(--muted); font-size: 13px; }

.page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.page.single { grid-template-columns: minmax(0, 1fr); }
.main { padding: 0 32px 64px; min-width: 0; }
.aside { border-left: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.block { padding: 28px 0; }
.block + .block { border-top: 1px solid var(--line); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.block-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.welcome { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }

.almost { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.almost .ok { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.almost .ok i { width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.almost h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.meter { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; color: var(--muted); }
.meter .bar { width: 160px; height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.remain { margin-top: 4px; }
.remain-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.remain-row .ic { width: 24px; height: 24px; display: grid; place-items: center; color: var(--text); flex: none; }
.remain-row .ic.done { color: #fff; background: var(--up); border-radius: 50%; }
.remain-row .ic.done .ico { width: 14px; height: 14px; stroke-width: 3; }
.remain-row .t { flex: 1; }
.remain-row .t b { display: block; font-size: 15px; }
.remain-row .t span { color: var(--muted); font-size: 14px; }
.remain-row.is-done .t b { color: var(--muted); font-weight: 600; }

/* tabela de mercado */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th.r, .table td.r { text-align: right; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody tr { cursor: pointer; transition: background-color .15s; }
.table tbody tr:hover { background: var(--surface); }
.table tr:last-child td { border-bottom: 0; }
.asset { display: flex; align-items: center; gap: 12px; }
.asset b { display: block; font-size: 15px; }
.asset span { color: var(--muted); font-size: 13px; }
.coin { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 13px; overflow: hidden; flex: none; }
.coin img { width: 100%; height: 100%; }
.coin.lg { width: 44px; height: 44px; font-size: 17px; }
.spark { width: 96px; height: 32px; margin-left: auto; }
.skel { display: inline-block; background: linear-gradient(90deg, var(--surface), var(--hover), var(--surface)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; height: 14px; width: 72px; }
@keyframes sk { to { background-position: -200% 0; } }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 14px; }
.chip:hover { background: var(--hover); }
.chip.on { background: var(--text); color: #fff; }

/* cartões */
.card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.card-dark { background: var(--text); color: #fff; border: 0; }
.card-dark .k { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ff8a8f; display: flex; align-items: center; gap: 6px; }
.card-dark .t { font-size: 20px; font-weight: 800; margin: 6px 0 2px; }
.card-dark .s { color: #b9bec8; font-size: 14px; font-variant-numeric: tabular-nums; margin-bottom: 16px; }
.card-dark .btn { background: #fff; color: var(--text); }
.card-dark .btn:hover { background: #eceef1; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d55; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-row b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-row span { color: var(--muted); font-size: 13px; }
.dot-on { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--up); margin-right: 6px; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.call { border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; text-align: left; transition: border-color .15s; }
.call:hover { border-color: #cdd1d8; }
.call-top { display: flex; align-items: center; gap: 10px; }
.call-top b { font-size: 16px; }
.call-top .tag { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); padding: 4px 8px; border-radius: 999px; }
.call p { color: var(--muted); font-size: 14px; line-height: 1.5; flex: 1; }
.by { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.by i { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-style: normal; font-weight: 800; font-size: 11px; display: grid; place-items: center; }

.list-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.list-row .t { flex: 1; min-width: 0; }
.list-row .t b { display: block; font-size: 15px; }
.list-row .t span { color: var(--muted); font-size: 14px; }
.progress { height: 4px; background: var(--line); border-radius: 4px; margin-top: 8px; overflow: hidden; max-width: 360px; }
.progress i { display: block; height: 100%; background: var(--brand); }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.badge.live { background: var(--brand); color: #fff; }
.day-h { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 800; margin: 20px 0 4px; }
.day-h.today { color: var(--brand); }

/* moeda */
.asset-head { display: flex; align-items: center; gap: 12px; padding-top: 28px; }
.asset-head h2 { font-size: 22px; font-weight: 800; }
.asset-head span { color: var(--muted); font-size: 16px; }
.big-price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin-top: 16px; font-variant-numeric: tabular-nums; }
.chg { display: flex; gap: 8px; font-weight: 700; font-size: 15px; margin-top: 4px; }
.chart { height: 320px; margin: 20px 0 12px; position: relative; cursor: crosshair; }
.chart svg { width: 100%; height: 100%; }
.ranges { display: flex; gap: 4px; }
.ranges button { height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); }
.ranges button:hover { background: var(--surface); }
.ranges button.on { background: var(--brand-soft); color: var(--brand); }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kv span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.kv b { font-size: 16px; font-variant-numeric: tabular-nums; }
.calc .field { margin-bottom: 10px; }
.calc .input { height: 42px; }
.calc .out { background: var(--surface); border-radius: 12px; padding: 14px; margin-top: 6px; }
.calc .out div { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; }
.calc .out b { font-variant-numeric: tabular-nums; }
.note { color: var(--faint); font-size: 12px; line-height: 1.5; }

.invite-box { display: flex; gap: 8px; }
.invite-box .input { flex: 1; }

@media (max-width: 1200px) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .aside { border-left: 0; border-top: 1px solid var(--line); padding: 24px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .kv { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --side: 76px; }
  .side .logo span, .nav-item span, .side .foot, .nav-item .count { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .search { width: 220px; }
  .grid3 { grid-template-columns: 1fr; }
  .col-vol, .col-spark { display: none; }
}
@media (max-width: 640px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: 64px; flex-direction: row; justify-content: space-around; padding: 10px; border-right: 0; border-top: 1px solid var(--line); background: #fff; z-index: 30; }
  .side .logo, .side .spacer, .nav-item.extra { display: none; }
  .nav-item { width: 44px; }
  .topbar { padding: 0 16px; gap: 8px; }
  .topbar h1 { font-size: 20px; }
  .search { width: auto; flex: 1; }
  .search kbd, .topbar .avatar { display: none; }
  .main { padding: 0 16px 96px; }
  .aside { padding: 20px 16px 96px; }
  .almost { flex-direction: column; align-items: flex-start; }
  .big-price { font-size: 34px; }
  .chart { height: 220px; }
  .ob-card { padding: 24px; border: 0; }
  .pop { right: 8px; left: 8px; width: auto; }
}
