/* ============================================================================
   Design system PREMIUM — light + laranja, mobile-first, dependency-free.
   Mesmos nomes de classe da versão anterior (retrocompatível) — só mais craft:
   sombras em camadas, type scale, sidebar/cards/botões refinados, avatar,
   skeleton, empty-state, ícones SVG (icons.js), micro-interações.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Nunito+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --brand:#FF4000; --brand-hover:#E63100; --brand-soft:#FFF1EA; --brand-100:#ffe0d3;
  --blue:#5570f1; --blue-soft:#eef1fe;
  --ok:#0d9f57; --ok-soft:#e6f6ee; --warn:#b7791f; --warn-soft:#fbf3e0; --danger:#e02f4d; --danger-soft:#fdecec;

  /* Hotmart-like: seções brancas arejadas, borda > sombra */
  --bg:#fbfbfc; --surface:#ffffff; --surface-2:#f7f8fa; --surface-3:#f1f3f6; --line:#ececec; --line-2:#f0f1f3;
  --fg:#191c1f; --fg-2:#3d444d; --muted:#8a94a6;

  /* sombras em camadas (umbra + penumbra) */
  --shadow-sm:0 1px 2px rgba(17,24,39,.05), 0 1px 3px rgba(17,24,39,.04);
  --shadow-md:0 2px 4px rgba(17,24,39,.05), 0 8px 20px rgba(17,24,39,.06);
  --shadow-lg:0 6px 12px rgba(17,24,39,.07), 0 18px 40px rgba(17,24,39,.10);
  --shadow-xl:0 12px 24px rgba(17,24,39,.10), 0 30px 60px rgba(17,24,39,.16);
  --shadow-brand:0 4px 14px rgba(255,64,0,.32);

  --r-sm:8px; --r:12px; --r-lg:16px; --r-xl:22px; --r-pill:999px;
  --sidebar:256px; --maxw:1240px;
  --font:'Nunito Sans',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --font-display:'Fraunces','Nunito Sans',Georgia,'Times New Roman',serif;
  --ease:cubic-bezier(.4,0,.2,1); --ease-out:cubic-bezier(0,0,.2,1); --ease-bounce:cubic-bezier(.34,1.4,.64,1);

  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:20px; --s6:24px; --s8:32px; --s10:40px; --s12:48px;
}
[data-theme="dark"] {
  --brand:#ff5a1f; --brand-hover:#ff7a45; --brand-soft:#2a1a12; --brand-100:#3a2418;
  --blue:#7aa0ff; --blue-soft:#182642;
  --ok:#3ddc84; --ok-soft:#0f3d26; --warn:#e6c34d; --warn-soft:#3a3110; --danger:#ff6b6b; --danger-soft:#3d1518;
  --bg:#0b0e14; --surface:#141a24; --surface-2:#0f151e; --surface-3:#1a212d; --line:#242c3a; --line-2:#1e2632;
  --fg:#eef2f8; --fg-2:#c0cad8; --muted:#8493a8;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4); --shadow-md:0 2px 8px rgba(0,0,0,.5); --shadow-lg:0 10px 30px rgba(0,0,0,.55); --shadow-xl:0 16px 50px rgba(0,0,0,.7);
  --shadow-brand:0 4px 14px rgba(255,90,31,.4);
}

