/* ============================================================
   S.C.M — theme.css
   Identidade visual unificada com a página de vendas
   + navegação no estilo streaming (Netflix).
   Carregado DEPOIS do style.css: só sobrescreve.
   ============================================================ */

:root {
  color-scheme: dark;
  --black:     #0c0c0c;
  --black-2:   #141414;
  --black-3:   #1a1a1a;
  --black-4:   #222222;
  --black-5:   #2d2d2d;
  --red:       #d42a2a;
  --red-dark:  #9e1a1a;
  --red-light: #f03030;
  --red-hi:    #f03030;
  --red-glow:  rgba(212,42,42,.16);
  --green:     #46d369;
  --white-60:  rgba(255,255,255,.62);
  --white-40:  rgba(255,255,255,.4);
  --radius:    8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --shadow-red: 0 10px 30px -10px rgba(240,48,48,.55);
  --font:      'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --serif:     'Playfair Display', Georgia, serif;
  --nav-h:     68px;
  --pad-x:     4%;
}

body { font-family: var(--font); background: var(--black); }
body.has-topnav { display: block; overflow-x: hidden; }
h1, h2, h3 { text-wrap: balance; }

/* ── Logo (igual à página de vendas) ───────────────────────── */
.scm-logo {
  display: inline-flex; flex-direction: column; align-items: center;
  font-family: 'EB Garamond', 'Times New Roman', serif; font-weight: 500;
  color: #fff; line-height: 1; letter-spacing: .03em; font-size: 13px;
}
.scm-logo .l1 { display: flex; align-items: baseline; white-space: nowrap; }
.scm-logo .l2 { margin-top: .28em; white-space: nowrap; }
.scm-logo b { color: var(--red-hi); font-weight: 500; }
.scm-logo .big { font-size: 2.15em; line-height: .6; margin-right: -.04em; text-shadow: .06em .06em 0 rgba(0,0,0,.5); }
.scm-logo .ul { border-bottom: .09em solid var(--red-hi); padding-bottom: .06em; margin-left: .3em; }
.scm-logo--lg { font-size: clamp(20px, 6vw, 28px); }

/* ── Navegação superior ────────────────────────────────────── */
.nx-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--pad-x) 0;
  display: flex; align-items: center; gap: 2.25rem;
  background: linear-gradient(180deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 100%);
  transition: background .35s ease;
}
.nx-nav.scrolled, body:not(.nx-hero-page) .nx-nav { background: #0c0c0c; box-shadow: 0 1px 0 rgba(255,255,255,.05); }
.nx-brand { flex-shrink: 0; display: flex; }
.nx-links { display: flex; gap: 1.35rem; flex: 1; min-width: 0; }
.nx-links a {
  font-size: .86rem; font-weight: 500; color: rgba(255,255,255,.72);
  white-space: nowrap; transition: color .2s;
}
.nx-links a:hover { color: rgba(255,255,255,.95); }
.nx-links a.active { color: #fff; font-weight: 700; }
.nx-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nx-icon {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 1rem;
  transition: background .2s;
}
.nx-icon:hover { background: rgba(255,255,255,.1); }
.nx-icon .notif-badge { top: 4px; right: 4px; }

.nx-profile { position: relative; }
.nx-profile summary { list-style: none; display: flex; align-items: center; gap: .4rem; cursor: pointer; padding: .25rem; }
.nx-profile summary::-webkit-details-marker { display: none; }
.nx-avatar {
  width: 34px; height: 34px; border-radius: 4px; overflow: hidden;
  background: linear-gradient(135deg, var(--red-hi), var(--red-dark));
  display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff;
}
.nx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nx-caret { font-size: .75rem; color: #fff; transition: transform .2s; }
.nx-profile[open] .nx-caret { transform: rotate(180deg); }
.nx-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px;
  background: #141414; border: 1px solid rgba(255,255,255,.12); border-radius: 6px;
  padding: .4rem 0; box-shadow: 0 20px 50px -10px rgba(0,0,0,.8);
}
.nx-menu-head { padding: .7rem 1rem .75rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .3rem; }
.nx-menu-head strong { display: block; font-size: .92rem; }
.nx-menu-head small { font-size: .72rem; color: var(--white-60); }
.nx-menu a { display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem; font-size: .86rem; color: rgba(255,255,255,.85); }
.nx-menu a i { width: 16px; text-align: center; color: rgba(255,255,255,.5); }
.nx-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nx-menu a.nx-menu-out { border-top: 1px solid rgba(255,255,255,.08); margin-top: .3rem; }
.nx-only-mobile { display: none !important; }

/* Barra inferior — celular */
.nx-tabbar { display: none; }

/* ── Conteúdo ───────────────────────────────────────────────── */
.main-wrapper { margin-left: 0; display: block; min-height: 100vh; }
.main-content {
  max-width: 1400px; margin: 0 auto;
  padding: calc(var(--nav-h) + 2.25rem) var(--pad-x) 4rem;
}
body.nx-hero-page .main-content { max-width: none; padding: 0 0 4rem; }

/* ── Títulos de página (padrão página de vendas) ───────────── */
.page-header { margin-bottom: 2rem; align-items: flex-end; }
.page-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.02em; line-height: .95;
}
.page-title em, .nx-serif { font-family: var(--serif); font-style: italic; font-weight: 700; text-transform: none; letter-spacing: -.01em; color: rgba(255,255,255,.6); }
.page-subtitle { font-size: .92rem; margin-top: .6rem; }
.nx-kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .62rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--red-hi);
  margin-bottom: .9rem;
}
.nx-kicker::before { content: ''; width: 20px; height: 1.5px; background: currentColor; }

