/* ============================================================================
   Central M2M — Design System "Terminal Premium"
   Preto quase absoluto #050506 · hairlines · IBM Plex Sans 300 gigante ·
   Courier Prime retrô nos detalhes · dourado-metal #E8C97A com parcimônia.
   Contrato visual da §2 do SPEC — TODAS as classes usadas pelos módulos.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;600;700&family=Inter:wght@400;500;600&family=Courier+Prime:wght@400;700&display=swap');

/* ----------------------------------------------------------------------------
   1. TOKENS
---------------------------------------------------------------------------- */
:root {
  --bg: #050506;            /* fundo geral — preto azulado quase absoluto */
  --bg-elev: #0a0b0e;       /* superfícies (cards, sidebar) */
  --bg-elev2: #101215;      /* superfície elevada (modal, dropdown, tooltip, inputs) */
  --stroke: rgba(255, 255, 255, .09);
  --stroke-strong: rgba(255, 255, 255, .22);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, .60);
  --text-faint: rgba(255, 255, 255, .40);
  --accent: #E8C97A;        /* dourado-metal — usado só onde algo "está vivo" */
  --accent-2: #D4A853;      /* dourado escuro — hover/apoio */
  --grad: linear-gradient(135deg, #ecebe7 0%, #ffffff 100%);
  --danger: #FF5C7A;
  --warn: #FACC15;
  --ok: #E8C97A;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, .5);
  --font-display: 'IBM Plex Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Courier Prime', 'Courier New', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Derivados (uso interno do design system) */
  --accent-soft: rgba(232, 201, 122, .12);
  --accent-softer: rgba(232, 201, 122, .06);
  --accent-2-soft: rgba(212, 168, 83, .12);
  --accent-hover: #D4A853;
  --accent-pressed: #B8923F;
  --danger-soft: rgba(255, 92, 122, .12);
  --warn-soft: rgba(250, 204, 21, .13);
  --ok-soft: rgba(232, 201, 122, .12);
  --ink-on-grad: #050506;   /* texto escuro sobre o off-white do gradiente */
  --ring: 0 0 0 3px rgba(255, 255, 255, .06);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px -14px rgba(0, 0, 0, .55);
  --shadow-pop: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 48px -12px rgba(0, 0, 0, .65);
  --speed: 180ms;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --sidebar-w: 240px;
  --radius-pill: 999px;

  /* Novos tokens — identidade Terminal Premium */
  --info: #60A5FA;
  --info-soft: rgba(96, 165, 250, .13);
  --hairline: rgba(255, 255, 255, .09);
  --hairline-hover: rgba(255, 255, 255, .22);
  --hairline-active: rgba(255, 255, 255, .5);
  --btn-bg: #ecebe7;
  --btn-bg-hover: #ffffff;
  --btn-bg-pressed: #d9d8d4;
  --glow-accent: 0 0 6px rgba(232, 201, 122, .55);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --reveal-dur: 600ms;

  /* Aliases consumidos por estilos injetados via JS (auth.js) */
  --surface: #0a0b0e;
  --accent-strong: #D4A853;
}

/* ----------------------------------------------------------------------------
   2. RESET + BASE
---------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
button svg, a svg, .nav-item svg, .btn svg, .chip svg, .badge svg { flex: none; }

iframe { border: 0; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button { background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; }

a { color: var(--accent); text-decoration: none; transition: color var(--speed) var(--ease); }
a:hover { color: var(--accent-hover); }

strong, b { font-weight: 600; }

summary { cursor: pointer; }
summary::-webkit-details-marker { color: var(--text-faint); }

::selection { background: rgba(232, 201, 122, .9); color: #050506; }

/* Foco visível global — dourado, o único lugar "vivo" do foco */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible,
.searchbox input:focus-visible { outline: none; }

/* ----------------------------------------------------------------------------
   3. FUNDO — NOISE + BRILHO SUTIL NO LOGIN
   Sem glow orbs coloridos: só granulado sutil e um dourado a 4% atrás do auth.
---------------------------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle 480px at 50% 36%, rgba(232, 201, 122, .04), transparent 70%);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
}

/* noise overlay sutil sobre o fundo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* brilho dourado MUITO sutil só atrás da área de login */
body:has(#auth-root:not(.hidden))::before { opacity: 1; }

/* ----------------------------------------------------------------------------
   4. SCROLLBAR CUSTOMIZADA
---------------------------------------------------------------------------- */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .16) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .26);
  background-clip: content-box;
  border: 3px solid transparent;
}

/* ----------------------------------------------------------------------------
   5. TIPOGRAFIA — fina e gigante (IBM Plex Sans 300), mono retrô nos detalhes
---------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 300;
}
h1 { font-size: clamp(30px, 3.5vw, 38px); font-weight: 300; line-height: 1.0; }
h2 { font-size: 21px; font-weight: 300; }
h3 { font-size: 16px; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
h4 { font-size: 14px; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }

small { font-size: 12.5px; }
code, pre, kbd {
  font-family: var(--font-mono);
  font-size: .92em;
}

/* eyebrow retrô-terminal: mono, uppercase, tracking largo, "❯ " dourado */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--text-dim);
}
.eyebrow::before {
  content: "\276F\00a0";
  color: var(--accent);
  letter-spacing: 0;
}

/* countdown / números tech */
.countdown,
[data-countdown] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

/* ----------------------------------------------------------------------------
   6. LAYOUT — SHELL, SIDEBAR, TOPBAR, VIEW
---------------------------------------------------------------------------- */
.app-shell {
  display: flex;
  min-height: 100dvh;
}

/* --- Sidebar (desktop) --- */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 14px 16px;
  background: rgba(5, 5, 6, .82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--stroke);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 20px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--grad);
  color: var(--ink-on-grad);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 18px rgba(0, 0, 0, .5);
}

/* logo oficial M2M no brand da sidebar (~32px, circular dourada) */
.brand-logo-img {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)) drop-shadow(0 0 8px rgba(232, 201, 122, .15));
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.sidebar-foot {
  padding: 12px 8px 2px;
  font-size: 12px;
  border-top: 1px solid var(--stroke);
}

/* --- Itens de navegação (sidebar + bottom-nav) --- */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.nav-item:hover {
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}
.nav-item.active {
  background: rgba(255, 255, 255, .05);
  color: var(--text);
}
.nav-item.active svg { color: var(--accent); }

/* indicador "❯" dourado à esquerda (só na sidebar) — assinatura da identidade */
.sidebar .nav-item.active::before {
  content: "\276F";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

/* --- Coluna principal --- */
.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* --- Topbar --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 32px;
  background: rgba(5, 5, 6, .82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
}

.topbar .searchbox {
  flex: 1;
  max-width: 460px;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* sino com contador — dourado = algo vivo */
#btn-bell { position: relative; overflow: visible; }
#bell-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink-on-grad);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  border: 2px solid var(--bg);
  box-shadow: var(--glow-accent);
}

/* --- View (container de cada rota) --- */
#view-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.view {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 32px 56px;
  animation: view-in var(--reveal-dur) var(--ease-out) backwards;
  flex: 1;
}

/* --- Bottom nav (mobile) --- */
.bottom-nav { display: none; }

