/* ============================================================
   A SALA DE OPERAÇÕES · Missão Viver de Dividendos
   Terminal de trading de luxo · tokens oficiais do PRD §3
   Mobile-first · Barlow Condensed / Outfit / JetBrains Mono
   ============================================================ */

:root {
  --bg: #0A0E14;            /* preto grafite */
  --bg-card: #131A24;       /* azul-carvão */
  --surface: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.07);
  --line-gold: rgba(212, 175, 55, 0.38);
  --text: #EAECEF;          /* branco gelo */
  --text-2: #9BA3B4;
  --text-3: #626B7D;
  --gold: #D4AF37;
  --gold-2: #F5D061;
  --gold-3: #9C7B1E;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --up: #16C784;            /* candle de alta */
  --down: #EA3943;          /* escassez */
  --btc: #F7931A;           /* detalhes de moedas */
  --radius: 16px;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-h: 62px;
  --bottomnav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(140% 90% at 85% -10%, rgba(212, 175, 55, 0.06), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
body.app-page { padding-bottom: calc(var(--bottomnav-h) + 18px); }

::selection { background: var(--gold); color: #14100a; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* grain + textura de candles em opacidade baixíssima */
.grain::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.candle-texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='220' viewBox='0 0 320 220'%3E%3Cg stroke='%23D4AF37' stroke-width='2'%3E%3Cline x1='30' y1='40' x2='30' y2='180'/%3E%3Cline x1='90' y1='20' x2='90' y2='160'/%3E%3Cline x1='150' y1='60' x2='150' y2='200'/%3E%3Cline x1='210' y1='30' x2='210' y2='150'/%3E%3Cline x1='270' y1='50' x2='270' y2='190'/%3E%3C/g%3E%3Cg fill='%23D4AF37'%3E%3Crect x='22' y='70' width='16' height='60' rx='2'/%3E%3Crect x='82' y='50' width='16' height='70' rx='2'/%3E%3Crect x='142' y='95' width='16' height='60' rx='2'/%3E%3Crect x='202' y='55' width='16' height='55' rx='2'/%3E%3Crect x='262' y='80' width='16' height='65' rx='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 320px 220px;
}
main, .topnav, .ticker, .bottom-nav, footer { position: relative; z-index: 1; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.gold-text {
  background: linear-gradient(100deg, var(--gold-2) 10%, var(--gold) 45%, var(--gold-3) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- botões ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #171203;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3));
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-gold:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 36px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255,255,255,0.45); }
.btn-gold:active { transform: translateY(1px) scale(0.98); }
.btn-gold:disabled { filter: grayscale(0.8); opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 12px 22px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.btn-ghost:hover { border-color: var(--line-gold); color: var(--gold-2); background: var(--gold-soft); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: var(--gold-soft);
  border: 1px solid var(--line-gold);
  padding: 6px 13px;
  border-radius: 999px;
}
.chip.red { color: var(--down); background: rgba(234,57,67,0.1); border-color: rgba(234,57,67,0.35); }

.status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.status.free { color: var(--up); background: rgba(22,199,132,0.1); border: 1px solid rgba(22,199,132,0.3); }
.status.done { color: var(--gold-2); background: var(--gold-soft); border: 1px solid var(--line-gold); }
.status.locked { color: var(--text-3); background: rgba(255,255,255,0.04); border: 1px solid var(--line); }

/* cadeado dourado central (PRD §3) */
.lock-badge {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, var(--gold-2), var(--gold) 55%, var(--gold-3));
  box-shadow: 0 6px 26px rgba(212,175,55,0.5), inset 0 1px 0 rgba(255,255,255,0.5);
  animation: lock-glow 3s ease-in-out infinite;
}
.lock-badge svg { stroke: #171203; }
@keyframes lock-glow {
  0%, 100% { box-shadow: 0 6px 26px rgba(212,175,55,0.45), inset 0 1px 0 rgba(255,255,255,0.5); }
  50% { box-shadow: 0 6px 40px rgba(212,175,55,0.75), inset 0 1px 0 rgba(255,255,255,0.5); }
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--nav-h);
  padding: 0 16px;
  background: rgba(10, 14, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  box-shadow: 0 4px 18px rgba(212,175,55,0.35);
}
.brand .mark svg { width: 21px; height: 21px; }
.brand .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand .name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.top-links { display: none; }

.topnav .right { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.user-chip .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #171203;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
}
.user-chip .uname { display: none; }

@media (min-width: 768px) {
  .topnav { padding: 0 32px; height: 68px; }
  .top-links { display: flex; gap: 2px; }
  .top-links a {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-2);
    padding: 8px 15px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
  }
  .top-links a:hover { color: var(--text); background: var(--surface); }
  .top-links a.active { color: var(--gold-2); background: var(--gold-soft); }
  .user-chip { padding: 5px 14px 5px 5px; }
  .user-chip .uname { display: block; font-size: 0.85rem; color: var(--text-2); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(12, 16, 24, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.2s;
}
.bottom-nav a svg { width: 22px; height: 22px; stroke: currentColor; }
.bottom-nav a.active { color: var(--gold-2); }
.bottom-nav a.active svg { filter: drop-shadow(0 0 6px rgba(212,175,55,0.55)); }
@media (min-width: 768px) {
  .bottom-nav { display: none; }
  body.app-page { padding-bottom: 0; }
}

/* ============================================================
   TICKER (decorativo — PRD §12)
   ============================================================ */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
  height: 36px;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  animation: ticker-roll 38s linear infinite;
  padding-left: 100%;
}
@keyframes ticker-roll { to { transform: translateX(-100%); } }
.tk {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-2);
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.tk b { color: var(--text); font-weight: 600; }
.tk .up { color: var(--up); }
.tk .down { color: var(--down); }

/* ============================================================
   SHELL / CABEÇALHOS
   ============================================================ */
.shell { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .shell { padding: 0 32px; } }

.page-head { padding: 26px 0 4px; }
.page-head h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 1.02;
}
.page-head p { color: var(--text-2); margin-top: 6px; font-size: 0.95rem; max-width: 58ch; }
@media (min-width: 768px) {
  .page-head { padding: 40px 0 8px; }
  .page-head h1 { font-size: 3.1rem; }
}

.section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-gold), transparent);
}
@media (min-width: 768px) { .section-label { font-size: 1.55rem; margin: 40px 0 18px; } }