/* ── Botões ─────────────────────────────────────────────────── */
.btn {
  border-radius: 3px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem;
}
.btn-sm { font-size: .7rem; }
.btn-lg { font-size: .9rem; }
.btn-primary { background: var(--red); box-shadow: none; }
.btn-primary:hover { background: var(--red-hi); box-shadow: var(--shadow-red); transform: translateY(-1px); }
.btn-outline:hover { border-color: var(--red-hi); color: #fff; background: rgba(240,48,48,.08); }
.btn-ghost { background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.nx-btn-play, .nx-btn-more {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .8rem 1.7rem; border-radius: 4px; font-weight: 800; font-size: 1rem;
  transition: background .2s, transform .15s;
}
.nx-btn-play { background: #fff; color: #000; }
.nx-btn-play:hover { background: rgba(255,255,255,.78); }
.nx-btn-more { background: rgba(109,109,110,.7); color: #fff; }
.nx-btn-more:hover { background: rgba(109,109,110,.45); }
.nx-btn-play i, .nx-btn-more i { font-size: 1.15rem; }

/* ── Cards / formulários / badges ──────────────────────────── */
.card, .stat-card { background: var(--black-2); border-color: rgba(255,255,255,.07); }
.card-title { font-weight: 800; }
.stat-icon { background: var(--red-glow); color: var(--red-hi); border-radius: 4px; }
.stat-value { font-weight: 900; letter-spacing: -.02em; }
input, textarea, select { background: #1b1b1b; border-color: rgba(255,255,255,.12); border-radius: 4px; }
input:focus, textarea:focus, select:focus { border-color: var(--red-hi); box-shadow: 0 0 0 3px rgba(240,48,48,.15); }
.badge { border-radius: 3px; }
.training-card { background: var(--black-2); border-radius: 6px; }
.training-card:hover { border-color: var(--red-hi); box-shadow: 0 20px 40px -18px rgba(240,48,48,.5); transform: scale(1.02); }
.training-badge { border-radius: 2px; background: var(--red); }
.cat-pill { border-radius: 3px; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; font-weight: 800; }
.cat-pill:hover, .cat-pill.active { background: var(--red); border-color: var(--red); }
.alert { border-radius: 4px; }
.modal-box { border-radius: 8px; }

/* ── Login / cadastro ───────────────────────────────────────── */
body.auth-layout {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(212,42,42,.28), transparent 70%),
    repeating-radial-gradient(circle at 50% 120%, rgba(255,255,255,.025) 0 1px, transparent 1px 28px),
    var(--black);
}
.auth-wrapper { display: flex; flex-direction: column; align-items: center; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 1.75rem; }
.auth-card { width: 100%; background: rgba(0,0,0,.72); border-color: rgba(255,255,255,.1); border-radius: 8px; }
.auth-logo { display: none; }
.auth-brand .scm-logo { font-size: clamp(20px, 6vw, 28px); }
.auth-title { font-size: 1.6rem; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }

/* ============================================================
   COMPONENTES ESTILO STREAMING
   ============================================================ */

/* Capa (imagem ou arte gerada) */
.nx-art {
  position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden;
  container-type: inline-size;
  background:
    var(--img, none) center/cover no-repeat,
    radial-gradient(120% 95% at 85% 0%, var(--tone, #4a1010) 0%, #151515 70%);
  border: 1px solid rgba(255,255,255,.06);
}
.nx-art:not(.has-img)::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 85% 12%, rgba(255,255,255,.045) 0 1px, transparent 1px 18px);
}
.nx-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
}
.nx-art.has-img::after { background: linear-gradient(to top, rgba(0,0,0,.45), transparent 45%); }
.nx-art-num {
  position: absolute; right: 5cqw; top: -2cqw; z-index: 1;
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: 34cqw; line-height: 1; color: rgba(255,255,255,.07);
}
.nx-mark {
  position: absolute; top: 5cqw; left: 5cqw; z-index: 2;
  font-weight: 900; font-size: max(9px, 4.6cqw); letter-spacing: .06em; color: var(--red-hi);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.nx-art-text {
  position: absolute; left: 5cqw; right: 5cqw; bottom: 5cqw; z-index: 2;
  display: flex; flex-direction: column; gap: 1.6cqw;
}
.nx-art-kicker { font-size: max(8px, 3.6cqw); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--red-hi); }
.nx-art-title {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.02;
  font-size: max(12px, 7.4cqw);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.nx-bar { display: block; height: 3px; background: rgba(255,255,255,.22); border-radius: 2px; overflow: hidden; }
.nx-bar i { display: block; height: 100%; background: var(--red-hi); }

/* Card */
.nx-card {
  position: relative; display: block; color: #fff; text-align: left;
  border-radius: 6px; transition: transform .25s ease; cursor: pointer;
}
.nx-card:hover, .nx-card:focus-visible { transform: scale(1.05); z-index: 3; outline: none; }
.nx-card:hover .nx-art, .nx-card:focus-visible .nx-art { box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 24px 40px -14px #000; }
.nx-card .nx-play {
  position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.8);
  width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); border: 2px solid #fff;
  display: grid; place-items: center; opacity: 0; transition: opacity .2s, transform .2s;
}
.nx-card .nx-play i { font-size: .95rem; margin-left: 3px; }
.nx-card:hover .nx-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.nx-card-body { padding: .55rem .1rem 0; }
.nx-card-title { font-size: .86rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-card-meta { font-size: .72rem; color: rgba(255,255,255,.5); margin-top: .2rem; display: flex; gap: .55rem; flex-wrap: wrap; }
.nx-card-meta .nx-green { color: var(--green); font-weight: 700; }
.nx-card .nx-bar { margin-top: .45rem; }
.nx-card-tag {
  position: absolute; z-index: 3; top: 5cqw; right: 5cqw;
  font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--red); color: #fff; padding: .2rem .45rem; border-radius: 2px;
}

/* ── Hero (Início e página do curso) ───────────────────────── */
.nx-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(86vh, 760px);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) var(--pad-x) 9rem;
}
.nx-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    var(--img, none) right center/cover no-repeat,
    radial-gradient(70% 90% at 78% 35%, var(--tone, #5a1414) 0%, rgba(12,12,12,0) 70%),
    var(--black);
}
.nx-hero-bg:not(.has-img)::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 78% 35%, rgba(255,255,255,.045) 0 1px, transparent 1px 34px);
  -webkit-mask-image: radial-gradient(60% 80% at 78% 35%, #000, transparent);
          mask-image: radial-gradient(60% 80% at 78% 35%, #000, transparent);
}
.nx-hero-num {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%); z-index: -1;
  font-family: var(--serif); font-style: italic; font-weight: 900; line-height: .8;
  font-size: clamp(14rem, 34vw, 32rem); color: rgba(255,255,255,.06); letter-spacing: -.04em;
  pointer-events: none;
}
.nx-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12,12,12,.95) 0%, rgba(12,12,12,.7) 35%, rgba(12,12,12,0) 70%),
    linear-gradient(0deg, var(--black) 0%, rgba(12,12,12,0) 32%);
}
.nx-hero-info { max-width: 640px; min-width: 0; }
.nx-hero-kicker {
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
.nx-hero-kicker b { color: var(--red-hi); font-weight: 900; letter-spacing: .1em; }
.nx-hero-title {
  font-size: clamp(2.5rem, 6.2vw, 5.4rem); font-weight: 900; text-transform: uppercase;
  line-height: .9; letter-spacing: -.025em; margin-bottom: 1.2rem;
}
.nx-hero-title em { display: block; font-family: var(--serif); font-style: italic; font-weight: 700; text-transform: none; font-size: .62em; color: rgba(255,255,255,.75); letter-spacing: -.01em; margin-top: .15em; }
.nx-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; font-size: .98rem; color: rgba(255,255,255,.72); margin-bottom: 1.1rem; }
.nx-green { color: var(--green); font-weight: 700; }
.nx-box { border: 1px solid rgba(255,255,255,.45); padding: .02rem .45rem; border-radius: 3px; font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.85); }
.nx-hero-desc { font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.55; color: rgba(255,255,255,.86); margin-bottom: 1rem; max-width: 58ch; }
.nx-hero-note { font-style: italic; font-size: .92rem; color: rgba(255,255,255,.55); margin-bottom: 1.6rem; line-height: 1.5; }
.nx-hero-note strong { color: rgba(255,255,255,.8); font-weight: 600; }
.nx-hero-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.nx-hero-progress { max-width: 320px; margin: -.4rem 0 1.4rem; }

