@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

:root {
  --bg: #04101f;
  --bg-2: #071a2e;
  --surface: rgba(14, 34, 56, .72);
  --surface-solid: #0c1f35;
  --surface-2: #112a45;
  --line: rgba(148, 180, 230, .14);
  --line-strong: rgba(148, 180, 230, .26);
  --text: #e9effb;
  --muted: #95a6c4;
  --faint: #6c7d9b;
  --blue: #1d6fe0;
  --blue-2: #5aa2f7;
  --blue-3: #a8cdfd;
  --link: #5aa2f7;
  --green: #2bd9b4;
  --gold: #f5b942;
  --purple: #a874f5;
  --red: #ff6b6b;
  --grad: linear-gradient(135deg, #1d6fe0 0%, #2a9bd8 55%, #2bd9b4 100%);
  --grad-text: linear-gradient(100deg, #a8cdfd 0%, #5aa2f7 30%, #2bd9b4 65%, #b98af8 100%);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
  --glow: 0 0 0 1px rgba(90, 162, 247, .25), 0 18px 50px -18px rgba(29, 111, 224, .7);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --header-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f8fd;
  --bg-2: #eaf1fb;
  --surface: rgba(255, 255, 255, .82);
  --surface-solid: #ffffff;
  --surface-2: #eef3fb;
  --line: rgba(20, 50, 100, .1);
  --line-strong: rgba(20, 50, 100, .2);
  --text: #0b1730;
  --muted: #4f617f;
  --faint: #7787a2;
  --blue-3: #1f5fb0;
  --link: #1f5fb0;
  --purple: #7a45d6;
  --grad-text: linear-gradient(100deg, #1650b8 0%, #1d6fe0 35%, #0e9f87 70%, #7a45d6 100%);
  --shadow: 0 30px 70px -35px rgba(20, 50, 100, .35);
  --glow: 0 0 0 1px rgba(29, 111, 224, .2), 0 18px 40px -20px rgba(29, 111, 224, .45);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
::selection { background: rgba(90, 162, 247, .35); }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface-solid); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
.section-sm { padding: clamp(50px, 7vw, 80px) 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-3); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 680px; }
.center .lead { margin-inline: auto; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }

/* fundo */
.bg-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-orbs::before, .bg-orbs::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
}
.bg-orbs::before { width: 620px; height: 620px; left: -160px; top: -200px; background: radial-gradient(circle, rgba(29, 111, 224, .55), transparent 70%); }
.bg-orbs::after { width: 560px; height: 560px; right: -180px; top: 30vh; background: radial-gradient(circle, rgba(43, 217, 180, .22), transparent 70%); }
:root[data-theme="light"] .bg-orbs::before, :root[data-theme="light"] .bg-orbs::after { opacity: .35; }
.grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: .55;
}

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: .98rem; cursor: pointer; text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff !important; box-shadow: var(--glow); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text) !important; backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--blue-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-danger { background: linear-gradient(135deg, #d94848, #ff7a6b); color: #fff !important; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-store { background: #000; color: #fff !important; border-color: rgba(255, 255, 255, .18); min-height: 54px; padding: 0 22px 0 18px; }
:root[data-theme="light"] .btn-store { background: #0b1730; }
.btn-store small { display: block; font-size: .68rem; font-weight: 500; opacity: .8; line-height: 1.1; }
.btn-store span { display: block; text-align: left; line-height: 1.15; font-size: 1.05rem; }
.btn-store svg { width: 26px; height: 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btn-row { justify-content: center; }

/* cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-decoration: none !important; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 6px 18px -6px rgba(29, 111, 224, .8); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 999px; text-decoration: none; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text);
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--blue-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.menu-toggle { display: none; }

@media (max-width: 920px) {
  .menu-toggle { display: grid; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 20px 22px; background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s ease; margin: 0;
  }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  body.menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .header-actions { margin-left: auto; }
}

/* hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px); position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; color: var(--muted); font-size: .9rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges svg { width: 17px; height: 17px; color: var(--green); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: .85rem; color: var(--muted); margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.pill b { background: var(--grad); color: #fff; font-size: .72rem; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .btn-row, .hero-badges { justify-content: center; }
}

/* telefone */
.phone-stage { position: relative; display: grid; place-items: center; min-height: 600px; perspective: 1400px; }
.phone {
  position: relative; width: 300px; height: 612px; border-radius: 50px; padding: 11px;
  background: linear-gradient(145deg, #2a3446, #0d121c 40%, #1d2534);
  box-shadow: 0 0 0 1.5px #3a4559, 0 50px 100px -30px rgba(0, 0, 0, .7), inset 0 0 0 2px #0a0e16;
  transform-style: preserve-3d; transition: transform .3s ease-out; will-change: transform;
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden;
  background: #f2f4f8; color: #0d1526; font-size: 12px; line-height: 1.35;
}
.phone-screen.dark { background: #000; color: #f2f5fb; }
.phone-island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 27px; border-radius: 20px; background: #000; z-index: 5; }
.app-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 0; font-weight: 650; font-size: 12.5px; height: 44px; }
.app-status .icons { display: flex; gap: 5px; align-items: center; }
.app-status .icons i { display: block; background: currentColor; border-radius: 2px; }
.app-body { padding: 6px 14px 0; }
.app-title { display: flex; justify-content: space-between; align-items: center; margin: 6px 2px 10px; }
.app-title h4 { font-family: var(--font); font-size: 25px; font-weight: 750; margin: 0; letter-spacing: -.02em; }
.app-title .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; }
.app-chips { display: flex; gap: 6px; margin-bottom: 10px; overflow: hidden; }
.app-chips span { padding: 4px 10px; border-radius: 999px; background: #fff; font-size: 10.5px; font-weight: 600; color: #4b5b78; white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.app-chips span.on { background: #1d6fe0; color: #fff; }
.app-card { background: #fff; border-radius: 16px; padding: 12px 13px; margin-bottom: 9px; box-shadow: 0 1px 3px rgba(10, 30, 70, .06); }
.dark .app-card { background: #1c1c1e; }
.app-card .label { font-size: 10.5px; color: #6b7a94; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.app-card .big { font-size: 25px; font-weight: 760; letter-spacing: -.02em; margin: 2px 0 1px; font-variant-numeric: tabular-nums; }
.app-card .delta { color: #0e9f87; font-weight: 650; font-size: 11.5px; }
.app-card svg.spark { width: 100%; height: 64px; margin-top: 6px; overflow: visible; }
.spark-line { fill: none; stroke: #1d6fe0; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s .4s ease forwards; }
.spark-fill { fill: url(#sparkFill); opacity: 0; animation: fadein 1s 1.6s ease forwards; }
.spark-dot { fill: #2bd9b4; stroke: #fff; stroke-width: 2; opacity: 0; animation: fadein .4s 2.4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.app-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 9px; }
.app-mini .app-card { margin: 0; }
.app-mini .val { font-size: 15px; font-weight: 750; margin-top: 2px; font-variant-numeric: tabular-nums; }
.app-mini .val.g { color: #0e9f87; }
.app-list .row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef1f6; }
.app-list .row:last-child { border-bottom: 0; }
.coin { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 11px; flex: none; }
.coin.usdt { background: #26a17b; }
.coin.btc { background: #f7931a; }
.coin.eth { background: #627eea; }
.coin.sol { background: linear-gradient(135deg, #9945ff, #14f195); }
.app-list .meta { flex: 1; min-width: 0; }
.app-list .meta b { display: block; font-size: 12px; }
.app-list .meta small { color: #7a879d; font-size: 10.5px; }
.app-list .amt { text-align: right; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.app-list .amt small { display: block; color: #0e9f87; font-weight: 600; font-size: 10.5px; }
.app-tabbar {
  position: absolute; left: 10px; right: 10px; bottom: 12px; height: 58px; border-radius: 30px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 6px 20px rgba(10, 30, 70, .12);
}
.app-tabbar span { display: grid; justify-items: center; gap: 2px; font-size: 9.5px; font-weight: 600; color: #8792a6; }
.app-tabbar span.on { color: #1d6fe0; }
.app-tabbar i { width: 20px; height: 20px; border-radius: 6px; background: currentColor; opacity: .9; display: block; mask-size: contain; -webkit-mask-size: contain; }

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px;
  padding: 11px 15px 11px 11px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow);
  font-size: .82rem; color: var(--muted); white-space: nowrap; animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; color: var(--text); font-size: .95rem; font-variant-numeric: tabular-nums; }
.float-card .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 19px; height: 19px; }
.ic-green { background: rgba(43, 217, 180, .16); color: var(--green); }
.ic-blue { background: rgba(90, 162, 247, .16); color: var(--blue-2); }
.ic-gold { background: rgba(245, 197, 66, .16); color: var(--gold); }
.ic-purple { background: rgba(168, 116, 245, .16); color: var(--purple); }
.fc-1 { top: 215px; left: -36px; }
.fc-2 { top: 395px; right: -36px; animation-delay: -2s; }
.fc-3 { bottom: 34px; left: -16px; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1100px) { .fc-1 { left: 0; } .fc-2 { right: 0; } .fc-3 { left: 0; } }
@media (max-width: 560px) {
  .phone-stage { min-height: 560px; }
  .phone { transform: scale(.9); }
  .float-card { font-size: .74rem; padding: 8px 12px 8px 8px; }
  .float-card .ic { width: 30px; height: 30px; }
  .fc-1 { top: 20px; left: 0; } .fc-2 { top: 270px; right: 0; } .fc-3 { bottom: 20px; left: 0; }
}

/* faixa de números */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 750; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* cartões */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(10px); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; overflow: hidden;
}
.card.hover:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.card .ic svg { width: 23px; height: 23px; }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .94rem; }
.card ul li { position: relative; padding-left: 22px; margin: 6px 0; }
.card ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.card.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(90, 162, 247, .14), transparent 60%);
}
.card.spot:hover::after { opacity: 1; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(245, 197, 66, .15); color: var(--gold); margin-left: 6px; vertical-align: middle; }
.tag-blue { background: rgba(90, 162, 247, .15); color: var(--blue-2); }
.tag-green { background: rgba(43, 217, 180, .15); color: var(--green); }
.tag-purple { background: rgba(168, 116, 245, .15); color: var(--purple); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento .card { grid-column: span 2; }
.bento .wide { grid-column: span 3; }
.bento .full { grid-column: span 6; }
.bento .tall { grid-row: span 2; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento .card, .bento .wide { grid-column: span 1; } .bento .full { grid-column: span 2; } .bento .tall { grid-row: auto; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento .card, .bento .wide, .bento .full { grid-column: span 1; } }
.mini-chart { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 20px; }
.mini-chart i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--grad); opacity: .85; transform-origin: bottom; transform: scaleY(0); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.in .mini-chart i { transform: scaleY(1); }
.compare-bars { margin-top: 18px; display: grid; gap: 10px; }
.compare-bars div { display: grid; grid-template-columns: 90px 1fr 54px; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.compare-bars span { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.compare-bars span i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--grad); transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.compare-bars b { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }

/* tick ao vivo */
.ticker { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ticker b { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ticker small { color: var(--muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(43, 217, 180, .6); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(43, 217, 180, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 217, 180, 0); } }

/* blocos de recurso alternados */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; padding: clamp(40px, 6vw, 70px) 0; }
.feature-row.rev .feature-media { order: -1; }
.feature-row h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feature-row ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.feature-row li { display: flex; gap: 12px; color: var(--muted); }
.feature-row li svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 3px; }
.feature-row li b { color: var(--text); font-weight: 600; }
.feature-media { position: relative; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; } .feature-row.rev .feature-media { order: 0; } }

.panel {
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line); padding: 22px;
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.panel-title { display: flex; justify-content: space-between; align-items: center; font-weight: 650; margin-bottom: 16px; }
.panel-title small { color: var(--muted); font-weight: 500; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: .94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.kv .pos { color: var(--green); }
.kv .neg { color: var(--red); }
.kv .sep { grid-column: 1 / -1; height: 1px; background: var(--line); }

/* abas */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.center .tabs { justify-content: center; }
.tab {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-weight: 600; font-size: .92rem; cursor: pointer; transition: all .2s;
}
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: rise .45s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* simulador */
.sim { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 920px) { .sim { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span, .field > label { font-size: .86rem; font-weight: 600; color: var(--muted); }
.field .hint { font-size: .8rem; color: var(--faint); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface-solid); color: var(--text); transition: border-color .2s, box-shadow .2s; font-variant-numeric: tabular-nums;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(90, 162, 247, .18); }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .addon { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: .9rem; }
.seg { display: flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); gap: 4px; }
.seg button { flex: 1; min-height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; font-size: .88rem; cursor: pointer; transition: all .2s; }
.seg button[aria-pressed="true"] { background: var(--surface-solid); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
input[type="range"] { width: 100%; accent-color: var(--blue-2); height: 28px; }
.range-row { display: flex; justify-content: space-between; font-size: .8rem; color: var(--faint); margin-top: -4px; }
.result-big { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.result-grid div { padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.result-grid small { display: block; color: var(--muted); font-size: .8rem; }
.result-grid b { font-size: 1.08rem; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .result-grid { grid-template-columns: 1fr; } }
.chart { width: 100%; height: auto; aspect-ratio: 600 / 240; }
.chart .axis { stroke: var(--line); }
.chart .lbl { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 12px; height: 4px; border-radius: 3px; margin-right: 7px; vertical-align: middle; }
.note { font-size: .82rem; color: var(--faint); margin-top: 14px; }

/* preços */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; justify-content: center; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.price-card { padding: 32px; }
.price-card.featured { border-color: transparent; background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: var(--glow); }
.price { font-family: var(--display); font-size: 2.6rem; font-weight: 750; letter-spacing: -.03em; margin: 12px 0 2px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price-card ul { margin-top: 22px; }
.price-card ul li { color: var(--text); }
.price-switch { display: inline-flex; margin-bottom: 30px; }
.price-switch button { flex: none; padding: 0 18px; white-space: nowrap; }
.mini-widget { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-widget > div { border-radius: 18px; padding: 12px 14px; background: linear-gradient(160deg, #1d4f9a, #0f2a55); color: #fff; font-size: .78rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.mini-widget b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.mini-widget small { opacity: .75; }
.mini-widget .lock { background: rgba(148, 180, 230, .1); color: var(--text); display: flex; flex-direction: column; justify-content: center; }
.mini-table { margin-top: 16px; width: 100%; border-collapse: collapse; font-size: .82rem; }
.mini-table td { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.mini-table td:last-child { text-align: right; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-table tr:last-child td { border-bottom: 0; }
.save { color: var(--green); font-weight: 650; font-size: .9rem; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 620; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .ans { padding: 0 22px 20px; color: var(--muted); }
.faq .ans p:last-child { margin: 0; }

/* cta */
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(40px, 6vw, 70px); text-align: center;
  background: radial-gradient(800px circle at 0% 0%, rgba(90, 162, 247, .35), transparent 50%), radial-gradient(700px circle at 100% 100%, rgba(43, 217, 180, .22), transparent 50%), var(--surface-solid);
  border: 1px solid var(--line-strong);
}
.cta-band img.icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 20px 50px -15px rgba(29, 111, 224, .9); }

/* páginas internas */
.page-hero { padding: clamp(50px, 8vw, 90px) 0 clamp(30px, 5vw, 50px); position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.breadcrumb { font-size: .85rem; color: var(--faint); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

.toc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 50px; align-items: start; }
.toc-layout > * { min-width: 0; }
@media (max-width: 560px) { .prose table { display: block; overflow-x: auto; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .9rem; }
.toc b { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.toc a { display: block; color: var(--muted); padding: 6px 0 6px 14px; border-left: 2px solid var(--line); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--text); border-left-color: var(--blue-2); }
@media (max-width: 900px) { .toc-layout { grid-template-columns: 1fr; } .toc { position: static; display: none; } }

.prose { max-width: 760px; color: var(--muted); }
.prose h2 { color: var(--text); font-size: 1.5rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); font-size: 1.1rem; margin-top: 1.6em; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 650; }
.prose .callout { padding: 16px 18px; border-radius: 14px; background: rgba(90, 162, 247, .08); border: 1px solid rgba(90, 162, 247, .25); color: var(--text); margin: 1.4em 0; }
.prose .callout.warn { background: rgba(245, 197, 66, .08); border-color: rgba(245, 197, 66, .3); }
.updated { font-size: .88rem; color: var(--faint); }

.steps { counter-reset: step; display: grid; gap: 14px; }
.step { position: relative; padding: 18px 20px 18px 66px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: .9rem;
}
.step b { display: block; color: var(--text); margin-bottom: 2px; }
.step span { color: var(--muted); font-size: .94rem; }

/* exemplos */
.example { scroll-margin-top: calc(var(--header-h) + 20px); }
.example .grid-2 { align-items: start; gap: 24px; }
.timeline { position: relative; margin: 16px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 16px 26px; color: var(--muted); font-size: .93rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 4px rgba(90, 162, 247, .15); }
.timeline li::after { content: ""; position: absolute; left: 8.5px; top: 20px; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline li b { color: var(--text); font-variant-numeric: tabular-nums; }
.tier-bar { display: flex; height: 38px; border-radius: 10px; overflow: hidden; margin: 14px 0 8px; background: var(--surface-2); border: 1px solid var(--line); }
.tier-bar span { display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: #fff; transition: flex-basis .5s ease; white-space: nowrap; overflow: hidden; }
.tier-bar .t1 { background: linear-gradient(135deg, #1d6fe0, #5aa2f7); }
.tier-bar .t2 { background: linear-gradient(135deg, #1f9e6b, #2bd9b4); }
.formula { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .86rem; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); overflow-x: auto; white-space: nowrap; }

/* formulários */
.side-grid { grid-template-columns: 1.35fr .9fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .side-grid { grid-template-columns: 1fr; } }
.form-card { padding: clamp(22px, 4vw, 34px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 18px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--blue-2); width: 17px; height: 17px; flex: none; }
.alert { padding: 14px 16px; border-radius: 12px; font-size: .94rem; margin-bottom: 16px; border: 1px solid; }
.alert[hidden] { display: none; }
.alert-ok { background: rgba(43, 217, 180, .1); border-color: rgba(43, 217, 180, .35); color: var(--text); }
.alert-err { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .35); color: var(--text); }
.alert-info { background: rgba(90, 162, 247, .1); border-color: rgba(90, 162, 247, .3); color: var(--text); }
.alert-warn { background: rgba(245, 185, 66, .1); border-color: rgba(245, 185, 66, .38); color: var(--text); }
.textout { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .84rem; line-height: 1.55; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); white-space: pre-wrap; word-break: break-word; margin: 0; }
.calc-rows { display: grid; gap: 10px; }
.calc-rows .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-rows .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.calc-rows label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.example .grid > *, .calc-rows > div > * { min-width: 0; }
@media (max-width: 560px) { .calc-rows .row3 { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item b { display: block; }
.contact-item span { color: var(--muted); font-size: .92rem; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* rodapé */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 30px; margin-top: 40px; background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.footer-grid h4 { font-family: var(--font); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--muted); padding: 4px 0; font-size: .94rem; }
.footer-grid a:hover { color: var(--text); text-decoration: none; }
.footer-grid a.brand { display: inline-flex; color: var(--text); font-size: 1.15rem; padding: 0; }
.footer-grid p { color: var(--muted); font-size: .92rem; max-width: 320px; margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.no-js .reveal { opacity: 1; transform: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 80;
  padding: 12px 18px; border-radius: 12px; background: var(--surface-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  transition: all .3s ease; pointer-events: none; font-size: .92rem;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* conta (/conta/) */
.account-link { position: relative; color: var(--text) !important; text-decoration: none !important; }
.account-link.signed-in::after { content: ""; position: absolute; right: 1px; top: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg); }
.account { min-height: 60vh; }
.account-loading { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 120px 0; color: var(--muted); }
.account-loading[hidden] { display: none; }
.spinner-blue { border-color: var(--line-strong); border-top-color: var(--blue-2); }
.account-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.narrow-card { max-width: 620px; margin-inline: auto; }
.h-card { font-size: 1.25rem; margin-bottom: 12px; }
.faint { color: var(--faint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.account-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.account-bar p { margin: 0; }
.group-title { font-size: 1.15rem; margin: 30px 0 14px; }
.group-title:first-child { margin-top: 0; }
.inv-card { display: block; color: var(--text) !important; text-decoration: none !important; transition: border-color .2s, transform .2s; }
.inv-card:hover { border-color: var(--blue-2); transform: translateY(-2px); }
.inv-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.inv-top h3 { margin: 0 0 2px; font-size: 1.08rem; }
.inv-top p { font-size: .88rem; }
.inv-top .tag { margin: 0; flex: none; }
.inv-card .kv { font-size: .9rem; }
.note-engine { margin-top: 26px; max-width: 760px; }
.back-link { font-weight: 600; }
.detail-grid { grid-template-columns: 1.6fr .8fr; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }
.stat-cards { margin-bottom: 18px; }
.stat-card { padding: 18px 20px; }
.stat-card span { display: block; color: var(--muted); font-size: .86rem; margin-bottom: 4px; }
.stat-card strong { font-family: var(--display); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.stat-card strong b { font-weight: inherit; white-space: nowrap; }
.suggest-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 18px; border-color: rgba(52, 211, 153, .35); }
.suggest-card .h-card { margin: 0 0 4px; font-size: 1.05rem; }
.suggest-card p { margin: 0; }
.suggest-card .btn { flex-shrink: 0; }
.engine-warnings { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.engine-warnings li + li { margin-top: 4px; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.table-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.table-head .h-card { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 -8px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 650; }
.table td:first-child { white-space: nowrap; color: var(--muted); }
.row-actions { text-align: right; white-space: nowrap; }
.link-btn { background: none; border: 0; padding: 2px 6px; color: var(--link); font-weight: 600; cursor: pointer; font-size: .88rem; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger, .danger-text { color: var(--red) !important; }
.lock { font-size: .8rem; color: var(--faint); }

/* conta: painel no estilo do app */
.account-app, .sheet { --accent: #3b8cf0; --gain: #30d158; --loss: #ff453a; --orange: #ff9f0a; --purple: #bf5af2; --tile: var(--surface-2); }
:root[data-theme="light"] .account-app, :root[data-theme="light"] .sheet { --accent: #1f6fd1; --gain: #1f9d55; --loss: #d93025; --orange: #c46a00; --purple: #8e3fc1; }
.accent { color: var(--accent) !important; }
.warn { color: var(--orange) !important; }
.rate-mismatch { margin: 12px 0 0; }
.layout-row { justify-content: center; margin: 18px 0 4px; }
.sheet.sheet-wide { width: min(1080px, calc(100% - 24px)); }
.lay-top { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.lay-top .segmented { margin: 0; }
.lay-board { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); gap: 10px; align-items: start; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--bg-2); }
.lay-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 90px; padding-bottom: 24px; border-radius: 12px; }
.lay-col.drop-end { box-shadow: inset 0 -3px 0 var(--accent); }
.lay-tile.away { border-style: dashed; background: transparent; }
.lay-tile.away .lay-tile-head { opacity: .65; }
.lay-tile small { font-size: .76rem; }
.lay-tile { padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-solid); cursor: grab; min-height: 78px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.lay-tile.dragging { opacity: .45; }
.lay-tile.drop-before { box-shadow: 0 -3px 0 var(--accent); }
.lay-tile.drop-after { box-shadow: 0 3px 0 var(--accent); }
.lay-tile-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lay-tile-head b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lay-tile-head .ic-svg { flex: none; }
.lay-num { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--tile); color: var(--muted); }
.lay-tile-actions { display: flex; align-items: center; gap: 4px; }
.lay-tile-actions .link-btn { margin-left: auto; font-size: .8rem; }
.lay-tile-actions .icon-btn:disabled { opacity: .3; cursor: default; }
.lay-sub { font-family: var(--font); font-size: .85rem; font-weight: 650; color: var(--muted); margin: 16px 0 6px; }
.lay-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; }
.lay-chip > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lay-chip small { font-size: .78rem; }
.lay-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.strong { font-weight: 700; }
.account-app .pos, .sheet .pos { color: var(--gain); }
.account-app .neg, .sheet .neg { color: var(--loss); }
.values-hidden .pos, .values-hidden .neg, .values-hidden .trend { color: inherit; }
.hide-btn .eye-off { display: none; }
.hide-btn.on .eye { display: none; }
.hide-btn.on .eye-off { display: block; }
.hide-btn.on { border-color: var(--blue-2); color: var(--blue-2); }
.icon-btn.sm { width: 34px; height: 34px; flex: none; font-size: 1.2rem; line-height: 1; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.icon-btn.spinning svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.dash-tabs { display: flex; gap: 4px; padding: 4px; margin: -8px 0 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); width: max-content; max-width: 100%; overflow-x: auto; }
.dash-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none !important; white-space: nowrap; transition: background .2s, color .2s; }
.dash-tabs a svg { width: 18px; height: 18px; flex: none; }
.dash-tabs a:hover { color: var(--text); }
.dash-tabs a[aria-current="page"] { background: var(--grad); color: #fff; box-shadow: var(--glow); }

.quote-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 4px 16px; color: var(--muted); font-size: .88rem; }
.quote-status small { display: block; font-size: .78rem; color: var(--faint); }
.quote-status.warn span { color: var(--orange); }
.quote-status .quote-brl { color: var(--muted); margin-top: 2px; }
.quote-status .quote-brl.warn { color: var(--orange); }

.page-account { --max: 1600px; }
.dash { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); gap: 18px; align-items: start; }
.dash-col { min-width: 0; }
.dash-col > .dcard { display: block; width: 100%; }
.dcard { padding: 20px 22px; }
.dcard + .dcard { margin-top: 18px; }
.dcard-title { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 1.12rem; font-weight: 700; margin: 0 0 14px; }
.dcard-title .ic-svg { width: 22px; height: 22px; color: var(--accent); }
.ic-svg { display: inline-block; vertical-align: middle; width: 20px; height: 20px; flex: none; }
.ic-svg.mini { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.ic-svg.faint { color: var(--faint); width: 16px; height: 16px; }
.ic-svg.accent { color: var(--accent); width: 24px; height: 24px; }
.ic-svg.warn { color: var(--orange); }
.big-value { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.5rem); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.big-value.md { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.big-value .unit { font-size: .7em; }
.caption { color: var(--muted); font-size: .85rem; margin: 6px 0 12px; }
.hero-money { margin: 6px 0 0; font-size: 1.02rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.trend { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-row { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 10px; font-weight: 600; }
.result-row > span:first-child { margin-right: auto; }
.result-row small { font-weight: 700; font-variant-numeric: tabular-nums; }
.tiles { display: grid; gap: 8px; margin: 12px 0; }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { background: var(--tile); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.tile-title { display: block; font-size: .7rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.tile b { display: block; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile small { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.stacked { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; margin: 14px 0 10px; }
.stacked i { display: block; min-width: 3px; }
.legend { display: grid; gap: 6px; margin-bottom: 4px; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.legend-row i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.legend-row span { flex: 1; min-width: 0; }
.legend-row b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.liquidity { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.liquidity .tile { background: none; padding: 0; }
.notes { margin-top: 12px; font-size: .85rem; color: var(--orange); }
.notes summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; list-style: none; }
.notes summary::-webkit-details-marker { display: none; }
.notes ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.share { height: 6px; border-radius: 999px; background: var(--line-strong); overflow: hidden; }
.share i { display: block; height: 100%; border-radius: 999px; }
.chart { display: block; width: 100%; margin-top: 12px; overflow: visible; }
.chart-bars .bar { fill: var(--gain); opacity: .45; }
.chart-bars .bar-now { fill: var(--gain); }
.chart-bars .bar-empty { fill: var(--line-strong); }
.account-app .chart { aspect-ratio: auto; }
.account-app .chart .axis { stroke: none; }
.chart-area { height: auto; }
.chart-area .line { stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-area .area-top { stop-color: var(--accent); stop-opacity: .35; }
.chart-area .area-bottom { stop-color: var(--accent); stop-opacity: .02; }
.chart-area .grid { stroke: var(--line); stroke-width: 1; }
.chart-area .axis { fill: var(--faint); font-size: 9px; font-family: var(--font); }
.chart-area .dot { fill: var(--accent); }
.chart-area .goal { stroke: var(--gain); stroke-dasharray: 4 3; }
.chart-area .goal-label { fill: var(--gain); }
.chart-foot { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--muted); margin-top: 6px; }
.rows { display: grid; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.asset-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; }
.asset-row .row-share { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; }
.asset-row .row-share .share { flex: 1; }
.asset-row .row-share small { font-size: .75rem; color: var(--muted); min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.asset-badge { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 800; letter-spacing: .02em; }
.grow { flex: 1; min-width: 0; }
.grow b, .end b { display: block; font-weight: 650; }
.grow small, .end small { display: block; font-size: .8rem; }
.end { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pending-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pending-row small { color: var(--muted); }
.pending-row > b { white-space: nowrap; }
.sub-title { font-family: var(--font); font-size: 1rem; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.sub-title + .rows { border-top: 0; padding-top: 0; margin-top: 12px; }
.pace { background: var(--tile); border-radius: 12px; padding: 12px; margin-top: 14px; display: grid; gap: 8px; }
.pace-head { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.pace small { font-size: .8rem; }
.kv-sm { font-size: .82rem; gap: 6px 12px; }
.goal { display: flex; align-items: center; gap: 18px; }
.goal > div:last-child { display: grid; gap: 2px; }
.goal-value b { font-family: var(--display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.goal-value.lg b { font-size: 1.6rem; }
.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring svg { width: 100%; height: 100%; }
.ring .track { stroke: var(--line-strong); }
.ring .fill { stroke: var(--accent); }
.ring.done .fill { stroke: var(--gain); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1rem; font-variant-numeric: tabular-nums; }
.donut { position: relative; flex: none; }
.donut svg { width: 100%; height: 100%; }
.donut .track { stroke: var(--line-strong); }
.donut-center { position: absolute; inset: 22px; display: grid; place-content: center; text-align: center; }
.donut-center span { font-size: .72rem; color: var(--muted); }
.donut-center b { font-size: .92rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut-legend { flex: 1; display: grid; gap: 8px; min-width: 0; }
.ex-row { display: grid; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ex-row:last-of-type { border-bottom: 0; }
.ex-head { display: flex; align-items: center; gap: 12px; }
.ex-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; flex: none; }
.card-actions { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 12px; }
.card-actions .link-btn { padding-left: 0; text-decoration: none; }
.up-row, .row-link { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text) !important; text-decoration: none !important; }
.up-row:last-of-type, .row-link:last-of-type { border-bottom: 0; }
.up-row:hover b, .row-link:hover b { color: var(--blue-2); }
.row-link small { display: block; color: var(--muted); font-size: .82rem; }
.date-badge { width: 46px; height: 46px; border-radius: 10px; display: grid; place-content: center; text-align: center; flex: none; line-height: 1.05; }
.date-badge small { font-size: .62rem; font-weight: 700; }
.date-badge b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.ev-blue { color: var(--accent); } .ev-orange { color: var(--orange); } .ev-purple { color: var(--purple); }
.date-badge.ev-blue { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.date-badge.ev-orange { background: color-mix(in srgb, var(--orange) 14%, transparent); }
.date-badge.ev-purple { background: color-mix(in srgb, var(--purple) 14%, transparent); }
.attention { border-color: color-mix(in srgb, var(--orange) 55%, transparent); margin-bottom: 18px; }
.banner-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 18px; margin-bottom: 18px; cursor: pointer; color: var(--text); font: inherit; border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.banner-card b { display: block; }
.banner-card small { display: block; color: var(--muted); font-size: .85rem; }
.banner-card > span { flex: 1; }
.tools-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text) !important; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; text-decoration: none !important; }
.chip-btn:hover { border-color: var(--blue-2); }
.chip-btn .ic-svg { width: 16px; height: 16px; color: var(--accent); }

.segmented { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--tile); margin-bottom: 16px; overflow-x: auto; }
.segmented .seg { flex: 1; border: 0; background: none; color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 12px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.segmented .seg span { color: var(--faint); font-weight: 600; margin-left: 4px; }
.segmented .seg.on { background: var(--surface-solid); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.segmented.sm { margin: 10px 0 0; }
.segmented.sm .seg { font-size: .84rem; padding: 6px 10px; }
.summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.summary-strip .tile { background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; }
.inv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
.inv-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--text) !important; text-decoration: none !important; transition: border-color .2s, transform .2s; }
.inv-row:hover { border-color: var(--blue-2); transform: translateY(-2px); }
.inv-row .ex-icon { align-self: flex-start; }
.inv-row > .grow { display: grid; gap: 8px; }
.inv-row-head { display: flex; justify-content: space-between; gap: 12px; }
.inv-row-head > span:first-child { min-width: 0; }
.inv-row-head small { display: block; font-size: .82rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--tile); color: var(--muted); font-variant-numeric: tabular-nums; }
.chip-green { background: color-mix(in srgb, var(--gain) 16%, transparent); color: var(--gain); }
.chip-blue { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.chip .ic-svg.mini { margin-right: 3px; }
.hero-card { margin-bottom: 18px; }
.hero-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hero-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-tags .tag { margin: 0; }
.tag-plain { background: var(--tile); color: var(--muted); }
.detail-main > .dcard + .card, .detail-main > .card + .dcard { margin-top: 0; }
.detail-main > .dcard { margin-bottom: 18px; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cal-head b { flex: 1; text-align: center; font-size: 1.05rem; }
.cal-grid-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: .75rem; color: var(--muted); padding-bottom: 4px; }
.cal-day { border: 0; background: none; color: var(--text); font: inherit; min-height: 46px; border-radius: 10px; cursor: pointer; display: grid; justify-items: center; align-content: center; gap: 3px; font-variant-numeric: tabular-nums; }
.cal-day:hover { background: var(--tile); }
.cal-day.today { font-weight: 800; color: var(--accent); }
.cal-day.on { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.cal-day .dots { display: flex; gap: 3px; height: 5px; }
.cal-day .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: .8rem; margin-top: 12px; }
.cal-counters { margin: 12px 0 0; }
.sim-grid .form-row { margin-top: 14px; }
.sim-grid input[type=range] { width: 100%; accent-color: var(--accent); }
.sim-grid .kv { margin: 6px 0; }
.batch-ex { font-family: var(--font); font-size: .9rem; color: var(--muted); margin: 18px 0 8px; }
.batch-item { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.batch-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.batch-top small { display: block; font-size: .8rem; }
.switch { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; flex: none; transition: background .2s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch:checked { background: var(--gain); }
.switch:checked::after { transform: translateX(18px); }
.batch-item:has(.switch:not(:checked)) > :not(.batch-top) { opacity: .45; }
.filter-bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 16px; margin-bottom: 18px; }
.fchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 2px; padding: 7px 12px; border-radius: 999px; border: 0; background: var(--tile); color: var(--text); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fchip:hover { color: var(--accent); }
.fchip.on { background: var(--accent); color: #fff; }
.fchip .ic-svg.mini { margin-right: 3px; }
.period-nav { display: flex; align-items: center; gap: 10px; }
.period-nav.centered { justify-content: space-between; }
.period-nav .icon-btn:disabled { opacity: .35; cursor: default; }
.period-title { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: none; border: 0; padding: 4px 6px; color: var(--text); font: inherit; cursor: default; min-width: 0; }
.period-title.editable { cursor: pointer; }
.period-title.editable:hover b { color: var(--accent); }
.period-title b { font-size: 1.05rem; overflow-wrap: anywhere; }
.period-title .ic-svg.accent { width: 18px; height: 18px; }
.period-title .ic-svg.mini { margin: 0; }
.period-back { justify-self: center; text-decoration: none; }
.fscope { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.fscope-menus { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.fselect { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 7px 12px; border-radius: 999px; background: var(--tile); color: var(--text); font-size: .84rem; font-weight: 600; cursor: pointer; max-width: 100%; }
.fselect span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fselect.on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.fselect .ic-svg.mini { margin-right: 4px; }
.fselect .ic-svg.mini:last-of-type { margin: 0 0 0 4px; }
.fselect select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.fselect:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.period-head { margin-bottom: 4px; }
.period-head .change { display: block; margin-top: 4px; font-size: .85rem; }
.credits { margin-top: 10px; }
.rows.plain { margin-top: 12px; }
.asset-row.link { color: var(--text) !important; text-decoration: none !important; }
.asset-row.link:hover b { color: var(--blue-2); }
.valuation { position: relative; display: flex; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.valuation select { flex: 1; min-width: 0; background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 2px 0; }
.valuation select option, .fselect select option { background: var(--surface-solid); color: var(--text); }
.legend.flows { margin: 10px 0 12px; gap: 8px; }
.result-row.sep { padding-top: 12px; border-top: 1px solid var(--line); }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 6px; font-size: .82rem; color: var(--muted); }
.cmp-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.dot-now, .cmp-bar.now { background: var(--accent); }
.dot-other, .cmp-bar.other { background: color-mix(in srgb, var(--muted) 55%, transparent); }
.cmp-rows { display: grid; }
.cmp-row { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-head { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; color: var(--muted); }
.cmp-head small { font-variant-numeric: tabular-nums; }
.cmp-values { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.cmp-values b { font-size: 1.02rem; }
.cmp-assets { display: grid; gap: 10px; margin-top: 12px; }
.cmp-asset { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; font-size: .84rem; }
.cmp-asset small { font-variant-numeric: tabular-nums; }
.cmp-bars { display: grid; gap: 3px; }
.cmp-bar { height: 7px; border-radius: 999px; min-width: 2px; }
.quick-range { margin-bottom: 14px; }
.tax-year { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tax-year label { font-weight: 600; font-size: .9rem; }
.tax-year .select { width: auto; min-width: 110px; padding-top: 8px; padding-bottom: 8px; }
.tax-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.chip-btn:disabled { opacity: .45; cursor: default; }
.tax-head p { margin: 0; }
.kv-rows .result-row { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv-rows .result-row:last-child { border-bottom: 0; }
.kv-rows b { font-variant-numeric: tabular-nums; }
small.block { display: block; font-weight: 400; font-size: .78rem; }
small.inline { display: inline; font-weight: 400; font-size: .76rem; }
.tax-code { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; padding: 12px 0 4px; border-top: 1px solid var(--line); }
.tax-code:first-child { border-top: 0; padding-top: 0; }
.tax-code b:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tax-row { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
.tax-row small span.warn { font-weight: 600; }
.up-row .end b + b { margin-top: 2px; }
.select-sm { width: auto; padding: 6px 30px 6px 10px; font-size: .88rem; }
.copy-row { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.copy-row > span { color: var(--muted); flex: none; max-width: 45%; }
.copy-row > b { flex: 1; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.copy-row .link-btn { flex: none; }
.sub-title.first { margin-top: 0; padding-top: 0; border-top: 0; }
.tax-desc { background: var(--tile); border-radius: 12px; padding: 12px; font-size: .9rem; margin: 10px 0; user-select: text; }
@media (max-width: 860px) {
  .inv-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .account-app { padding-bottom: 84px; }
  .dash-tabs { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; margin: 0; width: auto; justify-content: space-around; border-radius: 26px; padding: 6px; background: color-mix(in srgb, var(--surface-solid) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow); }
  .dash-tabs a { flex-direction: column; gap: 3px; padding: 7px 4px; font-size: .68rem; flex: 1; border-radius: 18px; }
  .dash-tabs a svg { width: 22px; height: 22px; }
  .dash-tabs a[aria-current="page"] { background: var(--tile); color: var(--accent); box-shadow: none; }
  .dcard { padding: 16px; }
  .tiles-3, .summary-strip { gap: 6px; }
  .tile { padding: 8px 10px; }
  .tile b { font-size: .9rem; }
  .summary-strip .tile { padding: 10px; }
  .liquidity .tile b { font-size: .84rem; }
  .donut-wrap { gap: 14px; }
  .inv-row { padding: 14px; gap: 12px; }
  .inv-row > .ic-svg { display: none; }
  .tools-bar { flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 0 20px 2px; scrollbar-width: none; }
  .tools-bar::-webkit-scrollbar { display: none; }
  .chip-btn { flex: none; }
  .segmented { scrollbar-width: none; }
  .segmented::-webkit-scrollbar { display: none; }
  .segmented .seg { padding: 8px 6px; font-size: .84rem; }
  .segmented .seg span { margin-left: 2px; }
  .summary-strip .tile b { font-size: .86rem; }
  .account-bar .btn-row { gap: 8px; }
  .filter-bar { padding: 12px; }
  .fchip { flex: none; padding: 7px 11px; font-size: .82rem; }
  .fscope-menus { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .fscope-menus::-webkit-scrollbar { display: none; }
  .fselect { flex: none; }
  .period-title b { font-size: .98rem; }
}
.input-static { display: flex; align-items: center; color: var(--muted); }
.sheet { width: min(520px, calc(100% - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow); }
.sheet::backdrop { background: rgba(3, 8, 18, .6); backdrop-filter: blur(4px); }
.sheet-inner { padding: 22px 24px 24px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.sheet-head h2 { font-size: 1.3rem; margin: 0; }
.sheet-actions { margin-top: 8px; }
.sheet p { color: var(--text); }
@media (max-width: 640px) {
  .stat-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 14px 16px; }
  .stat-card strong { font-size: .95rem; }
  .suggest-card { flex-direction: column; align-items: stretch; }
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 0; border: 0; }
  .table td:first-child { grid-column: 1 / -1; font-size: .8rem; }
  .table td.num { grid-column: 2; grid-row: 2; }
  .table .row-actions { grid-column: 1 / -1; text-align: left; }
  .table .row-actions .link-btn:first-child { padding-left: 0; }
  .table-wrap { margin: 0; }
  .account-bar { align-items: flex-start; }
}

/* Ajustes da conta */
.settings-btn { display: inline-flex; align-items: center; gap: 6px; }
.settings-btn svg { width: 16px; height: 16px; }
.settings-btn.on { background: var(--tile); color: var(--text); }
.set-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 18px; }
.set-grid > div > .dcard + .dcard { margin-top: 18px; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); min-height: 48px; }
.set-label { flex: 1; min-width: 0; }
.set-label b { display: block; font-weight: 600; }
.set-label small { display: block; color: var(--faint); font-size: .8rem; margin-top: 2px; }
.set-value { color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.set-row .select-sm { max-width: 60%; }
.set-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 12px 0 4px; }
.set-actions .link-btn { padding-left: 0; padding-right: 0; text-decoration: none; }
.set-foot { color: var(--faint); font-size: .82rem; line-height: 1.5; margin: 12px 0 0; }
.set-sub { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: .98rem; font-weight: 700; margin: 22px 0 4px; }
.set-sub .grow { flex: 1; }
.set-group { color: var(--faint); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin: 14px 0 0; }
.set-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.set-link:hover { color: var(--link); }
.set-link .ic-svg.mini { margin: 0; color: var(--faint); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); }
.swatch.on { border-color: var(--text); }
.plain-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.input.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86rem; }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border: 1px solid var(--line-strong); border-left: 0; }
@media (max-width: 900px) { .set-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .settings-btn { font-size: 0; gap: 0; } .settings-btn svg { width: 18px; height: 18px; } }

/* Cotação na data, no formulário de lançamento */
.price-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 4px; margin: 0 0 14px; min-width: 0; }
.price-box legend { padding: 0 6px; font-size: .85rem; font-weight: 650; color: var(--text); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.price-box .btn { margin-bottom: 8px; }
.price-box .hint { display: block; margin: 0 0 8px; font-size: .8rem; color: var(--faint); }
.price-box .hint:empty { display: none; }
.sheet.sheet-form { width: min(780px, calc(100% - 24px)); }
.fsec { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 4px; margin: 0 0 16px; min-width: 0; }
.fsec legend { padding: 0 6px; font-size: .92rem; font-weight: 700; color: var(--text); }
.fsec .hint { display: block; font-size: .8rem; color: var(--faint); margin: 0 0 12px; }
.fsec .field .hint { margin: 0; }
.fsec .hint:empty { display: none; }
.fsec .legend-row { margin: 0 0 10px; }
.fsec .price-grid { align-items: start; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: .92rem; font-weight: 600; cursor: pointer; }
.sw-row .switch:disabled { opacity: .45; cursor: default; }
.coin-pick { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.coin-current { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.coin-current small { font-size: .78rem; }
.coin-search { margin-top: 8px; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--bg-2); }
.coin-list { max-height: 260px; overflow-y: auto; margin: 8px 0; display: grid; gap: 4px; }
.coin-list .hint { margin: 4px 0; }
.coin-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-solid); color: var(--text); font: inherit; cursor: pointer; }
.coin-row:hover { border-color: var(--blue-2); }
.coin-row span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.coin-row small { font-size: .76rem; }
.coin-manual { margin: 0 0 12px; }
.coin-manual summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--link); margin-bottom: 10px; }
.input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.textarea.short { min-height: 64px; }
.tier-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; margin: 0 0 8px; }
.input-group .addon.pre { border-left: 1px solid var(--line-strong); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .addon.pre + .input { border-radius: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 12px; }
.check-grid .check { margin: 0 0 10px; }
.origin { border-top: 1px solid var(--line); padding-top: 4px; margin-bottom: 8px; }
.origin .segmented.sm { margin: 0 0 12px; }
.origin-src { margin: 8px 0 14px; }
.yield-cands { display: grid; gap: 4px; margin: 6px 0 10px; }
.yield-cand { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: .88rem; }
.yield-cand input { accent-color: var(--blue-2); width: 16px; height: 16px; flex: none; }
.yield-cand span:not(.num) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.yield-cand small { font-size: .76rem; }
.yield-cand .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
#i-tag-sugs { display: flex; flex-wrap: wrap; gap: 6px; }
#i-tag-sugs .chip-btn { padding: 4px 10px; font-size: .8rem; }
.list-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.list-top .segmented { margin: 0; flex: 1; min-width: 0; }
@media (max-width: 640px) { .tier-row { grid-template-columns: 1fr auto; } .tier-row .input-group:nth-child(2) { grid-row: 2; } }
@media (max-width: 480px) { .price-grid { grid-template-columns: 1fr; } }

/* Documentação da API (/api/) */
.api-doc { max-width: 900px; min-width: 0; }
.api-doc code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86em; color: var(--text); background: var(--tile); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.api-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; line-height: 1.5; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow: auto; max-height: 420px; white-space: pre; margin: 8px 0 14px; }
.api-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 18px; }
.api-facts dt { color: var(--text); font-weight: 650; }
.api-facts dd { margin: 0; }
.api-key-box { border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 16px; background: var(--surface-2); margin: 16px 0; }
.api-key-box label { display: block; margin-bottom: 8px; color: var(--text); }
.api-key-box .input-group .input { flex: 1; }
.api-group { margin-top: 2.6em; }
.api-ep { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; }
.api-ep h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; font-size: 1.02rem; }
.api-ep h3 code { background: none; padding: 0; font-size: .95rem; }
.api-title { margin: 0 0 8px; }
.api-method { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .74rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; color: #fff; background: #2E73C7; letter-spacing: .03em; }
.api-method.m-post { background: #16A085; }
.api-method.m-patch { background: #D68910; }
.api-method.m-delete { background: #C0392B; }
.api-params { font-size: .88rem; }
.api-params td:first-child { color: var(--text); }
.api-example summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: .9rem; margin: 6px 0; }
.api-run { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 12px 14px; margin: 10px 0 0; }
.api-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 10px; }
.api-field { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.api-field .input { min-height: 38px; padding: 6px 10px; }
.api-body { margin-bottom: 10px; }
.api-body .textarea { min-height: 0; font-size: .82rem; }
.api-run-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.api-label { margin: 14px 0 0; font-weight: 650; color: var(--text); font-size: .88rem; }
.api-label .ok { color: var(--green, #16a085); }
.api-label .err { color: var(--red, #e74c3c); }
@media (max-width: 640px) {
  .api-facts { grid-template-columns: 1fr; gap: 2px; }
  .api-facts dd { margin-bottom: 8px; }
  .api-doc .table tr { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