/* ============================================================
   LOGIN
   ============================================================ */
.login-wrap { display: grid; grid-template-columns: 1fr; min-height: 100dvh; }

.login-visual { position: relative; overflow: hidden; background: var(--bg-card); min-height: 34dvh; }
.login-visual img.bull {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.login-visual .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,20,0.55) 0%, rgba(10,14,20,0.05) 40%, rgba(10,14,20,0.92) 100%);
}
.login-visual .visual-copy { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; }
.login-visual .visual-copy h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  max-width: 20ch;
}
.login-visual .visual-copy p { display: none; }

.candles { position: absolute; left: 0; right: 0; bottom: -6px; z-index: 1; opacity: 0.55; }
.candles .wick { stroke: rgba(212,175,55,0.5); stroke-width: 2; }
.candles .body-up { fill: rgba(212,175,55,0.85); }
.candles .body-dim { fill: rgba(212,175,55,0.28); }
.candles .trend {
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(245,208,97,0.8));
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw-trend 3.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
@keyframes draw-trend { to { stroke-dashoffset: 0; } }

.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 28px 20px 48px; position: relative; }
.login-panel .brand { margin-bottom: 28px; }
.login-panel h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.login-panel .sub { margin-top: 12px; color: var(--text-2); max-width: 42ch; font-size: 0.95rem; }

.login-form { margin-top: 28px; display: grid; gap: 16px; max-width: 420px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  min-height: 48px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--line-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.login-form .btn-gold { width: 100%; margin-top: 6px; }
.login-note { margin-top: 16px; font-size: 0.8rem; color: var(--text-3); }

@media (min-width: 960px) {
  .login-wrap { grid-template-columns: 1.15fr 1fr; }
  .login-visual { min-height: 100dvh; }
  .login-visual .visual-copy { left: clamp(24px, 4vw, 56px); bottom: clamp(28px, 5vh, 64px); right: clamp(24px, 4vw, 56px); }
  .login-visual .visual-copy h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
  .login-visual .visual-copy p { display: block; margin-top: 12px; color: var(--text-2); max-width: 44ch; font-size: 0.98rem; }
  .login-panel { padding: clamp(32px, 5vw, 88px); }
  .login-panel h1 { font-size: clamp(2.6rem, 3.6vw, 3.6rem); }
}

/* ============================================================
   DASHBOARD · contador + jornada + vitrine
   ============================================================ */

/* contador de acesso (60 dias) */
.counter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--gold-2);
  background: var(--gold-soft);
  border: 1px solid var(--line-gold);
  padding: 9px 16px;
  border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.counter-chip:hover { transform: translateY(-2px); }
.counter-chip.zona-final { color: var(--down); background: rgba(234,57,67,0.1); border-color: rgba(234,57,67,0.4); animation: pulse-soft 2.2s ease-in-out infinite; }
@keyframes pulse-soft { 50% { opacity: 0.65; } }