/* ----------------------------------------------------------------------------
   7. BOTÕES — primário off-white pílula, secundário hairline
---------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: background var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              color var(--speed) var(--ease),
              filter var(--speed) var(--ease),
              transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
.btn:hover {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .3);
}
.btn:active { transform: translateY(1px); }
.btn:disabled,
.btn[disabled],
.btn[aria-busy="true"] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* primário: off-white sólido, texto quase-preto, transição de cor suave */
.btn-primary {
  background: var(--btn-bg);
  border: 1px solid transparent;
  color: var(--ink-on-grad);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--btn-bg-hover);
  border-color: transparent;
}
.btn-primary:active { background: var(--btn-bg-pressed); }

/* fantasma: discreto, ganha corpo no hover */
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-dim);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .14);
  color: var(--text);
}

/* perigo: translúcido vermelho */
.btn-danger {
  background: var(--danger-soft);
  border-color: rgba(255, 92, 122, .35);
  color: var(--danger);
}
.btn-danger:hover {
  background: rgba(255, 92, 122, .2);
  border-color: rgba(255, 92, 122, .55);
  color: #FF7D95;
}

.btn-sm {
  padding: 6px 13px;
  font-size: 13px;
  gap: 6px;
  border-radius: var(--radius-pill);
}
.btn-sm svg { width: 16px; height: 16px; }

/* botão redondo só com ícone */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  flex: none;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: background var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              color var(--speed) var(--ease);
}
.btn-icon:hover {
  background: rgba(255, 255, 255, .04);
  border-color: var(--stroke);
  color: var(--text);
}
.btn-icon:disabled { opacity: .5; cursor: not-allowed; }

/* spinner inline (usado por setBusy) */
.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  opacity: .9;
  animation: spin .7s linear infinite;
}

/* ----------------------------------------------------------------------------
   8. FORMULÁRIOS
---------------------------------------------------------------------------- */
.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 13px;
  background: var(--bg-elev2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              background var(--speed) var(--ease);
}
.input::placeholder,
.textarea::placeholder { color: var(--text-faint); }
.input:hover,
.select:hover,
.textarea:hover { border-color: var(--stroke-strong); }
.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(255, 255, 255, .5);
  box-shadow: var(--ring);
  outline: none;
}
.input:disabled,
.select:disabled,
.textarea:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* datas/hora no dark mode */
.input::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23ffffff'%20stroke-opacity='.55'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m6%209%206%206%206-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.select option {
  background: var(--bg-elev2);
  color: var(--text);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* --- Searchbox --- */
.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.searchbox svg {
  color: var(--text-faint);
  flex: none;
}
.searchbox input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 14px;
}
.searchbox input::placeholder { color: var(--text-faint); }
.searchbox input::-webkit-search-cancel-button { -webkit-appearance: none; }
.searchbox:focus-within {
  border-color: rgba(255, 255, 255, .5);
  box-shadow: var(--ring);
}
.searchbox:focus-within svg { color: var(--text); }

/* --- Switch (input[type=checkbox].switch) — dourado quando ligado --- */
.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 42px;
  height: 24px;
  flex: none;
  border-radius: 999px;
  background: var(--bg-elev2);
  border: 1px solid var(--stroke-strong);
  cursor: pointer;
  transition: background var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
.switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cfcfcf;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease);
}
.switch:checked {
  background: var(--accent);
  border-color: transparent;
  box-shadow: var(--glow-accent);
}
.switch:checked::before {
  transform: translateX(18px);
  background: #050506;
}
.switch:disabled { opacity: .5; cursor: not-allowed; }

/* Variante com wrapper: <label class="switch"><input type="checkbox"><span></span></label>
   (markup usado pelo admin) — o label vira o trilho, o input fica invisível por cima. */
label.switch { display: inline-block; }
label.switch input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
label.switch > span { display: none; }
label.switch:has(input:checked) {
  background: var(--accent);
  border-color: transparent;
  box-shadow: var(--glow-accent);
}
label.switch:has(input:checked)::before {
  transform: translateX(18px);
  background: #050506;
}
label.switch:has(input:disabled) { opacity: .5; cursor: not-allowed; }
label.switch:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------------------
   9. CHIPS + BADGES — mono retrô, pílula, hairline
---------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              color var(--speed) var(--ease);
}
.chip:hover {
  border-color: var(--stroke-strong);
  color: var(--text);
}
.chip.active {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .5);
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }

/* NOVO: dourado translúcido + dot pulsante */
.badge-new {
  background: rgba(232, 201, 122, .14);
  border-color: rgba(232, 201, 122, .4);
  color: var(--accent);
  box-shadow: none;
}
.badge-new::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow-accent);
  animation: pulse 2s var(--ease) infinite;
}
.badge-ok {
  background: var(--ok-soft);
  border-color: rgba(232, 201, 122, .38);
  color: var(--ok);
}
.badge-warn {
  background: var(--warn-soft);
  border-color: rgba(250, 204, 21, .35);
  color: var(--warn);
}
.badge-admin {
  background: transparent;
  border-color: rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .85);
  box-shadow: none;
}

/* dot de status pulsante genérico (novo utilitário) */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow-accent);
  animation: pulse 2s var(--ease) infinite;
}

/* ----------------------------------------------------------------------------
   10. CARDS + GRIDS + KPI + PROGRESSO
---------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              background var(--speed) var(--ease);
}

.card-click { cursor: pointer; }
.card-click:hover,
.card-click:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .25);
  background: #0f1014;
  box-shadow: var(--shadow-soft);
}
.card-click:active { transform: translateY(0); }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.grid-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

/* Reveal "blur+rise" dos cards com stagger leve */
.grid-cards > *,
.grid-kpis > * {
  animation: card-in var(--reveal-dur) var(--ease-out) backwards;
}
.grid-cards > :nth-child(1), .grid-kpis > :nth-child(1) { animation-delay: 40ms; }
.grid-cards > :nth-child(2), .grid-kpis > :nth-child(2) { animation-delay: 90ms; }
.grid-cards > :nth-child(3), .grid-kpis > :nth-child(3) { animation-delay: 140ms; }
.grid-cards > :nth-child(4), .grid-kpis > :nth-child(4) { animation-delay: 190ms; }
.grid-cards > :nth-child(5), .grid-kpis > :nth-child(5) { animation-delay: 240ms; }
.grid-cards > :nth-child(6), .grid-kpis > :nth-child(6) { animation-delay: 290ms; }
.grid-cards > :nth-child(7), .grid-kpis > :nth-child(7) { animation-delay: 340ms; }
.grid-cards > :nth-child(8), .grid-kpis > :nth-child(8) { animation-delay: 390ms; }
.grid-cards > :nth-child(n+9), .grid-kpis > :nth-child(n+9) { animation-delay: 420ms; }

/* KPI: primeiro filho = número grande fino (Plex 300), resto = label mono */
.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
.kpi:hover { border-color: var(--stroke-strong); }
.kpi > :first-child {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.kpi > :not(:first-child) {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* barra de progresso — fill dourado "metal escovado" com glow sutil */
.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid transparent;
  overflow: hidden;
}
.progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #D4A853, #E8C97A);
  box-shadow: 0 0 6px rgba(232, 201, 122, .45);
  transition: width .45s var(--ease);
}

/* ----------------------------------------------------------------------------
   11. TABELAS
---------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
.table th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--stroke);
  white-space: nowrap;
}
.table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--stroke);
  vertical-align: middle;
}
.table tbody tr {
  transition: background var(--speed) var(--ease);
}
.table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.table tbody tr:last-child td { border-bottom: 0; }

/* slugs/categorias em tabelas: mono */
.table td code,
.table td .slug,
.table td .category {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* ----------------------------------------------------------------------------
   12. MODAIS
---------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 3, 4, .7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade-in .15s var(--ease) both;
  overflow-y: auto;
}

.modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  max-height: min(86dvh, 780px);
  background: var(--bg-elev2);
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  animation: modal-in .3s var(--ease-out) both;
  overflow: hidden;
}

.modal-lg { max-width: 860px; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--stroke);
  flex: none;
}
.modal-head h2,
.modal-head h3 {
  font-size: 19px;
  font-weight: 300;
  letter-spacing: -.02em;
}

.modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--stroke);
  flex: none;
}

/* ----------------------------------------------------------------------------
   13. TOASTS — detalhe dourado no sucesso
---------------------------------------------------------------------------- */
#toast-root {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 12px 18px;
  background: var(--bg-elev2);
  border: 1px solid var(--stroke-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-pop);
  pointer-events: auto;
  animation: toast-in .22s var(--ease) both;
}
.toast svg { color: var(--accent); }

.toast-error {
  border-left-color: var(--danger);
}
.toast-error svg { color: var(--danger); }

/* ----------------------------------------------------------------------------
   14. DROPDOWN + TOOLTIP
---------------------------------------------------------------------------- */
/* menu flutuante — o pai precisa de position:relative (ou posicionar via JS) */
.dropdown {
  position: absolute;
  z-index: 150;
  min-width: 220px;
  max-width: 320px;
  padding: 6px;
  background: var(--bg-elev2);
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  animation: drop-in .15s var(--ease) both;
  transform-origin: top right;
}
.dropdown button,
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: none;
  border: 0;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.dropdown button:hover,
.dropdown a:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}
.dropdown .divider { margin: 6px 4px; }

/* tooltip como elemento flutuante */
.tooltip {
  position: absolute;
  z-index: 400;
  max-width: 260px;
  padding: 6px 10px;
  background: var(--bg-elev2);
  border: 1px solid var(--stroke-strong);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  box-shadow: var(--shadow);
  pointer-events: none;
}

/* helper opcional: tooltip via atributo data-tip */
[data-tip] { position: relative; }
[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  max-width: 240px;
  width: max-content;
  padding: 6px 10px;
  background: var(--bg-elev2);
  border: 1px solid var(--stroke-strong);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: pre-line;
  box-shadow: var(--shadow);
  pointer-events: none;
  animation: fade-in .15s var(--ease) both;
}

/* ----------------------------------------------------------------------------
   15. EMPTY STATE + SKELETON
---------------------------------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 52px 24px;
  text-align: center;
  color: var(--text-dim);
  background: rgba(255, 255, 255, .015);
  border: 1px dashed var(--stroke-strong);
  border-radius: var(--radius-lg);
}
.empty-state svg {
  width: 44px;
  height: 44px;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.empty-state h3 { color: var(--text); }
.empty-state p { max-width: 380px; font-size: 14px; }

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev2);
  border-radius: var(--radius-sm);
  min-height: 14px;
  color: transparent !important;
  user-select: none;
  pointer-events: none;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .05) 50%, transparent 75%);
  animation: skeleton-sweep 1.8s var(--ease) infinite;
}

/* ----------------------------------------------------------------------------
   16. AVATAR + DIVISOR
---------------------------------------------------------------------------- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grad);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--ink-on-grad);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  user-select: none;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
button.avatar {
  cursor: pointer;
  transition: box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
button.avatar:hover {
  border-color: rgba(255, 255, 255, .5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .06);
}

.divider {
  width: 100%;
  height: 1px;
  flex: none;
  background: var(--stroke);
  border: 0;
  margin: 10px 0;
}

/* ----------------------------------------------------------------------------
   17. CAMADAS: AUTH, FAB DE COMUNIDADE
---------------------------------------------------------------------------- */
/* centraliza o card de login/aguardando aprovação */
#auth-root:not(.hidden) {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

#community-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--ink-on-grad);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .5);
  transition: transform var(--speed) var(--ease),
              background var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
#community-fab:hover {
  transform: translateY(-2px);
  background: var(--btn-bg-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .6);
  color: var(--ink-on-grad);
}
#community-fab:active { transform: translateY(0); background: var(--btn-bg-pressed); }

/* ----------------------------------------------------------------------------
   18. UTILITÁRIAS
---------------------------------------------------------------------------- */
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.hidden { display: none !important; }

