/* ============================================================
   OPERAÇÃO RUPTURA — identidade ouro sobre preto, motivo da ruptura
   ============================================================ */
:root {
  --ink: #0a0a0b;
  --ink-2: #0f0f12;
  --surface: #151518;
  --surface-2: #1c1c21;
  --surface-3: #232329;
  --line: rgba(226, 183, 74, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);
  --gold: #e8b23a;
  --gold-bright: #ffd874;
  --gold-deep: #c8921f;
  --gold-grad: linear-gradient(135deg, #ffe8a3 0%, #f2c84b 48%, #c8921f 100%);
  --text: #f4f1e9;
  --muted: #a39d8f;
  --muted-2: #726d62;
  --ok: #7bd88f;
  --warn: #e8b23a;
  --danger: #e8705a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --ff-display: "Archivo", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--ff-body);
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }
button { font-family: inherit; cursor: pointer; color: inherit; }
input, select, textarea { color: var(--text); font-family: inherit; }
select option, select optgroup { background: var(--surface-2); color: var(--text); }
::placeholder { color: var(--muted-2); opacity: 1; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.04; margin: 0; letter-spacing: -0.01em; }
.is-hidden { display: none !important; }

/* texto dourado */
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}

/* motivo da ruptura: faixa diagonal sutil */
.rupture-cut {
  position: relative;
  overflow: hidden;
}
.rupture-cut::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(118deg, transparent 0 48%, rgba(242, 200, 75, 0.09) 48% 49.2%, transparent 49.2%);
  pointer-events: none;
}

/* ---------------- botões ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  padding: 0.72rem 1.15rem; border-radius: 11px; font-weight: 600; font-size: 0.94rem;
  transition: border-color 0.2s, background 0.2s, transform 0.12s; text-decoration: none;
}
.btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--gold-grad); color: #1a1205; border: none; font-weight: 800;
  box-shadow: 0 10px 28px -12px rgba(242, 200, 75, 0.6);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-sm { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; border-radius: 6px; }

/* ================= LOGIN ================= */
.login {
  min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 0.95fr;
  background: radial-gradient(130% 110% at 72% -10%, #1a1712 0%, var(--ink) 52%);
}
.login-stage {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 5vw, 5rem); gap: 1.4rem;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(90% 70% at 30% 20%, rgba(242, 200, 75, 0.10), transparent 60%),
    repeating-linear-gradient(118deg, transparent 0 46px, rgba(255,255,255,0.012) 46px 47px);
}
.login-logo-wrap { width: min(60%, 320px); max-width: 100%; aspect-ratio: 1; margin-bottom: 0.5rem; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.6)); }
.login-eyebrow { font-weight: 700; letter-spacing: 0.26em; font-size: 0.72rem; color: var(--gold); text-transform: uppercase; }
.login-title { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 900; letter-spacing: -0.02em; }
.login-title span { display: block; font-size: 0.4em; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.login-motto { font-family: var(--ff-display); font-weight: 600; font-style: italic; color: var(--text); font-size: 1.05rem; opacity: 0.86; }
.login-rhythm { display: flex; gap: 2rem; margin-top: 0.6rem; }
.login-rhythm div { display: flex; flex-direction: column; }
.login-rhythm b { font-family: var(--ff-display); font-size: 1.9rem; font-weight: 800; color: var(--gold-bright); }
.login-rhythm small { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; }

.login-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4rem); gap: 1rem; }
.login-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--ink-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow); max-width: 420px; width: 100%;
}
.login-card h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 0.3rem; }
.login-card p.sub { color: var(--muted); margin: 0 0 1.4rem; font-size: 0.94rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--ink); border: 1px solid var(--line-soft); color: var(--text);
  padding: 0.75rem 0.85rem; border-radius: 10px; font-size: 0.95rem; font-family: inherit; width: 100%;
  transition: border-color 0.18s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field textarea { resize: vertical; min-height: 84px; }