/* Jornada do Touro (5 níveis) */
.jornada { padding: 20px; margin-top: 18px; overflow: hidden; position: relative; }
.jornada .jt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.jornada .jt-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.jornada .jt-head .mono { font-size: 0.72rem; color: var(--gold-2); }
.jt-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 4px; position: relative; }
.jt-track::before {
  content: '';
  position: absolute;
  top: 19px; left: 10%; right: 10%;
  height: 2px;
  background: var(--line);
}
.jt-track .jt-line {
  position: absolute;
  top: 19px; left: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  box-shadow: 0 0 10px rgba(212,175,55,0.6);
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0;
}
.jt-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.jt-node .dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-card);
  border: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  position: relative;
  z-index: 2;
  transition: all 0.5s ease;
}
.jt-node.done .dot {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: #171203;
  font-weight: 700;
  box-shadow: 0 0 22px rgba(212,175,55,0.55);
}
.jt-node.current .dot {
  border-color: var(--gold);
  color: var(--gold-2);
  animation: node-pulse 2.4s ease-in-out infinite;
}
@keyframes node-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.4); }
  50% { box-shadow: 0 0 0 9px rgba(212,175,55,0); }
}
.jt-node b {
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.18;
  color: var(--text-3);
  padding: 0 2px;
  overflow-wrap: break-word;
  max-width: 100%;
}
.jt-node.done b, .jt-node.current b { color: var(--gold-2); }
.jt-node small { display: none; font-size: 0.62rem; color: var(--text-3); font-family: var(--font-mono); }
@media (min-width: 768px) {
  .jornada { padding: 26px 30px; }
  .jt-node b { font-size: 0.95rem; max-width: none; }
  .jt-node small { display: block; }
  .jt-node .dot { width: 46px; height: 46px; }
  .jt-track::before, .jt-track .jt-line { top: 22px; }
}

/* continue card */
.continue-card {
  margin-top: 18px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line-gold);
  background: linear-gradient(160deg, #182130, var(--bg-card) 70%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 50px rgba(212,175,55,0.07);
  display: grid;
  grid-template-columns: 1fr;
}
.continue-card .cc-thumb { position: relative; aspect-ratio: 16 / 7; overflow: hidden; }
.continue-card .cc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.continue-card .cc-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(19,26,36,0.96));
}
.continue-card .cc-body { padding: 18px 18px 22px; margin-top: -44px; position: relative; z-index: 2; }
.continue-card .cc-body h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin-top: 10px;
  max-width: 28ch;
}
.continue-card .cc-body p { color: var(--text-2); font-size: 0.9rem; margin-top: 8px; max-width: 52ch; }
.continue-card .cc-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
@media (min-width: 768px) {
  .continue-card { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .continue-card .cc-thumb { aspect-ratio: auto; height: 100%; min-height: 260px; order: 2; }
  .continue-card .cc-thumb::after { background: linear-gradient(90deg, var(--bg-card) 0%, transparent 45%); }
  .continue-card .cc-body { padding: 30px 8px 30px 30px; margin-top: 0; order: 1; }
  .continue-card .cc-body h2 { font-size: 2.1rem; }
}

.mini-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.mini-progress .bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  overflow: hidden;
}
.mini-progress .bar .fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold) 50%, var(--gold-2));
  box-shadow: 0 0 12px rgba(212,175,55,0.5);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.mini-progress .pct { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold-2); }

/* VITRINE horizontal (o mapa completo do ecossistema) */
.vitrine {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 16px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-3) transparent;
}
.vitrine::-webkit-scrollbar { height: 10px; }
.vitrine::-webkit-scrollbar-thumb { background: var(--gold-3); border-radius: 999px; }
.vitrine::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 999px; }
@media (min-width: 640px) { .vitrine { grid-auto-columns: 44%; } }
@media (min-width: 1024px) { .vitrine { grid-auto-columns: 31%; } }

.vitrine-head { display: flex; align-items: center; gap: 14px; }
.v-arrows { display: flex; gap: 8px; }
.v-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-gold);
  background: var(--gold-soft);
  color: var(--gold-2);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}
.v-arrow:hover { transform: scale(1.08); background: rgba(212,175,55,0.22); }
.v-arrow:active { transform: scale(0.94); }

.v-card {
  position: relative;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
  display: block;
  text-align: left;
}
.v-card:hover { transform: translateY(-6px); border-color: var(--line-gold); box-shadow: 0 22px 55px rgba(0,0,0,0.5), 0 0 40px rgba(212,175,55,0.12); }
.v-card .vc-thumb { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.v-card .vc-meta { display: block; }
.v-card .vc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.v-card:hover .vc-thumb img { transform: scale(1.06); }
.v-card .vc-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,20,0.1), rgba(10,14,20,0.55) 90%);
}
.v-card.locked .vc-thumb img { filter: brightness(0.4) saturate(0.6); }
.v-card .vc-badge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: var(--gold-2); color: #171203;
  box-shadow: 0 6px 18px rgba(212,175,55,0.35);
}
.v-card .vc-lock {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  z-index: 2;
}
.v-card .vc-meta { padding: 14px 16px 18px; }
.v-card .vc-kind {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 5px;
}
.v-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}
.v-card .vc-price { margin-top: 6px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); }
.v-card .vc-price b { color: var(--gold-2); font-weight: 600; }

