:root {
  --bg: #0e0e12;
  --bg-2: #17171d;
  --bg-3: #22222b;
  --text: #f4f4f6;
  --muted: #a3a3b2;
  --brand: #ff4d2e;
  --brand-2: #ffb020;
  --free: #22c55e;
  --custom: #a78bfa;
  --radius: 8px;
  --gutter: clamp(16px, 4vw, 56px);
  --card-w: clamp(150px, 17vw, 260px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: linear-gradient(180deg, rgba(0,0,0,.8), transparent);
  transition: background .3s;
}
.nav.solid { background: rgba(14,14,18,.97); box-shadow: 0 2px 12px rgba(0,0,0,.4); }
.logo { display: flex; align-items: center; gap: 4px; font-family: var(--display); font-size: 30px; letter-spacing: 1px; white-space: nowrap; }
.logo.small { font-size: 24px; justify-content: center; }
.logo-key { font-size: .8em; margin-right: 4px; }
.logo-e { color: var(--text); }
.logo-flix { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 20px; font-size: 14px; }
.nav-links a { color: #d6d6de; transition: color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #fff; font-weight: 600; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 140%; left: -16px; display: none;
  grid-template-columns: repeat(2, minmax(170px, 1fr)); gap: 2px;
  background: rgba(14,14,18,.97); border: 1px solid #333; border-radius: var(--radius); padding: 10px;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: grid; }
.dropdown-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.dropdown-menu a { padding: 8px 10px; border-radius: 6px; }
.dropdown-menu a:hover { background: var(--bg-3); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-btn { background: none; border: 0; padding: 4px; display: grid; place-items: center; }
.search { display: flex; align-items: center; border: 1px solid transparent; transition: all .25s; border-radius: 4px; }
.search input { width: 0; padding: 0; border: 0; background: transparent; color: #fff; outline: none; transition: width .25s, padding .25s; font-size: 14px; }
.search.open { border-color: #fff; background: rgba(0,0,0,.75); }
.search.open input { width: 220px; padding: 6px 8px 6px 0; }
.lang { background: rgba(0,0,0,.5); color: #fff; border: 1px solid #555; border-radius: 4px; padding: 5px 6px; font-weight: 600; }
.btn-login { background: var(--brand); padding: 7px 14px; border-radius: 4px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.btn-login:hover { filter: brightness(1.1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(86vh, 760px);
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(90px, 14vh, 160px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background: radial-gradient(circle at 75% 35%, var(--c1), transparent 55%), linear-gradient(135deg, var(--c2), #000 85%); }
.hero-bg .hero-icon { position: absolute; right: 8%; top: 18%; font-size: clamp(140px, 26vw, 380px); filter: drop-shadow(0 20px 60px rgba(0,0,0,.6)); opacity: .92; animation: float 7s ease-in-out infinite; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, var(--bg)); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 55%, transparent); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-2); }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 8vw, 104px); line-height: .92; margin: 10px 0 14px; letter-spacing: 1px; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.hero p { font-size: clamp(15px, 1.5vw, 19px); line-height: 1.5; color: #e5e5ea; margin: 0 0 22px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 14px; color: #ddd; margin-bottom: 22px; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-2deg); } }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 6px; padding: 11px 26px; font-size: 17px; font-weight: 700; transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.97); }
.btn-play { background: #fff; color: #000; }
.btn-unlock { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; }
.btn-info { background: rgba(109,109,120,.65); color: #fff; }
.btn-ghost { background: transparent; border: 2px solid #777; color: #fff; padding: 9px 18px; }
.btn-class { background: rgba(34,197,94,.18); color: #fff; border: 2px solid #22c55e; }
.btn-class:hover { background: rgba(34,197,94,.3); }
.btn-round { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; border: 2px solid #888; background: rgba(42,42,50,.7); font-size: 22px; }
.btn-round.on { border-color: #fff; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; }
.badge.free { background: var(--free); color: #04210f; }
.badge.premium { background: rgba(0,0,0,.65); color: var(--brand-2); border: 1px solid rgba(255,176,32,.5); }
.badge.custom { background: var(--custom); color: #1b1035; }
.badge.exam { background: #fde047; color: #1a1400; }
.badge.soon { background: rgba(255,255,255,.14); color: #fff; }
.keys { letter-spacing: 1px; }
.keys .off { opacity: .25; }

/* ---------- Rows ---------- */
main { position: relative; }
.rows { position: relative; z-index: 3; margin-top: -70px; padding-bottom: 40px; }
.page { padding: 100px 0 40px; }
.row { margin: 0 0 34px; }
.row-head { display: flex; align-items: baseline; gap: 12px; padding: 0 var(--gutter); margin-bottom: 10px; }
.row-title { font-size: clamp(17px, 1.6vw, 22px); font-weight: 700; margin: 0; }
.row-link { font-size: 13px; color: var(--brand-2); opacity: 0; transition: opacity .2s; }
.row:hover .row-link { opacity: 1; }
.row-wrap { position: relative; }
.scroller {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 14px var(--gutter) 26px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.arrow {
  position: absolute; top: 14px; bottom: 26px; width: calc(var(--gutter) - 6px); min-width: 34px; z-index: 6;
  border: 0; background: rgba(14,14,18,.6); font-size: 34px; opacity: 0; transition: opacity .2s;
}
.arrow.left { left: 0; } .arrow.right { right: 0; }
.row-wrap:hover .arrow { opacity: 1; }
.arrow:hover { background: rgba(14,14,18,.85); }
@media (hover: none) { .arrow { display: none; } }

/* ---------- Cards ---------- */
.card {
  position: relative; flex: 0 0 var(--card-w); aspect-ratio: 16/10; scroll-snap-align: start;
  border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; text-align: left;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  transition: transform .25s ease, box-shadow .25s ease; z-index: 1;
}
.card:hover, .card:focus-visible { transform: scale(1.08); z-index: 5; box-shadow: 0 12px 30px rgba(0,0,0,.7); outline: none; }
.card:focus-visible { box-shadow: 0 0 0 3px #fff, 0 12px 30px rgba(0,0,0,.7); }
.card-pattern { position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.25), transparent 45%), repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 12px); }
.card-icon { position: absolute; right: 8%; top: 10%; font-size: calc(var(--card-w) * .3); filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); transition: transform .3s; }
.card:hover .card-icon { transform: scale(1.1) rotate(-6deg); }
.card-shade { position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.85)); }
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.card-text { position: absolute; left: 10px; right: 10px; bottom: 9px; }
.card-loc, .card-title { display: block; }
.card-loc { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.8); }
.card-title { font-family: var(--display); font-size: calc(var(--card-w) * .105); line-height: 1; letter-spacing: .5px; margin-top: 2px; }
.card-lock { position: absolute; right: 8px; bottom: 8px; font-size: 14px; opacity: .9; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr)); gap: 26px 10px; padding: 0 var(--gutter); }
.grid .card { width: 100%; }
.page-head { padding: 0 var(--gutter); margin-bottom: 26px; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 64px); margin: 0; letter-spacing: 1px; }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.empty { padding: 30px var(--gutter); color: var(--muted); font-size: 17px; }

/* ---------- Custom banner ---------- */
.custom-banner {
  margin: 10px var(--gutter) 40px; border-radius: 14px; overflow: hidden; position: relative;
  background: radial-gradient(circle at 85% 30%, rgba(167,139,250,.45), transparent 50%), linear-gradient(120deg, #1b1035, #0f2a2e);
  padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center;
  border: 1px solid rgba(167,139,250,.3);
}
.custom-banner h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.5vw, 54px); margin: 8px 0 10px; letter-spacing: 1px; line-height: 1; }
.custom-banner p { color: #d9d6ea; line-height: 1.55; margin: 0 0 20px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; background: rgba(0,0,0,.3); padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.steps li::before { content: counter(s); flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--custom); color: #1b1035; font-weight: 800; }
.price-tag { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.price-tag strong { color: #fff; font-size: 22px; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; padding: 0 var(--gutter); align-items: stretch; }
.plan { position: relative; background: var(--bg-2); border: 1px solid #2c2c36; border-radius: 14px; padding: 26px 22px; display: flex; flex-direction: column; }
.plan.hl { border: 2px solid var(--brand); background: linear-gradient(180deg, rgba(255,77,46,.12), var(--bg-2) 40%); }
.plan-pop { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .desc { color: var(--muted); font-size: 14px; margin: 4px 0 18px; min-height: 2.6em; }
.plan .price { font-size: 34px; font-weight: 800; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan .yearly { font-size: 13px; color: var(--brand-2); margin-top: 4px; min-height: 1.3em; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; font-size: 14px; flex: 1; }
.plan li::before { content: "✓"; color: var(--free); font-weight: 800; margin-right: 8px; }
.plan .btn { justify-content: center; width: 100%; font-size: 15px; }
.plan-notes { padding: 26px var(--gutter) 0; display: grid; gap: 8px; color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.72); overflow-y: auto; padding: 40px 16px; display: flex; justify-content: center; align-items: flex-start; animation: fade .2s; }
.modal { width: min(880px, 100%); background: var(--bg-2); border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 20px 80px rgba(0,0,0,.8); animation: pop .25s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #181818; font-size: 20px; }
.modal-banner { position: relative; aspect-ratio: 16/7.5; background: radial-gradient(circle at 75% 40%, var(--c1), transparent 60%), linear-gradient(135deg, var(--c2), #000); display: flex; align-items: flex-end; padding: 28px clamp(18px, 4vw, 44px); }
.modal-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--bg-2)); }
.modal-banner .m-icon { position: absolute; right: 7%; top: 10%; font-size: clamp(90px, 16vw, 170px); filter: drop-shadow(0 14px 40px rgba(0,0,0,.6)); }
.modal-banner .m-head { position: relative; z-index: 2; }
.modal-banner h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6vw, 64px); margin: 6px 0 16px; line-height: .95; letter-spacing: 1px; }
.modal-body { padding: 4px clamp(18px, 4vw, 44px) 36px; display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
.modal-body p { line-height: 1.6; margin: 0 0 14px; font-size: 16px; }
.facts { font-size: 14px; color: var(--muted); display: grid; gap: 10px; }
.facts b { color: #fff; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--bg-3); color: #ddd; }
a.chip:hover { background: #33333f; }
.notice { border-left: 3px solid var(--brand-2); background: rgba(255,176,32,.08); padding: 10px 14px; border-radius: 0 6px 6px 0; font-size: 14px; color: #e9e2d0; margin: 0 0 16px; }
.notice.custom { border-color: var(--custom); background: rgba(167,139,250,.1); color: #e3dcff; }
.modal h3 { margin: 6px clamp(18px, 4vw, 44px) 14px; font-size: 21px; }
.similar { padding: 0 clamp(18px, 4vw, 44px) 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; --card-w: 200px; }
.similar .card { width: 100%; }
.similar .card:hover { transform: scale(1.04); }

/* ---------- Capas com imagem ---------- */
.card.has-cover { background: var(--cover) center/cover no-repeat, var(--c2); }
.card.has-cover .card-pattern { display: none; }
.card.has-cover .card-icon { display: none; }
.hero.has-cover .hero-bg { background: var(--cover) center 35%/cover no-repeat; }
.hero.has-cover .hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, transparent 30%, rgba(0,0,0,.35)); }
.modal-banner.has-cover { background: var(--cover) center 35%/cover no-repeat; }

/* ---------- Receita interdisciplinar ---------- */
.recipe-bar { display: flex; gap: 2px; height: 4px; position: absolute; left: 0; right: 0; bottom: 0; }
.recipe-bar span:first-child { border-radius: 0; }
.recipe-bar.big { position: static; height: 10px; border-radius: 99px; overflow: hidden; margin: 8px 0 10px; }
.recipe { margin: 4px 0 18px; }
.recipe-label { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.recipe-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.recipe-item { display: inline-flex; align-items: center; gap: 6px; color: #ddd; }
.recipe-item:hover { color: #fff; text-decoration: underline; }
.recipe-item i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.recipe-item b { color: #fff; }
.focus { font-size: 14px; color: #ddd; }
.focus b { color: #fff; }
.badge.pct { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }

/* ---------- Filtros (Explorar) ---------- */
.filters { margin: 0 var(--gutter) 22px; padding: 16px 18px; background: var(--bg-2); border: 1px solid #2a2a33; border-radius: 12px; display: grid; gap: 12px; position: relative; }
.frow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.flabel { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); min-width: 92px; }
.fchip { border: 1px solid #3a3a46; background: transparent; border-radius: 99px; padding: 6px 12px; font-size: 13px; color: #ddd; transition: all .15s; }
.fchip small { color: var(--muted); margin-left: 4px; }
.fchip:hover { border-color: #888; color: #fff; }
.fchip.on { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.fchip.on small { color: #444; }
.fclear { justify-self: start; background: none; border: 0; color: var(--brand-2); font-size: 14px; padding: 2px 0; }

/* ---------- Adicional ---------- */
.addon { margin: 24px var(--gutter) 0; padding: 24px; border-radius: 14px; border: 1px solid rgba(167,139,250,.4);
  background: radial-gradient(circle at 0% 50%, rgba(167,139,250,.25), transparent 45%), var(--bg-2);
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.addon-icon { font-size: 54px; }
.addon h3 { margin: 8px 0 6px; font-size: 22px; }
.addon p { margin: 0; color: #cfcbe0; line-height: 1.5; font-size: 14px; }
.addon-price { text-align: right; display: grid; gap: 6px; justify-items: end; }
.addon-price .price { font-size: 30px; font-weight: 800; }
.addon-price .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.addon-price .yearly { font-size: 13px; color: var(--brand-2); max-width: 260px; }
@media (max-width: 760px) {
  .addon { grid-template-columns: 1fr; text-align: left; }
  .addon-price { text-align: left; justify-items: start; }
  .flabel { min-width: 100%; }
}

/* ---------- Contas, formulários e turmas ---------- */
.btn-login { border: 0; color: #fff; }
.btn-join { border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.4); color: #fff; padding: 6px 12px; border-radius: 4px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.btn-join:hover { border-color: #fff; }
.modal.narrow { width: min(460px, 100%); }
.box-pad { padding: 30px clamp(18px, 4vw, 34px) 26px; }
.box-pad h2 { margin: 0 0 8px; font-size: 24px; padding-right: 36px; }
.box-pad .muted { font-size: 14px; line-height: 1.5; }
.form { display: grid; gap: 14px; margin-top: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input:not([type]), .form input[inputmode] {
  background: var(--bg-3); border: 1px solid #3a3a46; color: #fff; border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 16px; outline: none; }
.form input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(255,176,32,.2); }
.form .code-input { font-size: 30px; letter-spacing: 8px; text-align: center; font-weight: 800; }
.roles { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.roles legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.roles label { display: flex; align-items: center; gap: 10px; font-weight: 500; background: var(--bg-3); padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.form-err { color: #ff8a7a; min-height: 1.2em; margin: 0; font-size: 14px; }
.form .btn { justify-content: center; width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.switch { text-align: center; margin: 14px 0 6px; }
.linkbtn { background: none; border: 0; color: var(--brand-2); font-size: 14px; text-decoration: underline; }
.small { font-size: 13px !important; }

.class-panel { padding: 0 var(--gutter); }
.back { color: var(--muted); font-size: 14px; display: inline-block; margin-bottom: 16px; }
.back:hover { color: #fff; }
.page-title { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 56px); margin: 0; letter-spacing: 1px; }
.class-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px;
  background: var(--bg-2); border: 1px solid #2a2a33; border-radius: 14px; padding: clamp(18px, 3vw, 30px); }
.class-head > div:first-child { flex: 1 1 280px; min-width: 0; }
.join-url { display: inline-block; color: #fff; font-size: clamp(18px, 2.6vw, 28px); background: #000; border: 2px solid var(--brand); border-radius: 10px; padding: 4px 12px; margin: 4px 0; word-break: break-all; }
.big-code { font-family: var(--display); font-size: clamp(56px, 11vw, 130px); line-height: 1; letter-spacing: 6px; white-space: nowrap; margin: 8px 0 12px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-code.off { background: none; color: #555; -webkit-text-fill-color: #555; }
.qr-side { display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 240px; }
.qr { width: 220px; height: 220px; background: #fff; border-radius: 12px; padding: 6px; display: grid; place-items: center; }
.qr:empty::after { content: "…"; color: #999; }
.qr svg { width: 100%; height: 100%; }
@media (max-width: 760px) { .qr-side { max-width: none; width: 100%; } .qr { width: 180px; height: 180px; } }
@media (max-width: 560px) { .page { padding-top: 150px; } }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--bg-3); color: #ddd; white-space: nowrap; }
.pill.live { background: rgba(34,197,94,.15); color: #4ade80; }
.pill.ok { background: rgba(255,176,32,.15); color: var(--brand-2); }
.table-wrap { overflow-x: auto; border: 1px solid #2a2a33; border-radius: 12px; }
table.teams { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.teams th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 12px 14px; background: var(--bg-2); }
.teams td { padding: 12px 14px; border-top: 1px solid #23232c; vertical-align: middle; }
.prog { width: 90px; height: 8px; border-radius: 99px; background: var(--bg-3); overflow: hidden; display: inline-block; margin-right: 8px; vertical-align: middle; }
.prog span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.class-list { display: grid; gap: 8px; margin-bottom: 18px; }
.class-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--bg-2); border: 1px solid #2a2a33; border-radius: 12px; padding: 14px 16px; }
.class-item:hover { border-color: #555; }
.ci-icon { font-size: 30px; }
@media (max-width: 560px) {
  .btn-login { display: inline-block; padding: 6px 10px; font-size: 13px; }
  .btn-join { padding: 5px 8px; font-size: 13px; }
  .nav-right { gap: 6px; width: 100%; order: 2; margin-left: 0; justify-content: flex-end; flex-wrap: wrap; row-gap: 6px; }
  .btn-login, .btn-join { white-space: nowrap; }
  .lang { padding: 4px 2px; }
  .logo { font-size: 21px; }
  .search.open input { width: 110px; }
}

/* ---------- Toast & footer ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 200; background: #fff; color: #000; padding: 12px 20px; border-radius: 8px; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.5); max-width: calc(100% - 32px); text-align: center; }
.footer { padding: 40px var(--gutter) 50px; text-align: center; color: #bbb; font-size: 14px; border-top: 1px solid #222; margin-top: 30px; }
.footer p { margin: 10px auto 0; max-width: 560px; }

/* ---------- Responsive ---------- */
/* O menu tem muitos links: abaixo de 1700 px eles vão para uma segunda linha e os botões nunca saem da tela */
@media (max-width: 1700px) {
  .nav { gap: 10px 14px; flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 2px; }
  .dropdown-menu { position: fixed; left: 16px; right: 16px; top: 96px; grid-template-columns: 1fr 1fr; }
  .page { padding-top: 130px; }
}
@media (max-width: 900px) {
  .custom-banner { grid-template-columns: 1fr; }
  .modal-body { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --card-w: 42vw; }
  .logo { font-size: 24px; }
  .search.open input { width: 130px; }
  .hero { min-height: 78vh; padding-top: 140px; }
  .hero-bg .hero-icon { right: -6%; top: 16%; opacity: .55; }
  .btn { padding: 10px 18px; font-size: 15px; }
  .rows { margin-top: -40px; }
  .page { padding-top: 130px; }
  .modal-backdrop { padding: 0; }
  .modal { border-radius: 0; min-height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Ajustes de revisão (celular) ---------- */
/* O espaço do topo acompanha a altura real do menu (medida pelo app.js em --nav-h) */
.page { padding-top: calc(var(--nav-h, 100px) + 24px) !important; }
.hero { padding-top: calc(var(--nav-h, 100px) + 40px) !important; }
/* Telas de toque: os submenus abrem por "passar o mouse", então ficam desligados;
   o link principal leva direto à página */
@media (hover: none) { .dropdown-menu { display: none !important; } }
@media (max-width: 560px) {
  /* Menu rola junto com a página (não ocupa a tela o tempo todo) e mostra todos os links */
  .nav { position: absolute; background: linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,.55)); }
  .nav.solid { background: linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,.55)); box-shadow: none; }
  .nav-links { flex-wrap: wrap; overflow: visible; gap: 8px 14px; font-size: 13.5px; }
  /* Detalhes da sala: salas parecidas em 2 colunas, para a janela não ficar enorme */
  .similar { grid-template-columns: 1fr 1fr; gap: 8px; --card-w: 160px; }
  .modal h3 { font-size: 18px; }
  .modal-body { padding-bottom: 20px; }
}

/* ---------- Identidade visual própria (v14) ----------
   Fonte Sora em letras normais, logo com selo de chave, paleta azul-noite + dourado + verde-água,
   botões arredondados e cartões que sobem com contorno dourado. */
:root {
  --display: "Sora", "Inter", system-ui, sans-serif;
  --bg: #0b1120; --bg-2: #131b2e; --bg-3: #1d2740;
  --brand: #f6b93b; --brand-2: #ffd77a; --accent: #3ee0c6;
  --on-brand: #1a1200;
}
.nav.solid, .dropdown-menu { background: rgba(11,17,32,.97); }
.arrow { background: rgba(11,17,32,.6); }
.arrow:hover { background: rgba(11,17,32,.88); }

/* Logo */
.logo { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -.5px; gap: 0; }
.logo.small { font-size: 21px; }
.logo-key { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: 9px; border-radius: 9px;
  background: var(--bg-3); border: 2px solid var(--brand); font-size: .74em; box-shadow: 0 2px 12px rgba(246,185,59,.25); }
.logo-flix { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent); font-weight: 600; margin-left: 4px; }

/* Títulos */
.hero-tag { color: var(--accent); }
.hero h1 { font-weight: 800; font-size: clamp(36px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -1.5px; }
.page-head h1, .page-title { font-weight: 800; font-size: clamp(28px, 4.2vw, 46px); letter-spacing: -1px; line-height: 1.1; }
.custom-banner h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -1px; line-height: 1.1; }
.modal-banner h2 { font-weight: 800; font-size: clamp(26px, 4.4vw, 46px); letter-spacing: -1px; line-height: 1.08; }
.card-title { font-weight: 700; font-size: calc(var(--card-w) * .076); line-height: 1.15; letter-spacing: -.2px; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.big-code { font-weight: 800; letter-spacing: 6px; }

/* Botões */
.btn, .btn-login, .btn-join { border-radius: 999px; }
.btn-play { background: var(--brand); color: var(--on-brand); }
.btn-unlock, .btn-login, .plan-pop { color: var(--on-brand); }
.btn-info { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); padding: 9px 24px; }
.btn-info:hover { border-color: #fff; background: rgba(255,255,255,.08); filter: none; }
.plan.hl { background: linear-gradient(180deg, rgba(246,185,59,.12), var(--bg-2) 40%); }
.fchip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* Cartões */
.card { border-radius: 12px; }
.card:hover, .card:focus-visible { transform: translateY(-5px); box-shadow: 0 0 0 2px var(--brand), 0 14px 28px rgba(0,0,0,.6); }
.similar .card:hover { transform: translateY(-4px); }

@media (max-width: 560px) {
  .logo { font-size: 20px; }
  .btn-info { padding: 8px 16px; }
}

/* ---------- Níveis (Fácil / Médio / Difícil) ---------- */
.levels { margin: 4px 0 16px; }
.levels-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.levels-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lvl { display: grid; gap: 2px; text-align: left; min-width: 150px; flex: 1 1 150px; max-width: 220px; padding: 9px 12px; border-radius: 12px;
  border: 2px solid rgba(255,255,255,.18); background: rgba(11,17,32,.55); color: #fff; transition: border-color .15s, background .15s; }
.lvl b { font-size: 15px; }
.lvl small { font-size: 12px; color: #c9cbd6; line-height: 1.3; }
.lvl:hover { border-color: rgba(255,255,255,.45); }
.lvl.on { border-color: var(--brand); background: rgba(246,185,59,.14); }
.lvl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lvl-pill { margin-left: 8px; }
@media (max-width: 560px) { .lvl { min-width: 0; flex-basis: calc(33% - 6px); padding: 8px; } .lvl small { display: none; } }

/* campo de senha com botão de olho */
.pw { position: relative; display: block; }
.pw input { width: 100%; padding-right: 46px !important; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 18px; line-height: 1; padding: 6px; cursor: pointer; opacity: .8; }
.eye:hover { opacity: 1; }

/* ---------- Portas das seções (página inicial) ---------- */
.doors { padding: 0 var(--gutter); margin: 10px 0 30px; position: relative; z-index: 2; }
.doors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.door { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--dc) 26%, #14141c), #101016 70%);
  border: 1px solid color-mix(in srgb, var(--dc) 45%, transparent); color: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.door:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.45), 0 0 0 1px var(--dc); }
.door-ic { font-size: 34px; line-height: 1; }
.door b { font-size: 19px; }
.door small { color: #cfd2dc; font-size: 13.5px; line-height: 1.4; }
.door em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--dc); margin-top: 4px; }
@media (max-width: 560px) { .doors-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .door { padding: 14px; } .door small { display: none; } .door b { font-size: 16px; } }
.test-tag { position: fixed; right: 10px; bottom: 10px; z-index: 300; background: #facc15; color: #111; font: 800 12px system-ui, sans-serif; padding: 6px 10px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.5); pointer-events: none; }

/* ---------- Destaque do topo girando ---------- */
.hero-deck { position: relative; display: grid; }
.hero-deck .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.hero-deck .slide.on { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.hero-deck .slide.on .hero-bg { animation: deck-zoom 9s ease-out both; }
@keyframes deck-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(40px, 8vh, 80px); z-index: 5; display: flex; gap: 8px; }
.hero-dot { width: 11px; height: 11px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s, background .3s; }
.hero-dot.on { width: 30px; background: var(--brand-2); }
@media (prefers-reduced-motion: reduce) { .hero-deck .slide, .hero-deck .slide.on { transition: none; } .hero-deck .slide.on .hero-bg { animation: none; } }
@media (max-width: 560px) { .hero-dots { bottom: 54px; } }
/* o texto sai primeiro e o novo entra depois (as imagens de fundo se misturam suavemente) */
.hero-deck .slide .hero-content { opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease; }
.hero-deck .slide.on .hero-content { opacity: 1; transform: none; transition: opacity .6s ease .45s, transform .6s ease .45s; }