.form-error { color: var(--danger); font-size: 0.85rem; min-height: 1.1em; margin: 0.2rem 0; }
.login-foot { color: var(--muted-2); font-size: 0.78rem; display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

@media (max-width: 880px) {
  .login { grid-template-columns: 1fr; }
  .login-stage { border-right: none; border-bottom: 1px solid var(--line); min-height: 52vh; }
  .login-logo-wrap { width: min(56vw, 240px); }
}

/* ================= APP SHELL ================= */
.app { display: grid; grid-template-columns: 268px 1fr; min-height: 100dvh; }
.sidebar {
  background: linear-gradient(180deg, var(--ink-2), var(--ink)); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 1.1rem 0.85rem; position: sticky; top: 0; height: 100dvh;
}
.brand-lockup { display: flex; align-items: center; gap: 0.7rem; padding: 0.4rem 0.6rem 1rem; text-decoration: none; }
.brand-lockup .mini3d { width: 46px; height: 46px; flex: none; }
.brand-lockup b { font-family: var(--ff-display); font-weight: 900; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1; }
.brand-lockup b span { display: block; font-size: 0.6em; color: var(--muted); font-weight: 600; letter-spacing: 0.12em; margin-top: 2px; }
.nav-label { font-size: 0.66rem; letter-spacing: 0.2em; color: var(--muted-2); text-transform: uppercase; padding: 0.4rem 0.75rem; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.nav button {
  display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left;
  background: transparent; border: none; color: var(--muted); padding: 0.62rem 0.75rem; border-radius: 10px;
  font-size: 0.92rem; font-weight: 500; transition: background 0.15s, color 0.15s; position: relative;
}
.nav button .ico { width: 20px; text-align: center; opacity: 0.85; }
.nav button:hover { background: var(--surface); color: var(--text); }
.nav button.active { background: var(--surface-2); color: var(--text); }
.nav button.active::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: var(--gold-grad);
}
.sidebar-foot { border-top: 1px solid var(--line); padding-top: 0.85rem; margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-foot .who { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 0.45rem; padding: 0 0.6rem; }
.sidebar-foot .who b { color: var(--text); font-weight: 600; font-family: var(--ff-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem clamp(1rem, 3vw, 2.2rem); border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.82); backdrop-filter: blur(14px);
}
.topbar .crumb { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.topbar h1 { font-size: 1.3rem; font-weight: 800; margin-top: 2px; }
.goal-chip {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 190px;
}
.goal-chip .gl { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.goal-chip .gv { font-family: var(--ff-display); font-weight: 800; font-size: 0.95rem; }
.goal-chip .gbar { width: 190px; height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.goal-chip .gbar i { display: block; height: 100%; background: var(--gold-grad); border-radius: 4px; transition: width 0.6s; }
.menu-btn { display: none; }

.page { padding: clamp(1.2rem, 3vw, 2.4rem); max-width: var(--maxw); width: 100%; margin: 0 auto; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; z-index: 60; left: 0; top: 0; width: 280px; transform: translateX(-102%);
    transition: transform 0.25s ease; box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; font-size: 1.2rem; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 55; }
  .goal-chip { min-width: 0; } .goal-chip .gbar { width: 120px; }
}

/* ============== blocos de conteúdo ============== */
.hero {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  padding: clamp(1.6rem, 4vw, 2.8rem); margin-bottom: 1.6rem;
  background:
    radial-gradient(120% 140% at 88% -20%, rgba(242,200,75,0.14), transparent 55%),
    linear-gradient(180deg, var(--surface), var(--ink-2));
}
.hero .eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 0.2em; font-size: 0.72rem; text-transform: uppercase; }
.hero h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 900; margin: 0.6rem 0; max-width: 20ch; }
.hero p { color: var(--muted); max-width: 60ch; margin: 0; }
.hero-actions { display: flex; gap: 0.7rem; margin-top: 1.4rem; flex-wrap: wrap; }

.section { margin: 2rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section-head h3 { font-size: 1.4rem; font-weight: 800; }
.section-head .eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 0.18em; font-size: 0.68rem; text-transform: uppercase; display: block; margin-bottom: 4px; }
.section-head p { color: var(--muted); font-size: 0.9rem; margin: 0.2rem 0 0; max-width: 60ch; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.25rem; transition: border-color 0.18s, transform 0.18s;
}
.card.lift:hover { border-color: var(--line); transform: translateY(-2px); }
.card h4 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.4rem; font-family: var(--ff-display); }
.card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.pill { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.22rem 0.6rem; border-radius: 999px; text-transform: uppercase; }
.pill-gold { background: rgba(242,200,75,0.14); color: var(--gold-bright); border: 1px solid var(--line); }
.pill-done { background: rgba(123,216,143,0.14); color: var(--ok); border: 1px solid rgba(123,216,143,0.3); }
.pill-soft { background: var(--surface-3); color: var(--muted); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.85rem; }
.kpi { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.1rem; }
.kpi .v { font-family: var(--ff-display); font-weight: 800; font-size: 1.7rem; }
.kpi .l { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; margin-top: 2px; }

/* ===== Jornada / missões ===== */
.phase-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.phase-tab {
  flex: 1; min-width: 180px; text-align: left; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 0.9rem 1rem; transition: border-color 0.18s;
}
.phase-tab.active { border-color: var(--gold); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.phase-tab .pn { font-family: var(--ff-display); font-weight: 800; font-size: 0.95rem; display: flex; justify-content: space-between; }
.phase-tab .pr { color: var(--gold); font-size: 0.74rem; font-weight: 700; }
.phase-tab .pd { color: var(--muted); font-size: 0.78rem; margin-top: 4px; }

.mission {
  border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); margin-bottom: 0.7rem; overflow: hidden;
}
.mission.current { border-color: var(--gold); }
.mission-head { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; width: 100%; background: transparent; border: none; color: var(--text); text-align: left; }
.mission-day { font-family: var(--ff-display); font-weight: 800; font-size: 0.82rem; color: var(--ink); background: var(--gold-grad); width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.mission.done .mission-day { background: var(--surface-3); color: var(--ok); }
.mission-head .mt { flex: 1; min-width: 0; }
.mission-head .mt b { font-family: var(--ff-display); font-weight: 700; font-size: 1rem; display: block; }
.mission-head .mt small { color: var(--muted); font-size: 0.82rem; }
.mission-head .chev { color: var(--muted); transition: transform 0.2s; }
.mission.open .chev { transform: rotate(90deg); }
.mission-body { padding: 0 1.1rem 1.1rem 1.1rem; display: none; }
.mission.open .mission-body { display: block; }
.mission-mentor { border-left: 3px solid var(--gold); background: rgba(242,200,75,0.06); padding: 0.7rem 0.9rem; border-radius: 0 10px 10px 0; font-size: 0.9rem; color: var(--text); margin-bottom: 1rem; }
.mission-mentor::before { content: "👊 Como o Victor faz"; display: block; font-family: var(--ff-display); font-weight: 700; font-size: 0.74rem; color: var(--gold); letter-spacing: 0.06em; margin-bottom: 4px; text-transform: uppercase; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.4rem 0; font-size: 0.92rem; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--gold); width: 17px; height: 17px; flex: none; }
.deliver { margin-top: 0.9rem; font-size: 0.86rem; color: var(--muted); }
.deliver b { color: var(--gold-bright); }

/* progress bar inline */
.bar { height: 8px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold-grad); border-radius: 5px; transition: width 0.5s; }

/* tabela */
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.tbl th, table.tbl td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.tbl th { color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
table.tbl tr:hover td { background: var(--surface); }
.mono { font-variant-numeric: tabular-nums; }

/* campanha */
.camp { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); padding: 1.3rem; }
.camp .tag { color: var(--muted); font-size: 0.82rem; }
.camp h4 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.camp ol { padding-left: 1.2rem; margin: 0.6rem 0; }
.camp ol li { margin: 0.3rem 0; font-size: 0.9rem; }
.decision { display: grid; gap: 0.5rem; margin-top: 0.8rem; }
.decision .d { display: grid; grid-template-columns: 150px 1fr; gap: 0.6rem; background: var(--ink-2); border-radius: 10px; padding: 0.6rem 0.8rem; font-size: 0.86rem; }
.decision .d b { color: var(--gold-bright); font-family: var(--ff-display); }
@media (max-width: 560px) { .decision .d { grid-template-columns: 1fr; gap: 0.2rem; } }