/* resultado da semana */
.result-card {
  padding: 20px;
  border-left: 3px solid var(--up);
  position: relative;
  overflow: hidden;
}
.result-card::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(22,199,132,0.14), transparent 65%);
}
.result-card .rc-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--up);
}
.result-card blockquote {
  font-size: 0.98rem;
  color: var(--text);
  margin-top: 10px;
  line-height: 1.5;
  max-width: 60ch;
}
.result-card .rc-who { margin-top: 10px; font-size: 0.8rem; color: var(--text-3); }

/* ============================================================
   MISSÃO / AULAS
   ============================================================ */
.course-hero {
  margin-top: 18px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line-gold);
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.course-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,20,0.2), rgba(10,14,20,0.92) 90%);
}
.course-hero .ch-body { position: relative; z-index: 2; padding: 20px; width: 100%; }
.course-hero .ch-body h1 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  max-width: 26ch;
  margin-top: 10px;
}
@media (min-width: 768px) {
  .course-hero { min-height: 260px; }
  .course-hero .ch-body { padding: 30px; }
  .course-hero .ch-body h1 { font-size: 2.9rem; }
}

.lesson-list { display: grid; gap: 12px; }
.lesson-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s;
  text-align: left;
  width: 100%;
}
.lesson-row:hover { transform: translateX(4px); border-color: var(--line-gold); }
.lesson-row .lr-thumb { position: relative; width: 92px; height: 60px; border-radius: 10px; overflow: hidden; flex: none; }
.lesson-row .lr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lesson-row .lr-thumb .lr-ico { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,14,20,0.45); }
.lesson-row .lr-thumb .lr-ico svg { fill: var(--gold-2); }
.lesson-row .lr-body { min-width: 0; }
.lesson-row .lr-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 3px; }
.lesson-row .lr-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.lesson-row h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.12;
}
.lesson-row p {
  color: var(--text-2);
  font-size: 0.82rem;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lesson-row.locked { cursor: not-allowed; }
.lesson-row.locked:hover { transform: none; border-color: var(--line); }
.lesson-row.locked .lr-thumb img { filter: brightness(0.4) saturate(0.6); }
.lesson-row.locked .lr-thumb .lr-ico svg { fill: var(--text-3); }
.lesson-row.locked h3 { color: var(--text-2); }
@media (min-width: 768px) {
  .lesson-row { grid-template-columns: 150px 1fr; padding: 14px; gap: 18px; }
  .lesson-row .lr-thumb { width: 150px; height: 88px; }
  .lesson-row h3 { font-size: 1.35rem; }
  .lesson-row p { font-size: 0.88rem; }
}

/* ============================================================
   AULA (player + sidebar)
   ============================================================ */
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-wrap: wrap;
}
.crumb a { color: var(--text-2); transition: color 0.2s; }
.crumb a:hover { color: var(--gold-2); }

.aula-layout { display: grid; grid-template-columns: 1fr; gap: 20px; padding-bottom: 30px; }
@media (min-width: 1024px) { .aula-layout { grid-template-columns: 1fr 330px; gap: 28px; align-items: start; } }

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  background: #05070b;
  box-shadow: 0 26px 80px rgba(0,0,0,0.6);
}
.player-frame img.poster { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.player-frame .p-overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(10,14,20,0.25), rgba(10,14,20,0.65));
}
.player-frame .p-overlay .bigplay {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  box-shadow: 0 10px 40px rgba(212,175,55,0.45);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.player-frame .p-overlay .bigplay:hover { transform: scale(1.1); }
.player-frame .p-overlay .bigplay svg { fill: #171203; margin-left: 4px; }
.player-frame .p-overlay .p-note {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0 16px;
}
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 768px) { .player-frame .p-overlay .bigplay { width: 84px; height: 84px; } }

.aula-info h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 1.08;
  margin-top: 16px;
}
.aula-info .xp-tag { margin-top: 8px; }
.aula-info p.desc { color: var(--text-2); font-size: 0.93rem; margin-top: 12px; max-width: 68ch; }
.aula-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.aula-actions .btn-gold { flex: 1 1 100%; }
.aula-nav { display: flex; gap: 10px; width: 100%; }
.aula-nav .btn-ghost { flex: 1; }
@media (min-width: 768px) {
  .aula-info h1 { font-size: 2.1rem; }
  .aula-actions .btn-gold { flex: 0 0 auto; }
  .aula-nav { width: auto; }
  .aula-nav .btn-ghost { flex: 0 0 auto; }
}

