/* =========================================================
   Jornada com C.S. Lewis — estilos do sistema
   Tokens extraídos da especificação do app original (Anexo B)
   ========================================================= */
:root {
  --bg: #0f1729;
  --bg-deep: #0b111e;
  --card: #1d283a;
  --card-hi: #23304a;
  --fg: #f1f5f9;
  --muted: #94a3b8;
  --muted-2: #74829a;
  --border: #2b3b55;
  --gold: #facc14;
  --gold-dark: #c59507;
  --gold-light: #fde68a;
  --danger: #ef4343;
  --ok: #34d399;
  --info: #60a5fa;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-gold: 0 4px 20px -4px rgba(250, 204, 20, .30);
  --glow-gold: 0 0 30px rgba(250, 204, 20, .15);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, .84, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
p + p { margin-top: .9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.icon { width: 18px; height: 18px; flex: none; }
.icon-sm { width: 14px; height: 14px; flex: none; }
.icon-lg { width: 24px; height: 24px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.gold { color: var(--gold); }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }
.text-gradient { background: linear-gradient(135deg, var(--gold), #fcd34d 60%, var(--gold-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Containers ---------- */
.container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 20px; }
.container-md { max-width: 768px; }
.container-sm { max-width: 512px; }
.page { padding-top: 40px; padding-bottom: 72px; }

/* ---------- Header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 17, 30, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.app-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; white-space: nowrap; }
.brand img { width: 30px; height: 30px; margin: -2px -4px -2px -6px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav summary {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; cursor: pointer;
  transition: color .15s, background .15s;
}
.nav a:hover, .nav summary:hover { color: var(--fg); background: rgba(255,255,255,.04); }
.nav a.active { color: var(--gold); }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.6);
}
.menu-panel a, .menu-panel button {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  color: var(--fg); text-decoration: none; font: inherit; font-size: .9rem; background: none; border: 0; cursor: pointer; text-align: left;
}
.menu-panel a:hover, .menu-panel button:hover { background: rgba(255,255,255,.05); }
.menu-panel .sep { height: 1px; background: var(--border); margin: 6px 4px; }
.menu-head { padding: 10px 12px 8px; }
.menu-head b { display: block; font-size: .9rem; }
.menu-head span { font-size: .78rem; color: var(--muted); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--bg);
  font-weight: 700; font-size: .82rem;
}
.nav-mobile-only { display: none; }
@media (max-width: 860px) {
  .nav-desktop { display: none !important; }
  .nav-mobile-only { display: block; }
}

/* Barra simples (páginas públicas) */
.top-bar { border-bottom: 1px solid var(--border); background: rgba(11,17,30,.6); }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: .9rem; transition: color .15s; }
.back-link:hover { color: var(--gold); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: .9rem; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: opacity .15s, background .15s, border-color .15s, color .15s, transform .2s var(--ease), box-shadow .2s;
}
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--bg); font-weight: 700; box-shadow: var(--shadow-gold); }
.btn-gold:hover { opacity: .92; transform: translateY(-1px); }
.btn-outline { border-color: var(--border); background: transparent; color: var(--fg); }
.btn-outline:hover { border-color: rgba(250,204,20,.5); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(255,255,255,.05); color: var(--fg); }
.btn-danger { background: rgba(239,67,67,.12); border-color: rgba(239,67,67,.35); color: #fca5a5; }
.btn-danger:hover { background: rgba(239,67,67,.2); }
.btn-ok { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.4); color: #6ee7b7; }
.btn-sm { height: 34px; padding: 0 12px; font-size: .84rem; }
.btn-lg { height: 48px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; padding: 0; }
.link { color: var(--gold); text-decoration: none; }
.link:hover { text-decoration: underline; }
.link-muted { color: var(--muted); text-decoration: none; }
.link-muted:hover { color: var(--fg); }
form.inline { display: inline; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card-sm { padding: 16px; }
.card-lg { padding: 32px; }
.card-hover { transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; text-decoration: none; display: block; }
.card-hover:hover { transform: translateY(-4px); border-color: rgba(250,204,20,.45); box-shadow: var(--glow-gold); }
.card-title { font-size: 1.2rem; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Badges, progresso ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--border); color: var(--muted); white-space: nowrap;
}
.badge-gold { border-color: rgba(250,204,20,.4); color: var(--gold); background: rgba(250,204,20,.08); }
.badge-ok { border-color: rgba(52,211,153,.4); color: #6ee7b7; background: rgba(52,211,153,.08); }
.badge-soon { border-color: rgba(148,163,184,.3); color: var(--muted); background: rgba(148,163,184,.06); }
.badge-draft { border-color: rgba(251,191,36,.35); color: #fcd34d; background: rgba(251,191,36,.06); }
.badge-danger { border-color: rgba(239,67,67,.4); color: #fca5a5; background: rgba(239,67,67,.08); }
.progress { height: 6px; border-radius: 6px; background: var(--border); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); transition: width .8s var(--ease); }
.progress-meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* ---------- Formulários ---------- */
.field { display: block; }
.field + .field { margin-top: 16px; }
.label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 6px; }
.hint { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.input, .textarea, .select {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border); color: var(--fg);
  font: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(250,204,20,.15); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input[disabled] { opacity: .6; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--gold); flex: none; }
.check a { color: var(--gold); }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 44px; }
.password-toggle { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.password-toggle:hover { color: var(--fg); }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.counter { font-size: .75rem; color: var(--muted); text-align: right; margin-top: 4px; }

/* ---------- Avisos (flash) ---------- */
.flashes { position: fixed; top: 76px; right: 16px; z-index: 60; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.flash {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border); box-shadow: 0 12px 30px -10px rgba(0,0,0,.6);
  font-size: .9rem; animation: flash-in .4s var(--ease);
}
.flash-success { border-color: rgba(52,211,153,.45); }
.flash-success .icon { color: var(--ok); }
.flash-error { border-color: rgba(239,67,67,.5); }
.flash-error .icon { color: var(--danger); }
.flash-info .icon { color: var(--gold); }
.flash.is-hiding { opacity: 0; transform: translateX(20px); transition: all .3s; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.alert { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255,255,255,.02); font-size: .9rem; }
.alert-gold { border-color: rgba(250,204,20,.35); background: rgba(250,204,20,.06); }
.alert-danger { border-color: rgba(239,67,67,.4); background: rgba(239,67,67,.06); }

/* ---------- Telas de autenticação ---------- */
.auth-bg {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(250,204,20,.08), transparent 60%), linear-gradient(180deg, var(--bg-deep), var(--bg) 50%, #141f33);
}
.auth-box { width: 100%; max-width: 448px; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 24px; text-decoration: none; }
.auth-brand img { width: 64px; height: 64px; }
.auth-brand span { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.auth-title { font-size: 1.6rem; text-align: center; }
.auth-sub { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 6px; }
.auth-foot { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 20px; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: .78rem; margin: 20px 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Painel ---------- */
.hello { font-size: clamp(1.8rem, 3.5vw, 2.3rem); }
.hello em { font-style: italic; color: var(--gold); }
.section-head { margin: 40px 0 16px; }
.section-head h2 { font-size: 1.5rem; }
.overall {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  background: linear-gradient(135deg, rgba(250,204,20,.08), var(--card) 55%); border-color: rgba(250,204,20,.25);
}
.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--border) 0); }
.ring span { width: 70px; height: 70px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; color: var(--gold); }
.continue { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(15,23,41,.6); border: 1px solid var(--border); text-decoration: none; transition: border-color .2s; }
.continue:hover { border-color: rgba(250,204,20,.5); }
.continue .play { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--bg); flex: none; }