.nx-rows { position: relative; z-index: 3; margin-top: -6.5rem; }
.nx-alert { margin: 0 var(--pad-x) 1.5rem; }

/* ── Fileiras horizontais ──────────────────────────────────── */
.nx-row { margin-bottom: 2.2rem; --per: 5.3; }
.nx-row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 0 var(--pad-x); margin-bottom: .2rem; }
.nx-row-head h2 { font-size: clamp(1.05rem, 1.55vw, 1.4rem); font-weight: 800; letter-spacing: -.005em; }
.nx-row-kicker { display: block; font-size: .58rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--red-hi); margin-bottom: .25rem; }
.nx-row-link { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); white-space: nowrap; transition: color .2s; }
.nx-row-link:hover { color: #fff; }
.nx-row-link i { font-size: .6rem; margin-left: .2rem; }
.nx-row-wrap { position: relative; }
.nx-track {
  display: flex; gap: .55rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad-x);
  padding: .8rem var(--pad-x) 1rem; scrollbar-width: none;
}
.nx-track::-webkit-scrollbar { display: none; }
.nx-track > * { flex: 0 0 calc((100vw - 2 * var(--pad-x) - (var(--per) - 1) * .55rem) / var(--per)); scroll-snap-align: start; min-width: 0; }
.nx-arrow {
  position: absolute; top: .8rem; bottom: 1rem; z-index: 5; width: calc(var(--pad-x) - 4px); min-width: 34px;
  background: rgba(12,12,12,.55); color: #fff; font-size: 1.3rem;
  opacity: 0; transition: opacity .2s, background .2s;
}
.nx-arrow:hover { background: rgba(12,12,12,.8); }
.nx-arrow.prev { left: 0; border-radius: 0 4px 4px 0; }
.nx-arrow.next { right: 0; border-radius: 4px 0 0 4px; }
.nx-row-wrap:hover .nx-arrow:not([hidden]) { opacity: 1; }
@media (hover: none) { .nx-arrow { display: none; } }

