/* ==========================================================================
   FRÉQUENCE DA VINCI — Sistema visual
   Preto profundo · Azul elétrico · Branco
   ========================================================================== */

:root {
  --bg: #02030a;
  --surface: #060a15;
  --surface-2: #0a1122;
  --surface-3: #0e1830;
  --border: rgba(53, 167, 255, 0.14);
  --border-strong: rgba(53, 167, 255, 0.34);

  --blue: #087bff;
  --blue-light: #168cff;
  --neon: #35a7ff;
  --blue-glow: rgba(8, 123, 255, 0.35);

  --text: #ffffff;
  --text-2: #c9d3e6;
  --muted: #94a3bf;
  --success: #3ddc97;
  --danger: #ff6b7a;
  --warning: #ffc861;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Montserrat', 'Manrope', system-ui, sans-serif;

  --page-max: 1180px;
  --tap: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 112.5%; /* 18px — leitura confortável */ -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% -120px, rgba(8, 123, 255, 0.16), transparent 70%),
    radial-gradient(600px 400px at 100% 100%, rgba(8, 123, 255, 0.06), transparent 70%),
    url('/assets/brand/neural-bg.svg') center top / 1400px auto no-repeat,
    var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--neon); }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 0 26px;
  border: 0;
  border-radius: var(--radius-sm);
  font: 800 0.95rem/1 var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-block { width: 100%; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--blue-light), var(--blue));
  box-shadow: 0 8px 24px -8px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { box-shadow: 0 10px 32px -6px rgba(8, 123, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22); }

.btn-secondary {
  color: var(--text);
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--neon); }

.btn-ghost {
  color: var(--text-2);
  background: transparent;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  font-size: 1rem;
  padding: 0 14px;
}
.btn-ghost:hover { color: var(--text); }

.link-btn {
  background: none; border: 0; padding: 8px 4px; cursor: pointer;
  color: var(--neon); font: 700 1rem var(--font); text-decoration: underline; text-underline-offset: 4px;
}

/* ---------- Spinner / carregamento ---------- */
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(53, 167, 255, 0.2); border-top-color: var(--neon);
  animation: spin 0.8s linear infinite; display: inline-block;
}
.btn .spinner { width: 20px; height: 20px; border-width: 2.5px; border-color: rgba(255,255,255,.3); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.page-loading {
  min-height: 60vh; display: flex; flex-direction: column; gap: 16px;
  align-items: center; justify-content: center; color: var(--muted);
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 1rem; color: var(--text); }
.field input {
  min-height: 60px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(148, 163, 191, 0.28);
  background: rgba(10, 17, 34, 0.9);
  color: var(--text);
  font: 600 1.05rem var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: #6f7d99; font-weight: 500; }
.field input:focus { outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 4px rgba(8, 123, 255, 0.22); }
.field .hint { font-size: 0.9rem; color: var(--muted); }

.code-input {
  text-align: center;
  letter-spacing: 0.5em;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  padding-left: calc(18px + 0.5em) !important;
}

.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius-sm);
  font-size: 1rem; line-height: 1.5;
  background: rgba(255, 107, 122, 0.08); border: 1px solid rgba(255, 107, 122, 0.35); color: #ffd6db;
}
.alert svg { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.alert-info { background: rgba(53, 167, 255, 0.08); border-color: var(--border-strong); color: var(--text-2); }
.alert-warning { background: rgba(255, 200, 97, 0.08); border-color: rgba(255, 200, 97, 0.35); color: #ffe7b8; }

/* ---------- Tela de login ---------- */
.login {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 28px 18px 48px;
}
.login-card { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 28px; }

.login-cover {
  position: relative;
  width: min(100%, 380px);
  margin: 8px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(8, 123, 255, 0.55), 0 0 0 1px rgba(53, 167, 255, 0.06);
}
.login-cover img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.brand-title { text-align: center; }
.brand-title h1 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.55rem, 6vw, 2.1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 30%, #9fd2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-title .divider {
  width: 120px; height: 2px; margin: 16px auto;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
}
.brand-title p { color: var(--text-2); font-size: 1.08rem; }

.login-form {
  display: flex; flex-direction: column; gap: 20px;
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(10, 17, 34, 0.82), rgba(6, 10, 21, 0.92));
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.login-form h2 { font-size: 1.3rem; }
.login-form .lead { color: var(--text-2); }
.login-form .actions-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 0.9rem; text-align: center; }
.secure-note svg { width: 18px; height: 18px; color: var(--neon); }

