:root {
  --navy: #0F172A;
  --navy-2: #1E293B;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --muted: #475569;
  --line: #E2E8F0;
  --emerald: #059669;
  --emerald-bright: #10B981;
  --emerald-soft: #ECFDF5;
  --sky: #0284C7;
  --sky-soft: #F0F9FF;
  --amber: #FACC15;
  --amber-2: #EAB308;
  --amber-ink: #1E1B06;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 10px 26px -14px rgba(15, 23, 42, .16);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
:root[data-theme="dark"], body.theme-cockpit {
  --bg: #0B1120;
  --surface: #111827;
  --ink: #F8FAFC;
  --muted: #94A3B8;
  --line: #1E293B;
  --emerald-soft: rgba(16, 185, 129, .14);
  --sky-soft: rgba(56, 189, 248, .12);
  --shadow: 0 4px 24px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; padding-bottom: 72px; }
@media (min-width: 860px) { body { padding-bottom: 0; } }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.wrap { width: min(1240px, calc(100% - 32px)); margin-inline: auto; }
.fine { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.lead { font-size: 16.5px; color: var(--muted); max-width: 66ch; margin: 0 0 22px; }
.page-pad { padding: 28px 0 48px; }
.prose-wrap { max-width: 920px; }
.prose-wrap h2 { margin-top: 28px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--emerald-bright); text-decoration: underline; }

/* ─── Topbar ─────────────────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 40; background: #0F172A; color: #F8FAFC; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.03em; color: #fff; }
.brand b { color: var(--emerald-bright); font-weight: 800; }
.brand img { border-radius: 9px; }
.topnav { display: none; align-items: center; gap: 4px; margin-left: 8px; }
.topnav a { font-size: 13.5px; font-weight: 600; color: #CBD5E1; padding: 7px 11px; border-radius: 9px; transition: background .15s, color .15s; }
.topnav a:hover { background: rgba(255,255,255,.09); color: #fff; }
@media (min-width: 960px) { .topnav { display: flex; } }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-pill { display: none; font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: rgba(16, 185, 129, .16); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, .35); }
@media (min-width: 680px) { .top-pill { display: inline-flex; } }
.icon-act { position: relative; width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 16px; }
.icon-act i { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--emerald-bright); color: #0F172A; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 11px; padding: 10px 16px; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .14s, background .14s, filter .14s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-emerald { background: var(--emerald); color: #fff; }
.btn-emerald:hover { background: #047857; }
.btn-amber { background: var(--amber); color: var(--amber-ink); font-weight: 800; width: 100%; }
.btn-amber:hover { background: var(--amber-2); }
.btn-lg { padding: 13px 20px; font-size: 15.5px; }
.btn-outline-dark { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-outline-dark:hover { border-color: var(--emerald-bright); color: var(--emerald-bright); }

/* ─── Explorer Hero & Two-Column Workspace ───────────────────────── */
.explorer-hero { padding: 26px 0 32px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-top h1 { margin: 0; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; }
.hero-sub { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; max-width: 64ch; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: var(--emerald-soft); color: var(--emerald); border: 1px solid rgba(16, 185, 129, .28); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 0 4px rgba(16, 185, 129, .22); }

.workspace { display: grid; gap: 18px; }
@media (min-width: 960px) { .workspace { grid-template-columns: 1.65fr 1fr; align-items: start; } }

.chart-panel, .rail-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.nl-search { display: flex; gap: 8px; padding: 5px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--bg); }
.nl-search:focus-within { border-color: var(--emerald-bright); }
.nl-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 12px; color: var(--ink); font-size: 15px; font-weight: 500; outline: none; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.achip { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--emerald-soft); color: var(--emerald); border: 1px solid rgba(16, 185, 129, .35); }
.explorer-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 10px; }
.explorer-tabs a { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.explorer-tabs a.is-on, .explorer-tabs a:hover { background: var(--emerald); border-color: var(--emerald); color: #fff; }

/* ─── Interactive 2D Scatter Plot ────────────────────────────────── */
.scatter-wrap { position: relative; margin-top: 8px; }
.scatter-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.scatter-legend a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.scatter-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.scatter-chart { width: 100%; height: 270px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.scatter-chart svg { width: 100%; height: 100%; display: block; }
.scatter-dot { cursor: pointer; transition: r .15s, opacity .15s; }
.scatter-dot:hover { opacity: 1 !important; }
.scatter-tip { position: absolute; right: 12px; bottom: 12px; width: min(290px, calc(100% - 24px)); background: var(--surface); border: 1.5px solid var(--emerald-bright); border-radius: 13px; padding: 10px 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .25); display: flex; gap: 10px; align-items: center; z-index: 5; }
.scatter-tip img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; background: #fff; padding: 2px; flex: 0 0 auto; }
.scatter-tip b { display: block; font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scatter-tip span { display: block; font-size: 12px; color: var(--emerald); font-weight: 700; margin-top: 2px; }

/* ─── Right Rail (Por onde começar / Seu caminho) ─────────────────── */
.rail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.rail-head strong { font-size: 15px; }
.rail-head span, .rail-head a { font-size: 12.5px; color: var(--emerald); font-weight: 700; }
.start-links { display: grid; gap: 8px; }
.start-links a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); transition: border-color .15s, transform .15s; }
.start-links a:hover { border-color: var(--emerald-bright); transform: translateX(2px); }
.start-links a.is-hot { background: var(--emerald-soft); border-color: rgba(16, 185, 129, .35); }
.start-links span { font-size: 20px; flex: 0 0 auto; }
.start-links b { display: block; font-size: 13.5px; }
.start-links small { display: block; font-size: 12px; color: var(--muted); }
.shortlist { display: grid; gap: 8px; }
.short-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); }
.short-row:hover { border-color: var(--emerald-bright); }
.short-row img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; padding: 2px; flex: 0 0 auto; }
.short-row b { display: block; font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.short-row span { font-size: 12px; color: var(--emerald); font-weight: 700; }

/* ─── Catalog Grid & Anti-Hype Gift Cards ────────────────────────── */
.list-section { padding: 30px 0 40px; }
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.list-head h2 { margin: 0; font-size: clamp(21px, 2.6vw, 28px); letter-spacing: -.025em; }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.sort-form select { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; }
.cat-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip a { flex: 0 0 auto; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; }
.cat-strip a.is-on, .cat-strip a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.cat-strip small { opacity: .7; margin-left: 3px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.gift-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .16s, border-color .16s; }
.gift-card:hover { transform: translateY(-2px); border-color: #94A3B8; }
.card-banner { display: flex; justify-content: space-between; align-items: center; padding: 7px 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .01em; }
.card-top-great { background: var(--emerald); color: #fff; }
.card-top-good { background: var(--sky); color: #fff; }
.card-top-normal { background: var(--navy-2); color: #E2E8F0; }
.cat-dot { font-weight: 600; opacity: .92; }

.card-media { position: relative; aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.card-media img { max-height: 100%; max-width: 100%; object-fit: contain; }
.badge-off { position: absolute; left: 10px; top: 10px; background: var(--amber); color: var(--amber-ink); font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 8px; }
.badge-score { position: absolute; right: 10px; bottom: 10px; background: #0F172A; color: #34D399; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 8px; font-variant-numeric: tabular-nums; }

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-body h3 a:hover { color: var(--emerald); }
.price-main { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.price-main strong { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.price-old { font-size: 13.5px; color: var(--muted); }
.price-save { display: inline-block; font-size: 12px; font-weight: 700; color: var(--emerald); margin-top: 2px; }
.store-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.store-inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.store-inline img { width: 16px; height: 16px; object-fit: contain; border-radius: 4px; background: #fff; }

.scores { display: grid; gap: 5px; }
.score-line { display: grid; grid-template-columns: 118px 1fr 28px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.score-line b { text-align: right; color: var(--ink); }
.bar { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--emerald-bright); }
.bar-peer i { background: var(--sky); }

.card-cta-row { margin-top: auto; padding-top: 4px; }
.card-sub-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--line); }
.sub-btns { display: flex; align-items: center; gap: 8px; }
.mini-btn { background: transparent; border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer; }
.mini-btn:hover { border-color: var(--emerald-bright); color: var(--emerald); }
.mini-link { font-weight: 700; color: var(--emerald); }

/* ─── Cockpit /presente/:id ──────────────────────────────────────── */
.cockpit-wrap { padding: 22px 0 56px; }
.cockpit-grid { display: grid; gap: 26px; }
@media (min-width: 920px) { .cockpit-grid { grid-template-columns: 380px 1fr; align-items: start; } .cockpit-left { position: sticky; top: 82px; } }
.cockpit-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cockpit-photo { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 20px; }
.cockpit-photo img { max-height: 100%; object-fit: contain; }
.cockpit-buy { padding: 18px; }
.big-price { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.kicker-dark { display: inline-block; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--emerald-bright); margin-bottom: 8px; }
.cockpit-right h1 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -.03em; }
.verdict-box { background: var(--emerald-soft); border: 1px solid rgba(16, 185, 129, .35); border-left: 4px solid var(--emerald-bright); border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; }
.verdict-box strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--emerald-bright); margin-bottom: 4px; }
.verdict-box p { margin: 0; font-size: 15px; }
.accordion-stack { display: grid; gap: 10px; margin-bottom: 28px; }
.accordion-stack details, .faq-block details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.accordion-stack summary, .faq-block summary { font-weight: 700; font-size: 15.5px; cursor: pointer; }
.accordion-stack details p, .faq-block details p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
.link-emerald { color: var(--emerald-bright); font-weight: 700; text-decoration: underline; }
.pill-inline { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); margin: 4px 4px 0 0; font-weight: 600; font-size: 13px; }
.rivals-section { margin: 32px 0; }
.rivals-section h2 { margin: 0 0 14px; font-size: 22px; }

/* ─── Tiers, Tools, Compare, Saved List ──────────────────────────── */
.band-section, .tools-section { padding: 22px 0 30px; }
.band-section h2, .tools-section h2, .faq-block h2 { margin: 0 0 14px; font-size: 23px; letter-spacing: -.02em; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tier-card, .tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 4px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.tier-card:hover, .tool-card:hover { border-color: var(--emerald-bright); transform: translateY(-2px); }
.tier-card strong, .tool-card strong { font-size: 16px; }
.tier-card span, .tool-card p { font-size: 13px; color: var(--muted); margin: 0; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tool-card span { font-size: 24px; }
.tldr-card { background: var(--emerald-soft); border-left: 4px solid var(--emerald-bright); border-radius: 14px; padding: 16px 18px; margin: 18px 0 26px; }
.tldr-card p { margin: 4px 0 0; }

.compare-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
@media (max-width: 680px) { .compare-selects { grid-template-columns: 1fr; } }
.compare-selects label { display: grid; gap: 6px; font-weight: 700; font-size: 13.5px; }
.compare-selects select { padding: 11px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.cmp-table { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 680px) { .cmp-table { grid-template-columns: 1fr; } }
.cmp-col { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 10px; }
.cmp-col.is-win { border-color: var(--emerald-bright); }
.win-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--emerald); color: #fff; font-size: 12px; font-weight: 800; justify-self: start; }

.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; font-size: 14px; }
.pager a { padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.empty-box { grid-column: 1 / -1; text-align: center; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }

/* ─── Footer & Mobile Dock ───────────────────────────────────────── */
.footer { margin-top: 48px; background: #0F172A; color: #94A3B8; padding: 42px 0 26px; font-size: 13.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.footer h3 { color: #fff; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer a:hover { color: var(--emerald-bright); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 18px; font-size: 12.5px; }

.mob-dock { position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
.mob-dock a { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); }
.mob-dock span { font-size: 18px; }
@media (min-width: 860px) { .mob-dock { display: none; } }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(16px); background: #0F172A; color: #fff; border: 1px solid var(--emerald-bright); padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px; opacity: 0; pointer-events: none; transition: .2s; z-index: 80; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
