/* Orahya Academy — identidade: #03040f · dourado metálico · branco · Playfair Display + Poppins */
:root {
  --bg: #03040f;
  --surface: #0b0d1c;
  --surface-2: #12152a;
  --line: rgba(201,160,74,.18);
  --gold: #C9A04A;
  --gold-light: #E8C97A;
  --gold-grad: linear-gradient(110deg,#8B6C1A 0%,#C9A04A 25%,#F5DFA0 50%,#C9A04A 75%,#8B6C1A 100%);
  --text: #FFFFFF;
  --muted: rgba(255,255,255,.62);
  --radius: 10px;
  --gutter: clamp(16px, 4vw, 56px);
  --topbar-h: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Poppins', system-ui, sans-serif; font-weight: 300; line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.2; }
.gold-text { background: var(--gold-grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .gold-text { animation: none; } html { scroll-behavior: auto; } * { transition: none !important; } }

/* ─── Topbar ─── */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--topbar-h); z-index: 50; display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(3,4,15,.95), rgba(3,4,15,.7)); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.25rem; letter-spacing: .14em; white-space: nowrap; }
.nav { display: flex; gap: 22px; font-size: .88rem; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--gold-light); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--gold); background: rgba(201,160,74,.08); }
.icon-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.search { position: relative; }
.search input { width: 0; opacity: 0; padding: 0; border: 0; background: var(--surface-2); color: var(--text); font: inherit; font-size: .88rem; height: 38px; border-radius: 19px; transition: width .25s, opacity .25s, padding .25s; }
.search.open input { width: min(260px, 52vw); opacity: 1; padding: 0 16px; border: 1px solid var(--line); margin-right: 8px; }
.search-wrap { display: flex; align-items: center; }
.search-results { position: absolute; right: 0; top: 46px; width: min(340px, 90vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-height: 60vh; overflow: auto; display: none; }
.search-results.show { display: block; }
.search-results a { display: block; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.search-results a:last-child { border: 0; }
.search-results a:hover { background: rgba(201,160,74,.08); }
.search-results small { display: block; color: var(--muted); font-size: .74rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-grad); color: #1a1405; font-weight: 500; display: grid; place-items: center; }
.menu { position: relative; }
.menu-panel { position: absolute; right: 0; top: 48px; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: none; }
.menu-panel.show { display: block; }
.menu-panel .who { padding: 8px 12px; font-size: .78rem; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 6px; word-break: break-all; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; font-size: .88rem; }
.menu-panel a:hover, .menu-panel button:hover { background: rgba(201,160,74,.1); color: var(--gold-light); }
.menu-panel .dev { padding: 8px 12px; border-top: 1px solid var(--line); margin-top: 6px; font-size: .75rem; color: var(--muted); }
.menu-panel .dev input { width: 100%; margin: 6px 0; padding: 7px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: inherit; font-size: .8rem; }
@media (max-width: 640px) { .nav { display: none; } .topbar { gap: 12px; } .logo { font-size: 1rem; letter-spacing: .1em; } }

/* ─── Hero ─── */
main { padding-top: var(--topbar-h); min-height: 100vh; }
.hero { position: relative; min-height: min(68vh, 560px); display: flex; align-items: flex-end; padding: 0 var(--gutter) 56px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg.gen { background:
  radial-gradient(ellipse 60% 70% at 78% 30%, rgba(201,160,74,.22), transparent 60%),
  radial-gradient(ellipse 50% 60% at 15% 80%, rgba(40,50,140,.28), transparent 60%),
  linear-gradient(160deg, #060818, #03040f 70%); }
.hero-bg.gen::after { content: ''; position: absolute; right: -8%; top: 8%; width: min(70vh, 560px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(201,160,74,.25); box-shadow: 0 0 0 40px rgba(201,160,74,.03), 0 0 0 90px rgba(201,160,74,.02), inset 0 0 80px rgba(201,160,74,.08); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--bg) 4%, rgba(3,4,15,.55) 45%, rgba(3,4,15,.2)), linear-gradient(to right, rgba(3,4,15,.75), transparent 65%); }
.hero-body { position: relative; z-index: 2; max-width: 620px; }
.eyebrow { font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 12px; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); margin-bottom: 14px; }
/* Banner da página inicial: céu estrelado + figura desvanecida (mesma linguagem do site da Orahya Academy) */
.hero.home { min-height: min(80vh, 680px); }
.hero-bg.cosmos { background:
  radial-gradient(ellipse 65% 85% at 72% 38%, rgba(72,44,150,.38), transparent 68%),
  radial-gradient(ellipse 45% 55% at 8% 95%, rgba(201,160,74,.10), transparent 62%),
  linear-gradient(180deg, #0b0922, #050616 62%, #03040f); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74% 50%; mix-blend-mode: lighten; opacity: .9; }
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 700px) { .hero-art { opacity: .5; } }
.hero.home .hero-body { max-width: 900px; }
.hero.home h1 { display: flex; flex-direction: column; font-size: clamp(2.8rem, 9vw, 6.4rem); line-height: 1.02; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 22px; }
.hero.home h1 .t1 { color: #F5F1EA; font-weight: 500; }
.hero.home h1 .t2 { font-style: italic; font-weight: 500; width: fit-content; padding-right: .12em; }
.hero .hero-sub { display: flex; align-items: center; gap: 14px; font-size: clamp(.72rem, 1.6vw, .92rem); letter-spacing: .34em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 30px; }
.hero .hero-sub i { width: 38px; height: 1px; background: var(--gold); flex: none; }
.hero p { color: var(--muted); font-size: 1rem; margin-bottom: 26px; max-width: 520px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 8px; font-weight: 500; font-size: .92rem; transition: transform .15s, box-shadow .2s, background .2s; }
.btn-gold { background: var(--gold-grad); color: #1a1405; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,160,74,.3); }
.btn-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-done { background: rgba(201,160,74,.14); border: 1px solid var(--gold); color: var(--gold-light); }
.hero .btn + .btn { margin-left: 10px; }

/* ─── Filas ─── */
.section { padding: 36px 0 8px; }
.row-head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); margin-bottom: 14px; }
.row-head h2 { font-size: 1.25rem; font-weight: 500; }
.row-arrows { display: flex; gap: 8px; }
.row-arrows .icon-btn { width: 34px; height: 34px; }
.row-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px var(--gutter) 18px; scrollbar-width: none; }
.row-track::-webkit-scrollbar { display: none; }
@media (hover: none) { .row-arrows { display: none; } }

/* Capa vertical (formações) */
.card-v { flex: 0 0 clamp(170px, 20vw, 240px); scroll-snap-align: start; }
.card-v-img { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .25s, border-color .25s, box-shadow .25s; }
.card-v:hover .card-v-img { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 34px rgba(0,0,0,.6), 0 0 0 1px rgba(201,160,74,.25); }
.card-v-img > img { width: 100%; height: 100%; object-fit: cover; }
.card-v.locked .card-v-img > img, .card-v.locked .cover-gen { filter: grayscale(.85) brightness(.55); }
.card-v-title { margin-top: 10px; font-size: .9rem; color: var(--text); }
.card-v-sub { font-size: .76rem; color: var(--muted); }
.lock { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.lock span { width: 48px; height: 48px; border-radius: 50%; background: rgba(3,4,15,.75); border: 1px solid var(--gold); display: grid; place-items: center; }
.lock svg { width: 20px; height: 20px; stroke: var(--gold-light); fill: none; stroke-width: 1.8; }
.pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.12); }
.pbar i { display: block; height: 100%; background: var(--gold-grad); }

/* Capa gerada (quando ainda não há imagem) */
.cover-gen { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 16px; gap: 6px;
  background: radial-gradient(ellipse 90% 55% at 50% 22%, rgba(201,160,74,.3), transparent 70%), linear-gradient(170deg, #0d1030, #03040f 75%); }
.cover-gen::before { content: ''; position: absolute; left: 50%; top: 16%; width: 62%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(232,201,122,.55); box-shadow: 0 0 0 14px rgba(201,160,74,.07), 0 0 40px rgba(201,160,74,.25); }
.cg-sub { position: relative; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.cg-title { position: relative; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.35rem; line-height: 1.15; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Cartão horizontal (aulas) */
.card-h { flex: 0 0 clamp(240px, 26vw, 330px); scroll-snap-align: start; }
.card-h-img { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); transition: transform .25s, border-color .25s; }
.card-h:hover .card-h-img { transform: translateY(-3px); border-color: var(--gold); }
.card-h-img > img { width: 100%; height: 100%; object-fit: cover; }
.card-h.locked .card-h-img > img { filter: grayscale(.8) brightness(.5); }
.thumb-gen { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(201,160,74,.2), transparent 65%), linear-gradient(160deg, #10132b, #070914); }
.thumb-gen svg { width: 34px; height: 34px; stroke: var(--gold); fill: none; stroke-width: 1.4; opacity: .8; }
.badge { position: absolute; top: 8px; left: 8px; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; background: rgba(3,4,15,.8); border: 1px solid var(--line); color: var(--gold-light); }
.check { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; }
.check svg { width: 13px; height: 13px; stroke: #1a1405; fill: none; stroke-width: 3; }
.card-h-title { margin-top: 9px; font-size: .88rem; line-height: 1.4; }
.card-h-meta { font-size: .74rem; color: var(--muted); }
.module-desc { padding: 0 var(--gutter); margin: -6px 0 12px; color: var(--muted); font-size: .85rem; max-width: 760px; }
.empty { padding: 8px var(--gutter) 22px; color: var(--muted); font-size: .88rem; }

/* ─── Aula ─── */
.lesson-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding: 28px var(--gutter) 64px; align-items: start; }
@media (max-width: 1000px) { .lesson-wrap { grid-template-columns: 1fr; } }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--gold-light); }
.player { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .soon { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 20px; background: radial-gradient(circle at 50% 40%, rgba(201,160,74,.14), transparent 60%), #070914; }
.lesson-title { font-size: clamp(1.4rem, 3vw, 2rem); margin: 22px 0 6px; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.lesson-desc { color: var(--muted); max-width: 760px; white-space: pre-line; }
.materials { margin-top: 24px; }
.materials h3 { font-size: 1.05rem; margin-bottom: 10px; font-weight: 500; }
.materials a { display: block; padding: 11px 16px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; font-size: .88rem; }
.materials a:hover { border-color: var(--gold); color: var(--gold-light); }
.side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: calc(var(--topbar-h) + 16px); max-height: calc(100vh - var(--topbar-h) - 32px); overflow-y: auto; }
@media (max-width: 1000px) { .side { position: static; max-height: none; } }
.side h3 { padding: 16px 18px 6px; font-size: 1rem; font-weight: 500; }
.side .side-prog { padding: 0 18px 12px; font-size: .76rem; color: var(--muted); }
.side-mod { padding: 10px 18px 4px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); border-top: 1px solid var(--line); }
.side-lesson { display: flex; gap: 10px; align-items: flex-start; padding: 9px 18px; font-size: .84rem; }
.side-lesson:hover { background: rgba(201,160,74,.07); }
.side-lesson.current { background: rgba(201,160,74,.14); color: var(--gold-light); }
.dot { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; border: 1px solid var(--muted); display: grid; place-items: center; }
.dot.on { background: var(--gold-grad); border-color: transparent; }
.dot svg { width: 10px; height: 10px; stroke: #1a1405; fill: none; stroke-width: 3; }
.side-lesson.off { opacity: .5; }

/* ─── Avisos ─── */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; z-index: 80; max-width: min(440px, 92vw);
  background: var(--surface-2); border: 1px solid var(--gold); border-radius: 10px; padding: 14px 20px; font-size: .88rem; transition: opacity .25s, transform .25s; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.toast a { color: var(--gold-light); text-decoration: underline; }
.loading, .error-box { padding: 120px var(--gutter); text-align: center; color: var(--muted); }

/* ─── Fase 2: comentários, quiz, certificado, troféu ─── */
.muted { color: var(--muted); font-size: .88rem; }
.page-narrow { max-width: 760px; margin: 0 auto; padding: 32px var(--gutter) 80px; }
.sm { padding: 8px 18px; font-size: .82rem; }

.comments { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 760px; }
.comments h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: 14px; }
.comment-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.comment-form textarea, .name-form input { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: inherit; font-size: .92rem; padding: 12px 14px; resize: vertical; }
.comment-form textarea:focus, .name-form input:focus { outline: none; border-color: var(--gold); }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment.reply { margin-left: 28px; padding-left: 16px; border-left: 2px solid var(--line); border-bottom: 0; }
.comment.team { background: linear-gradient(90deg, rgba(201,160,74,.08), transparent); border-radius: 8px; padding-left: 12px; }
.c-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.c-head small { color: var(--muted); font-size: .74rem; }
.c-team { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; padding: 2px 9px; border-radius: 20px; border: 1px solid var(--gold); color: var(--gold-light); }
.comment p { margin: 6px 0; white-space: pre-line; word-break: break-word; font-size: .92rem; }
.c-actions { display: flex; gap: 16px; }
.c-actions button { font-size: .76rem; color: var(--muted); }
.c-actions button:hover { color: var(--gold-light); }
.reply-form { margin: 0 0 12px 28px; }

.quiz-link { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px var(--gutter) 18px; padding: 14px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s; }
.quiz-link:hover { border-color: var(--gold); }
.quiz-link span { font-weight: 400; }
.quiz-link small { color: var(--muted); flex: 1; }
.quiz-link b { color: var(--gold-light); font-weight: 500; font-size: .86rem; }
fieldset.q { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; background: var(--surface); }
fieldset.q legend { padding: 0 8px; font-family: 'Playfair Display', serif; font-size: 1.05rem; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.opt:hover { background: rgba(201,160,74,.07); }
.opt input { margin-top: 5px; accent-color: #C9A04A; }
.opt.is-correct { border-color: var(--gold); background: rgba(201,160,74,.14); }
fieldset.q.wrong { border-color: rgba(255,155,155,.4); }
fieldset.q.right { border-color: var(--gold); }
.q-note { margin-top: 10px; font-size: .85rem; color: var(--gold-light); }
.quiz-score { text-align: center; padding: 34px 0; }
.quiz-score .gold-text { font-family: 'Playfair Display', serif; font-size: 3.4rem; font-weight: 600; }
.quiz-score p { margin: 6px 0 18px; color: var(--muted); }
.name-form { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.name-form input { flex: 1; min-width: 220px; }

.trophy-panel { min-width: 300px; max-height: 70vh; overflow-y: auto; }
.trophy-panel .who b { color: var(--text); font-weight: 500; }
.ach { display: flex; gap: 12px; padding: 9px 12px; opacity: .5; }
.ach.on { opacity: 1; }
.ach b { display: block; font-weight: 400; font-size: .86rem; }
.ach small { color: var(--muted); font-size: .74rem; }
.ach.on b { color: var(--gold-light); }
.ach-dot { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--muted); display: grid; place-items: center; }
.ach.on .ach-dot { background: var(--gold-grad); border-color: transparent; }
.ach-dot svg { width: 13px; height: 13px; stroke: var(--muted); fill: none; stroke-width: 2.2; }
.ach.on .ach-dot svg { stroke: #1a1405; stroke-width: 3; }

.cert-actions { display: flex; gap: 10px; justify-content: center; padding: 24px var(--gutter) 6px; }
.cert { padding: 14px var(--gutter) 60px; display: flex; justify-content: center; }
.cert-frame { position: relative; width: min(100%, 1040px); aspect-ratio: 297 / 210; padding: 5% 7%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2.2%;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(72,44,150,.28), transparent 70%), linear-gradient(180deg, #0b0922, #03040f);
  border: 1px solid var(--gold); outline: 1px solid rgba(201,160,74,.35); outline-offset: -14px; border-radius: 4px; container-type: inline-size; }
.cert-brand { font-family: 'Playfair Display', serif; letter-spacing: .4em; font-size: 2.4cqw; color: var(--gold-light); }
.cert-kicker { font-family: 'Playfair Display', serif; font-style: italic; font-size: 6cqw; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cert-line { font-size: 1.7cqw; color: var(--muted); }
.cert-line b { color: var(--text); font-weight: 500; }
.cert-name { font-family: 'Playfair Display', serif; font-size: 5.2cqw; line-height: 1.1; color: #F5F1EA; border-bottom: 1px solid rgba(201,160,74,.45); padding: 0 4cqw .6cqw; }
.cert-title { font-family: 'Playfair Display', serif; font-style: italic; font-size: 3.6cqw; letter-spacing: .06em; }
.cert-foot { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; margin-top: 2cqw; font-size: 1.5cqw; }
.cert-foot span { display: block; font-size: .8em; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-top: 2px; }
.cert-foot > div:first-child span, .cert-foot > div:last-child span { margin: 0 0 2px; }
.cert-sign i { display: block; width: 17cqw; height: 1px; background: var(--gold); margin: 0 auto 6px; }
.cert-verify { position: absolute; bottom: 2.4%; left: 0; right: 0; font-size: 1.05cqw; color: var(--muted); letter-spacing: .04em; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  .topbar, .no-print, .toast { display: none !important; }
  html, body { background: #03040f !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  main { padding: 0; }
  .cert { padding: 0; }
  .cert-frame { width: 297mm; height: 210mm; aspect-ratio: auto; border-radius: 0; }
}

/* ─── Biblioteca Cósmica (cartão largo na página inicial) ─── */
.lib-card { position: relative; display: block; margin: 0 var(--gutter) 18px; min-height: 190px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(ellipse 50% 90% at 88% 30%, rgba(201,160,74,.22), transparent 65%), radial-gradient(ellipse 60% 80% at 10% 100%, rgba(72,44,150,.3), transparent 70%), linear-gradient(160deg, #0d1030, #03040f 80%);
  transition: border-color .25s, transform .25s; }
.lib-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.lib-card.locked { filter: grayscale(.7) brightness(.7); }
.lib-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.lib-body { position: relative; z-index: 1; padding: 32px clamp(20px, 4vw, 44px); max-width: 640px; }
.lib-body h3 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 4px 0 8px; }
.lib-body p { color: var(--muted); margin-bottom: 18px; }
.lib-card .lock { justify-content: end; padding-right: 40px; }

/* ─── Sala de Encontros ─── */
.room { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding: 28px var(--gutter) 64px; align-items: start; }
@media (max-width: 1000px) { .room { grid-template-columns: 1fr; } }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.live-badge { position: absolute; top: 14px; left: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 20px; background: rgba(3,4,15,.82); border: 1px solid #e5484d; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.live-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.unmute { position: absolute; right: 14px; top: 12px; z-index: 3; }
.room-wait { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: var(--muted); background: rgba(3,4,15,.7); }
.cc { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); z-index: 3; max-width: 86%; text-align: center; padding: 8px 16px; border-radius: 8px; background: rgba(3,4,15,.85); font-size: clamp(.9rem, 1.8vw, 1.2rem); opacity: 0; transition: opacity .3s; pointer-events: none; }
.cc.show { opacity: 1; } .cc.interim { color: var(--muted); }
.chat-side { display: flex; flex-direction: column; }
.rchat { flex: 1; min-height: 240px; max-height: 52vh; overflow-y: auto; padding: 4px 16px; }
.rmsg { padding: 7px 0; font-size: .86rem; word-break: break-word; }
.rmsg b { color: var(--gold-light); font-weight: 400; margin-right: 6px; }
.rmsg.team { background: linear-gradient(90deg, rgba(201,160,74,.1), transparent); margin: 0 -8px; padding: 7px 8px; border-radius: 6px; }
.rmsg .c-team { margin-right: 6px; }
.rform { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.rform input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; font-size: .88rem; padding: 8px 12px; }
.rform input:focus { outline: none; border-color: var(--gold); }
.idle-card { text-align: center; padding: 48px 24px; margin: 20px 0 32px; border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(ellipse 60% 90% at 50% 0%, rgba(201,160,74,.12), transparent 70%), var(--surface); }
.idle-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); margin: 0 auto 14px; box-shadow: 0 0 0 8px rgba(201,160,74,.12), 0 0 0 18px rgba(201,160,74,.05); }
.idle-card small { color: var(--muted); }
.room-h { font-size: 1.1rem; font-weight: 500; margin: 8px 0 12px; }
.encontro { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: var(--surface); }
.encontro small { display: block; color: var(--muted); }
.encontro span { color: var(--gold-light); font-size: .84rem; text-align: right; text-transform: capitalize; }

[hidden] { display: none !important; }

/* ─── Pré-visualização "ver como aluna" ─── */
.preview-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  max-width: 94vw; padding: 10px 18px; border-radius: 40px; background: rgba(11,13,28,.96); border: 1px solid var(--gold); box-shadow: 0 10px 40px rgba(0,0,0,.6); font-size: .84rem; }
.preview-bar b { color: var(--gold-light); font-weight: 500; }
.preview-bar button { padding: 6px 14px; border-radius: 20px; border: 1px solid var(--line); font-size: .78rem; }
.preview-bar button:hover { border-color: var(--gold); }
.preview-bar #pvBack { background: var(--gold-grad); color: #1a1405; border-color: transparent; }
