/* SkipperFX landing — paleta e efeitos derivados do HangarFX (client/src/index.css):
   fundo hsl(222 84% 5%), primario azul hsl(217 91% 60%), destaque verde hsl(142 76% 36%),
   cards hsl(217 33% 17%), raio 8px, Inter/JetBrains Mono, hero-pattern, gradient-border,
   chart-line com shimmer e botao gradient-glow. Removidos os efeitos de "urgencia/escassez". */

:root {
  --background: hsl(222, 84%, 5%);
  --foreground: hsl(210, 40%, 98%);
  --card: hsl(217, 33%, 17%);
  --card-soft: hsl(220, 45%, 10%);
  --primary: hsl(217, 91%, 60%);
  --primary-foreground: hsl(222, 84%, 5%);
  --muted: hsl(215, 28%, 17%);
  --muted-foreground: hsl(217, 10%, 64%);
  --accent: hsl(142, 76%, 36%);
  --accent-bright: hsl(142, 69%, 58%);
  --warning: hsl(38, 92%, 50%);
  --warning-soft: hsla(38, 92%, 50%, 0.1);
  --danger: hsl(0, 84%, 60%);
  --border: hsl(215, 28%, 17%);
  --ring: hsl(217, 91%, 60%);
  --radius: 8px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 64px;
  --riskbar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.sprite { display: none; }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.15em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 860px; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent-bright); }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent-bright));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--primary); color: var(--primary-foreground); padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ---------- Barra de risco ---------- */
.risk-bar {
  display: flex; gap: .5rem; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: .5rem 1rem; font-size: .85rem; text-align: center;
  background: var(--warning-soft); border-bottom: 1px solid hsla(38, 92%, 50%, .3); color: hsl(43, 96%, 80%);
}
.risk-bar .icon { color: var(--warning); }
.risk-bar a { color: hsl(43, 96%, 70%); font-weight: 600; }