.aula-side { border-radius: 16px; border: 1px solid var(--line); background: var(--bg-card); overflow: hidden; }
.aula-side .as-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.aula-side .as-head .mono { font-size: 0.72rem; color: var(--gold-2); }
.as-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.as-item:last-child { border-bottom: none; }
.as-item:hover { background: var(--surface); }
.as-item .as-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  flex: none;
}
.as-item.done .as-dot { border-color: var(--gold); background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); color: #171203; font-weight: 600; }
.as-item.current { background: var(--gold-soft); }
.as-item.current .as-dot { border-color: var(--gold); color: var(--gold-2); }
.as-item .as-body b { display: block; font-family: var(--font-display); font-size: 0.98rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1.15; }
.as-item .as-body span { font-size: 0.68rem; color: var(--text-3); font-family: var(--font-mono); }
.as-item.current .as-body b { color: var(--gold-2); }
.as-item.locked { opacity: 0.5; cursor: not-allowed; }
.as-item.locked:hover { background: none; }

/* celebração: candle verde que sobe ao concluir (PRD §5.2) */
.celebrate {
  position: fixed;
  inset: 0;
  z-index: 97;
  display: none;
  place-items: center;
  background: rgba(10, 14, 20, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.celebrate.show { display: grid; animation: fade-up 0.4s ease; }
.celebrate .cel-box { text-align: center; padding: 24px; }
.celebrate .cel-candle {
  width: 60px;
  margin: 0 auto 20px;
  display: block;
}
.celebrate .cel-candle .wickline { stroke: var(--up); stroke-width: 3; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw-wick 0.7s ease 0.2s forwards; }
.celebrate .cel-candle .bodyrect {
  fill: var(--up);
  transform-origin: 30px 120px;
  transform: scaleY(0);
  animation: rise-candle 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
  filter: drop-shadow(0 0 18px rgba(22,199,132,0.7));
}
@keyframes draw-wick { to { stroke-dashoffset: 0; } }
@keyframes rise-candle { to { transform: scaleY(1); } }
.celebrate h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.celebrate p { color: var(--text-2); margin-top: 8px; max-width: 40ch; }
.celebrate .btn-gold { margin-top: 22px; }

/* ============================================================
   PITCH
   ============================================================ */
.pitch { display: none; padding: 4px 0 40px; }
.pitch.open { display: block; animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.pitch-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line-gold);
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(212,175,55,0.16), transparent 55%),
    linear-gradient(160deg, #1a2231, var(--bg-card) 70%);
  padding: 26px 20px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 0 80px rgba(212,175,55,0.08);
}
.pitch-card h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  max-width: 22ch;
  margin-top: 14px;
}
.pitch-card .p-lead { margin-top: 12px; color: var(--text-2); max-width: 58ch; font-size: 0.95rem; }
.pitch-includes { margin-top: 22px; display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 760px; }
.pitch-includes li { list-style: none; display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 0.92rem; }
.pitch-includes li svg { flex: none; margin-top: 4px; }
.pitch-cta-row { margin-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pitch-cta-row .btn-gold { width: 100%; }
.pitch-cta-row .guarantee { font-size: 0.8rem; color: var(--text-3); max-width: 34ch; }
.addons { margin-top: 22px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.addon { border-radius: 16px; border: 1px dashed var(--line-gold); background: rgba(212,175,55,0.05); padding: 18px; }
.addon.community { border-style: solid; border-color: var(--line); background: var(--bg-card); }
.addon .a-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.addon .a-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.03em; text-transform: uppercase; }
.addon .a-price { font-family: var(--font-mono); font-size: 0.95rem; color: var(--gold-2); white-space: nowrap; }
.addon .a-price small { color: var(--text-3); font-size: 0.7rem; }
.addon p { margin-top: 7px; color: var(--text-2); font-size: 0.85rem; }
.addon .a-cta { margin-top: 12px; }
@media (min-width: 768px) {
  .pitch-card { padding: clamp(28px, 4vw, 56px); }
  .pitch-card h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
  .pitch-includes { grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
  .pitch-cta-row .btn-gold { width: auto; }
  .addons { grid-template-columns: 1.1fr 0.9fr; gap: 20px; }
}

/* ============================================================
   FORMAÇÃO (grid bloqueado + modal de venda)
   ============================================================ */
.mod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-bottom: 10px; }
@media (min-width: 768px) { .mod-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.mod-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  text-align: left;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s;
  display: block;
  width: 100%;
}
.mod-card:hover { transform: translateY(-4px); border-color: var(--line-gold); }
.mod-card .mc-thumb { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.mod-card .mc-meta { display: block; }
.mod-card .mc-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4) saturate(0.6); }
.mod-card .mc-thumb .vc-lock { position: absolute; inset: 0; display: grid; place-items: center; }
.mod-card .mc-thumb .lock-badge { width: 40px; height: 40px; }
.mod-card .mc-meta { padding: 10px 12px 14px; }
.mod-card .mc-meta small {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.mod-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.12;
}