* { box-sizing:border-box; }
html,body { margin:0; padding:0; }
body { font-family:var(--font); background:var(--bg); color:var(--fg); font-size:15px; line-height:1.55; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
a { color:var(--brand); text-decoration:none; } a:hover { text-decoration:underline; }
h1,h2,h3,h4 { margin:0 0 .5em; font-weight:700; color:var(--fg); letter-spacing:-.02em; line-height:1.2; }
/* títulos/greeting = Fraunces (serifada, estilo Hotmart Display) */
h1,h2 { font-family:var(--font-display); font-weight:600; letter-spacing:-.01em; }
h1 { font-size:32px; line-height:1.15; } h2 { font-size:24px; } h3 { font-size:17px; letter-spacing:-.01em; }
img { max-width:100%; display:block; }
.muted { color:var(--muted); } .fg2 { color:var(--fg-2); }
.small { font-size:13px; } .xs { font-size:12px; }
.mono { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.center { text-align:center; } .right { text-align:right; }
.hidden { display:none !important; }
.stack { display:flex; flex-direction:column; gap:14px; }
.row { display:flex; gap:16px; flex-wrap:wrap; }
.row > * { flex:1; min-width:0; }
.between { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.wrap-center { min-height:100vh; display:grid; place-items:center; padding:20px; }
.fade-in { animation:fadein .35s var(--ease-out); }
@keyframes fadein { from{ opacity:0; transform:translateY(6px) } to{ opacity:1; transform:none } }

/* ---- icons ---- */
.ico-svg { display:inline-block; vertical-align:middle; flex-shrink:0; }
.ico { display:inline-flex; align-items:center; justify-content:center; }

/* ---- buttons ---- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; font-family:inherit; font-size:14.5px; font-weight:600;
  padding:11px 17px; border:1px solid transparent; border-radius:var(--r-sm); cursor:pointer; transition:.16s var(--ease); white-space:nowrap; line-height:1; }
.btn:disabled { opacity:.55; cursor:not-allowed; }
.btn:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.btn-primary { background:var(--brand); color:#fff; box-shadow:var(--shadow-brand); }
.btn-primary:hover:not(:disabled) { background:var(--brand-hover); transform:translateY(-1px); box-shadow:0 6px 18px rgba(255,64,0,.4); }
.btn-primary:active:not(:disabled) { transform:translateY(0); }
.btn-ghost { background:var(--surface); color:var(--fg); border-color:var(--line); }
.btn-ghost:hover:not(:disabled) { background:var(--surface-2); border-color:var(--muted); }
.btn-blue { background:var(--blue); color:#fff; }
.btn-danger { background:var(--danger); color:#fff; }
/* CTA verde estilo Hotmart ("Comprar agora") */
.btn-success { background:var(--ok); color:#fff; box-shadow:0 4px 14px color-mix(in srgb,var(--ok) 34%,transparent); }
.btn-success:hover:not(:disabled) { background:color-mix(in srgb,var(--ok) 88%, #000); transform:translateY(-1px); }
.btn-success:active:not(:disabled) { transform:translateY(0); }
.btn-block { width:100%; }
.btn-lg { padding:15px 24px; font-size:16px; border-radius:var(--r); }
.btn-sm { padding:8px 12px; font-size:13px; }
.icobtn { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; padding:0; border-radius:var(--r-sm); background:var(--surface); border:1px solid var(--line); color:var(--fg-2); cursor:pointer; transition:.15s var(--ease); }
.icobtn:hover { background:var(--surface-2); color:var(--fg); }

/* ---- forms ---- */
.field { display:block; margin-bottom:16px; }
.field > label, label.lbl { display:block; font-size:12px; font-weight:600; color:var(--fg-2); margin-bottom:7px; text-transform:uppercase; letter-spacing:.04em; }
.input, input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=tel], input[type=search], select, textarea {
  width:100%; padding:12px 14px; font-family:inherit; font-size:15px; color:var(--fg); height:44px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sm); transition:.18s var(--ease); }
/* garante que qualquer input dentro de .field ocupe a largura toda (mesmo sem type) */
.field input, .field select, .field textarea { width:100%; }
textarea { height:auto; min-height:96px; resize:vertical; }
.input:focus, input:focus, select:focus, textarea:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(255,64,0,.12); }
.input::placeholder, input::placeholder, textarea::placeholder { color:var(--muted); }
.hint { font-size:12px; color:var(--muted); margin-top:6px; }

/* ---- cards ---- */
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow-sm); padding:22px; margin-bottom:18px; transition:.25s var(--ease); }
.card.hoverable:hover { border-color:var(--line); box-shadow:var(--shadow-md); transform:translateY(-2px); }
.card-pad-0 { padding:0; overflow:hidden; }
.card h3 { margin-bottom:14px; }
.grid { display:grid; gap:18px; }
.g2 { grid-template-columns:repeat(2,1fr); } .g3 { grid-template-columns:repeat(3,1fr); } .g4 { grid-template-columns:repeat(4,1fr); }

/* ---- KPIs ---- */
.kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; margin-bottom:20px; }
.kpi { position:relative; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:18px 20px; box-shadow:var(--shadow-sm); overflow:hidden; transition:.25s var(--ease); }
.kpi:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.kpi .l { color:var(--muted); font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.kpi .v { font-family:var(--font-display); font-size:30px; font-weight:600; margin-top:8px; letter-spacing:-.01em; font-variant-numeric:tabular-nums; line-height:1.05; }
.kpi .d { font-size:12.5px; margin-top:6px; font-weight:600; display:flex; align-items:center; gap:5px; } .kpi .d.up{ color:var(--ok);} .kpi .d.down{ color:var(--danger);}
.kpi .kpi-ico { position:absolute; top:16px; right:16px; width:38px; height:38px; border-radius:10px; background:var(--brand-soft); color:var(--brand); display:grid; place-items:center; }

/* ---- tables ---- */
.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow-sm); background:var(--surface); }
table.tbl { width:100%; border-collapse:collapse; font-size:14px; }
.tbl th, .tbl td { text-align:left; padding:14px 16px; border-bottom:1px solid var(--line-2); white-space:nowrap; }
.tbl thead th { position:sticky; top:0; color:var(--muted); font-weight:600; font-size:11.5px; text-transform:uppercase; letter-spacing:.05em; background:var(--surface-2); z-index:1; }
.tbl tbody tr { transition:background .12s; }
.tbl tbody tr:hover { background:var(--surface-2); }
.tbl tbody tr:last-child td { border-bottom:0; }
.tbl td.wrap { white-space:normal; }
.cell-user { display:flex; align-items:center; gap:10px; }
.cell-user .nm { font-weight:600; color:var(--fg); } .cell-user .sub { font-size:12px; color:var(--muted); }