.dev-banner {
  border: 1px dashed var(--warning); color: var(--warning); border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 0.95rem; text-align: center;
}
.dev-banner strong { font-size: 1.3rem; letter-spacing: 0.2em; color: #fff; }

/* ---------- Cabeçalho ---------- */
.app-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(2, 3, 10, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.app-header-inner {
  max-width: var(--page-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 18px; min-height: 68px;
}
.header-brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-brand); font-weight: 700; letter-spacing: 0.14em; font-size: 0.82rem; text-transform: uppercase;
}
.header-brand img { width: 38px; height: 38px; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent;
  color: var(--text-2); font: 700 0.95rem var(--font); text-decoration: none; cursor: pointer;
}
.header-btn svg { width: 24px; height: 24px; }
.header-btn:hover, .header-btn[aria-current='page'] { color: var(--text); border-color: var(--border); background: var(--surface-2); }

@media (max-width: 560px) {
  .header-brand span { display: none; }
  .header-btn { flex-direction: column; gap: 2px; padding: 4px 10px; min-height: 52px; font-size: 0.72rem; }
  .header-btn svg { width: 22px; height: 22px; }
}

/* ---------- Estrutura das páginas ---------- */
.page { max-width: var(--page-max); margin: 0 auto; padding: 28px 18px 72px; }

.welcome { padding: 18px 0 30px; }
.welcome .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--neon); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.welcome .eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--neon); border-radius: 2px; }
.welcome h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; margin: 12px 0 10px; }
.welcome p { color: var(--text-2); font-size: 1.12rem; max-width: 620px; }

.section-title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-brand); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text);
  margin: 10px 0 20px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }

/* ---------- Cards de produtos ---------- */
.product-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.product-card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.product-card.is-unlocked:hover { border-color: var(--border-strong); box-shadow: 0 24px 60px -30px rgba(8, 123, 255, 0.6); transform: translateY(-2px); }