/* ---------- Navegacao (fixa, blur — igual HangarFX) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: hsla(222, 84%, 5%, .8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--foreground); }
.brand-mark {
  width: 34px; height: 34px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.brand-mark .icon { width: 20px; height: 20px; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand-fx { color: var(--primary); }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a, .mobile-menu a { color: var(--muted-foreground); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .mobile-menu a:hover { color: var(--foreground); }
.nav-links a.nav-highlight, .mobile-menu a.nav-highlight { color: var(--accent-bright); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: .75rem; }

.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: var(--card-soft); }
.lang-btn {
  border: 0; background: transparent; color: var(--muted-foreground); cursor: pointer;
  font: 600 .8rem var(--font-sans); padding: .3rem .7rem; border-radius: 999px;
}
.lang-btn[aria-pressed="true"] { background: var(--primary); color: var(--primary-foreground); }

.menu-toggle { display: none; background: transparent; border: 1px solid var(--border); color: var(--foreground); border-radius: var(--radius); padding: .35rem; cursor: pointer; }
.menu-toggle .icon { width: 22px; height: 22px; }
.mobile-menu { border-top: 1px solid var(--border); background: var(--card-soft); padding: .5rem 1.25rem 1rem; }
.mobile-menu a { display: block; padding: .6rem 0; }

/* ---------- Botoes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem var(--font-sans); text-decoration: none; cursor: pointer;
  border-radius: var(--radius); border: 1px solid transparent; padding: .7rem 1.2rem;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s, background .2s, opacity .2s;
}
.btn-sm { padding: .45rem .9rem; font-size: .9rem; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { background: transparent; color: var(--foreground); border-color: var(--border); }
.btn-ghost:hover { background: var(--muted); }
/* gradient-glow + cta-hover-effect do HangarFX */
.btn-gradient {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 25px -5px rgba(0,0,0,.5), 0 0 30px rgba(59,130,246,.3), 0 0 60px rgba(34,197,94,.2);
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 20px 35px -5px rgba(0,0,0,.6), 0 0 40px rgba(59,130,246,.4), 0 0 80px rgba(34,197,94,.3); }
.btn-gradient:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase;
  background: hsla(217, 91%, 60%, .12); color: var(--primary); border: 1px solid hsla(217, 91%, 60%, .3);
  margin-bottom: 1.25rem;
}
.badge-glow { box-shadow: 0 0 18px hsla(217, 91%, 60%, .25); }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 5rem; position: relative; overflow: hidden; }
.hero-pattern {
  background-image:
    radial-gradient(circle at 25px 25px, rgba(255,255,255,.08) 2%, transparent 0%),
    radial-gradient(circle at 75px 75px, rgba(0,102,255,.1) 2%, transparent 0%);
  background-size: 100px 100px;
}
.hero::before {
  content: ''; position: absolute; width: 520px; height: 520px; right: -120px; top: -80px;
  background: radial-gradient(closest-side, hsla(217, 91%, 60%, .18), transparent); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; position: relative; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
.hero-title span { display: block; }
.lead { font-size: 1.15rem; color: var(--muted-foreground); }
.lead strong { color: var(--foreground); }
.hero-points { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.hero-points li { display: flex; gap: .7rem; align-items: flex-start; font-size: 1.05rem; }
.icon-ok { color: var(--accent-bright); margin-top: .25em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-note { margin-top: 1rem; font-size: .85rem; color: var(--muted-foreground); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--border); text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; font-family: var(--font-mono); }
.stat-label { font-size: .85rem; color: var(--muted-foreground); }

/* gradient-border do HangarFX */
.gradient-border {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 2px; border-radius: calc(var(--radius) + 6px);
}
.gradient-border > * { background: var(--card-soft); border-radius: calc(var(--radius) + 4px); }

.flow-card { box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 60px hsla(217, 91%, 60%, .12); }
.flow-inner { padding: 1.75rem; }
.flow-caption { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-bright); font-weight: 700; }
.flow-step { display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem; border-radius: var(--radius); background: var(--card); }
.flow-step strong { display: block; }
.flow-step small { color: var(--muted-foreground); }
.flow-icon { width: 42px; height: 42px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; background: hsla(217, 91%, 60%, .15); color: var(--primary); }
.flow-icon-accent { background: hsla(142, 76%, 36%, .18); color: var(--accent-bright); }
.flow-icon .icon { width: 22px; height: 22px; }
.flow-line { display: flex; align-items: center; gap: .75rem; padding: .7rem 0 .7rem 1.6rem; color: var(--muted-foreground); font-size: .8rem; }
.flow-line .chart-line { width: 60px; }
.flow-warn { display: flex; gap: .6rem; align-items: center; margin-top: 1.25rem; padding: .75rem 1rem; border-radius: var(--radius); background: var(--warning-soft); border: 1px solid hsla(38, 92%, 50%, .25); color: hsl(43, 96%, 75%); font-size: .9rem; }
.flow-warn .icon { color: var(--warning); }

/* chart-line + shimmer do HangarFX */
.chart-line { display: inline-block; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); height: 3px; border-radius: 2px; position: relative; overflow: hidden; }
.chart-line::after { content: ''; position: absolute; inset: 0; left: -100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: shimmer 2s infinite; }
@keyframes shimmer { to { left: 100%; } }

/* ---------- Secoes ---------- */
.section { padding: 5rem 0; }
.section-alt { background: linear-gradient(180deg, hsla(217, 33%, 17%, .25), hsla(217, 33%, 17%, .05)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted-foreground); font-size: 1.1rem; }

.card { background: var(--card-soft); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 1.5rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step { position: relative; transition: transform .3s, border-color .3s; }
.step:hover, .feature:hover { transform: translateY(-4px); border-color: hsla(142, 76%, 36%, .4); }
.step-n { display: inline-flex; width: 36px; height: 36px; border-radius: 999px; align-items: center; justify-content: center; font: 700 1rem var(--font-mono); background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; margin-bottom: 1rem; }
.step p, .feature p { color: var(--muted-foreground); margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.list-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.list-card li { display: flex; gap: .7rem; align-items: flex-start; }
.list-card li .icon { margin-top: .25em; }
.list-no { border-color: hsla(0, 84%, 60%, .25); }
.list-no .icon { color: var(--danger); }
.list-yes { border-color: hsla(142, 76%, 36%, .35); }
.list-yes .icon { color: var(--accent-bright); }
.feature { transition: transform .3s, border-color .3s; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: hsla(217, 91%, 60%, .15); color: var(--primary); margin-bottom: 1rem; }
.feature-icon-accent { background: hsla(142, 76%, 36%, .18); color: var(--accent-bright); }
.feature-icon .icon { width: 24px; height: 24px; }

/* ---------- Risco ---------- */
.risk-box { border: 1px solid hsla(38, 92%, 50%, .4); background: linear-gradient(180deg, hsla(38, 92%, 50%, .09), hsla(38, 92%, 50%, .03)); border-radius: calc(var(--radius) + 6px); padding: 2rem; }
.risk-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.risk-head h2 { margin: 0; font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.risk-icon { width: 48px; height: 48px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: hsla(38, 92%, 50%, .18); color: var(--warning); flex-shrink: 0; }
.risk-icon .icon { width: 26px; height: 26px; }
.risk-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; color: hsl(40, 30%, 88%); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--primary); font: 700 1.2rem var(--font-mono); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--muted-foreground); }