/* ---- badges ---- */
.badge { display:inline-flex; align-items:center; gap:5px; padding:4px 11px; border-radius:var(--r-pill); font-size:12px; font-weight:600; border:1px solid transparent; line-height:1.4; }
.badge.paid,.badge.active,.badge.approved,.badge.delivered { background:var(--ok-soft); color:var(--ok); border-color:color-mix(in srgb,var(--ok) 22%, transparent); }
.badge.pending_payment,.badge.pending,.badge.processing,.badge.past_due,.badge.grace,.badge.under_review { background:var(--warn-soft); color:var(--warn); border-color:color-mix(in srgb,var(--warn) 22%, transparent); }
.badge.refunded,.badge.failed,.badge.canceled,.badge.revoked,.badge.suspended,.badge.chargeback,.badge.disputed,.badge.rejected,.badge.blocked { background:var(--danger-soft); color:var(--danger); border-color:color-mix(in srgb,var(--danger) 22%, transparent); }

/* ---- avatar ---- */
.avatar { display:inline-flex; align-items:center; justify-content:center; border-radius:50%; font-weight:700; color:#fff; flex-shrink:0; letter-spacing:.02em; }
.avatar.sm { width:30px; height:30px; font-size:12px; } .avatar.md { width:38px; height:38px; font-size:14px; } .avatar.lg { width:46px; height:46px; font-size:16px; }
.avatar.color-1 { background:linear-gradient(135deg,#FF4000,#ff7a4d); } .avatar.color-2 { background:linear-gradient(135deg,#5570f1,#89a0ff); }
.avatar.color-3 { background:linear-gradient(135deg,#12915a,#3ddc84); } .avatar.color-4 { background:linear-gradient(135deg,#b7791f,#f5c451); }
.avatar.color-5 { background:linear-gradient(135deg,#e5484d,#ff8087); } .avatar.color-6 { background:linear-gradient(135deg,#8b5cf6,#b79cff); }

/* ---- tabs ---- */
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin-bottom:20px; flex-wrap:wrap; }
.tab { padding:11px 15px; font-size:14px; font-weight:600; color:var(--muted); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; transition:.15s var(--ease); }
.tab:hover { color:var(--fg-2); } .tab.active { color:var(--brand); border-bottom-color:var(--brand); }

/* ---- app shell (sidebar) ---- */
.shell { display:grid; grid-template-columns:var(--sidebar) 1fr; min-height:100vh; }
.side { background:var(--surface); border-right:1px solid var(--line); padding:18px 14px; position:sticky; top:0; height:100vh; overflow:auto; }
.brand { display:flex; align-items:center; gap:11px; font-weight:800; font-size:18px; padding:6px 8px 22px; letter-spacing:-.02em; }
.brand .dot { width:30px; height:30px; border-radius:9px; background:var(--brand); box-shadow:var(--shadow-brand); display:grid; place-items:center; color:#fff; font-size:15px; }
.nav a { display:flex; align-items:center; gap:12px; padding:11px 13px; border-radius:var(--r-sm); color:var(--fg-2); font-weight:600; font-size:14px; margin-bottom:3px; position:relative; transition:.15s var(--ease); }
.nav a:hover { background:var(--surface-2); color:var(--fg); text-decoration:none; }
.nav a.active { background:var(--brand-soft); color:var(--brand); }
.nav a.active::before { content:""; position:absolute; left:-14px; top:8px; bottom:8px; width:3px; border-radius:0 3px 3px 0; background:var(--brand); }
.nav a .ico, .nav a .ico-svg { width:19px; height:19px; text-align:center; opacity:.9; }
.nav-label { font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; padding:16px 12px 6px; }
.main { padding:26px 30px 64px; max-width:var(--maxw); width:100%; }
.topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; gap:16px; }
.userbox { display:flex; align-items:center; gap:10px; padding:6px 8px 6px 6px; border-radius:var(--r-sm); }
.userbox .nm { font-weight:600; font-size:13.5px; line-height:1.15; } .userbox .rl { font-size:11.5px; color:var(--muted); }

/* ---- modal ---- */
.modal-bg { position:fixed; inset:0; background:rgba(9,14,22,.5); backdrop-filter:blur(2px); display:grid; place-items:center; padding:20px; z-index:50; animation:fadein .2s var(--ease-out); }
.modal { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-xl); width:100%; max-width:560px; max-height:90vh; overflow:auto; padding:28px; animation:modalin .25s var(--ease-bounce); }
@keyframes modalin { from{ opacity:0; transform:scale(.96) } to{ opacity:1; transform:none } }

/* ---- toasts ---- */
#toasts { position:fixed; right:18px; bottom:18px; display:flex; flex-direction:column; gap:10px; z-index:100; }
.toast { background:var(--surface); border:1px solid var(--line); border-left:4px solid var(--blue); border-radius:var(--r-sm); box-shadow:var(--shadow-lg); padding:13px 16px; font-size:14px; max-width:360px; animation:slidein .25s var(--ease-out); }
.toast.ok { border-left-color:var(--ok); } .toast.err { border-left-color:var(--danger); }
@keyframes slidein { from{ transform:translateX(12px); opacity:0 } to{ transform:none; opacity:1 } }

/* ---- payment methods (checkout) ---- */
.pm { display:flex; flex-direction:column; gap:11px; }
.pm-opt { display:flex; align-items:center; gap:13px; padding:15px; border:1.5px solid var(--line); border-radius:var(--r); cursor:pointer; transition:.18s var(--ease); background:var(--surface); }
.pm-opt:hover { border-color:var(--brand-100); background:var(--surface-2); }
.pm-opt.sel { border-color:var(--brand); background:var(--brand-soft); box-shadow:0 0 0 3px rgba(255,64,0,.1); }
.pm-opt .pm-ico { width:30px; height:30px; display:grid; place-items:center; color:var(--fg-2); }
.pm-opt.sel .pm-ico { color:var(--brand); }
.pm-opt .pm-t { font-weight:700; } .pm-opt .pm-s { font-size:12px; color:var(--muted); }

/* ---- order summary / trust ---- */
.summary { background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r); padding:18px; }
.summary .li { display:flex; justify-content:space-between; padding:7px 0; font-size:14px; }
.summary .total { border-top:1px solid var(--line); margin-top:10px; padding-top:12px; font-weight:800; font-size:19px; }
.trust { display:flex; gap:16px; align-items:center; justify-content:center; flex-wrap:wrap; color:var(--muted); font-size:12.5px; margin-top:16px; }
.trust > span { display:inline-flex; align-items:center; gap:6px; }
.bump { border:2px dashed var(--brand); background:var(--brand-soft); border-radius:var(--r); padding:15px; display:flex; gap:13px; align-items:flex-start; transition:.15s var(--ease); }
.bump:hover { box-shadow:var(--shadow-sm); }
.timer { font-weight:800; color:var(--danger); font-variant-numeric:tabular-nums; letter-spacing:.02em; }

/* ---- empty state (rico) / loading ---- */
.empty { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; color:var(--muted); padding:44px 16px; gap:10px; }
.empty .empty-ico { width:66px; height:66px; border-radius:18px; background:var(--surface-3); color:var(--muted); display:grid; place-items:center; margin-bottom:2px; }
.empty .empty-ico .ico-svg { width:32px; height:32px; }
.empty .empty-t { font-weight:700; color:var(--fg); font-size:15px; }
.spin { width:20px; height:20px; border:2.5px solid var(--line); border-top-color:var(--brand); border-radius:50%; display:inline-block; animation:sp .7s linear infinite; }
@keyframes sp { to{ transform:rotate(360deg) } }

/* ---- skeleton ---- */
.skeleton { position:relative; overflow:hidden; background:var(--surface-3); border-radius:var(--r-sm); }
.skeleton::after { content:""; position:absolute; inset:0; transform:translateX(-100%); background:linear-gradient(90deg, transparent, color-mix(in srgb,var(--surface) 55%, transparent), transparent); animation:shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform:translateX(100%); } }
.sk-text { height:14px; margin:6px 0; } .sk-title { height:22px; width:40%; margin-bottom:12px; } .sk-card { height:96px; } .sk-row { height:44px; margin-bottom:2px; }

.qr { background:#fff; padding:12px; border-radius:var(--r); display:block; margin:0 auto; box-shadow:var(--shadow-sm); }
.copybox { display:flex; gap:8px; align-items:stretch; }
.copybox .mono { flex:1; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-sm); padding:12px; font-size:12px; word-break:break-all; }

/* ---- product card (checkout) ---- */
.prodcard { display:flex; gap:16px; align-items:center; }
.prodcard img { width:84px; height:84px; border-radius:var(--r); object-fit:cover; box-shadow:var(--shadow-sm); }
.price-anchor { color:var(--muted); text-decoration:line-through; font-size:14px; margin-right:8px; }
.price-now { color:var(--brand); font-weight:800; font-size:26px; letter-spacing:-.02em; }
/* checkout Hotmart-like: títulos de seção serifados + produto compacto */
.ck-sec { font-family:var(--font-display); font-weight:600; font-size:18px; letter-spacing:-.01em; margin:0 0 12px; color:var(--fg); }
.ckp-row { display:flex; gap:14px; align-items:center; }
.ckp-row .ckp-thumb { width:72px; height:72px; border-radius:var(--r-sm); object-fit:cover; border:1px solid var(--line); flex:0 0 auto; background:var(--surface-2); }
.ckp-row .ckp-info { min-width:0; }

/* ============================================================================
   HOTMART-CLONE — hero / filtros pill / métricas serif / carteira / passos
   ========================================================================== */

/* ---- hero de boas-vindas ---- */
.hero { display:grid; grid-template-columns:1.1fr .9fr; gap:24px; align-items:center;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:28px 30px; margin-bottom:22px; overflow:hidden; }
.hero-greet { font-family:var(--font-display); font-weight:600; font-size:30px; line-height:1.15; letter-spacing:-.01em; margin:0 0 6px; }
.hero-sub { color:var(--muted); font-size:14.5px; }
.showcase { background:linear-gradient(180deg,var(--brand-soft),#fff); border:1px solid var(--brand-100); border-radius:var(--r-lg);
  padding:22px; text-align:center; }
.showcase .cap { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.06em; font-weight:700; }
.showcase .big { font-family:var(--font-display); font-weight:600; font-size:38px; letter-spacing:-.02em; color:var(--ok); margin:6px 0 4px; font-variant-numeric:tabular-nums; line-height:1; }
.showcase .lbl { color:var(--fg-2); font-weight:600; font-size:14px; }

/* ---- barra de filtros (selects arredondados) ---- */
.filterbar { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:22px; }
.select-pill { position:relative; }
.select-pill > .ico-svg { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none; }
.select-pill select { appearance:none; -webkit-appearance:none; height:46px; min-width:190px; padding:0 40px 0 16px; border-radius:var(--r-pill);
  border:1px solid var(--line); background:var(--surface); font-family:inherit; font-size:14.5px; font-weight:600; color:var(--fg); cursor:pointer; box-shadow:var(--shadow-sm); }
.select-pill.with-ico select { padding-left:40px; }
.select-pill::after { content:""; position:absolute; right:18px; top:50%; width:8px; height:8px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted);
  transform:translateY(-70%) rotate(45deg); pointer-events:none; }
.select-pill select:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(255,64,0,.12); }
.pillbox { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }

/* ---- métrica estilo Hotmart (número serif + info) ---- */
.metric { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:20px; transition:.2s var(--ease); }
.metric:hover { box-shadow:var(--shadow-md); }
.metric .mh { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:13.5px; font-weight:600; margin-bottom:10px; }
.metric .mh .info { width:16px; height:16px; color:var(--muted); cursor:help; opacity:.7; }
.metric .v { font-family:var(--font-display); font-weight:600; font-size:30px; letter-spacing:-.01em; font-variant-numeric:tabular-nums; line-height:1.05; color:var(--fg); }
.metric .v.pos { color:var(--ok); } .metric .v.neg { color:var(--danger); }

/* ---- legenda do gráfico ---- */
.legend { display:flex; gap:22px; flex-wrap:wrap; margin-bottom:16px; }
.legend-item { display:inline-flex; align-items:center; gap:8px; color:var(--muted); font-size:13.5px; font-weight:600; }
.legend-item i { width:9px; height:9px; border-radius:50%; display:inline-block; }

/* ---- carteira ---- */
.wallet-card { border:1px solid var(--line); border-radius:var(--r); padding:20px; background:var(--surface); }
.wallet-card .cur { font-size:22px; font-weight:800; color:var(--fg-2); letter-spacing:.01em; margin-bottom:12px; }
.wallet-card .row-li { display:flex; justify-content:space-between; align-items:baseline; padding:5px 0; font-size:14px; }
.wallet-card .row-li.big span:last-child { font-family:var(--font-display); font-weight:600; font-size:22px; letter-spacing:-.01em; }
.wallet-card .pos { color:var(--ok); } .wallet-card .mut { color:var(--muted); }
.advance-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  border:1px solid var(--line); border-radius:var(--r); background:var(--surface-2); padding:16px 20px; margin-top:16px; }
.advance-bar .txt { font-size:14.5px; color:var(--fg-2); }
.advance-bar .txt b { color:var(--ok); }

/* ---- próximos passos (checklist) ---- */
.progress { height:5px; border-radius:var(--r-pill); background:var(--surface-3); overflow:hidden; margin:4px 0 14px; }
.progress > i { display:block; height:100%; background:var(--brand); border-radius:var(--r-pill); transition:width .4s var(--ease); }
.steps { display:flex; flex-direction:column; gap:4px; }
.step { display:flex; align-items:center; gap:12px; padding:13px 14px; border-radius:var(--r-sm); font-size:14.5px; color:var(--fg-2); transition:.15s var(--ease); }
.step:hover { background:var(--surface-2); }
.step .ico-svg { color:var(--muted); }
.step.done .ico-svg { color:var(--ok); } .step.done { color:var(--fg); }

/* ---- responsive ---- */
@media (max-width:860px) {
  .hero { grid-template-columns:1fr; }
  .metric .v, .showcase .big { font-size:26px; }
  .shell { grid-template-columns:1fr; }
  .side { position:fixed; left:0; top:0; z-index:40; transform:translateX(-100%); transition:.2s var(--ease); width:var(--sidebar); }
  .side.open { transform:none; box-shadow:var(--shadow-xl); }
  .main { padding:16px; }
  h1 { font-size:25px; }
  .g2,.g3,.g4 { grid-template-columns:1fr; }
  .filterbar .select-pill select { min-width:0; width:100%; }
  .filterbar .select-pill { flex:1; }
  .menu-btn { display:inline-flex !important; }
  .hide-sm { display:none !important; }
}
.menu-btn { display:none; }