/* ----------------------------------------------------------------------------
   19. ANIMAÇÕES — reveal "blur+rise" + pulsos
---------------------------------------------------------------------------- */
@keyframes view-in {
  from { opacity: 0; filter: blur(8px); transform: translateY(14px); }
  to   { opacity: 1; filter: blur(0);  transform: none; }
}
@keyframes card-in {
  from { opacity: 0; filter: blur(8px); transform: translateY(14px); }
  to   { opacity: 1; filter: blur(0);  transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modal-in {
  from { opacity: 0; filter: blur(6px); transform: translateY(12px) scale(.98); }
  to   { opacity: 1; filter: blur(0);  transform: none; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { opacity: 1;  box-shadow: 0 0 0 0 rgba(232, 201, 122, .55); }
  50%      { opacity: .55; box-shadow: 0 0 6px 2px rgba(232, 201, 122, .25); }
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}
@keyframes skeleton-sweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ----------------------------------------------------------------------------
   20. RESPONSIVO — breakpoint único 900px
   Sidebar → bottom-nav · modais full-screen · grids 1–2 colunas
---------------------------------------------------------------------------- */
@media (max-width: 900px) {

  /* layout */
  .sidebar { display: none; }
  .main { margin-left: 0; }

  .topbar {
    height: 58px;
    padding: 0 14px;
    gap: 10px;
  }
  .topbar .searchbox { max-width: none; }
  .searchbox { height: 38px; }

  .view {
    padding: 20px 16px calc(96px + env(safe-area-inset-bottom));
  }

  h1 { font-size: 28px; }

  /* bottom-nav fixa — com 10+ itens ela rola no eixo x (scroll suave,
     scrollbar oculta; flex-start garante que o 1º item nunca fica cortado) */
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    justify-content: flex-start;
    align-items: stretch;
    gap: 2px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(5, 5, 6, .82);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--stroke);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  .bottom-nav::-webkit-scrollbar { display: none; }
  .bottom-nav .nav-item {
    flex: 1 0 auto;
    min-width: 60px;
    max-width: 92px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 7px 4px;
    font-size: 10.5px;
    font-weight: 500;
    text-align: center;
    border-radius: 10px;
  }
  .bottom-nav .nav-item.active {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
  }
  .bottom-nav .nav-item.active svg { color: var(--accent); }

  /* grids 1–2 colunas */
  .grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 12px;
  }
  .grid-kpis {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }
  .kpi { padding: 14px 16px; }
  .kpi > :first-child { font-size: 27px; }

  .card { padding: 15px; }

  /* modais full-screen */
  .modal-backdrop {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }
  .modal,
  .modal-lg {
    max-width: 100%;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
    animation-name: modal-in-mobile;
  }
  .modal-head { padding: 16px; }
  .modal-body { padding: 16px; }
  .modal-foot {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
  .modal-foot .btn { flex: 1; }

  /* toasts acima da bottom-nav */
  #toast-root {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }

  /* fab acima da bottom-nav */
  #community-fab {
    right: 14px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    padding: 11px 15px;
    font-size: 13px;
  }

  .empty-state { padding: 40px 18px; }

  #auth-root:not(.hidden) { padding: 16px 14px; }
}

@keyframes modal-in-mobile {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------------------
   21. ACESSIBILIDADE — movimento reduzido
   Desliga reveals blur+rise, lifts, pulses e demais animações/transições.
---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .badge-new::before,
  .status-dot { animation: none !important; }
  .card-click:hover,
  .card-click:focus-visible,
  #community-fab:hover,
  .btn:active { transform: none !important; }
}

/* ----------------------------------------------------------------------------
   Ajustes da revisão
---------------------------------------------------------------------------- */
/* chips com ícone ficam da mesma altura dos chips de texto */
.chip svg { width: 16px; height: 16px; }

/* chip decorativo dentro de card clicável (sem cara de botão) */
.chip-static { cursor: default; pointer-events: none; }

/* o botão de comunidade some enquanto o viewer full-screen está aberto */
body:has(#viewer-root:not(:empty)) #community-fab { display: none; }

/* estado ocupado do switch (aprovação de aluno) sem destruir o input */
.switch-busy { opacity: .55; pointer-events: none; }

/* ============================================================================
   22. UPGRADES v1.1 — componentes novos (SPEC de upgrades)
   Contrato de classes p/ student.js / admin.js / main.js:
   .stagger · .next-class* · .cal* · .agenda-pill* · .updates-list/.update-*
   .kpi-trend/.kpi-hero · .heatmap*/.hm-* · .rank-* · .feed-* ·
   .searchbox-prompt · .chip-filter · .status-text · .progress-mini* ·
   .dropzone* · .crumb · .card-cover · .cursor-dot
   ========================================================================== */

/* ---- Stagger de entrada (home do aluno) ------------------------------------
   Filhos diretos animam blur+rise; JS seta style.setProperty('--i', idx). */
.stagger > * {
  animation: card-in var(--reveal-dur) var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}

/* ---- Card "Próxima aula" ---------------------------------------------------
   hora mono 28px dourada | título+duração | badge confirmada | botão ENTRAR */
.next-class {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.next-class-time {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  flex: none;
}
.next-class-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.next-class-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.next-class-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.next-class-cta { flex: none; }

/* rows das próximas aulas (até 3), hairline + hover */
.next-class-rows {
  margin-top: 16px;
  border-top: 1px solid var(--hairline);
}
.next-class-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 6px;
  border-bottom: 1px solid var(--hairline);
  transition: background var(--speed) var(--ease);
}
.next-class-row:last-child { border-bottom: 0; }
.next-class-row:hover { background: rgba(255, 255, 255, .03); }
.next-class-row-time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  flex: none;
}
.next-class-row-title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.next-class-row-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ---- Calendário mensal (view agenda) --------------------------------------- */
.cal { min-width: 0; }
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.cal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cal-nav { display: flex; gap: 6px; }
/* chevrons em botões hairline QUADRADOS */
.cal-nav button,
.cal-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.cal-nav button:hover,
.cal-chev:hover {
  border-color: var(--hairline-hover);
  color: var(--text);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  padding: 4px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color var(--speed) var(--ease),
              background var(--speed) var(--ease),
              color var(--speed) var(--ease);
}
.cal-day:hover {
  border-color: var(--hairline-hover);
  color: var(--text);
}
/* dia fora do mês / vazio */
.cal-day.cal-out,
.cal-day:disabled {
  opacity: .22;
  cursor: default;
  pointer-events: none;
}
/* hoje (não selecionado): contorno dourado sutil */
.cal-day.cal-today {
  border-color: rgba(232, 201, 122, .38);
  color: var(--accent);
}
/* dia com evento: dot dourado 4px sob o número */
.cal-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow-accent);
}
/* dia selecionado: bloco dourado, número escuro */
.cal-day.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #050506;
  font-weight: 700;
}
.cal-day.selected:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.cal-day.selected.has-event::after {
  background: #050506;
  box-shadow: none;
}

/* ---- Pills verticais da lista de agenda ------------------------------------
   hoje/ao vivo = dourado · futuro = branco .4 · passado = branco .15
   (variante --soon âmbar p/ evento <48h, usa --warn) */
.agenda-pill {
  width: 2px;
  height: 32px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
}
.agenda-pill--today,
.agenda-pill--live {
  background: var(--accent);
  box-shadow: var(--glow-accent);
}
.agenda-pill--soon { background: var(--warn); }
.agenda-pill--future { background: rgba(255, 255, 255, .4); }
.agenda-pill--past { background: rgba(255, 255, 255, .15); }

/* ---- Lista "Últimas atualizações" (home) ------------------------------------ */
.updates-list {
  display: flex;
  flex-direction: column;
}
.update-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--speed) var(--ease);
  text-align: left;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.update-row:last-child { border-bottom: 0; }
.update-row:hover { background: rgba(255, 255, 255, .04); }
/* quadrado-inicial hairline à esquerda */
.update-sq {
  width: 38px;
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--text-dim);
  overflow: hidden;
}
.update-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.update-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.update-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.update-row .badge-new { flex: none; }

/* ---- KPI v2 — trend pill + KPI hero (admin) --------------------------------- */
.kpi { position: relative; }
.kpi-trend {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  white-space: nowrap;
}
.kpi-trend.up {
  color: var(--accent);
  border-color: rgba(232, 201, 122, .38);
  background: rgba(232, 201, 122, .08);
}
.kpi-trend.down {
  color: var(--danger);
  border-color: rgba(255, 92, 122, .35);
  background: var(--danger-soft);
}
.kpi-trend.flat { color: var(--text-faint); }
/* hero: valor dourado + wash dourado a 4% */
.kpi-hero {
  background: rgba(232, 201, 122, .04);
  border-color: rgba(232, 201, 122, .22);
}
.kpi-hero > :first-child { color: var(--accent); }

/* ---- Heatmap 7×24 (admin) ---------------------------------------------------
   células QUADRADAS sem raio · 5 níveis .l0–.l4 · labels mono 9px */
.heatmap-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.heatmap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 560px;
}
.hm-row {
  display: flex;
  align-items: center;
  gap: 3px;
}
.hm-label {
  width: 34px;
  flex: none;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: right;
  padding-right: 4px;
}
.hm-cell {
  flex: 1;
  aspect-ratio: 1 / 1;
  min-width: 12px;
  border-radius: 0;
  background: rgba(232, 201, 122, .06);
}
.hm-cell.l0 { background: rgba(232, 201, 122, .06); }
.hm-cell.l1 { background: rgba(232, 201, 122, .18); }
.hm-cell.l2 { background: rgba(232, 201, 122, .38); }
.hm-cell.l3 { background: rgba(232, 201, 122, .65); }
.hm-cell.l4 { background: rgba(232, 201, 122, .95); }
/* legenda "menos ▢▢▢▢▢ mais" */
.hm-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hm-legend .hm-cell {
  flex: none;
  width: 10px;
  height: 10px;
  min-width: 0;
  aspect-ratio: auto;
}
.hm-legend span { padding: 0 4px; }

/* ---- Ranking "Mais assistidos" (admin) -------------------------------------- */
.rank-list {
  display: flex;
  flex-direction: column;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--hairline);
  transition: background var(--speed) var(--ease);
}
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: rgba(255, 255, 255, .025); }
/* nº em quadrado hairline 24px */
.rank-num {
  width: 24px;
  height: 24px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}