/* ---------- Cadastro ---------- */
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.form-card { padding: 2px; border: 0; }
.form { padding: 2rem; display: grid; gap: .25rem; }
.field { display: grid; gap: .35rem; margin-bottom: .6rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input[type=email], .field input[type=password] {
  width: 100%; padding: .75rem .9rem; font: 1rem var(--font-sans);
  color: var(--foreground); background: var(--background);
  border: 1px solid var(--muted); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px hsla(217, 91%, 60%, .25); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-hint { margin: 0; font-size: .8rem; color: var(--muted-foreground); }
.field-error { margin: 0; font-size: .85rem; color: hsl(0, 90%, 72%); min-height: 0; }
.field-error:empty { display: none; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; margin-top: .4rem; }
.field-check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--accent); }
.field-check label { font-weight: 400; font-size: .9rem; color: var(--muted-foreground); }
.form .btn { margin-top: 1rem; }
.form-status { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius); font-size: .95rem; }
.form-status.ok { background: hsla(142, 76%, 36%, .15); border: 1px solid hsla(142, 76%, 36%, .4); color: var(--accent-bright); }
.form-status.err { background: hsla(0, 84%, 60%, .1); border: 1px solid hsla(0, 84%, 60%, .35); color: hsl(0, 90%, 75%); }