/* modal de venda */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 98;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-back.show { display: grid; animation: fade-up 0.3s ease; }
.modal {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  border: 1px solid var(--line-gold);
  background: linear-gradient(160deg, #1a2231, var(--bg-card) 70%);
  box-shadow: 0 40px 120px rgba(0,0,0,0.7), 0 0 60px rgba(212,175,55,0.12);
  padding: 26px 22px;
  position: relative;
}
.modal .m-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--text-3);
  transition: color 0.2s, border-color 0.2s;
}
.modal .m-close:hover { color: var(--text); border-color: var(--line-gold); }
.modal h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-top: 12px;
  max-width: 20ch;
}
.modal .m-promise { color: var(--text-2); margin-top: 10px; font-size: 0.95rem; max-width: 46ch; }
.modal .m-preview {
  margin-top: 16px;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.modal .m-preview img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); }
.modal .m-preview .pv-tag {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: rgba(10,14,20,0.35);
}
.modal .btn-gold { width: 100%; margin-top: 18px; }

/* ============================================================
   TIMELINE (Quem é Cézar)
   ============================================================ */
.timeline { position: relative; margin: 26px 0 40px; padding-left: 26px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-3) 70%, transparent);
  box-shadow: 0 0 12px rgba(212,175,55,0.4);
}
.tl-item { position: relative; padding: 0 0 30px 14px; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -24px; top: 5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--gold);
  box-shadow: 0 0 14px rgba(212,175,55,0.6);
}
.tl-item .tl-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold-2);
}
.tl-item h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.08;
  margin-top: 4px;
}
.tl-item p { color: var(--text-2); font-size: 0.93rem; margin-top: 8px; max-width: 62ch; }
.tl-item.tl-down::before { border-color: var(--down); box-shadow: 0 0 14px rgba(234,57,67,0.5); }
.tl-item.tl-down .tl-year { color: var(--down); }
.tl-item.tl-gold::before { background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); }
@media (min-width: 768px) {
  .timeline { padding-left: 40px; }
  .tl-item h3 { font-size: 2rem; }
}

/* ============================================================
   MISSÃO 30 DIAS (trilha de candles)
   ============================================================ */