.rank-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rank-title {
  font-size: 13.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* barra de calor h-3px */
.rank-bar {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.rank-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #D4A853, #E8C97A);
}
.rank-count {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
}

/* ---- Feed "Atividade recente" (admin) ---------------------------------------- */
.feed-list {
  display: flex;
  flex-direction: column;
}
.feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--hairline);
  transition: background var(--speed) var(--ease);
}
.feed-row:last-child { border-bottom: 0; }
.feed-row:hover { background: rgba(255, 255, 255, .025); }
.feed-ico,
.feed-row > svg {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--text-faint);
}
.feed-txt {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-txt strong { color: var(--text); font-weight: 500; }
.feed-time {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ---- Tabela de alunos v2 (admin) --------------------------------------------- */
/* busca estilo prompt: "❯" dourado + input mono */
.searchbox-prompt::before {
  content: "\276F";
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  flex: none;
}
.searchbox-prompt input {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
}
.searchbox-prompt input::placeholder {
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

/* pills de filtro: ativo = bloco dourado, texto escuro */
.chip-filter.active,
.chip.chip-filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #050506;
  font-weight: 700;
}
.chip-filter.active:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* status mono colorido: ● ATIVO / ○ PENDENTE */
.status-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-text.on { color: var(--accent); }
.status-text.warn { color: var(--warn); }
.status-text.off { color: var(--text-faint); }

/* coluna PROGRESSO: mini barra 64×3px + % mono */
.progress-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.progress-mini-bar {
  width: 64px;
  height: 3px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.progress-mini-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #D4A853, #E8C97A);
  transition: width .45s var(--ease);
}
.progress-mini-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  min-width: 34px;
}

/* ---- Dropzone de capa (editor de página, admin) ------------------------------
   repouso dashed hairline · hover borda dourada .5 · dragover dourado + scale */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  padding: 20px;
  background: rgba(255, 255, 255, .015);
  border: 1px dashed var(--hairline-hover);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--speed) var(--ease),
              background var(--speed) var(--ease),
              transform var(--speed) var(--ease);
}
.dropzone svg { color: var(--text-faint); }
.dropzone-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.dropzone:hover,
.dropzone:focus-visible {
  border-color: rgba(232, 201, 122, .5);
}
.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(232, 201, 122, .10);
  transform: scale(1.02);
}
/* preview da capa + overlay "Remover" no hover */
.dropzone-preview {
  position: relative;
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.dropzone-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.dropzone-remove {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(5, 5, 6, .65);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  cursor: pointer;
  transition: opacity var(--speed) var(--ease);
}
.dropzone-preview:hover .dropzone-remove,
.dropzone-remove:focus-visible { opacity: 1; }

/* ---- Breadcrumb terminal (topbar) -------------------------------------------- */
.crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ---- Capa nos cards de conteúdo (cover_url) -----------------------------------
   sangra até as bordas do .card (padding 18px) + overlay de legibilidade */
.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: -18px -18px 14px;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  overflow: hidden;
  background: var(--bg-elev2);
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 6, .25), rgba(5, 5, 6, .65));
}

/* ---- Cursor dot (fx.cursorDot) ------------------------------------------------ */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  transition: opacity 150ms var(--ease);
}
.cursor-dot.on { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none !important; }
}

/* ---- v1.1 responsivo (≤900px) -------------------------------------------------- */
@media (max-width: 900px) {
  .next-class { gap: 14px; }
  .next-class-time { font-size: 24px; }
  .next-class-cta { width: 100%; }
  .next-class-cta .btn { width: 100%; }

  .cal-grid { gap: 3px; }
  .cal-day { font-size: 11.5px; }
  .cal-nav button,
  .cal-chev { width: 28px; height: 28px; }

  .heatmap { min-width: 520px; }

  .kpi-trend { top: 10px; right: 10px; padding: 2px 7px; font-size: 10px; }

  /* .card no mobile tem padding 15px — capa sangra certo */
  .card-cover { margin: -15px -15px 12px; }

  /* dropzone touch: overlay Remover sempre visível */
  .dropzone-remove { opacity: 1; background: rgba(5, 5, 6, .45); }

  .crumb { display: none; }
}

/* ---- v1.1 movimento reduzido ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .stagger > * { animation: none !important; }
  .cursor-dot { display: none !important; }
  .dropzone.dragover { transform: none !important; }
  .cal-day.has-event::after,
  .agenda-pill--today,
  .agenda-pill--live { box-shadow: none; }
}

/* ============================================================================
   23. v2.0 ÁREA DE MEMBROS — componentes compartilháveis (SPEC-MEMBROS)
   Contrato de classes p/ members.js / admin-cursos.js:
   .shelf* · .cover-card* · .course-hero* · .module-acc* · .lesson-row* ·
   .player-grid / .player-main / .player-frame / .player-side · .comment*
   Só ADIÇÕES — nenhuma regra anterior foi alterada.
   ========================================================================== */

/* ---- Shelf: fileira horizontal com scroll-x suave ---------------------------
   <div class="shelf">
     <button class="shelf-arrow shelf-arrow-prev" aria-label="Anterior">&#10094;</button>
     <div class="shelf-track"> ...cards... </div>
     <button class="shelf-arrow shelf-arrow-next" aria-label="Próximo">&#10095;</button>
   </div> */
.shelf {
  position: relative;
  min-width: 0;
}
.shelf-track {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px 10px;
}
.shelf-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.shelf-track > * {
  flex: none;
  scroll-snap-align: start;
}

/* setas hairline — quadradas, mono, só aparecem no hover (desktop) */
.shelf-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  flex: none;
  background: rgba(5, 5, 6, .8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              color var(--speed) var(--ease);
}
.shelf-arrow-prev { left: 6px; }
.shelf-arrow-next { right: 6px; }
.shelf-arrow:hover {
  border-color: var(--hairline-hover);
  color: var(--text);
}
@media (hover: hover) and (pointer: fine) {
  .shelf:hover .shelf-arrow,
  .shelf:focus-within .shelf-arrow {
    opacity: 1;
    pointer-events: auto;
  }
  .shelf:hover .shelf-arrow:disabled,
  .shelf:focus-within .shelf-arrow:disabled {
    opacity: .25;
    pointer-events: none;
  }
}
@media (hover: none), (pointer: coarse) {
  .shelf-arrow { display: none; }
}

/* ---- Cover card — capa vertical 2:3 -----------------------------------------
   <a class="cover-card" href="#/curso/slug">
     <span class="cover-card-media">
       <img src="..." alt="">                          (ou .cover-card-ph)
       <span class="cover-card-bar"><span class="cover-card-fill" style="width:42%"></span></span>
     </span>
     <span class="cover-card-title">Título do curso</span>
   </a>
   Sem capa: dentro de .cover-card-media →
     <span class="cover-card-ph">
       <span class="cover-card-mono">M</span>
       <span class="cover-card-ph-title">Título</span>
     </span>
   Variante 16:9 (Continue assistindo): .cover-card--wide (+ .cover-card-play) */
.cover-card {
  display: block;
  width: 190px;
  flex: none;
  color: inherit;
  text-decoration: none;
}
.cover-card-media {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
.cover-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* hover: lift + borda dourada */
.cover-card:hover .cover-card-media,
.cover-card:focus-visible .cover-card-media {
  transform: translateY(-4px);
  border-color: rgba(232, 201, 122, .55);
  box-shadow: var(--shadow-pop);
}
.cover-card:active .cover-card-media { transform: translateY(-1px); }

/* barra de progresso fina na base da capa */
.cover-card-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: block;
  height: 3px;
  background: rgba(5, 5, 6, .55);
}
.cover-card-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #D4A853, #E8C97A);
  box-shadow: 0 0 6px rgba(232, 201, 122, .45);
  transition: width .45s var(--ease);
}