/* ---------- Rodape ---------- */
.footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; background: hsl(222, 84%, 4%); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted-foreground); text-decoration: none; }
.footer-links a:hover { color: var(--foreground); }
.footer-legal { font-size: .8rem; color: var(--muted-foreground); max-width: 980px; }
.footer-copy { font-size: .8rem; color: hsl(217, 10%, 45%); margin: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-actions .btn-sm { display: none; }
  .hero { padding-top: 3rem; }
  .hero-grid, .signup-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .btn-gradient { box-shadow: 0 8px 20px -5px rgba(0,0,0,.4), 0 0 20px rgba(59,130,246,.2); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .stats { gap: .75rem; }
  .stat-value { font-size: 1.5rem; }
  .form { padding: 1.4rem; }
  .hero-ctas .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- v2: oferta inicial, futuro, trava ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.section-note { text-align: center; color: var(--muted-foreground); font-size: .9rem; max-width: 820px; margin: 1.75rem auto 0; }
.flow-icon-warn, .feature-icon-warn { background: hsla(38, 92%, 50%, .15); color: var(--warning); }
.future-box {
  margin-top: 1.5rem; display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.4rem 1.6rem; border-radius: calc(var(--radius) + 4px);
  border: 1px dashed hsla(217, 91%, 60%, .45); background: hsla(217, 91%, 60%, .06);
}
.future-box h3 { margin-bottom: .3rem; }
.future-box p { margin: 0; color: var(--muted-foreground); }
.future-tag {
  flex-shrink: 0; font: 700 .75rem var(--font-sans); text-transform: uppercase; letter-spacing: .06em;
  padding: .3rem .7rem; border-radius: 999px; background: hsla(217, 91%, 60%, .18); color: var(--primary);
}
.form-status a { display: inline-block; margin-top: .5rem; font-weight: 600; }
.form-foot { margin: 1rem 0 0; font-size: .9rem; color: var(--muted-foreground); text-align: center; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-4 { grid-template-columns: 1fr; } .future-box { flex-direction: column; } .nav-actions a.btn-ghost.btn-sm { display: none; } }
/* v2: menu com 5 itens + Entrar/Criar conta: sem quebra de linha; hamburguer abaixo de 1180px */
.btn, .nav-links a { white-space: nowrap; }
.nav-links { gap: 1.4rem; }
@media (max-width: 1180px) {
  .nav-links:not(.panel-links) { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* v3-ib: link de indicacao (IB) FPMarkets */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn-fpm { background: hsla(142, 76%, 36%, .14); color: var(--accent-bright); border-color: hsla(142, 76%, 36%, .55); }
.btn-fpm:hover { background: hsla(142, 76%, 36%, .24); }
.btn .icon { width: 1em; height: 1em; }
.hero-fpm { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-top: 1rem; }
.hero-fpm-ib, .fpm-ib-line { font-size: .85rem; color: var(--muted-foreground); }
.hero-fpm-ib strong, .fpm-ib-line strong { color: var(--foreground); letter-spacing: .02em; }
.step-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .8rem; font-weight: 600; color: var(--accent-bright); text-decoration: none; }
.step-link:hover { text-decoration: underline; }
.fpm-box {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; align-items: center; margin-bottom: 1.25rem;
  padding: 1.5rem 1.75rem; border-radius: calc(var(--radius) + 6px);
  border: 1px solid hsla(142, 76%, 36%, .45); background: linear-gradient(135deg, hsla(142, 76%, 36%, .10), hsla(217, 91%, 60%, .06));
}
.fpm-box h3 { margin-bottom: .4rem; }
.fpm-box p { color: var(--muted-foreground); margin: 0 0 .6rem; }
.fpm-box .fpm-transfer { color: var(--foreground); font-size: .92rem; }
.fpm-box-side { display: grid; gap: .6rem; justify-items: start; }
.fpm-box-side p { margin: 0; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted-foreground); }
.small { font-size: .85rem; }
@media (max-width: 860px) { .fpm-box { grid-template-columns: 1fr; } }

/* atributo hidden sempre vence (.btn/.field usam display:flex/grid, que anulariam o hidden) */
[hidden] { display: none !important; }

/* ---------- Resultados das estrategias (calendario + drawdown) ---------- */
.res-section { border-top: 1px solid var(--border); }
.res-warning { display: flex; gap: 1rem; align-items: flex-start; max-width: 980px; margin: 0 auto 2rem; padding: 1.1rem 1.4rem;
  border: 1px solid hsla(38, 92%, 50%, .45); background: hsla(38, 92%, 50%, .08); border-radius: calc(var(--radius) + 4px); }
.res-warning h3 { margin: 0 0 .4rem; font-size: 1.05rem; color: hsl(43, 96%, 80%); }
.res-warning ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; color: hsl(40, 30%, 88%); }
.res-app { display: grid; gap: 1.25rem; }
.res-tabs { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.res-tab { border: 1px solid var(--border); background: var(--card-soft); color: var(--muted-foreground); border-radius: 999px;
  padding: .55rem 1.1rem; font: 600 .95rem var(--font-sans); cursor: pointer; }
.res-tab:hover { color: var(--foreground); }
.res-tab[aria-selected="true"] { background: hsla(217, 91%, 60%, .2); border-color: hsla(217, 91%, 60%, .7); color: var(--foreground); }
.res-panel { display: grid; gap: 1.25rem; }
.res-meta { text-align: center; color: var(--muted-foreground); margin: 0; }
.res-dd-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; }
.res-dd { background: var(--card-soft); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 1.2rem 1.4rem; }
.res-dd h3 { font-size: 1.05rem; margin: 0 0 .6rem; }
.res-dd p { margin: .4rem 0 0; }
.res-dd-main { border-color: hsla(0, 84%, 60%, .45); }
.res-dd-figs { display: flex; gap: 2rem; flex-wrap: wrap; }
.res-dd-fig { display: grid; }
.res-dd-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-foreground); }
.res-dd-val { font: 800 2rem var(--font-mono); }
.res-dd-val.neg, .res-dd-val-sm { color: hsl(0, 90%, 74%); }
.res-dd-val-sm { font: 800 1.15rem var(--font-mono); }
.res-dd-period { font-weight: 600; }
.res-calbox { background: var(--card-soft); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 1.2rem; }
.res-calhead { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.res-month { margin: 0; font-size: 1.25rem; min-width: 12ch; text-align: center; }
.res-nav { font-size: 1.3rem; line-height: 1; padding: .3rem .8rem; }
.res-nav[disabled] { opacity: .35; cursor: not-allowed; }
.res-total { text-align: center; margin: .6rem 0 1rem; }
.res-total strong { font: 800 1.2rem var(--font-mono); }
.pos { color: var(--accent-bright); }
.neg { color: hsl(0, 90%, 74%); }
.res-calwrap { overflow-x: auto; }
.res-cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; min-width: 520px; }
.res-cal th { font-size: .75rem; text-transform: uppercase; color: var(--muted-foreground); font-weight: 600; padding: .2rem; }
.res-day { height: 64px; vertical-align: top; padding: .35rem .45rem; border-radius: 8px; background: hsla(217, 33%, 17%, .55);
  border: 1px solid transparent; position: relative; }