.trail-wrap { padding: 22px 18px 26px; margin-top: 18px; }
.trail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px 8px;
}
@media (min-width: 768px) { .trail { grid-template-columns: repeat(10, 1fr); gap: 16px 10px; } }
.t-day { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.t-day .candle {
  width: 16px;
  height: 44px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.t-day .candle::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--line);
}
.t-day .candle .body {
  width: 100%;
  height: 55%;
  border-radius: 3px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.t-day.lit .candle::before { background: rgba(22,199,132,0.6); }
.t-day.lit .candle .body {
  background: linear-gradient(180deg, #1fe89a, var(--up));
  border-color: transparent;
  box-shadow: 0 0 14px rgba(22,199,132,0.55);
  animation: candle-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes candle-in { from { transform: scaleY(0.2); } }
.t-day.today .candle .body { border-color: var(--gold); animation: node-pulse 2.4s ease-in-out infinite; }
.t-day.gold .candle::before { background: rgba(212,175,55,0.7); }
.t-day.gold .candle .body {
  background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
  box-shadow: 0 0 18px rgba(212,175,55,0.7);
}
.t-day span { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-3); }
.t-day.lit span { color: var(--up); }
.t-day.gold span { color: var(--gold-2); }
.t-day .cp {
  font-size: 0.52rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}

/* card do dia (missão 30) */
.day-card { padding: 22px; margin-top: 16px; border-left: 3px solid var(--gold); }
.day-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.day-card p { color: var(--text-2); font-size: 0.93rem; margin-top: 8px; max-width: 62ch; }
.day-card textarea { margin-top: 14px; min-height: 90px; resize: vertical; }
.day-card .btn-gold { margin-top: 14px; }

/* ============================================================
   DIÁRIO DA DIFERENÇA
   ============================================================ */
.diario-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; padding-bottom: 20px; }
@media (min-width: 1024px) { .diario-grid { grid-template-columns: 0.9fr 1.1fr; gap: 22px; } }
.d-panel { padding: 20px; }
.d-panel h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.d-form { display: grid; gap: 12px; }
.d-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.d-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.78rem; }
.d-table th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 8px 6px;
  border-bottom: 1px solid var(--line-gold);
}
.d-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.d-table td.diff { color: var(--gold-2); font-weight: 600; }
.d-table td .var-up { color: var(--up); }
.d-table td .var-down { color: var(--down); }
.d-chart { width: 100%; height: auto; margin-top: 6px; }
.d-chart .axis { stroke: rgba(255,255,255,0.08); }
.d-chart .line {
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(245,208,97,0.6));
}
.d-chart .area { fill: url(#dGrad); opacity: 0.5; }
.d-chart .pt { fill: var(--gold-2); }
.streak-row { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.streak-row .s-candle {
  width: 10px; height: 26px;
  border-radius: 2px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
}
.streak-row .s-candle.on { background: linear-gradient(180deg, #1fe89a, var(--up)); border-color: transparent; box-shadow: 0 0 10px rgba(22,199,132,0.5); }
.streak-row b { font-family: var(--font-mono); font-size: 0.72rem; color: var(--up); margin-left: 8px; }

/* ============================================================
   COMUNIDADE (preview desfocado)
   ============================================================ */
.blur-stage { position: relative; margin-top: 18px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.blur-feed { filter: blur(7px) brightness(0.6); pointer-events: none; user-select: none; padding: 18px; display: grid; gap: 12px; background: var(--bg-card); }
.feed-post { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: rgba(255,255,255,0.02); }
.feed-post .fp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.feed-post .fp-av { width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--line-gold); }
.feed-post .fp-name { font-size: 0.85rem; color: var(--text); }
.feed-post p { font-size: 0.85rem; color: var(--text-2); }
.blur-cta {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 22px;
  background: radial-gradient(80% 70% at 50% 50%, rgba(10,14,20,0.5), rgba(10,14,20,0.85));
}
.blur-cta h2 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05; max-width: 22ch; }
.blur-cta p { color: var(--text-2); font-size: 0.92rem; max-width: 46ch; }

/* ============================================================
   MESA DA SEMANA / COFRE / MENTORIA
   ============================================================ */
.audio-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  margin-bottom: 10px;
  transition: border-color 0.25s;
}
.audio-row:hover { border-color: var(--line-gold); }
.audio-row .ar-play {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-soft);
  border: 1px solid var(--line-gold);
}
.audio-row .ar-play svg { fill: var(--gold-2); margin-left: 2px; }
.audio-row .ar-body b { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.audio-row .ar-body span { font-size: 0.76rem; color: var(--text-3); font-family: var(--font-mono); }
.audio-row .ar-check {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  color: transparent;
  transition: all 0.25s;
}
.audio-row .ar-check.on { border-color: var(--up); background: rgba(22,199,132,0.12); color: var(--up); }

.bonus-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  margin-bottom: 10px;
}
.bonus-row .lock-badge { width: 40px; height: 40px; }
.bonus-row .br-body b { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.bonus-row .br-body span { font-size: 0.78rem; color: var(--text-3); }
.bonus-row .br-value { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold-2); white-space: nowrap; }

/* ============================================================
   PERFIL / RANKING (reuso v2)
   ============================================================ */
.rank-card { padding: 20px; }
@media (min-width: 768px) { .rank-card { padding: 26px 28px; } }
.rank-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.rank-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: none; }
.rank-row .pos { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); }
.rank-row .who { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; min-width: 0; }
.rank-row .who span.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .who .dot-av {
  flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.75rem;
  background: rgba(255,255,255,0.06); color: var(--text-2);
  border: 1px solid var(--line);
}
.rank-row .pts { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold-2); }
.rank-row.me { background: var(--gold-soft); border-radius: 10px; border-bottom-color: transparent; }
.rank-row.me .who { color: var(--gold-2); font-weight: 500; }
.rank-row.me .who .dot-av { background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); color: #171203; border: none; }
.rank-row.podium .dot-av { border-color: var(--line-gold); color: var(--gold-2); }

.home-cols { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 10px; }
@media (min-width: 960px) { .home-cols { grid-template-columns: 1.2fr 0.8fr; gap: 22px; } }

.profile-head { display: flex; align-items: center; gap: 16px; padding: 24px 0 8px; }
.profile-head .big-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: #171203;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  box-shadow: 0 8px 30px rgba(212,175,55,0.35);
  flex: none;
}
.profile-head h1 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.05; }
.profile-head .lvl { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold-2); letter-spacing: 0.08em; text-transform: uppercase; }

.xp-panel { padding: 20px; margin-top: 16px; }
.xp-panel .level-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.xp-panel .level-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.03em; text-transform: uppercase; }
.xp-panel .xp-count { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-2); }
.xp-bar { position: relative; margin-top: 12px; height: 14px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); overflow: hidden; }
.xp-bar .fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold) 50%, var(--gold-2));
  box-shadow: 0 0 14px rgba(212,175,55,0.5);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.xp-bar .fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 2.6s ease-in-out 1.4s infinite;
}
@keyframes shimmer { 45% { transform: translateX(100%); } 100% { transform: translateX(100%); } }
.xp-panel .next-hint { margin-top: 10px; font-size: 0.82rem; color: var(--text-3); }
.xp-panel .next-hint b { color: var(--gold-2); font-weight: 600; }

.badges { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 0.82rem;
  color: var(--text-3);
  filter: grayscale(1);
  opacity: 0.55;
  transition: all 0.4s ease;
}
.badge.earned { filter: none; opacity: 1; color: var(--text); border-color: var(--line-gold); background: var(--gold-soft); box-shadow: 0 0 24px rgba(212,175,55,0.12); }
.badge .b-ico {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: #171203;
  font-size: 0.85rem;
}