.phase-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 210px; }
.phase-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c, var(--gold)); opacity: .9; }
.phase-card .emoji { font-size: 1.6rem; line-height: 1; }
.phase-card .num { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c, var(--gold)); font-weight: 600; margin-top: 14px; }
.phase-card h3 { font-size: 1.25rem; margin-top: 4px; }
.phase-card .desc { color: var(--muted); font-size: .86rem; margin-top: 6px; flex: 1; }
.phase-card .progress { margin-top: 16px; }
.phase-card .progress > i { background: var(--c, var(--gold)); }

.page-head { margin-bottom: 28px; }
.page-head .kicker { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--c, var(--gold)); }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); margin-top: 6px; }
.page-head .lead { color: var(--muted); margin-top: 10px; max-width: 46rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

.book-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.book-thumb {
  aspect-ratio: 16 / 9; background: linear-gradient(135deg, #18233a, #0e1628); position: relative; overflow: hidden;
  display: grid; place-items: center; border-bottom: 1px solid var(--border);
}
.book-thumb img { width: 100%; height: 100%; object-fit: cover; }
.book-thumb .ph { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted-2); font-family: var(--serif); font-size: 1.05rem; text-align: center; padding: 0 20px; }
.book-thumb .ph .icon-lg { color: var(--c, var(--gold)); opacity: .8; }
.book-thumb .badge { position: absolute; top: 12px; right: 12px; backdrop-filter: blur(6px); background: rgba(11,17,30,.7); }
.book-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.book-body h3 { font-size: 1.15rem; }
.book-body .desc { color: var(--muted); font-size: .88rem; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-body .verse { color: var(--muted-2); font-size: .8rem; font-style: italic; margin-top: 10px; }
.book-body .foot { margin-top: auto; padding-top: 16px; }

.book-hero { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; }
.book-hero .cover { border-radius: 6px 10px 10px 6px; box-shadow: 0 24px 40px -16px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06); }
.verse-block { margin-top: 18px; padding: 14px 18px; border-left: 3px solid var(--gold); background: rgba(250,204,20,.05); border-radius: 0 10px 10px 0; font-family: var(--serif); font-style: italic; color: #e2e8f0; }
@media (max-width: 720px) { .book-hero { grid-template-columns: 1fr; } .book-hero .cover { width: 140px; } }

.lesson-list { display: grid; gap: 10px; }
.lesson-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  padding: 14px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border);
  text-decoration: none; transition: border-color .2s, background .2s, transform .3s var(--ease);
}
a.lesson-item:hover { border-color: rgba(250,204,20,.45); background: var(--card-hi); transform: translateX(3px); }
.lesson-item .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.lesson-item.done .n { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.45); color: var(--ok); }
.lesson-item.soon { opacity: .6; }
.lesson-item h4 { font-family: var(--sans); font-size: .98rem; font-weight: 600; }
.lesson-item .sub { font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* ---------- Aula ---------- */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--border); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(250,204,20,.08), transparent 60%), var(--bg-deep); }
.player-empty .icon-lg { color: var(--gold); margin: 0 auto 10px; width: 40px; height: 40px; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .lesson-layout { grid-template-columns: 1fr; } }
.lesson-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 20px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--muted); font-size: .86rem; margin-top: 10px; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.side-list .lesson-item { grid-template-columns: auto 1fr; padding: 10px 12px; gap: 12px; }
.side-list .lesson-item .n { width: 28px; height: 28px; font-size: .74rem; }
.side-list .lesson-item h4 { font-size: .88rem; }
.side-list .lesson-item.current { border-color: rgba(250,204,20,.55); background: rgba(250,204,20,.06); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* Comentários */
.comment { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); }
.comment:first-child { border-top: 0; }
.comment .who { font-weight: 600; font-size: .9rem; }
.comment .when { color: var(--muted-2); font-size: .78rem; margin-left: 6px; }
.comment .body { margin-top: 4px; font-size: .94rem; color: #e2e8f0; white-space: pre-wrap; word-wrap: break-word; }
.comment .actions { display: flex; gap: 4px; margin-top: 6px; }
.comment .actions button { background: none; border: 0; color: var(--muted-2); font: inherit; font-size: .78rem; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.comment .actions button:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.comment-edit { display: none; margin-top: 8px; }
.comment.editing .comment-edit { display: block; }
.comment.editing .body, .comment.editing .actions { display: none; }

/* ---------- Páginas públicas ---------- */
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose p, .prose li { color: #cbd5e1; }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--gold); }
.quote { font-family: var(--serif); font-style: italic; font-size: 1.25rem; text-align: center; color: var(--gold-light); padding: 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 32px 0; }
.legal-section { display: grid; grid-template-columns: 36px 1fr; gap: 12px; margin-top: 28px; }
.legal-section .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(250,204,20,.1); color: var(--gold); font-size: .8rem; font-weight: 700; }
.legal-section h2 { font-size: 1.15rem; margin: 3px 0 8px; }
.psy-card { display: flex; flex-direction: column; gap: 14px; }
.psy-top { display: flex; gap: 16px; align-items: center; }
.psy-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(250,204,20,.4); flex: none; background: var(--bg); display: grid; place-items: center; color: var(--gold); }
.pix-card { text-align: center; }
.pix-card .qr { width: 192px; height: 192px; margin: 16px auto; background: #fff; padding: 10px; border-radius: 12px; }
.pix-key { display: inline-block; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; font-family: var(--mono); font-size: .9rem; word-break: break-all; }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 16px; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tabs a:hover { color: var(--fg); }
.tabs a.active { color: var(--gold); border-color: var(--gold); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; padding: 12px 14px; background: rgba(255,255,255,.02); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.cat-phase { margin-top: 28px; }
.cat-phase > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cat-phase > header h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.cat-book { padding: 0; overflow: hidden; }
.cat-book + .cat-book { margin-top: 12px; }
.cat-book > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; flex-wrap: wrap; }
.cat-book > header h3 { font-size: 1.05rem; }
.cat-lessons { border-top: 1px solid var(--border); }
.cat-lesson { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 18px; border-top: 1px solid rgba(43,59,85,.6); font-size: .9rem; }
.cat-lesson:first-child { border-top: 0; }
.cat-lesson .tools { display: flex; gap: 4px; align-items: center; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .icon-lg { margin: 0 auto 10px; color: var(--muted-2); width: 36px; height: 36px; }
.preview-box { margin-top: 12px; }
.preview-box .player { max-width: 560px; }
.stat-grid .card b { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--gold); font-weight: 600; }
.stat-grid .card span { font-size: .8rem; color: var(--muted); }

/* ---------- Rodapé ---------- */
.app-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted-2); font-size: .82rem; background: var(--bg-deep); }
.app-footer .container { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; align-items: center; }
.app-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.app-footer a { color: var(--muted); text-decoration: none; }
.app-footer a:hover { color: var(--gold); }

/* Cookies */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 640px; margin: 0 auto;
  display: none; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border); box-shadow: 0 16px 40px -12px rgba(0,0,0,.7); font-size: .86rem;
}
.cookie-bar.show { display: flex; }
.cookie-bar p { flex: 1; color: var(--muted); }
.cookie-bar b { color: var(--fg); }

/* Animação de entrada */
.fade-up { animation: fade-up .6s ease-out both; }
.fade-up.d1 { animation-delay: .08s; } .fade-up.d2 { animation-delay: .16s; } .fade-up.d3 { animation-delay: .24s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