.res-dnum { display: block; font-size: .75rem; color: var(--muted-foreground); }
.res-dval { display: block; font: 700 .85rem var(--font-mono); margin-top: .2rem; color: var(--foreground); }
.res-dtag { position: absolute; right: .35rem; top: .3rem; font-size: .62rem; font-weight: 700; text-transform: uppercase; color: hsl(43, 96%, 75%); }
.res-pos.res-l1 { background: hsla(142, 76%, 36%, .16); } .res-pos.res-l2 { background: hsla(142, 76%, 36%, .3); }
.res-pos.res-l3 { background: hsla(142, 76%, 36%, .45); } .res-pos.res-l4 { background: hsla(142, 76%, 36%, .62); }
.res-neg.res-l1 { background: hsla(0, 84%, 60%, .16); } .res-neg.res-l2 { background: hsla(0, 84%, 60%, .3); }
.res-neg.res-l3 { background: hsla(0, 84%, 60%, .42); } .res-neg.res-l4 { background: hsla(0, 84%, 60%, .58); }
.res-zero { background: hsla(217, 33%, 17%, .9); }
.res-weekend { background: hsla(215, 20%, 30%, .35); }
.res-weekend .res-dval { color: var(--muted-foreground); font-weight: 500; }
.res-nodata { background: transparent; border: 1px dashed hsla(215, 28%, 30%, .6); }
.res-empty { background: transparent; }
.res-partial { border: 2px dashed hsl(43, 96%, 65%); }
.res-legend { margin-top: 1rem; }
.res-legend-list { list-style: none; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .85rem; color: var(--muted-foreground); }
.res-legend-list li { display: flex; align-items: center; gap: .45rem; }
.res-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 4px; }
.res-months { background: var(--card-soft); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 1.2rem 1.4rem; }
.res-months h3 { font-size: 1.05rem; margin: 0 0 .6rem; }
.res-mtable th { text-align: left; }
.res-mtable th[scope="row"] { font-weight: 600; color: var(--foreground); font-size: .9rem; text-transform: none; letter-spacing: 0; }
.res-updated { text-align: center; margin-top: 1rem; }
.notice-err { padding: .75rem 1rem; border-radius: var(--radius); background: hsla(0, 84%, 60%, .1); border: 1px solid hsla(0, 84%, 60%, .35); color: hsl(0, 90%, 76%); }
@media (max-width: 860px) {
  .res-dd-row { grid-template-columns: 1fr; }
  .res-cal { min-width: 0; border-spacing: 2px; }
  .res-day { height: 54px; padding: .25rem .3rem; }
  .res-dval { font-size: .66rem; letter-spacing: -.02em; }
  .res-dnum { font-size: .68rem; }
  .res-dtag { display: none; }
  .res-dd-val { font-size: 1.6rem; }
}

/* menu com 6 itens: mais compacto em telas medias; hamburguer abaixo de 1280px */
@media (max-width: 1440px) { .nav-links { gap: 1rem; font-size: .93rem; } .nav-inner { gap: .75rem; } }
@media (max-width: 1280px) { .nav-links:not(.panel-links) { display: none; } .menu-toggle { display: inline-flex; } }