.journey-card { padding: 20px; }
.journey-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.j-step { display: flex; gap: 14px; padding: 10px 0; }
.j-step .j-dot {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line);
  background: var(--bg-card);
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-3);
  position: relative;
}
.j-step:not(:last-child) .j-dot::after { content: ''; position: absolute; top: 30px; left: 50%; width: 1.5px; height: 22px; background: var(--line); }
.j-step.done .j-dot { border-color: var(--gold); background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); color: #171203; font-weight: 600; }
.j-step.done .j-dot::after { background: var(--line-gold); }
.j-step .j-body b { display: block; font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; letter-spacing: 0.02em; }
.j-step .j-body span { font-size: 0.78rem; color: var(--text-3); }
.j-step.done .j-body b { color: var(--gold-2); }

.profile-cols { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; padding-bottom: 20px; }
@media (min-width: 960px) { .profile-cols { grid-template-columns: 1fr 1fr; gap: 22px; } }

.danger-zone { margin-top: 8px; padding-bottom: 30px; }
.danger-zone .logout-btn { color: var(--down); border-color: rgba(234,57,67,0.3); }
.danger-zone .logout-btn:hover { background: rgba(234,57,67,0.08); color: var(--down); border-color: rgba(234,57,67,0.5); }

/* ============================================================
   FOOTER / TOAST / FX
   ============================================================ */
.app-footer {
  border-top: 1px solid var(--line);
  padding: 24px 16px 34px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-3);
  font-size: 0.74rem;
}
@media (min-width: 768px) { .app-footer { flex-direction: row; justify-content: space-between; padding: 28px 32px 40px; } }

#fx { position: fixed; inset: 0; z-index: 95; pointer-events: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottomnav-h) + 20px);
  transform: translate(-50%, 260%);
  opacity: 0;
  pointer-events: none;
  z-index: 96;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: #171203;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 13px 24px;
  border-radius: 999px;
  box-shadow: 0 14px 44px rgba(212,175,55,0.45);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
@media (min-width: 768px) { .toast { bottom: 34px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none; padding-left: 0; }
}

/* ── FORMAÇÃO · entrega do conteúdo (grade oficial da planilha) ───────────── */
/* card destravado: a miniatura escurecida é só do estado bloqueado */
.mod-card.unlocked .mc-thumb img { filter: none; }
.mod-card .mc-ok {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--up); color: #06231a;
  font-size: 0.8rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(22,199,132,0.4);
}

/* corpo de texto das telas sem vídeo (boas-vindas e bônus) */
.form-corpo { margin-top: 14px; color: var(--text-2); font-size: 0.94rem; line-height: 1.65; }
.form-corpo p { margin-bottom: 12px; }
.form-corpo a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.form-corpo .orient { margin: 0 0 4px; padding-left: 20px; display: grid; gap: 12px; }
.form-corpo .orient li { padding-left: 4px; }
.form-corpo .aviso-neutro {
  border-left: 2px solid var(--line-gold);
  padding: 10px 14px; background: var(--gold-soft);
  border-radius: 0 10px 10px 0; color: var(--text-2);
}

/* planilha de apoio */
.form-anexo {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 14px 16px;
  border: 1px solid var(--line-gold); border-radius: 12px;
  background: var(--gold-soft); color: var(--gold-2);
  min-height: 44px;
}
.form-anexo:hover { background: rgba(212,175,55,0.2); }
.form-anexo span { display: block; }
.form-anexo b { display: block; color: var(--text); font-size: 0.92rem; font-weight: 600; }
.form-anexo small { display: block; margin-top: 2px; color: var(--text-3); font-size: 0.76rem; }

.form-suporte { margin-top: 14px; font-size: 0.86rem; color: var(--text-2); }
.form-suporte a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }

/* chamada do simulador dentro da aula */
.form-sim {
  margin-top: 18px; padding: 16px;
  border: 1px solid var(--line-gold); border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-soft), rgba(212,175,55,0.03));
}
.form-sim b { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--gold-2); }
.form-sim p { margin: 6px 0 14px; font-size: 0.88rem; color: var(--text-2); line-height: 1.55; }

/* disclaimer de terceiros — recolhido por padrão, texto na íntegra */
.form-disc {
  margin-top: 18px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.form-disc summary {
  cursor: pointer; padding: 13px 16px; min-height: 44px;
  display: flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
}
.form-disc[open] summary { border-bottom: 1px solid var(--line); color: var(--text-2); }
.form-disc > div { padding: 14px 16px 16px; }
.form-disc p { font-size: 0.8rem; line-height: 1.6; color: var(--text-3); margin-bottom: 10px; }
.form-disc p:last-child { margin-bottom: 0; }