.product-cover { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #000; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card.is-unlocked:hover .product-cover img { transform: scale(1.025); }

.product-card.is-locked .product-cover img { filter: brightness(0.7) saturate(0.85); }
/* Cadeado no canto superior direito, para não cobrir o nome do produto na capa */
.lock-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start; justify-content: flex-end; padding: 12px;
  background: linear-gradient(180deg, rgba(2, 3, 10, 0.35), rgba(2, 3, 10, 0) 40%);
}
.lock-badge {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(2, 3, 10, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.lock-badge svg { width: 32px; height: 32px; color: #fff; }

.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.status-pill svg { width: 16px; height: 16px; }
.status-pill.unlocked { color: #bfe3ff; background: rgba(8, 123, 255, 0.16); border: 1px solid rgba(53, 167, 255, 0.4); }
.status-pill.locked { color: #e6ebf5; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); }
.product-cover .status-pill { position: absolute; top: 14px; left: 14px; backdrop-filter: blur(8px); background: rgba(2, 3, 10, 0.7); }

.product-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; flex: 1; }
.product-body h3 { font-size: 1.3rem; font-weight: 800; }
.product-body p { color: var(--text-2); font-size: 0.98rem; }
.product-body .locked-msg { color: var(--muted); font-size: 0.94rem; }
.product-body .btn { margin-top: auto; padding: 0 14px; font-size: 0.9rem; letter-spacing: 0.04em; }
.product-body .spacer { flex: 1; min-height: 6px; }
.main-tag { color: var(--neon); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }

.skeleton-card { aspect-ratio: 1 / 1.55; }

/* ---------- Página do produto ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 18px 0 12px; margin-bottom: 20px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700;
}
.back-link svg { width: 22px; height: 22px; }
.back-link:hover { border-color: var(--border-strong); }

.product-hero {
  display: grid; gap: 24px; align-items: center;
  padding: 18px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(14, 24, 48, 0.75), rgba(6, 10, 21, 0.9));
  border: 1px solid var(--border);
  margin-bottom: 36px;
}
.product-hero img { width: 100%; max-width: 340px; margin: 0 auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 60px -30px rgba(8,123,255,.6); }
.product-hero h1 { font-size: clamp(1.7rem, 6vw, 2.5rem); font-weight: 800; margin: 10px 0 12px; }
.product-hero p { color: var(--text-2); font-size: 1.08rem; }
.product-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (min-width: 760px) {
  .product-hero { grid-template-columns: 300px 1fr; padding: 24px; gap: 36px; }
  .product-hero img { max-width: none; }
}

.theme-night .product-hero { background: linear-gradient(135deg, rgba(42, 30, 90, 0.5), rgba(6, 10, 21, 0.9)); border-color: rgba(150, 130, 255, 0.22); }
.theme-wine .product-hero { background: linear-gradient(135deg, rgba(90, 20, 50, 0.45), rgba(6, 10, 21, 0.9)); border-color: rgba(200, 90, 140, 0.22); }

.content-section { margin-bottom: 36px; }
.content-list { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .content-list { grid-template-columns: repeat(2, 1fr); } }

.content-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px; min-height: 96px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  color: var(--text); text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
a.content-item:hover { border-color: var(--border-strong); box-shadow: 0 16px 40px -24px rgba(8, 123, 255, 0.7); }
.content-item .icon {
  width: 56px; height: 56px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(53, 167, 255, 0.35), rgba(8, 123, 255, 0.1));
  border: 1px solid rgba(53, 167, 255, 0.35);
  color: #dff0ff;
}
.content-item .icon svg { width: 28px; height: 28px; }
.content-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.content-item .label { color: var(--neon); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.content-item .title { font-weight: 800; font-size: 1.08rem; line-height: 1.3; }
.content-item .meta { color: var(--muted); font-size: 0.92rem; }
.content-item .go {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 48px; padding: 0 16px; border-radius: 12px;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.content-item .go svg { width: 20px; height: 20px; }
.content-item.is-pending { opacity: 0.72; }
.content-item.is-pending .icon { filter: grayscale(0.6); }
.content-item .soon { flex: none; color: var(--muted); font-size: 0.85rem; font-weight: 700; text-align: right; }
@media (max-width: 480px) {
  .content-item { flex-wrap: wrap; }
  .content-item .go { width: 100%; justify-content: center; }
  .content-item .soon { width: 100%; text-align: left; padding-left: 72px; }
}

/* ---------- Página do material ---------- */
.material { max-width: 820px; margin: 0 auto; }
.material-head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.material-head .icon { width: 64px; height: 64px; }
.material-head h1 { font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 800; }
.material-head .label { color: var(--neon); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; }

.panel {
  padding: 24px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
}

/* Player de áudio próprio — botões grandes e claros */
.audio-player { display: flex; flex-direction: column; gap: 22px; align-items: center; padding: 30px 22px; }
.audio-visual { width: 100%; max-width: 460px; height: 90px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.audio-visual span { width: 5px; border-radius: 4px; background: linear-gradient(180deg, var(--neon), var(--blue)); opacity: 0.45; height: 20%; transition: height 0.3s; }
.audio-player.is-playing .audio-visual span { opacity: 0.95; animation: wave 1.2s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }
.audio-controls { display: flex; align-items: center; gap: 22px; }
.audio-play {
  width: 92px; height: 92px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--blue-light), var(--blue)); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 16px 40px -12px rgba(8, 123, 255, 0.8);
}
.audio-play svg { width: 40px; height: 40px; }
.audio-skip {
  width: 62px; height: 62px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  display: grid; place-items: center; font: 800 0.72rem var(--font);
}
.audio-skip svg { width: 22px; height: 22px; }
.audio-progress { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 8px; }
.audio-progress input[type='range'] { width: 100%; height: 36px; accent-color: var(--blue); cursor: pointer; }
.audio-times { display: flex; justify-content: space-between; color: var(--text-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.audio-tip { color: var(--muted); font-size: 0.95rem; text-align: center; }

.video-wrap video { width: 100%; border-radius: var(--radius); background: #000; }

.pdf-panel { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; padding: 34px 22px; }
.pdf-panel .big-icon { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; background: rgba(8,123,255,.14); border: 1px solid var(--border-strong); }
.pdf-panel .big-icon svg { width: 42px; height: 42px; color: #dff0ff; }
.pdf-panel p { color: var(--text-2); max-width: 460px; }
.pdf-frame { width: 100%; height: 75vh; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-top: 18px; }
@media (max-width: 760px) { .pdf-frame { display: none; } }

.reader { font-size: 1.08rem; line-height: 1.75; color: var(--text-2); }
.reader h2, .reader h3 { color: var(--text); margin: 1.4em 0 0.5em; }
.reader h2 { font-size: 1.4rem; }
.reader h3 { font-size: 1.18rem; }
.reader p { margin: 0 0 1em; }
.reader ul, .reader ol { padding-left: 1.4em; margin: 0 0 1em; }
.reader li { margin-bottom: 0.4em; }
.reader strong { color: var(--text); }
.reader > :first-child { margin-top: 0; }

.empty-state { text-align: center; padding: 48px 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-state .big-icon { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--border-strong); }
.empty-state .big-icon svg { width: 36px; height: 36px; color: var(--neon); }
.empty-state h2 { font-size: 1.4rem; }
.empty-state p { color: var(--text-2); max-width: 480px; }

/* ---------- Perfil ---------- */
.profile { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.profile-avatar {
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 2.1rem var(--font-brand); color: #fff;
  background: radial-gradient(circle at 30% 25%, var(--neon), var(--blue) 60%, #05306b);
  box-shadow: 0 16px 40px -14px var(--blue-glow);
  margin: 0 auto;
}
.profile-row { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.profile-row:last-child { border-bottom: 0; }
.profile-row .k { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.profile-row .v { font-size: 1.1rem; font-weight: 700; word-break: break-word; }
.profile-access { display: flex; flex-direction: column; gap: 10px; }
.profile-access li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.profile-access ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(2, 3, 10, 0.78); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal {
  width: 100%; max-width: 460px;
  padding: 28px 24px; border-radius: var(--radius-lg);
  background: var(--surface-2); border: 1px solid var(--border-strong);
  display: flex; flex-direction: column; gap: 16px; text-align: center;
}
.modal h2 { font-size: 1.35rem; }
.modal p { color: var(--text-2); }

/* ---------- Avisos (toast) ---------- */
#toast-root { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 16px; pointer-events: none; }
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  max-width: 520px; width: 100%;
  padding: 16px 18px; border-radius: var(--radius);
  background: #0b1630; border: 1px solid var(--border-strong); color: var(--text);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  animation: toast-in 0.3s ease;
}
.toast svg { width: 24px; height: 24px; color: var(--neon); flex: none; }
.toast.success svg { color: var(--success); }
.toast.error svg { color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.waiting-banner {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: rgba(8, 123, 255, 0.08); color: var(--text-2);
}
.waiting-banner .spinner { width: 22px; height: 22px; flex: none; }

.app-footer { text-align: center; color: #5f6c86; font-size: 0.85rem; padding: 10px 18px 40px; }

/* ==========================================================================
   SUBMÓDULOS (cards com imagem dentro de cada produto)
   ========================================================================== */
.module-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .module-grid { grid-template-columns: repeat(4, 1fr); } }

.module-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
a.module-card:hover { border-color: var(--border-strong); box-shadow: 0 24px 60px -30px rgba(8, 123, 255, 0.6); transform: translateY(-2px); }
.module-image { aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.module-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
a.module-card:hover .module-image img { transform: scale(1.03); }
.module-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.module-label { color: var(--neon); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.module-body h3 { font-size: 1.18rem; font-weight: 800; line-height: 1.3; }
.module-note { color: var(--text-2); font-size: 0.95rem; }
.module-body .module-btn { margin-top: auto; }
.module-card.is-pending { opacity: 0.92; }
.module-card.is-pending .module-image img { filter: brightness(0.85); }
.module-soon { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.module-soon svg { width: 18px; height: 18px; }

.material-banner { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-bottom: 20px; aspect-ratio: 16 / 10; background: #000; }
.material-banner img { width: 100%; height: 100%; object-fit: cover; }


/* ==========================================================================
   GUIAS EXIBIDOS DENTRO DO APP (texto formatado)
   ========================================================================== */
.reader.rich { padding: 28px 22px; }
@media (min-width: 760px) { .reader.rich { padding: 36px 40px; } }
.reader.rich h2 { color: var(--neon); font-size: 1.45rem; margin: 1.6em 0 0.6em; }
.reader.rich > :first-child, .reader.rich .section:first-child > h2:first-child { margin-top: 0; }
.reader.rich h3 { color: var(--text); font-size: 1.18rem; margin: 1.4em 0 0.5em; }
.reader.rich em { color: var(--text); }
.reader.rich .box {
  border: 1px solid var(--border-strong); background: rgba(8, 123, 255, 0.08);
  border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; color: var(--text-2);
}
.reader.rich .box strong:first-child { color: var(--neon); }
.reader.rich .box.warn { border-color: rgba(255, 200, 97, 0.4); background: rgba(255, 200, 97, 0.07); }
.reader.rich .box.warn strong:first-child { color: var(--warning); }
.reader.rich .step { display: flex; gap: 16px; align-items: flex-start; margin: 18px 0; }
.reader.rich .step .n {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--blue-light), var(--blue)); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.reader.rich .step .t { flex: 1; min-width: 0; }
.reader.rich .step .t b { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 4px; }
.reader.rich .step ul { margin-top: 8px; }
.reader.rich .time {
  display: inline-block; background: rgba(8, 123, 255, 0.2); color: #bfe3ff; border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 2px 12px; font-size: 0.82rem; font-weight: 800; margin-bottom: 6px;
}
.reader.rich .table-wrap { overflow-x: auto; margin: 14px 0 22px; }
.reader.rich table { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 480px; }
.reader.rich th { background: var(--surface-3); color: var(--text); text-align: left; padding: 12px; border-bottom: 1px solid var(--border-strong); }
.reader.rich td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.reader.rich .fig { background: #fff; border-radius: var(--radius); padding: 16px; margin: 20px 0; text-align: center; }
.reader.rich .fig svg { max-width: 100%; height: auto; }
.reader.rich .note { font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 28px; }
/* ==========================================================================
   BIBLIOTECA DE ÁUDIOS
   ========================================================================== */
.material-banner.compact { aspect-ratio: 16 / 5; }
.lib-player { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 28px 22px; position: sticky; top: 80px; z-index: 5; box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.9); }
@media (max-width: 760px) { .lib-player { position: static; } }
.lib-now { width: 100%; max-width: 560px; display: flex; align-items: center; gap: 16px; }
.lib-now-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lib-now-label { color: var(--neon); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.lib-now h2 { font-size: 1.35rem; font-weight: 800; line-height: 1.25; }
.lib-now-count { color: var(--muted); font-size: 0.9rem; }
.lib-eq { flex: none; width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 14px 12px; background: radial-gradient(circle at 30% 20%, rgba(53,167,255,.35), rgba(8,123,255,.1)); border: 1px solid var(--border-strong); }
.lib-eq span { width: 5px; height: 30%; border-radius: 3px; background: var(--neon); }
.lib-player.is-playing .lib-eq span { animation: eq 0.9s ease-in-out infinite; }
.lib-eq span:nth-child(2) { animation-delay: .15s !important; } .lib-eq span:nth-child(3) { animation-delay: .3s !important; } .lib-eq span:nth-child(4) { animation-delay: .45s !important; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.lib-progress { width: 100%; max-width: 560px; }
.lib-controls { display: flex; align-items: center; gap: 22px; }
.lib-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 78px; padding: 10px 0; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font: 700 0.78rem var(--font);
}
.lib-btn svg { width: 26px; height: 26px; }
.lib-btn:hover { border-color: var(--neon); }
.lib-repeat {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--border-strong); background: transparent; color: var(--text-2); font: 600 0.95rem var(--font);
}
.lib-repeat svg { width: 22px; height: 22px; }
.lib-repeat.is-on { background: rgba(8, 123, 255, 0.18); border-color: var(--neon); color: #fff; }
.lib-repeat.is-on strong { color: var(--neon); }
.lib-tip { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 8px; color: var(--muted); font-size: 0.92rem; }
.lib-tip svg { width: 20px; height: 20px; flex: none; color: var(--neon); margin-top: 2px; }
.lib-list .section-title { margin-top: 30px; }
.lib-tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .lib-tracks { grid-template-columns: repeat(2, 1fr); } }
.lib-track {
  width: 100%; display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 10px 14px; cursor: pointer; text-align: left;
  border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  color: var(--text); font: inherit;
}
.lib-track:hover { border-color: var(--border-strong); }
.lib-track.is-current { border-color: var(--neon); background: linear-gradient(180deg, rgba(8, 123, 255, 0.22), rgba(8, 123, 255, 0.06)); }
.lib-num { flex: none; width: 38px; text-align: center; color: var(--muted); font-weight: 800; font-variant-numeric: tabular-nums; }
.lib-track.is-current .lib-num { color: var(--neon); }
.lib-track-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lib-track-title { font-weight: 700; font-size: 1.02rem; }
.lib-track-note { color: var(--muted); font-size: 0.88rem; }
.lib-track-state { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--border-strong); color: #fff; }
.lib-track-state svg { width: 18px; height: 18px; }
.lib-track.is-current .lib-track-state { background: var(--blue); border-color: var(--blue); }
/* ---------------------------------------------------------------------------
   Mapa Auditivo (Bônus 2 do Accélérateur) — registro interativo
--------------------------------------------------------------------------- */
.auditory-map { margin-top: 24px; }
.map-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.map-tab {
  min-height: var(--tap); border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong);
  background: transparent; color: var(--text); font: 700 1.05rem var(--font); cursor: pointer;
}
.map-tab[aria-selected="true"] { background: linear-gradient(180deg, var(--blue-light), var(--blue)); border-color: transparent; }
.map-form { display: flex; flex-direction: column; gap: 22px; }
.map-q { display: flex; flex-direction: column; gap: 10px; }
.map-label { font-weight: 800; font-size: 1.1rem; color: var(--text); }
.map-label small { display: block; font-weight: 500; font-size: .92rem; color: var(--muted); margin-top: 2px; }
.auditory-map .input {
  width: 100%; min-height: 56px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(148, 163, 191, 0.28); background: rgba(10, 17, 34, 0.9);
  color: var(--text); font: 600 1.05rem var(--font); color-scheme: dark; resize: vertical;
}
.auditory-map .input:focus { outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 4px rgba(8, 123, 255, 0.22); }
.map-scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; }
.map-level, .map-chip {
  border: 1.5px solid var(--border-strong); background: rgba(8, 123, 255, 0.06); color: var(--text);
  font: 700 1rem var(--font); border-radius: 12px; cursor: pointer;
}
.map-level { min-height: 52px; padding: 0; }
.map-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.map-chip { min-height: 48px; padding: 8px 16px; }
.map-level[aria-pressed="true"], .map-chip[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--blue-light), var(--blue)); border-color: transparent; box-shadow: 0 0 0 3px var(--blue-glow);
}
.map-error { color: var(--danger); font-weight: 700; margin: 0; }
.map-meta { color: var(--muted); }
.map-empty { text-align: center; padding: 12px 0; }
.map-insights ul { margin: 8px 0 0; }
.map-bar { display: grid; grid-template-columns: minmax(110px, 34%) 1fr auto; gap: 10px; align-items: center; margin: 10px 0; }
.map-bar-label { font-weight: 600; }
.map-bar-track { height: 14px; border-radius: 99px; background: rgba(148, 163, 191, 0.16); overflow: hidden; }
.map-bar-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--neon)); }
.map-bar-value { font-weight: 800; min-width: 64px; text-align: right; }
.map-bar-value small, .map-strategy small { color: var(--muted); font-weight: 500; }
.map-strategy {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.map-stars { font-weight: 800; color: var(--neon); }
.map-list { list-style: none; padding: 0; margin: 0; }
.map-list li { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin: 10px 0; }
.map-list-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.map-list-level {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--blue-light), var(--blue)); font-weight: 800; font-size: 1.15rem;
}
.map-list-line { color: var(--muted); margin-top: 8px; }
.auditory-map .btn-link { background: none; border: 0; color: var(--danger); font: 700 1rem var(--font); cursor: pointer; padding: 10px; }
@media (max-width: 520px) {
  .map-scale { grid-template-columns: repeat(6, 1fr); }
  .map-bar { grid-template-columns: 1fr auto; }
  .map-bar-track { grid-column: 1 / -1; grid-row: 2; }
}