/* guia do básico */
.guide-steps { counter-reset: s; list-style: none; padding: 0; margin: 0.8rem 0; }
.guide-steps li { counter-increment: s; position: relative; padding: 0.5rem 0 0.5rem 2.4rem; font-size: 0.92rem; border-bottom: 1px solid var(--line-soft); }
.guide-steps li::before { content: counter(s); position: absolute; left: 0; top: 0.4rem; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-3); color: var(--gold-bright); font-family: var(--ff-display); font-weight: 700; font-size: 0.8rem; display: grid; place-items: center; }
.note-warn { border: 1px solid rgba(232,112,90,0.3); background: rgba(232,112,90,0.07); border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.86rem; color: #f0b7ab; margin-top: 0.8rem; }
.note-warn b { color: var(--danger); }

/* ranking */
.rank-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 0.8rem; padding: 0.7rem 0.9rem; border-radius: 10px; }
.rank-row + .rank-row { margin-top: 4px; }
.rank-row.me { background: rgba(242,200,75,0.09); border: 1px solid var(--line); }
.rank-pos { font-family: var(--ff-display); font-weight: 800; font-size: 1.1rem; color: var(--muted); text-align: center; }
.rank-row.top .rank-pos { color: var(--gold-bright); }
.rank-amt { font-family: var(--ff-display); font-weight: 700; font-variant-numeric: tabular-nums; }

/* placa 175k */
.placa-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: center; }
.placa-wrap img { border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 620px) { .placa-wrap { grid-template-columns: 1fr; } .placa-wrap img { max-width: 220px; } }

/* toast */
.toast { position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%) translateY(260%); opacity: 0; background: var(--surface-2); border: 1px solid var(--gold); color: var(--text); padding: 0.75rem 1.1rem; border-radius: 12px; font-size: 0.9rem; z-index: 200; transition: transform 0.3s, opacity 0.3s; box-shadow: var(--shadow); max-width: 90vw; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* chips de filtro */
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip { background: var(--surface); border: 1px solid var(--line-soft); color: var(--muted); padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.82rem; }
.chip.active { background: var(--surface-2); color: var(--gold-bright); border-color: var(--gold); }

.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.muted { color: var(--muted); }
.spacer { height: 1rem; }
.row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
hr.sep { border: none; border-top: 1px solid var(--line-soft); margin: 1.2rem 0; }
code.inline { background: var(--ink); border: 1px solid var(--line-soft); padding: 0.1rem 0.4rem; border-radius: 6px; font-size: 0.85em; color: var(--gold-bright); word-break: break-all; }