/* placeholder sem capa: monograma dourado + título */
.cover-card-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 14px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 201, 122, .08), transparent 65%),
    var(--bg-elev2);
}
.cover-card-mono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex: none;
  border: 1px solid rgba(232, 201, 122, .38);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--accent);
  user-select: none;
}
.cover-card-ph-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-dim);
}

/* título abaixo da capa (Inter 500 14px) */
.cover-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}
.cover-card-meta {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* variante horizontal 16:9 (fileira "Continue assistindo") */
.cover-card--wide { width: 280px; }
.cover-card--wide .cover-card-media { aspect-ratio: 16 / 9; }

/* botão play sobreposto (decorativo — o card inteiro é o link) */
.cover-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(5, 5, 6, .6);
  border: 1px solid rgba(255, 255, 255, .35);
  color: var(--text);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: background var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              color var(--speed) var(--ease),
              transform var(--speed) var(--ease);
}
.cover-card-play::after {
  content: "";
  margin-left: 3px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
}
.cover-card:hover .cover-card-play,
.cover-card:focus-visible .cover-card-play {
  background: var(--accent);
  border-color: var(--accent);
  color: #050506;
  transform: translate(-50%, -50%) scale(1.06);
}

/* ---- Hero do curso — banner com overlay --------------------------------------
   <header class="course-hero">
     <div class="course-hero-bg"><img src="banner" alt=""></div>
     <div class="course-hero-body">
       <span class="eyebrow">Categoria</span>
       <h1 class="course-hero-title">...</h1>
       <p class="course-hero-desc">...</p>
       <div class="course-hero-meta">39H 1M &middot; 26 AULAS &middot; 96%</div>
       <div class="course-hero-actions">.progress-bar + .btn-primary</div>
     </div>
   </header>
   Sem banner: .course-hero--split + .course-hero-cover (capa 2:3 à esquerda). */
.course-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(260px, 38vw, 420px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  overflow: hidden;
}
.course-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.course-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* overlay p/ legibilidade do texto sobre o banner */
.course-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(5, 5, 6, .18) 0%,
    rgba(5, 5, 6, .55) 52%,
    rgba(5, 5, 6, .94) 100%);
}
.course-hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 760px;
  padding: 34px 38px 30px;
}
.course-hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--text);
}
.course-hero-desc {
  max-width: 62ch;
  font-size: 15px;
  color: var(--text-dim);
}
.course-hero-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}
.course-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.course-hero-actions .progress-bar {
  flex: 1;
  min-width: 160px;
  max-width: 320px;
}

/* variante sem banner: faixa com a capa à esquerda */
.course-hero--split {
  align-items: center;
  gap: 28px;
  min-height: 0;
  padding: 26px 28px;
}
.course-hero--split .course-hero-body { padding: 0; }
.course-hero-cover {
  position: relative;
  width: 150px;
  flex: none;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--bg-elev2);
  overflow: hidden;
}
.course-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Accordion de módulos (hairline) ------------------------------------------
   <details class="module-acc" open>
     <summary class="module-acc-head">
       <span class="module-acc-title">Módulo 1 — ...</span>
       <span class="module-acc-meta">5 AULAS &middot; 42 MIN</span>
     </summary>
     <div class="module-acc-body"> ...lesson-rows... </div>
   </details> */
.module-acc {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  transition: border-color var(--speed) var(--ease);
}
.module-acc + .module-acc { margin-top: 10px; }
.module-acc[open] { border-color: var(--hairline-hover); }
.module-acc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--speed) var(--ease);
}
.module-acc-head::-webkit-details-marker { display: none; }
.module-acc-head:hover { background: rgba(255, 255, 255, .03); }
/* chevron mono "❯" — gira 90° quando aberto e acende dourado */
.module-acc-head::after {
  content: "\276F";
  flex: none;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-faint);
  transform: rotate(0deg);
  transition: transform var(--speed) var(--ease),
              color var(--speed) var(--ease);
}
.module-acc[open] > .module-acc-head::after {
  transform: rotate(90deg);
  color: var(--accent);
}
.module-acc-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.module-acc-meta {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
}
.module-acc-body {
  border-top: 1px solid var(--hairline);
  padding: 6px 8px 8px;
}

/* ---- Linha de aula --------------------------------------------------------------
   <a class="lesson-row [done] [current]" href="#/aula/id">
     <span class="lesson-check"></span>
     <span class="lesson-row-title">...</span>
     <span class="lesson-row-dur">12 MIN</span>
   </a> */
.lesson-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--speed) var(--ease),
              color var(--speed) var(--ease);
}
.lesson-row:hover {
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}
/* check: círculo hairline → dourado quando concluída */
.lesson-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1px solid var(--stroke-strong);
  border-radius: 50%;
  color: transparent;
  transition: background var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
.lesson-check::after {
  content: "\2713";
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.lesson-row-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lesson-row-dur {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
}
/* concluída */
.lesson-row.done .lesson-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #050506;
  box-shadow: var(--glow-accent);
}
.lesson-row.done .lesson-row-title { color: var(--text-faint); }
/* aula atual (destaque dourado — sidebar do player) */
.lesson-row.current {
  background: var(--accent-softer);
  color: var(--text);
}
.lesson-row.current:hover { background: var(--accent-soft); }
.lesson-row.current .lesson-row-title {
  color: var(--accent);
  font-weight: 500;
}

/* ---- Player: vídeo + sidebar 320px ----------------------------------------------
   <div class="player-grid">
     <div class="player-main">
       <div class="player-frame"><iframe ...></iframe></div>
       ...título, ações, material, comentários...
     </div>
     <aside class="player-side"> ...module-acc + lesson-rows... </aside>
   </div> */
.player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.player-main { min-width: 0; }
.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.player-frame iframe,
.player-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-side {
  position: sticky;
  top: 84px;
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
  padding: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
/* módulos dentro da sidebar do player: sem card, só hairlines */
.player-side .module-acc {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.player-side .module-acc + .module-acc {
  margin-top: 0;
  border-top: 1px solid var(--hairline);
}
.player-side .module-acc-head { padding: 12px 10px; }
.player-side .module-acc-body {
  border-top: 0;
  padding: 0 2px 6px;
}

/* ---- Comentários ------------------------------------------------------------------
   <div class="comment [is-hidden]">
     <span class="comment-avatar">G</span>
     <div class="comment-body">
       <div class="comment-head">
         <span class="comment-author">Nome</span>
         <span class="comment-time">HÁ 2 H</span>
         <span class="comment-hidden-badge">Oculto</span>   (só admin)
       </div>
       <p class="comment-text">...</p>
       <div class="comment-actions"><button>Responder</button>...</div>
       <div class="comment-replies"> ...comments (1 nível)... </div>
     </div>
   </div> */
.comment {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--hairline);
}
.comment:last-child { border-bottom: 0; }
.comment-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--grad);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--ink-on-grad);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  user-select: none;
}
.comment-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.comment-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.comment-author {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.comment-time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.comment-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
}
.comment-actions button {
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-faint);
  cursor: pointer;
  transition: color var(--speed) var(--ease);
}
.comment-actions button:hover { color: var(--accent); }
/* thread indentada — trava em 1 nível */
.comment-replies {
  margin-top: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--hairline);
}
.comment-replies .comment { padding: 12px 0; }
.comment-replies .comment-avatar {
  width: 26px;
  height: 26px;
  font-size: 10.5px;
}
.comment-replies .comment-replies {
  margin: 0;
  padding: 0;
  border: 0;
}
/* comentário oculto (admin vê com badge) */
.comment.is-hidden { opacity: .55; }
.comment-hidden-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(250, 204, 21, .35);
  border-radius: 999px;
  background: var(--warn-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--warn);
  white-space: nowrap;
}