/* ── Grade de cursos (página Cursos) ───────────────────────── */
.nx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6rem 1rem; }
.nx-search { position: relative; max-width: 460px; margin-bottom: 2rem; }
.nx-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.45); }
.nx-search input { padding: .85rem 1rem .85rem 2.6rem; font-size: .95rem; }

/* ── Página do curso ───────────────────────────────────────── */
.nx-title-page .nx-hero { min-height: min(78vh, 680px); padding-bottom: 5rem; }
.nx-section { padding: 0 var(--pad-x); max-width: 1400px; margin: 0 auto; }
.nx-tabs { display: flex; gap: 1.75rem; border-top: 1px solid rgba(255,255,255,.1); margin-bottom: 1.75rem; }
.nx-tabs a {
  padding: 1rem 0 .9rem; margin-top: -1px; border-top: 3px solid transparent;
  font-size: .9rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5);
}
.nx-tabs a.active { color: #fff; border-top-color: var(--red-hi); }
.nx-tabs a:hover { color: #fff; }

.nx-eps-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.nx-eps-head h2 { font-size: 1.5rem; font-weight: 800; }
.nx-select {
  width: auto; min-width: 0; max-width: 100%;
  background: #242424 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='white'/%3E%3C/svg%3E") right 1rem center/10px no-repeat;
  border: 1px solid rgba(255,255,255,.35); border-radius: 4px;
  padding: .7rem 2.6rem .7rem 1rem; font-size: .95rem; font-weight: 700; color: #fff;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.nx-mod-title { font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 1rem; }
.nx-mod-title b { color: #fff; }
.nx-mod[hidden] { display: none; }

.nx-ep {
  display: grid; grid-template-columns: 3rem minmax(150px, 210px) minmax(0, 1fr); gap: 1.4rem; align-items: center;
  padding: 1.35rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 6px;
  color: #fff; transition: background .2s;
}
.nx-ep:first-of-type { border-top: 1px solid rgba(255,255,255,.08); }
.nx-ep:hover { background: #1c1c1c; }
.nx-ep.is-next { background: #1a1212; box-shadow: inset 3px 0 0 var(--red-hi); }
.nx-ep-num { font-size: 1.6rem; color: rgba(255,255,255,.45); text-align: center; font-variant-numeric: tabular-nums; }
.nx-ep-thumb { position: relative; }
.nx-ep-thumb .nx-bar { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 3; }
.nx-ep-thumb .nx-play {
  position: absolute; z-index: 3; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: 2px solid #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s;
}
.nx-ep-thumb .nx-play i { font-size: .8rem; margin-left: 2px; }
.nx-ep:hover .nx-play { opacity: 1; }
.nx-ep-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .4rem; }
.nx-ep-title { font-weight: 700; font-size: 1rem; line-height: 1.35; }
.nx-ep-dur { font-size: .85rem; color: rgba(255,255,255,.6); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nx-ep-desc { font-size: .86rem; color: rgba(255,255,255,.55); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-ep-flags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.nx-flag { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.18); padding: .12rem .45rem; border-radius: 2px; }
.nx-flag.done { color: var(--green); border-color: rgba(70,211,105,.4); }
.nx-flag.next { color: #fff; background: var(--red); border-color: var(--red); }

.nx-ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem 1rem; }
button.nx-card { background: none; border: 0; padding: 0; font: inherit; width: 100%; }

.nx-empty { text-align: center; padding: 3rem 1rem; color: var(--white-60); }
.nx-empty i { font-size: 2.2rem; color: rgba(255,255,255,.2); margin-bottom: 1rem; display: block; }


/* ── Ajustes em telas antigas ──────────────────────────────── */
/* Índice lateral da aula fica abaixo do menu fixo */
[data-sidebar] { top: calc(var(--nav-h) + 1rem) !important; }
/* Exercício sem imagem: capa no padrão da marca */
.training-thumb > div[style*="black-4"] {
  background:
    repeating-radial-gradient(circle at 85% 12%, rgba(255,255,255,.04) 0 1px, transparent 1px 18px),
    radial-gradient(120% 95% at 85% 0%, #4a1010 0%, #151515 70%) !important;
}
.training-thumb > div[style*="black-4"] i { color: rgba(255,255,255,.14) !important; }
.nx-sm { display: none; }

/* ── Responsivo ─────────────────────────────────────────────── */
@media (max-width: 1280px) { .nx-links { gap: 1rem; } .nx-links a { font-size: .8rem; } .nx-row { --per: 4.3; } }
@media (max-width: 1100px) { .nx-nav { gap: 1.5rem; } }
@media (max-width: 980px)  { .nx-row { --per: 3.3; } }

@media (max-width: 900px) {
  :root { --nav-h: 58px; }
  .nx-links { display: none; }
  .nx-only-mobile { display: flex !important; }
  .nx-nav { gap: 1rem; }
  .scm-logo { font-size: 11.5px; }

  .nx-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: rgba(12,12,12,.97); border-top: 1px solid rgba(255,255,255,.08);
    padding: .4rem .25rem calc(.45rem + env(safe-area-inset-bottom, 0px));
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .nx-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: .2rem;
    font-size: .62rem; font-weight: 600; color: rgba(255,255,255,.5); padding: .2rem 0;
  }
  .nx-tabbar a i { font-size: 1.1rem; }
  .nx-tabbar a.active { color: #fff; }
  .nx-tabbar a.active i { color: var(--red-hi); }
  .main-content { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  body.nx-hero-page .main-content { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
  .toast-container { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 700px) {
  :root { --pad-x: 16px; }
  .nx-row { --per: 2.15; margin-bottom: 1.6rem; }
  .nx-hero { min-height: 0; padding: calc(var(--nav-h) + 2rem) var(--pad-x) 6.5rem; align-items: flex-end; }
  .nx-hero::after {
    background: linear-gradient(0deg, var(--black) 0%, rgba(12,12,12,.75) 45%, rgba(12,12,12,.35) 100%);
  }
  .nx-hero-num { right: -2%; top: 30%; font-size: 70vw; }
  .nx-hero-desc { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .nx-btn-play, .nx-btn-more { padding: .7rem 1rem; font-size: .9rem; flex: 1; justify-content: center; white-space: nowrap; }
  .nx-lg { display: none; } .nx-sm { display: inline; }
  .nx-hero-kicker { letter-spacing: .12em; font-size: .68rem; flex-wrap: wrap; row-gap: .2rem; }
  .nx-rows { margin-top: -4rem; }
  .nx-ep { grid-template-columns: 128px minmax(0, 1fr); gap: .9rem; padding: 1rem .25rem; }
  .nx-ep-num { display: none; }
  .nx-ep-top { flex-direction: column; gap: .15rem; }
  .nx-ep-title { font-size: .9rem; }
  .nx-ep-desc { -webkit-line-clamp: 2; font-size: .8rem; }
  .nx-select { width: 100%; }
  .nx-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.2rem .7rem; }
  .nx-ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem .7rem; }
  .nx-card-title { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-card, .nx-card:hover { transition: none; transform: none; }
}