/* skeleton de carregamento */
.loading { display: grid; place-items: center; min-height: 60vh; color: var(--muted); }
.spinner { width: 42px; height: 42px; border: 3px solid var(--surface-3); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ============================================================
   PÁGINA INICIAL — cena 3D (tijolos, emblema, título, placa)
   ============================================================ */
.entry {
  position: fixed; inset: 0; overflow: hidden;
  /* preto enquanto o 3D carrega: é a "placa" que vai se romper */
  background: #000;
}
.entry-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.2s ease; }
.entry.scene-on .entry-canvas { opacity: 1; }
.no-copy, .no-copy * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.no-copy input, .no-copy textarea { -webkit-user-select: text; user-select: text; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* coluna central: emblema, letreiro, frase e login */
.entry-stack {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2vh 0; pointer-events: none;
  opacity: 0; transform: scale(0.94); transition: opacity 0.6s ease, transform 0.9s cubic-bezier(.2,1.4,.4,1);
}
.entry.ready .entry-stack { opacity: 1; transform: none; }
.entry-slot { flex: none; pointer-events: none; }
.entry-slot img { width: 100%; height: 100%; object-fit: contain; }
.entry-slot-emblem { width: clamp(96px, 16vh, 160px); height: clamp(96px, 16vh, 160px); }
.entry-slot-word { width: clamp(270px, 40vh, 380px); height: clamp(58px, 8.4vh, 80px); margin-top: 0.8vh; }
.entry-tagline {
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1vh 0 2vh; width: 420px;
  opacity: 0; transform: translateY(8px); transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s;
}
.entry.ready .entry-tagline { opacity: 1; transform: none; }
.entry-tagline span {
  font-family: var(--ff-display); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.02em;
  color: #f1d48a; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0,0,0,.9); white-space: nowrap;
}
.entry-tagline::before, .entry-tagline::after { content: ""; height: 1px; flex: 1; min-width: 32px; max-width: 70px;
  background: linear-gradient(90deg, transparent, #e8b23a);
}
.entry-tagline::after { background: linear-gradient(90deg, #e8b23a, transparent); }

.entry-card {
  pointer-events: auto; width: 400px; flex: none;
  background: linear-gradient(180deg, rgba(22, 22, 25, 0.96), rgba(9, 9, 10, 0.97));
  /* sem backdrop-filter: borrar por cima do WebGL pesa em PC fraco */
  border: 1px solid rgba(232, 178, 58, 0.28); border-radius: 22px; padding: 1.7rem 2rem 1.3rem;
  box-shadow: 0 40px 90px -30px #000, 0 0 0 6px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255, 230, 160, 0.08);
}
.entry-card h2 { font-size: 1.55rem; font-weight: 800; margin-bottom: 0.25rem; text-align: center; }
.entry-card .sub { color: var(--muted); margin: 0 0 1.1rem; font-size: 0.92rem; text-align: center; }
.entry-card .field input { background: rgba(0, 0, 0, 0.55); }
.entry-motto { font-family: var(--ff-display); font-style: italic; font-weight: 600; color: #d9c79f; font-size: 0.9rem; text-align: center; margin: 0.9rem 0 0.3rem; }
.entry-card .login-foot { justify-content: center; }

/* sem WebGL: versão estática */
.entry-fallback { display: none !important; }
.entry.no-webgl { background:
  repeating-linear-gradient(0deg, #0b0b0c 0 34px, #000 34px 38px),
  #000; }

/* placa 3D na página Rumo aos 175K */
.placa3d { width: 240px; height: 320px; cursor: grab; }
.placa-wrap { grid-template-columns: 240px 1fr; }

/* ============== v16: textos sempre brancos/dourados, conteúdo denso, esquemas ============== */
.phase-tab, .card-link, .niche-btn, .chip { color: var(--text); }
.phase-tab .pn { color: var(--text); }
.phase-tab .pf { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; font-size: .74rem; color: var(--muted); }
.phase-tab .pf .bar { flex: 1; }
.card-link { text-align: left; width: 100%; font: inherit; }
.card-link h4 { color: var(--gold-bright); }
.kpi-of { color: var(--muted-2); font-size: .6em; -webkit-text-fill-color: var(--muted-2); }
.goal-chip .gof { color: var(--muted); font-weight: 600; font-size: .8em; }
.inp { background: var(--ink); border: 1px solid var(--line-soft); color: var(--text); padding: .6rem .75rem; border-radius: 10px; font-size: .92rem; }
.inp:focus { border-color: var(--gold); outline: none; }
.inp-sm { padding: .35rem .5rem; font-size: .8rem; }
.field input:disabled { color: var(--muted); opacity: .8; }
.pill-bad { background: rgba(232,112,90,.14); color: var(--danger); }
.gold-label { color: var(--gold-bright); }

/* texto das aulas */
.prose { color: var(--text); }
.prose .b-p, .prose p { color: #e3ded2; font-size: .95rem; line-height: 1.65; margin: .55rem 0; max-width: 78ch; }
.card.prose p { color: #e3ded2; }
.prose b { color: var(--gold-bright); font-weight: 700; }
.b-lead { color: var(--text) !important; font-size: 1rem !important; }
.b-h { font-family: var(--ff-display); font-size: 1.05rem; font-weight: 800; color: var(--gold-bright); margin: 1.4rem 0 .5rem; }
.b-list { margin: .5rem 0; padding-left: 1.2rem; }
.b-list li { margin: .3rem 0; font-size: .93rem; color: #e3ded2; max-width: 78ch; }
.b-list li::marker { color: var(--gold); }
.guide-steps li { color: #e3ded2; }
.b-tip { border: 1px solid var(--line); background: rgba(242,200,75,.07); border-radius: 12px; padding: .8rem 1rem; margin: .9rem 0; font-size: .92rem; color: var(--text); }
.b-lbl { display: block; font-family: var(--ff-display); font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.b-quote { margin: 1rem 0; padding: .4rem 0 .4rem 1rem; border-left: 3px solid var(--gold); font-family: var(--ff-display); font-size: 1.1rem; font-style: italic; color: var(--text); }
.b-quote cite { display: block; font-style: normal; font-size: .76rem; color: var(--gold); margin-top: .3rem; font-family: var(--ff-body); }
.b-table { overflow-x: auto; margin: .8rem 0; border: 1px solid var(--line-soft); border-radius: 12px; }
.b-table .tbl td { color: #e3ded2; }
.b-table .tbl th { color: var(--gold); background: var(--ink-2); }
.tbl-metrics td:first-child { min-width: 130px; }
.b-ref { border: 1px solid var(--line); border-radius: 14px; margin: 1rem 0; background: var(--ink-2); }
.b-ref > summary { cursor: pointer; padding: .8rem 1rem; font-family: var(--ff-display); font-weight: 800; color: var(--gold-bright); list-style: none; }
.b-ref > summary::-webkit-details-marker { display: none; }
.b-ref > summary::before { content: "▸ "; color: var(--gold); }
.b-ref[open] > summary::before { content: "▾ "; }
.b-ref-body { padding: 0 1rem 1rem; }
.b-cols { columns: 2; padding-left: 1.2rem; font-size: .9rem; color: #e3ded2; }
.pol-sec { padding-top: .6rem; border-top: 1px solid var(--line-soft); margin-top: 1.2rem; scroll-margin-top: 90px; }
.pol-h { font-size: 1.25rem; color: var(--text); margin: .6rem 0; }
.video-soon { display: flex; gap: .8rem; align-items: center; border: 1px dashed var(--line); border-radius: 12px; padding: .7rem .9rem; margin-bottom: 1rem; }
.video-soon .vs-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--gold); font-size: .8rem; }
.video-soon b { display: block; font-size: .9rem; }
.video-soon small { color: var(--muted); font-size: .8rem; }
.mission-head .mt b { color: var(--text); }
.check span { color: #e3ded2; }

/* glossário */
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .6rem; }
.gloss-i { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: .7rem .85rem; }
.gloss-i b { display: block; font-family: var(--ff-display); color: var(--gold-bright); margin-bottom: 3px; }
.gloss-i span { font-size: .86rem; color: #ddd7ca; }

/* guias */
details.guide { margin-bottom: 1rem; }
details.guide > summary { cursor: pointer; list-style: none; }
details.guide > summary::-webkit-details-marker { display: none; }
details.guide.is-done { border-color: var(--line); }

/* esquemas */
.dg { margin: 1.1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(120% 100% at 100% 0%, rgba(242,200,75,.06), transparent 60%), var(--ink-2); }
.dg-title { font-family: var(--ff-display); font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.dg b { color: var(--text); }
.dg small { display: block; color: var(--muted); font-size: .78rem; margin-top: 3px; line-height: 1.35; }
.dg-flow { display: flex; align-items: stretch; flex-wrap: wrap; gap: .4rem; }
.dg-node { flex: 1 1 120px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: .7rem; position: relative; }
.dg-node b { display: block; font-size: .88rem; font-family: var(--ff-display); }
.dg-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--gold-grad); color: #1a1205; font-weight: 800; font-size: .72rem; margin-bottom: .4rem; }
.dg-arrow { align-self: center; width: 18px; height: 2px; background: var(--gold); position: relative; flex: none; }
.dg-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--gold); }
.dg-ladder { display: flex; flex-direction: column; gap: .45rem; }
.dg-rung { background: linear-gradient(90deg, rgba(242,200,75,calc(.06 * var(--lvl))), var(--surface-2)); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; margin-left: calc((var(--lvl) - 1) * 0px); }
.dg-rung:nth-child(1) { margin-right: 0; } 
.dg-ladder .dg-rung:nth-child(1) { width: 100%; } .dg-ladder .dg-rung:nth-child(2) { width: 88%; } .dg-ladder .dg-rung:nth-child(3) { width: 76%; } .dg-ladder .dg-rung:nth-child(4) { width: 64%; } .dg-ladder .dg-rung:nth-child(5) { width: 54%; }
.dg-ladder { align-items: flex-end; }
.dg-rung-main { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.dg-price { font-family: var(--ff-display); font-weight: 900; color: var(--gold-bright); }
.dg-share { display: inline-block; font-size: .72rem; font-weight: 700; color: #1a1205; background: var(--gold-grad); border-radius: 999px; padding: .1rem .5rem; margin-top: .3rem; }
.dg-tree { display: grid; gap: .6rem; }
.dg-root { background: var(--surface-3); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; font-weight: 700; color: var(--text); }
.dg-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .5rem; position: relative; }
.dg-branch { border-radius: 12px; padding: .7rem .8rem; border: 1px solid var(--line-soft); background: var(--surface-2); border-top: 3px solid var(--gold); }
.dg-branch.tone-good { border-top-color: var(--ok); } .dg-branch.tone-bad { border-top-color: var(--danger); }
.dg-if { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.dg-then { display: block; font-size: .9rem; color: var(--text); font-weight: 600; }
.dg-funnel { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dg-stage { background: linear-gradient(90deg, rgba(200,146,31,.35), rgba(242,200,75,.18)); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .8rem; text-align: center; min-width: 160px; }
.dg-stage b { font-size: .88rem; } .dg-stage span { display: block; font-size: .74rem; color: var(--gold-bright); }
.dg-compare { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.dg-col { border-radius: 12px; padding: .7rem .9rem; background: var(--surface-2); border: 1px solid var(--line-soft); }
.dg-col.good { border-top: 3px solid var(--ok); } .dg-col.bad { border-top: 3px solid var(--danger); }
.dg-col-h { font-family: var(--ff-display); font-weight: 800; margin-bottom: .4rem; }
.dg-col.good .dg-col-h { color: var(--ok); } .dg-col.bad .dg-col-h { color: var(--danger); }
.dg-col ul { margin: 0; padding-left: 1.1rem; } .dg-col li { font-size: .86rem; color: #e3ded2; margin: .25rem 0; }
.dg-struct { display: grid; gap: .5rem; }
.dg-camp, .dg-set { border-radius: 12px; padding: .6rem .8rem; border: 1px solid var(--line); background: var(--surface-2); }
.dg-sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .5rem; padding-left: 1.2rem; border-left: 2px solid var(--gold); margin-left: .6rem; }
.dg-lvl { display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.dg-ads { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.dg-ad { font-size: .74rem; background: var(--ink); border: 1px solid var(--line-soft); border-radius: 7px; padding: .15rem .45rem; color: var(--text); }
.dg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .5rem; }
.dg-card { background: var(--surface-2); border: 1px solid var(--line-soft); border-left: 3px solid var(--gold); border-radius: 12px; padding: .7rem .8rem; }
.dg-card b { font-family: var(--ff-display); font-size: .92rem; }
@media (max-width: 620px) { .dg-compare { grid-template-columns: 1fr; } .dg-arrow { display: none; } .b-cols { columns: 1; } }

/* ferramentas */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem; }
.tool { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: .85rem 1rem; }
.tool b { font-family: var(--ff-display); color: var(--text); }
.tool p { color: #e3ded2 !important; font-size: .88rem !important; margin: .45rem 0 !important; }
.tool-how span { color: var(--gold); font-weight: 700; }

/* minerador */
.miner-grid { display: grid; grid-template-columns: 240px 1fr; gap: 1rem; align-items: start; }
.niche-list { display: flex; flex-direction: column; gap: 2px; padding: .5rem; position: sticky; top: 90px; max-height: 75vh; overflow: auto; }
.niche-btn { text-align: left; background: transparent; border: none; padding: .5rem .7rem; border-radius: 9px; font-size: .88rem; color: var(--muted); }
.niche-btn:hover { background: var(--surface-2); color: var(--text); }
.niche-btn.active { background: var(--surface-3); color: var(--gold-bright); }
.kws { display: flex; flex-wrap: wrap; gap: .4rem; }
.kw { font-size: .84rem; text-decoration: none; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-bright); background: rgba(242,200,75,.05); }
.kw:hover { background: rgba(242,200,75,.14); }
.kw::after { content: " ↗"; color: var(--muted); }
.vq { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.verdict { margin-top: 1rem; border-radius: 14px; padding: 1rem; border: 1px solid var(--line); background: var(--ink-2); }
.verdict > b { font-family: var(--ff-display); font-size: 1.15rem; }
.verdict.tone-good > b { color: var(--ok); } .verdict.tone-mid > b { color: var(--gold-bright); } .verdict.tone-bad > b { color: var(--danger); }
.verdict ul { margin: .6rem 0 0; padding-left: 1.1rem; } .verdict li { font-size: .9rem; margin: .3rem 0; }
.verdict li.ok::marker { color: var(--ok); } .verdict li.mid::marker { color: var(--gold); } .verdict li.no::marker { color: var(--danger); }
.offer h4 { color: var(--text); }
.offer-meta { color: var(--gold-bright) !important; font-size: .82rem !important; margin: .2rem 0 .5rem !important; }
@media (max-width: 760px) { .miner-grid { grid-template-columns: 1fr; } .niche-list { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; } }

/* 175K: placa girando ao lado da barra */
.goal-panel { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.6rem; background: radial-gradient(90% 120% at 0% 50%, rgba(242,200,75,.10), transparent 60%), linear-gradient(180deg, var(--surface), var(--ink-2)); }
.goal-panel .placa3d { width: 220px; height: 280px; cursor: grab; }
.goal-lbl { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.goal-val { font-family: var(--ff-display); font-weight: 900; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.05; margin: .3rem 0 1rem; }
.goal-track { position: relative; height: 18px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-soft); }
.goal-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; background: var(--gold-grad); box-shadow: 0 0 18px rgba(242,200,75,.45); }
.goal-cursor { position: absolute; top: -5px; width: 4px; height: 28px; border-radius: 3px; background: var(--gold-bright); transform: translateX(-2px); box-shadow: 0 0 10px var(--gold); }
.goal-ends { display: flex; justify-content: space-between; margin-top: .5rem; font-family: var(--ff-display); font-weight: 800; color: var(--text); }
.goal-ends span:last-child { color: var(--gold-bright); }
@media (max-width: 680px) { .goal-panel { grid-template-columns: 1fr; justify-items: center; } }

/* biblioteca de ângulos */
.ang-tools { margin: 1.2rem 0 .8rem; display: grid; gap: .7rem; }
.ang-tools .inp { max-width: 420px; }
.angs { display: grid; gap: .5rem; }
.ang { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; }
.ang[open] { border-color: var(--line); }
.ang > summary { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; cursor: pointer; list-style: none; }
.ang > summary::-webkit-details-marker { display: none; }
.ang-n { font-family: var(--ff-display); font-weight: 900; color: var(--gold-bright); width: 34px; flex: none; }
.ang-t { flex: 1; min-width: 0; } .ang-t b { display: block; color: var(--text); font-family: var(--ff-display); }
.ang-t small { color: var(--muted); font-size: .84rem; }
.ang-body { padding: 0 1rem 1rem; }
.dg-col p { color: #e3ded2; font-size: .92rem; margin: 0; }
a.chip { text-decoration: none; }

/* ofertas da semana */
.wk-month { margin-bottom: 1.6rem; }
.wk-mes { font-size: 1.2rem; color: var(--gold-bright); margin-bottom: .7rem; }
.wk-mes span { font-size: .78rem; color: var(--muted); font-family: var(--ff-body); font-weight: 500; margin-left: .4rem; }
.wk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.wk-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-soft); border-top: 3px solid var(--gold); border-radius: 14px; padding: .9rem 1rem; }
.wk-card h5 { font-family: var(--ff-display); font-size: 1.05rem; color: var(--text); margin: .5rem 0 .7rem; }
.wk-sem { font-family: var(--ff-display); font-weight: 800; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.wk-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.modal-back { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 1rem; }
.modal { max-width: 620px; background: linear-gradient(180deg, var(--surface-2), var(--ink-2)); border: 1px solid var(--gold); border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow); }
.modal p { color: #e3ded2; font-size: .94rem; margin: .5rem 0; }
.modal b { color: var(--gold-bright); }
.tool-foot { margin-top: .6rem; }
/* mapa mental em tela cheia dentro do app */
.mapa-wrap { margin: calc(-1 * clamp(1.2rem, 3vw, 2.4rem)); }
.mapa-frame { width: 100%; height: calc(100dvh - 76px); border: 0; display: block; background: #1a1917; }
body.view-mapa .page { max-width: none; }


/* botão dentro da aula */
.b-am-top{margin:0 0 22px!important}
.b-am{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 16px;border:1px solid rgba(243,193,76,.35);border-radius:14px;background:linear-gradient(135deg,rgba(243,193,76,.10),rgba(243,193,76,.02));margin:6px 0 12px}
.b-am p{margin:0;flex:1;min-width:220px;color:inherit;opacity:.9}
/* Aula bloqueada: "Em breve" com cadeado flutuante */
.lock-soon{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:min(60vh,560px);padding:48px 20px}
.lock-soon .lock-ico{display:grid;place-items:center;width:180px;height:180px;margin:0 auto 26px;border-radius:50%;background:radial-gradient(circle at 50% 35%,rgba(243,193,76,.22),rgba(243,193,76,.04));border:1px solid rgba(243,193,76,.4);color:#f3c14c;box-shadow:0 18px 44px rgba(0,0,0,.45);animation:lock-float 3s ease-in-out infinite}
.lock-soon .lock-ico svg{width:88px;height:88px}
.lock-soon h3{font-size:30px;margin:.1rem 0 .5rem}
.lock-soon p{opacity:.72;max-width:420px;margin:0 auto;font-size:15px;line-height:1.55}
@keyframes lock-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@media(max-width:600px){.lock-soon{min-height:46vh;padding:36px 16px}.lock-soon .lock-ico{width:132px;height:132px}.lock-soon .lock-ico svg{width:64px;height:64px}.lock-soon h3{font-size:24px}}
.rail-i.locked{opacity:.45}
.rail-i.locked svg{width:14px;height:14px}
.b-cta{text-align:center;margin:18px 0}
.b-cta .btn2.big{display:inline-flex;align-items:center;gap:8px;font-size:15.5px;font-weight:800;padding:14px 26px;border-radius:12px}
/* Mascote Kulbert */
#mascote-root{position:fixed;right:20px;bottom:20px;z-index:60;display:flex;flex-direction:column;align-items:center;gap:4px}
#mascote-hint{font-size:12px;font-weight:700;color:#151515;background:#f3c14c;padding:4px 10px;border-radius:999px;box-shadow:0 4px 14px rgba(0,0,0,.35);white-space:nowrap;animation:mascote-bob 2.6s ease-in-out infinite}
@keyframes mascote-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
#mascote-holder{height:220px;cursor:grab;touch-action:none;position:relative;display:flex;align-items:flex-end}
#mascote-holder:active{cursor:grabbing}
#mascote-img{height:100%;width:auto;display:block;user-select:none;-webkit-user-drag:none;filter:drop-shadow(0 10px 16px rgba(0,0,0,.55));transform-origin:bottom center;animation:mk-float 4s ease-in-out infinite}
#mascote-holder:hover #mascote-img{filter:drop-shadow(0 0 10px rgba(243,193,76,.45)) drop-shadow(0 10px 16px rgba(0,0,0,.55))}
@keyframes mk-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
#mascote-img.mk-wave{animation:mk-wave .7s ease-in-out}
@keyframes mk-wave{0%,100%{transform:rotate(0)}25%{transform:rotate(3deg)}75%{transform:rotate(-3deg)}}
#mascote-img.mk-happy{animation:mk-happy .6s ease}
@keyframes mk-happy{0%,100%{transform:translateY(0) scale(1)}40%{transform:translateY(-16px) scale(1.04)}}
#mascote-panel{position:absolute;bottom:232px;right:0;width:min(340px,86vw);max-height:62vh;display:flex;flex-direction:column;background:linear-gradient(180deg,#191a1f,#121216);border:1px solid rgba(243,193,76,.35);border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.6);overflow:hidden}
.mp-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(243,193,76,.06)}
.mp-head b{font-size:15px}
.mp-head-r{display:flex;gap:6px}
.mp-ic{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:9px;color:inherit;width:32px;height:32px;cursor:pointer;font-size:15px}
.mp-ic:hover{background:rgba(255,255,255,.12)}
.mp-log{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:9px}
.mkmsg{max-width:88%;padding:10px 13px;border-radius:13px;font-size:14px;line-height:1.5;word-break:break-word;position:static}
.mkmsg-u{align-self:flex-end;background:rgba(243,193,76,.16);border:1px solid rgba(243,193,76,.3)}
.mkmsg-a{align-self:flex-start;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09)}
.mkmsg-think{opacity:.6;letter-spacing:.18em}
.mkmsg-err{border-color:rgba(255,120,120,.4);background:rgba(255,120,120,.08)}
.mkmsg-go{display:block;width:100%;text-align:left;margin-top:6px;padding:9px 11px;border:1px solid rgba(243,193,76,.35);border-radius:10px;background:rgba(243,193,76,.08);color:inherit;font-size:13.5px;cursor:pointer}
.mkmsg-go:hover{background:rgba(243,193,76,.18)}
a.mkmsg-go{text-decoration:none;color:inherit;box-sizing:border-box}
.mkmsg-prompt{margin:6px 0 2px;padding:8px 10px;border-radius:8px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);font-size:12.5px;line-height:1.45;white-space:pre-wrap;max-height:140px;overflow:auto;opacity:.92}
.mkmsg small{display:block;margin-top:6px;opacity:.7}
.mp-chips{display:flex;gap:8px;flex-wrap:wrap;align-self:flex-start}
.mp-chip{padding:8px 12px;border:1px solid rgba(243,193,76,.35);border-radius:999px;background:rgba(243,193,76,.08);color:inherit;font-size:13px;cursor:pointer}
.mp-chip:hover{background:rgba(243,193,76,.18)}
.mp-form{display:flex;gap:8px;padding:12px;border-top:1px solid rgba(255,255,255,.08)}
.mp-in{flex:1;min-width:0;padding:11px 13px;border:1px solid rgba(255,255,255,.14);border-radius:11px;background:rgba(0,0,0,.3);color:inherit;font-size:14px}
.mp-in:focus{outline:none;border-color:rgba(243,193,76,.6)}
.mp-send{flex:0 0 auto;width:44px;border:none;border-radius:11px;background:#f3c14c;color:#151515;font-size:16px;font-weight:800;cursor:pointer}
.mp-send:hover{filter:brightness(1.05)}
@media (max-width:560px){#mascote-root{right:10px;bottom:10px}#mascote-holder{height:150px}#mascote-panel{bottom:162px}}
.lesson-prompts{margin-top:12px}
.lesson-prompts .b-prompt{margin:0}
.b-prompt{display:flex;gap:14px;align-items:flex-start;padding:16px;border:1px solid rgba(243,193,76,.35);border-radius:14px;background:linear-gradient(135deg,rgba(243,193,76,.08),rgba(243,193,76,.015));margin:10px 0 14px}
.b-prompt-body{flex:1;min-width:0}
.b-prompt-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.b-prompt-head b{font-size:15px}
.b-prompt-text{margin:0;white-space:pre-wrap;word-break:break-word;font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:inherit;opacity:.92;background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:14px 16px;max-height:340px;overflow:auto}
#mascote-cv{display:block;height:100%;touch-action:none;user-select:none;filter:drop-shadow(0 10px 16px rgba(0,0,0,.55))}
#mascote-holder:hover #mascote-cv{filter:drop-shadow(0 0 10px rgba(243,193,76,.45)) drop-shadow(0 10px 16px rgba(0,0,0,.55))}
#mascote-cv{transform-origin:bottom center;width:auto}
#mascote-cv.mk-wave{animation:mk-wave .7s ease-in-out}
#mascote-cv.mk-happy{animation:mk-happy .6s ease}
/* ===== Kulbert: plaquinha + painel no padrão preto e dourado do app ===== */
#mascote-hint{position:relative;display:inline-flex;align-items:center;gap:7px;font-family:var(--ff-display,inherit);font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#f6e7c1;
  padding:7px 13px 7px 11px;border-radius:999px;border:1px solid transparent;
  background:linear-gradient(180deg,#17120a,#0b0806) padding-box,linear-gradient(135deg,#ffe7a3,#c98a22 55%,#7a5512) border-box;
  box-shadow:0 8px 22px -6px rgba(0,0,0,.8),0 0 18px -6px rgba(243,193,76,.55)}
#mascote-hint::after{content:"";position:absolute;left:50%;bottom:-6px;width:10px;height:10px;transform:translateX(-50%) rotate(45deg);background:#0b0806;border-right:1px solid #c98a22;border-bottom:1px solid #c98a22}
.mk-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#46e07a;box-shadow:0 0 0 0 rgba(70,224,122,.6);animation:mk-ping 1.8s ease-out infinite;flex:0 0 auto}
@keyframes mk-ping{0%{box-shadow:0 0 0 0 rgba(70,224,122,.55)}80%,100%{box-shadow:0 0 0 7px rgba(70,224,122,0)}}
#mascote-root{gap:9px}
#mascote-panel{width:min(370px,90vw);border-radius:20px;border:1px solid transparent;
  background:linear-gradient(180deg,#14100a,#0a0806) padding-box,linear-gradient(160deg,rgba(255,231,163,.9),rgba(201,138,34,.35) 40%,rgba(201,138,34,.12) 70%,rgba(255,231,163,.5)) border-box;
  box-shadow:0 30px 70px -20px rgba(0,0,0,.9),0 0 40px -18px rgba(243,193,76,.5);animation:mp-in .22s ease-out}
@keyframes mp-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.mp-head{gap:11px;justify-content:flex-start;padding:13px 14px;border-bottom:1px solid rgba(243,193,76,.18);background:radial-gradient(120% 140% at 0% 0%,rgba(243,193,76,.16),transparent 60%)}
.mp-av{flex:0 0 auto;width:40px;height:40px;border-radius:50%;padding:2px;background:linear-gradient(135deg,#ffe7a3,#c98a22);box-shadow:0 0 14px -2px rgba(243,193,76,.6)}
.mp-av img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.mp-who{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.mp-who b{font-family:var(--ff-display,inherit);font-size:16px;font-weight:900;letter-spacing:.02em;color:#fff}
.mp-who small{display:flex;align-items:center;gap:6px;font-size:11.5px;color:#cbbf9f}
.mp-who .mk-dot{width:6px;height:6px}
.mp-ic{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.04);border:1px solid rgba(243,193,76,.25);color:#e8d9b4;transition:background .2s,transform .2s}
.mp-ic:hover{background:rgba(243,193,76,.14);transform:rotate(90deg)}
.mp-log{padding:16px 14px;gap:10px}
.mkmsg{font-size:14px;line-height:1.55;border-radius:16px}
.mkmsg-a{background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.08);border-top-left-radius:5px;color:#ece6d6}
.mkmsg-a b{color:#f3c14c}
.mkmsg-u{background:linear-gradient(180deg,#f6d27a,#e0a63a);border:0;color:#1b1406;font-weight:600;border-top-right-radius:5px}
.mp-chip{padding:8px 14px;border-radius:999px;font-size:13px;font-weight:700;color:#f3e3bd;border:1px solid rgba(243,193,76,.4);background:linear-gradient(180deg,rgba(243,193,76,.12),rgba(243,193,76,.04));transition:background .2s,transform .2s}
.mp-chip:hover{background:rgba(243,193,76,.22);transform:translateY(-1px)}
.mp-form{gap:9px;padding:12px 14px 14px;border-top:1px solid rgba(243,193,76,.15);background:rgba(0,0,0,.25)}
.mp-in{padding:12px 15px;border-radius:999px;border:1px solid rgba(243,193,76,.22);background:rgba(255,255,255,.03);font-size:14px}
.mp-in:focus{border-color:rgba(243,193,76,.7);box-shadow:0 0 0 3px rgba(243,193,76,.12)}
.mp-in::placeholder{color:#8f866f}
.mp-send{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#1b1406;background:linear-gradient(180deg,#ffe7a3,#f0b23c 60%,#c98a22);box-shadow:0 8px 20px -8px rgba(243,193,76,.9),inset 0 1px 0 rgba(255,255,255,.6);transition:transform .2s}
.mp-send:hover{transform:scale(1.06)}
.mkmsg-go{border-radius:12px;font-weight:600}
/* nada de arrastar a tela pro lado no celular (brilhos decorativos passam da borda) */

/* celular: o Kulbert menor e o balão some depois de uns segundos, pra não tampar botão nem texto */
@media (max-width:560px){
  #mascote-root{right:6px;bottom:8px;gap:5px}
  #mascote-holder{height:112px}
  #mascote-panel{bottom:124px}
  #mascote-hint{font-size:9.5px;padding:4px 9px;animation:mk-hint-out .45s ease 7s forwards}
}
@keyframes mk-hint-out{to{opacity:0;transform:translateY(6px);visibility:hidden}}

/* barra de atalhos no celular: o que mais se usa fica a um toque do polegar */
.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(8, 8, 10, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(243, 193, 76, .22); }
  .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; background: none; border: 0; border-radius: 12px; color: #a9a9b2; font: 600 10.5px/1 var(--ff-body, inherit); letter-spacing: .02em; -webkit-tap-highlight-color: transparent; }
  .tabbar button svg { width: 22px; height: 22px; }
  .tabbar button.active { color: #f3c14c; background: rgba(243, 193, 76, .1); }
  .tabbar button:active { transform: scale(.94); }
  .app .page { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  #mascote-root { bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* no celular corta o vazamento lateral; no computador NÃO (no html isso quebrava o menu fixo da lateral ao rolar) */
@media (max-width:860px){html{overflow-x:clip}}

/* aviso escrito no sininho: mostra o texto inteiro (não corta com reticências) */
.pop-i.pop-av b, .pop-i.pop-av small { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; display: block; line-height: 1.35; }
.pop-i.pop-av { align-items: flex-start; }

/* cotas de IA: contador, comprar mais, antes e depois, painel do admin */
.cota-line { margin: 0; }
.cota-c { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: #cfcfd4; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; padding: .25rem .7rem; line-height: 1.3; }
.cota-c svg { width: 13px; height: 13px; color: var(--gold, #f5c04a); flex: none; }
.cota-c.low { border-color: rgba(245,192,74,.45); color: #f7d98a; }
.cota-c.out { border-color: rgba(255,138,112,.55); color: #ffb4a0; }
.cota-packs { display: grid; gap: .5rem; margin: 1rem 0 .6rem; }
.cota-packs .btn2 { justify-content: center; }
.tr-ai { border-color: rgba(245,192,74,.5) !important; color: #f7d98a !important; }
.tr-ai small { opacity: .75; }
.tr-ai-note { margin: 0; padding: .5rem 1rem; background: rgba(245,192,74,.08); color: #f7d98a; font-size: .85rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.tr-cmp .tr-rv-box { max-width: 1200px; }
.tr-cmp-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; padding: 1rem; overflow: auto; }
.tr-cmp-g figure { margin: 0; display: grid; gap: .45rem; justify-items: center; align-content: start; padding: .5rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); }
.tr-cmp-g figure.on { border-color: var(--gold, #f5c04a); box-shadow: 0 0 0 1px rgba(245,192,74,.3) inset; }
.tr-cmp-g img { max-width: 100%; max-height: 62vh; object-fit: contain; border-radius: 8px; background: #fff; }
.tr-cmp-g figcaption { font-size: .82rem; color: #ddd; }
@media (max-width: 760px) { .tr-cmp-g { grid-template-columns: 1fr; } }
.ia-q { position: relative; min-width: 74px; font-size: .86rem; padding-bottom: 6px; }
.ia-q small { display: block; color: var(--muted, #888); font-size: .7rem; }
.ia-q i { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--gold, #f5c04a); }
.ia-q.low i { background: #f59e0b; }
.ia-q.out i { background: #e63946; width: 100% !important; }
.ia-q.out b { color: #ff8a70; }

.ia-hl td { background: rgba(245,192,74,.06); }

/* planos: menu trancado, tela de bloqueio, prazos */
.nav-locked { opacity: .55; }
.nav-lock { margin-left: auto; display: inline-flex; color: var(--muted, #888); font-style: normal; }
.nav-lock svg { width: 14px; height: 14px; }
.lock-v { max-width: 560px; margin: 8vh auto; text-align: center; display: grid; gap: .8rem; justify-items: center; padding: 2rem 1.2rem; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: var(--panel, #0d0d10); }
.lock-v h2 { margin: 0; color: #fff; }
.lock-v p { margin: 0; color: #ddd; line-height: 1.55; }
.lock-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(245,192,74,.12); color: var(--gold, #f5c04a); }
.lock-ic svg { width: 26px; height: 26px; }
.plan-box { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: .9rem 1rem; background: rgba(255,255,255,.02); }
.plan-box h4 { margin: 0 0 .5rem; display: flex; gap: .4rem; align-items: center; color: #fff; }
.plan-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .86rem; }
.plan-box li { display: flex; justify-content: space-between; gap: 1rem; }
.plan-box li.off { opacity: .55; text-decoration: line-through; }
.tp-list { display: grid; gap: .5rem; }
.tp-card { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: 12px; background: #0a0a0c; border: 1px solid rgba(255,255,255,.07); }
.tp-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(245,192,74,.1); color: var(--gold, #f5c04a); }
.tp-t { flex: 1; min-width: 0; display: grid; }
.tp-t b { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-t small { color: var(--muted, #888); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-empty { display: grid; gap: .6rem; justify-items: center; text-align: center; padding: 2rem 1rem; color: #ccc; }
.ia-wins { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .3rem; }
.ia-wins span { font-size: .68rem; padding: .05rem .4rem; border-radius: 999px; background: rgba(245,192,74,.1); color: #f7d98a; white-space: nowrap; }
.ia-wins span.off { background: rgba(255,255,255,.05); color: var(--muted, #888); text-decoration: line-through; }