/* ---- v2.0 responsivo (≤900px) ------------------------------------------------------ */
@media (max-width: 900px) {
  .shelf-track { gap: 10px; padding-bottom: 8px; }
  .shelf-arrow { display: none; }

  .cover-card { width: 140px; }
  .cover-card-title { font-size: 13px; }
  .cover-card--wide { width: 230px; }
  .cover-card-mono {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  .course-hero { min-height: 230px; }
  .course-hero-body {
    padding: 20px 18px 18px;
    gap: 10px;
  }
  .course-hero-title { font-size: clamp(26px, 7vw, 34px); }
  .course-hero-desc { font-size: 14px; }
  .course-hero--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 16px;
  }
  .course-hero-cover { width: 110px; }
  .course-hero-actions .progress-bar { max-width: none; }
  .course-hero-actions .btn { width: 100%; }

  .module-acc-head { padding: 13px 14px; }

  /* player empilha: vídeo em cima, lista embaixo */
  .player-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .player-side {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .comment-replies { padding-left: 10px; }
  .comment-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
}

/* ---- v2.0 movimento reduzido -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .shelf-track { scroll-behavior: auto !important; }
  .cover-card:hover .cover-card-media,
  .cover-card:focus-visible .cover-card-media,
  .cover-card:active .cover-card-media { transform: none !important; }
  .cover-card:hover .cover-card-play,
  .cover-card:focus-visible .cover-card-play {
    transform: translate(-50%, -50%) !important;
  }
  .lesson-row.done .lesson-check,
  .cover-card-fill { box-shadow: none; }
  .module-acc-head::after { transition: none !important; }
}

/* ============================================================================
   24. v2.1 LAYOUT GIGI — primitivas compartilhadas (referência GiGi Energy,
   aplicado 100% dark Terminal Premium — zero cores do template original)
   Contrato de classes p/ os módulos:
   .gg-hero / .gg-hero-copy / .gg-hero-sub / .gg-hero-ctas / .gg-hero-visual ·
   .gg-display (+ .gold) · .gg-badge · .gg-carousel / .gg-car-glow /
   .gg-car-track / .gg-car-item(.active) / .gg-car-arrow(.gg-car-prev/.gg-car-next) ·
   .gg-bento / .gg-tile / .gg-tilt3d · .gg-kpi-big / .gg-kpi-label ·
   .gg-marquee(.reverse) / .gg-marquee-track / .gg-mq-item
   Só ADIÇÕES — nenhuma regra anterior foi alterada.
   ========================================================================== */

/* ---- HERO de impacto ---------------------------------------------------------
   <section class="gg-hero">
     <div class="gg-hero-copy">
       <span class="gg-badge">Ao vivo agora</span>
       <h1 class="gg-display">Domine o <span class="gold">jogo</span> criativo</h1>
       <p class="gg-hero-sub">subtítulo em mono...</p>
       <div class="gg-hero-ctas">.btn-primary + .btn (ghost hairline)</div>
     </div>
     <div class="gg-hero-visual"> ...elemento visual (parallax via JS)... </div>
   </section>
   O JS aplica transform no .gg-hero-visual (lerp em rAF); em touch/reduced-motion
   o parallax fica desligado — CSS abaixo também zera por garantia. */
.gg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(44px, 7vw, 88px) 0 clamp(36px, 5vw, 64px);
}
.gg-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}
.gg-hero-sub {
  max-width: 52ch;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--text-dim);
}
.gg-hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.gg-hero-visual {
  position: relative;
  min-width: 0;
  min-height: 280px;
  will-change: transform;
}

/* display GIGANTE — peso 700 (o integrador adiciona o weight na fonte),
   tracking apertado, leading .95, UMA palavra em dourado via .gold */
.gg-display {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.04em;
  color: var(--text);
  text-wrap: balance;
}
.gg-display .gold { color: var(--accent); }

/* badge pill mono com dot pulsante (acima do display) */
.gg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.gg-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow-accent);
  animation: pulse 2s var(--ease) infinite;
}

/* ---- CARROSSEL estilo flavor-carousel ------------------------------------------
   <section class="gg-carousel">
     <div class="gg-car-glow" aria-hidden="true"></div>
     <button class="gg-car-arrow gg-car-prev" aria-label="Anterior">&#10094;</button>
     <div class="gg-car-track"> ...<div class="gg-car-item [active]">...</div>... </div>
     <button class="gg-car-arrow gg-car-next" aria-label="Próximo">&#10095;</button>
   </section>
   Snap por clique/arraste simples: scroll-x + scrollIntoView (JS).
   O glow transiciona suave ao trocar o item ativo — o JS move via transform
   (translate), que interpola; gradiente em si não é animável. */
.gg-carousel {
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.gg-car-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(520px, 72%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(232, 201, 122, .13) 0%,
    rgba(212, 168, 83, .05) 45%,
    transparent 70%);
  opacity: .85;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform .6s var(--ease-out), opacity .6s var(--ease-out);
}
.gg-car-track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* padding vertical acomoda o scale(1.06) do item ativo sem cortar */
  padding: 24px 14px;
}
.gg-car-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.gg-car-item {
  flex: none;
  width: clamp(180px, 24vw, 240px);
  scroll-snap-align: center;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 18px;
  color: var(--text-dim);
  opacity: .72;
  cursor: pointer;
  user-select: none;
  transition: transform .45s var(--ease-out),
              border-color .45s var(--ease-out),
              box-shadow .45s var(--ease-out),
              opacity .45s var(--ease-out);
}
.gg-car-item:hover {
  border-color: var(--hairline-hover);
  opacity: .9;
}
/* item ATIVO central: maior + borda dourada */
.gg-car-item.active {
  position: relative;
  z-index: 2;
  transform: scale(1.06);
  border-color: rgba(232, 201, 122, .55);
  box-shadow: 0 14px 44px -18px rgba(0, 0, 0, .7),
              0 0 0 1px rgba(232, 201, 122, .12);
  color: var(--text);
  opacity: 1;
}
/* setas pílula hairline sobre o track */
.gg-car-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  flex: none;
  background: rgba(5, 5, 6, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--speed) var(--ease),
              color var(--speed) var(--ease),
              background var(--speed) var(--ease);
}
.gg-car-arrow:hover {
  background: rgba(255, 255, 255, .05);
  border-color: var(--hairline-hover);
  color: var(--text);
}
.gg-car-arrow:disabled {
  opacity: .28;
  cursor: default;
  pointer-events: none;
}
.gg-car-prev { left: 10px; }
.gg-car-next { right: 10px; }

/* ---- BENTO GRID 3D ---------------------------------------------------------------
   <div class="gg-bento">
     <article class="gg-tile"><div class="gg-tilt3d"> ...conteúdo... </div></article>
     ...
   </div>
   1º card span 2x2 no desktop. O .gg-tile é o wrapper com perspective;
   o JS aplica rotateX/Y (±6°, lerp rAF, reset suave no leave) SÓ no .gg-tilt3d.
   LIÇÃO: nunca filter/opacity no elemento com preserve-3d — a transição de
   opacity da borda dourada vive no ::after do .gg-tile (estático). */
.gg-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, auto);
  grid-auto-flow: dense;
  gap: 14px;
}
.gg-bento > .gg-tile:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gg-tile {
  position: relative;
  min-width: 0;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  perspective: 900px;
}
/* borda gradiente dourada animada — opacity 0→1 no hover (pseudo-elemento) */
.gg-tile::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(120deg,
    rgba(232, 201, 122, 0) 0%,
    rgba(232, 201, 122, .9) 25%,
    rgba(212, 168, 83, .35) 50%,
    rgba(232, 201, 122, .9) 75%,
    rgba(232, 201, 122, 0) 100%);
  background-size: 250% 250%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  animation: gg-border-slide 3.2s linear infinite;
  transition: opacity .35s var(--ease);
}
.gg-tile:hover::after,
.gg-tile:focus-within::after { opacity: 1; }
/* superfície interna que o JS tilta — sem filter/opacity aqui, NUNCA */
.gg-tilt3d {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 22px;
  border-radius: inherit;
  transform-style: preserve-3d;
  will-change: transform;
}

/* número/valor gigante 700 + label mono (dentro dos tiles) */
.gg-kpi-big {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.gg-kpi-big .gold { color: var(--accent); }
.gg-kpi-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---- MARQUEE infinito ---------------------------------------------------------------
   <div class="gg-marquee [reverse]">
     <div class="gg-marquee-track">
       <span class="gg-mq-item">Texto</span> ... (conteúdo DUPLICADO p/ loop -50%)
     </div>
   </div>
   Mono uppercase, separador "◆" dourado, hairlines em cima/embaixo,
   28s linear infinito (reverse na segunda faixa), pausa em reduced-motion. */
.gg-marquee {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 13px 0;
  user-select: none;
  -webkit-user-select: none;
}
.gg-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: gg-marquee 28s linear infinite;
  will-change: transform;
}
.gg-marquee.reverse .gg-marquee-track { animation-direction: reverse; }
.gg-marquee:hover .gg-marquee-track { animation-play-state: paused; }
.gg-mq-item {
  display: inline-flex;
  align-items: center;
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
/* separador ◆ dourado entre itens */
.gg-mq-item::after {
  content: "\25C6";
  margin: 0 22px;
  font-size: 8px;
  letter-spacing: 0;
  color: var(--accent);
}

/* ---- v2.1 animações ---- */
@keyframes gg-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes gg-border-slide {
  from { background-position: 0% 50%; }
  to   { background-position: 250% 50%; }
}

/* ---- v2.1 touch: tilt/parallax desligados (o JS também não monta) ---- */
@media (hover: none), (pointer: coarse) {
  .gg-tilt3d { transform: none !important; }
  .gg-hero-visual { transform: none !important; }
  .gg-car-arrow { display: none; }
}

/* ---- v2.1 responsivo (≤900px) ---- */
@media (max-width: 900px) {
  /* hero empilha */
  .gg-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0 28px;
  }
  .gg-hero-copy { gap: 14px; }
  .gg-hero-visual { min-height: 200px; }
  .gg-hero-ctas .btn { flex: 1; min-width: 0; }

  .gg-display { font-size: clamp(34px, 9.5vw, 48px); }

  /* carrossel mantém scroll-x, sem setas */
  .gg-car-track { gap: 10px; padding: 18px 10px; }
  .gg-car-item { width: clamp(160px, 58vw, 220px); }
  .gg-car-arrow { display: none; }

  /* bento vira 2 colunas */
  .gg-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(120px, auto);
    gap: 12px;
  }
  .gg-bento > .gg-tile:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
  .gg-tilt3d { padding: 18px; gap: 10px; }
  .gg-kpi-big { font-size: clamp(34px, 9vw, 56px); }

  .gg-mq-item::after { margin: 0 16px; }
}

/* bento vira 1 coluna em telas bem estreitas */
@media (max-width: 560px) {
  .gg-bento { grid-template-columns: 1fr; }
  .gg-bento > .gg-tile:first-child {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ---- v2.1 movimento reduzido ---- */
@media (prefers-reduced-motion: reduce) {
  .gg-badge::before { animation: none !important; }
  .gg-marquee-track { animation: none !important; }
  .gg-tile::after { animation: none !important; transition: none !important; }
  .gg-tilt3d { transform: none !important; }
  .gg-hero-visual { transform: none !important; }
  .gg-car-glow { transition: none !important; }
  .gg-car-track { scroll-behavior: auto !important; }
  .gg-car-item,
  .gg-car-item.active { transform: none !important; }
}

/* ==========================================================================
   §GG v2.1.1 — PONTE DE INTEGRAÇÃO (QA)
   Aliases do contrato .gg-* efetivamente usado pelos módulos (student.js).
   O fallback interno do student.js NÃO injeta quando styles.css já contém
   regras .gg-, então os nomes irmãos precisam existir aqui. Só ADIÇÕES.
   ========================================================================== */
.gg-gold { color: var(--accent); }

/* sub mono do hero (irmão de .gg-hero-sub) */
.gg-sub {
  max-width: 52ch;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--text-dim);
}

/* fileira de CTAs (irmã de .gg-hero-ctas) */
.gg-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* o dot oficial do badge é o ::before — o span do módulo não duplica */
.gg-badge .gg-badge-dot { display: none; }

/* marquee com separador explícito (irmãos de .gg-mq-item) */
.gg-marquee-seq { display: inline-flex; align-items: center; flex: none; }
.gg-marquee-item {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.gg-marquee-sep {
  flex: none;
  font-size: 8px;
  line-height: 1;
  color: var(--accent);
}

/* bento: spans + tiles SEM .gg-tilt3d interno (home do aluno usa o padding
   direto no tile; o tilt do JS também vai direto no tile) */
.gg-tile--lg { grid-column: span 2; grid-row: span 2; }
.gg-tile--wide { grid-column: 1 / -1; }
.st-home .gg-tile { padding: 22px; }
.gg-tile-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.gg-tile-label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
@media (max-width: 900px) {
  .st-home .gg-tile { padding: 18px; }
  .gg-tile--lg { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .gg-tile--lg,
  .gg-tile--wide { grid-column: auto; grid-row: auto; }
}

/* ============================================================================
   25. v3.2 GAMIFY PRO — LOCKUP DA MARCA (Opção A, sidebar)
   Logo oficial 46px com drop-shadow dourado sutil + wordmark empilhado:
   eyebrow "CENTRAL" mono dourado tracking .35em em cima, "M2M" IBM Plex 700
   20px branco embaixo. Só ADIÇÕES — nenhuma regra anterior foi alterada
   (.brand-logo-img é redimensionada aqui com seletor mais específico).
   A sidebar some ≤900px (bottom-nav assume), então o lockup é desktop-only.
   ========================================================================== */
.sidebar-brand .brand-logo-img {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .55))
          drop-shadow(0 0 10px rgba(232, 201, 122, .22));
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

/* "CENTRAL" — Courier mono 9px, uppercase, tracking .35em, dourado */
.brand-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* "M2M" — IBM Plex Sans 700 20px branco */
.brand-word {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--text);
  white-space: nowrap;
}
