/* ════════════════════════════════════════════════════════
   LearnStation.AI — Agentic HR
   ════════════════════════════════════════════════════════ */

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

:root {
  --brand-500: #FA5A50;
  --brand-rgb: 250,90,80;
  --brand-600: #e04840;
  --brand-700: #c23530;
  --indigo-400: #93c5fd;
  --indigo-500: #3b82f6;
  --indigo-600: #2563eb;
  --destructive: #f43f5e;
  --success:     #22c55e;
  --warning:     #f59e0b;
  --bg:          #0f1b3d;
  --bg-card:     #162040;
  --bg-card-2:   #1a2850;
  --bg-hover:    #1f3060;
  --border:      #2a3f6e;
  --border-dim:  #1e3060;
  --text:        #e8eeff;
  --text-muted:  #8aa0cc;
  --text-dim:    #4a6090;
  --radius:      0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1.25rem;
  --radius-pill: 999px;
  --font: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
  --sidebar-w: 76px;
  --header-h:  58px;

  /* Noise texture — subtle grain on backgrounds */
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }

/* Focus-visible global — keyboard nav sem afetar mouse */
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Cursor pointer para tudo clicável */
[role="button"], label[for], summary { cursor: pointer; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  /* Subtle dot-grid on the page background */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(250,90,80,0.08) 0%, transparent 45%),
    radial-gradient(circle at 80% 100%, rgba(59,130,246,0.07) 0%, transparent 45%),
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); }

/* ── App shell ── */
.app-shell { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w); min-height: 100vh;
  background: rgba(15,27,61,0.92);
  border-right: 1px solid var(--border-dim);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; align-items: center; padding: 1rem 0;
  position: fixed; top: 0; left: 0; z-index: 50;
}
.sidebar-logo { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.sidebar-nav  { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex: 1; }
.sidebar-bottom { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding-bottom: 0.5rem; }
.sidebar-btn {
  width: 44px; height: 44px; border-radius: var(--radius); border: none; background: transparent;
  color: var(--text-dim); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; position: relative; font-size: 1.25rem;
}
.sidebar-btn:hover { background: var(--bg-hover); color: var(--text-muted); }
.sidebar-btn.active {
  background: rgba(250,90,80,0.12); color: var(--brand-500);
  box-shadow: inset 0 0 0 1px rgba(250,90,80,0.25), 0 0 12px rgba(250,90,80,0.15);
}
.sidebar-btn .ti { font-size: 1.25rem; }
.sidebar-btn::after {
  content: attr(title); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: var(--bg-card-2); border: 1px solid var(--border); color: var(--text);
  font-size: 0.75rem; font-weight: 500; padding: 0.3rem 0.625rem; border-radius: var(--radius);
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.15s; z-index: 100;
}
.sidebar-btn:hover::after { opacity: 1; }

/* ── Main ── */
.main-area { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* ── Header ── */
.app-header {
  height: var(--header-h); border-bottom: 1px solid var(--border-dim);
  background: rgba(15,27,61,0.88); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; position: sticky; top: 0; z-index: 40;
}
.app-header-left  { display: flex; align-items: center; gap: 0.75rem; }
.header-breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; }
.header-brand { color: var(--text-dim); font-weight: 600; }
.header-sep   { color: var(--border); font-size: 0.75rem; }
.header-page  { color: var(--text); font-weight: 600; }
.app-header-right { display: flex; align-items: center; gap: 0.75rem; }

/* ── Language toggle (fixed global) ── */
#lang-toggle {
  position: fixed; top: 0.875rem; right: 1rem; z-index: 9000;
  display: flex; align-items: center; gap: 2px;
  background: rgba(14,24,52,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  padding: 3px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
}
.lang-btn {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.3rem 0.625rem;
  border: none; border-radius: calc(var(--radius-pill) - 3px);
  background: transparent; cursor: pointer;
  font-family: var(--font); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--text-dim);
  transition: all 0.18s; white-space: nowrap;
}
.lang-btn:hover { color: var(--text-muted); background: rgba(255,255,255,0.06); }
.lang-btn.active {
  background: var(--brand-500); color: #fff;
  box-shadow: 0 2px 8px rgba(250,90,80,0.35);
}
.lang-flag {
  display: flex; align-items: center; border-radius: 2px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4); flex-shrink: 0;
  opacity: 0.85;
}
.lang-btn.active .lang-flag { opacity: 1; }
.lang-code { line-height: 1; }
.user-chip {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.3rem 0.75rem 0.3rem 0.3rem; border-radius: var(--radius-pill);
  background: var(--bg-card-2); border: 1px solid var(--border); cursor: pointer;
}
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo-500) 0%, var(--brand-500) 100%);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: #fff;
}
.user-name { font-size: 0.8125rem; font-weight: 600; color: var(--text); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Views ── */
.view { display: none; }
.view.active { display: block; }
.view-fullpage { min-height: 100vh; }
.shell-view { flex: 1; }

/* ── Badge (polymorphic) ── */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.2rem 0.625rem; border-radius: var(--radius-pill); white-space: nowrap; }
.badge-brand   { background: rgba(250,90,80,0.12); color: var(--brand-500); border: 1px solid rgba(250,90,80,0.25); }
.badge-indigo  { background: rgba(99,102,241,0.12); color: var(--indigo-400); border: 1px solid rgba(99,102,241,0.25); }
.badge-warning { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.25); }
.badge-neutral { background: rgba(255,255,255,0.06); color: var(--text-dim); border: 1px solid var(--border-dim); }
.badge-sm { font-size: 0.6rem; padding: 0.15rem 0.5rem; }

/* ── Button ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--font); font-weight: 600; letter-spacing: 0.01em; border: none; cursor: pointer; border-radius: var(--radius); transition: all 0.18s cubic-bezier(0.4,0,0.2,1); white-space: nowrap; }
.btn:disabled { opacity: 0.38; cursor: not-allowed; }
.btn-lg { font-size: 0.9375rem; padding: 0.75rem 1.5rem; }
.btn-md { font-size: 0.8125rem; padding: 0.55rem 1.125rem; }
.btn-sm { font-size: 0.75rem;   padding: 0.375rem 0.875rem; }
.btn-primary {
  background: var(--brand-500); color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover:not(:disabled) { background: var(--brand-600); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(250,90,80,0.35), inset 0 1px 0 rgba(255,255,255,0.1); }
.btn-primary:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.btn-secondary   { background: var(--bg-card-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--border); }
.btn-brand-ghost { background: rgba(250,90,80,0.08); color: var(--brand-500); border: 1px solid rgba(250,90,80,0.2); }
.btn-brand-ghost:hover:not(:disabled) { background: rgba(250,90,80,0.15); border-color: rgba(250,90,80,0.35); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,0.08); color: var(--text); }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius); background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.btn-icon:hover { background: var(--bg-hover); color: var(--text-muted); }

/* ── Card ── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card-hover { cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.card-hover:hover { border-color: rgba(250,90,80,0.3); box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(250,90,80,0.08); transform: translateY(-2px); }

/* ── Input ── */
.input { width: 100%; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; font-family: var(--font); font-size: 0.9375rem; color: var(--text); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.input::placeholder { color: var(--text-dim); }
.input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(250,90,80,0.1); }

/* ── Tag ── */
.tag { background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.18); color: var(--indigo-400); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.175rem 0.5rem; border-radius: var(--radius-pill); }

/* ════════════════════════════════════════════════════════
   ONBOARDING
   ════════════════════════════════════════════════════════ */

/* ── Vídeo de fundo ── */
#ob-bg-video {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0; pointer-events: none;
  opacity: 0.22; filter: brightness(0.6) saturate(0.75);
}

/* ── Aurora blobs ── */
@keyframes aurora-1 {
  0%   { transform: translate(0%,    0%)   scale(1);   }
  25%  { transform: translate(20%,  -20%)  scale(1.2); }
  50%  { transform: translate(-20%,  20%)  scale(0.8); }
  75%  { transform: translate(10%,  -10%)  scale(1.1); }
  100% { transform: translate(0%,    0%)   scale(1);   }
}
@keyframes aurora-2 {
  0%   { transform: translate(0%,    0%)   scale(1);   }
  25%  { transform: translate(-20%,  20%)  scale(1.1); }
  50%  { transform: translate(20%,  -20%)  scale(0.9); }
  75%  { transform: translate(-10%,  10%)  scale(1.2); }
  100% { transform: translate(0%,    0%)   scale(1);   }
}

#ob-aurora {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
#ob-aurora::before {
  content: '';
  position: absolute; top: -25%; left: 15%;
  width: min(640px, 60vw); height: min(640px, 60vw);
  border-radius: 50%;
  background: rgba(250, 90, 80, 0.18);
  filter: blur(100px);
  animation: aurora-1 22s ease-in-out infinite;
}
#ob-aurora::after {
  content: '';
  position: absolute; bottom: -25%; right: 15%;
  width: min(640px, 60vw); height: min(640px, 60vw);
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  filter: blur(120px);
  animation: aurora-2 22s ease-in-out infinite;
}
.ob-aurora-mid {
  position: absolute; top: 30%; left: 40%;
  width: min(400px, 40vw); height: min(400px, 40vw);
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  filter: blur(90px);
  animation: aurora-1 28s ease-in-out infinite reverse;
  pointer-events: none;
}

/* Overlay escuro sobre tudo */
#ob-canvas-overlay {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(15,27,61,0.65) 0%,
    rgba(15,27,61,0.38) 50%,
    rgba(15,27,61,0.65) 100%
  );
}

/* ── Animações de entrada ── */
@keyframes ob-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Layout: coluna única centrada, empilhado vertical */
.ob-wrap {
  min-height: 100vh; position: relative; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 5rem clamp(1.5rem, 8vw, 10rem) 5rem;
  gap: 3.5rem;
}

/* ── Hero copy: texto centralizado ── */
.ob-hero {
  width: 100%; max-width: 680px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0;
}
.ob-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand-500); margin-bottom: 1.5rem;
  opacity: 0; animation: ob-fade-up 0.65s 0.1s ease forwards;
}
.ob-hero-eyebrow::before {
  content: ''; width: 20px; height: 1px; background: var(--brand-500); flex-shrink: 0;
}
.ob-hero-eyebrow::after {
  content: ''; width: 20px; height: 1px; background: var(--brand-500); flex-shrink: 0;
}
.ob-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1.06; color: #fff;
  margin-bottom: 1.25rem;
  opacity: 0; animation: ob-fade-up 0.75s 0.28s ease forwards;
}
.ob-hero-title em { font-style: normal; color: var(--brand-500); }
.ob-hero-desc {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem); color: var(--text-muted);
  line-height: 1.75; max-width: 560px; margin-bottom: 2rem; font-weight: 400;
  opacity: 0; animation: ob-fade-up 0.75s 0.44s ease forwards;
}
.ob-hero-stats {
  display: flex; gap: 3rem; flex-wrap: wrap; justify-content: center;
  opacity: 0; animation: ob-fade-up 0.75s 0.58s ease forwards;
}
.ob-hero-stat-num {
  display: block; font-size: 1.75rem; font-weight: 900;
  letter-spacing: -0.05em; color: #fff; line-height: 1; margin-bottom: 0.2rem;
}
.ob-hero-stat-num span { color: var(--brand-500); }
.ob-hero-stat-label { font-size: 0.6875rem; color: var(--text-dim); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

/* ── Card: centralizado, aparece depois ── */
.ob-panel {
  width: 100%; display: flex; justify-content: center;
  opacity: 0; animation: ob-fade-up 0.85s 0.88s ease forwards;
}
.ob-card {
  background: rgba(14,24,52,0.82);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl); padding: 2.75rem 2.75rem;
  width: 100%; max-width: 480px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
}

@media (max-width: 600px) {
  .ob-wrap { padding: 3.5rem 1.25rem 4rem; gap: 2.5rem; }
  .ob-card { padding: 2rem 1.5rem; }
}
.ob-logo-row { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 2rem; }
.ob-logo-mark { width: 28px; height: 28px; background: var(--brand-500); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.ob-logo-text { font-size: 0.8125rem; font-weight: 700; color: var(--text); }
.ob-logo-sub  { font-size: 0.75rem; color: var(--text-dim); margin-left: 0.25rem; }
.ob-progress { display: flex; gap: 0.375rem; margin-bottom: 2rem; }
.ob-dot { height: 3px; border-radius: 2px; flex: 1; background: var(--border); transition: background 0.25s; }
.ob-dot.on { background: var(--brand-500); }
.ob-eyebrow { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-500); margin-bottom: 0.625rem; display: flex; align-items: center; gap: 0.5rem; }
.ob-eyebrow::before { content: ''; width: 12px; height: 2px; background: var(--brand-500); border-radius: 1px; display: block; flex-shrink: 0; }
.ob-h1 { font-size: clamp(1.375rem, 3.5vw, 1.875rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; color: #fff; margin-bottom: 0.5rem; }
.ob-p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.5rem; }
.ob-step    { display: none; }
.ob-step.on { display: block; }
.field-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.5rem; }
.ob-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; margin-bottom: 1.5rem; }
.ob-field-group { display: flex; flex-direction: column; }
@media (max-width: 480px) { .ob-fields { grid-template-columns: 1fr; } }
.opt-grid { display: grid; gap: 0.5rem; margin-bottom: 0.25rem; }
.opt-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.opt-grid.cols-1 { grid-template-columns: 1fr; }
.opt-card {
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 0.875rem 1rem;
  cursor: pointer; transition: border-color 0.18s, background 0.18s, transform 0.15s, box-shadow 0.18s;
  display: flex; align-items: center; gap: 0.75rem; user-select: none;
  position: relative; overflow: hidden;
}
.opt-card:hover { border-color: rgba(250,90,80,0.35); background: var(--bg-hover); transform: translateY(-1px); }
.opt-card.on {
  border-color: var(--brand-500); background: rgba(250,90,80,0.07);
  box-shadow: 0 0 0 1px rgba(250,90,80,0.2), 0 4px 16px rgba(250,90,80,0.1);
}
/* Ripple */
.opt-card .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(250,90,80,0.25); transform: scale(0);
  animation: ripple-out 0.5s linear;
  pointer-events: none;
}
@keyframes ripple-out {
  to { transform: scale(4); opacity: 0; }
}
.opt-icon { font-size: 1.125rem; flex-shrink: 0; margin-top: 0.05rem; }
.opt-name { font-size: 0.875rem; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 0; }
.opt-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }
.ob-footer  { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.btn-link   { background: none; border: none; color: var(--text-dim); font-size: 0.8125rem; font-weight: 500; cursor: pointer; padding: 0.25rem; transition: color 0.15s; }
.btn-link:hover { color: var(--text-muted); }

/* ════════════════════════════════════════════════════════
   ASSESSMENT
   ════════════════════════════════════════════════════════ */
.as-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem;
  background: radial-gradient(ellipse at 70% 30%, rgba(59,130,246,0.12) 0%, transparent 55%),
              radial-gradient(ellipse at 30% 70%, rgba(255,107,74,0.1) 0%, transparent 55%), var(--bg);
}
.as-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2.5rem 3rem; max-width: 600px; width: 100%; }
.as-prog-row { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 2rem; }
.as-prog-bar  { flex: 1; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.as-prog-fill { height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--indigo-500)); transition: width 0.4s; }
.as-prog-label { font-size: 0.75rem; font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.as-eyebrow { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo-400); margin-bottom: 0.625rem; display: flex; align-items: center; gap: 0.5rem; }
.as-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--indigo-500); display: block; }
.as-q   { font-size: clamp(1.05rem, 2.5vw, 1.3rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.3; color: #fff; margin-bottom: 0.375rem; }
.as-ctx { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.as-opts { display: flex; flex-direction: column; gap: 0.5rem; }
.as-opt { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1.125rem; cursor: pointer; display: flex; align-items: flex-start; gap: 0.875rem; transition: border-color 0.15s, background 0.15s, transform 0.12s; }
.as-opt:hover { border-color: rgba(99,102,241,0.4); background: var(--bg-hover); transform: translateX(2px); }
.as-opt.on    { border-color: var(--indigo-500); background: rgba(99,102,241,0.08); }
.as-letter { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; margin-top: 0.05rem; background: var(--bg); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; color: var(--text-dim); transition: all 0.15s; }
.as-opt.on .as-letter { background: var(--indigo-500); border-color: var(--indigo-500); color: #fff; }
.as-opt-text { font-size: 0.9rem; color: var(--text); line-height: 1.45; flex: 1; }
.as-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1.75rem; }
.as-result-wrap { padding-top: 0.5rem; }
.as-result-title { font-size: clamp(1.375rem, 3.5vw, 1.875rem); font-weight: 800; letter-spacing: -0.035em; color: #fff; margin-bottom: 0.5rem; margin-top: 0.75rem; }
.as-result-desc  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.as-result-btns  { display: flex; flex-direction: column; gap: 0.625rem; }

/* ════════════════════════════════════════════════════════
   PORTAL
   ════════════════════════════════════════════════════════ */
.portal-scroll { height: calc(100vh - var(--header-h)); overflow-y: auto; }
.portal-inner  { max-width: 820px; margin: 0 auto; padding: 2.5rem 2rem 5rem; }
.portal-welcome { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.portal-greeting { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.04em; color: #fff; margin-bottom: 0.3rem; line-height: 1.1; }
.portal-greeting em { font-style: normal; color: var(--brand-500); }
.portal-sub { font-size: 0.875rem; color: var(--text-muted); font-weight: 400; }
.portal-overall {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1rem 1.375rem;
  position: relative; overflow: hidden;
}
.portal-overall::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(250,90,80,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.portal-overall-pct  { font-size: 1.875rem; font-weight: 900; letter-spacing: -0.05em; color: var(--brand-500); line-height: 1; }
.portal-overall-info { font-size: 0.75rem; color: var(--text-dim); }
.portal-overall-info strong { color: var(--text-muted); display: block; font-size: 0.8125rem; }
/* Notice banner — sem borda lateral, com glow top + grid decorativa */
.notice-banner {
  display: flex; align-items: flex-start; gap: 1rem;
  position: relative; overflow: hidden;
  background: var(--bg-card-2);
  border: 1px solid rgba(250,90,80,0.22);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
}
.notice-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(250,90,80,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(59,130,246,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.notice-banner::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(250,90,80,0.7) 0%, rgba(59,130,246,0.4) 60%, transparent 100%);
}
.notice-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; position: relative; z-index: 1; }
.notice-body { position: relative; z-index: 1; }
.notice-title { font-size: 0.75rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.notice-text { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.notice-link { color: var(--brand-500); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-style: dotted; transition: color 0.15s, text-decoration-style 0.15s; }
.notice-link:hover { color: #fff; text-decoration-style: solid; }

.stages { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.stage {
  border-radius: var(--radius-xl); border: 1px solid var(--border);
  background: var(--bg-card); overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.stage.s-active {
  border-color: rgba(250,90,80,0.3);
  box-shadow: 0 0 0 1px rgba(250,90,80,0.06), 0 4px 24px rgba(0,0,0,0.2);
}
.stage.s-locked { opacity: 0.45; pointer-events: none; }
.stage.s-done   { border-color: rgba(250,90,80,0.18); }
.stage-hd {
  display: flex; align-items: center; gap: 1rem; padding: 1.375rem 1.5rem;
  cursor: pointer; transition: background 0.18s;
}
.stage-hd:hover { background: rgba(255,255,255,0.025); }
.stage-icon {
  width: 42px; height: 42px; border-radius: var(--radius); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.125rem;
  background: var(--bg-card-2); border: 1px solid var(--border); color: var(--text-dim);
  transition: all 0.2s;
}
.stage.s-active .stage-icon {
  background: rgba(250,90,80,0.1); border-color: rgba(250,90,80,0.25);
  color: var(--brand-500); box-shadow: 0 0 16px rgba(250,90,80,0.2);
}
.stage.s-done   .stage-icon { background: rgba(250,90,80,0.08); border-color: var(--brand-600); color: var(--brand-500); }
.stage-info { flex: 1; }
.stage-lbl {
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.25rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.stage-lbl::before { content: ''; width: 16px; height: 1px; background: currentColor; opacity: 0.5; display: block; }
.stage.s-active .stage-lbl { color: var(--brand-500); }
.stage-title    { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.15rem; letter-spacing: -0.01em; }
.stage-subtitle { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.stage-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; flex-shrink: 0; }
.stage-arrow { color: var(--text-dim); font-size: 1rem; transition: transform 0.25s cubic-bezier(0.4,0,0.2,1); }
.stage.open .stage-arrow { transform: rotate(180deg); }
.stage-prog-wrap { padding: 0 1.5rem 0.75rem; }
.stage-prog-bar  { height: 3px; background: var(--border-dim); border-radius: 99px; overflow: hidden; }
.stage-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-500) 0%, #f97316 50%, var(--indigo-400) 100%);
  background-size: 200% 100%;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  animation: shimmer-bar 3s linear infinite;
}
@keyframes shimmer-bar {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.stage-body { display: none; }
.stage.open .stage-body { display: block; }
.mod-list { padding: 0.5rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mod-list-hdr {
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); padding-bottom: 0.625rem; border-bottom: 1px solid var(--border-dim);
  margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}

/* MOD — novo layout sem borda lateral, spotlight no hover */
.mod {
  display: flex; align-items: flex-start; gap: 0.875rem;
  padding: 0.875rem 1rem; border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
/* spotlight que segue o mouse via CSS — ativa no hover */
.mod::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(250,90,80,0.08) 0%, transparent 65%);
  transition: opacity 0.2s;
  pointer-events: none;
}
.mod:hover { border-color: rgba(250,90,80,0.18); background: rgba(255,255,255,0.02); }
.mod:hover::before { opacity: 1; }
.mod.done {
  background: rgba(250,90,80,0.025);
  border-color: rgba(250,90,80,0.1);
}
.mod.done::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(250,90,80,0.4) 0%, transparent 70%);
}
.mod.coming { opacity: 0.4; cursor: default; pointer-events: none; }

.mod-check {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 0.05rem;
  border-radius: 50%; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: transparent;
  transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
  background: transparent;
}
.mod:hover .mod-check { border-color: rgba(250,90,80,0.5); }
.mod.done .mod-check {
  background: var(--brand-500); border-color: var(--brand-500); color: #fff;
  box-shadow: 0 0 10px rgba(250,90,80,0.45);
}
.mod-body  { flex: 1; min-width: 0; }
.mod-title { font-size: 0.875rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; line-height: 1.3; }
.mod-desc  { font-size: 0.775rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.5rem; }
.mod-meta  { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.mod-dur   { font-size: 0.7rem; color: var(--text-dim); display: flex; align-items: center; gap: 0.2rem; }
.src-badge { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: var(--radius-pill); }
.src-linkedin  { background: rgba(0,119,181,0.15); color: #60a5fa; border: 1px solid rgba(0,119,181,0.2); }
.src-anthropic { background: rgba(250,90,80,0.1); color: var(--brand-500); border: 1px solid rgba(250,90,80,0.2); }
.src-ciandt    { background: rgba(99,102,241,0.1); color: var(--indigo-400); border: 1px solid rgba(99,102,241,0.2); }
.src-interno   { background: rgba(245,158,11,0.1); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
.src-serie     { background: rgba(99,102,241,0.08); color: var(--indigo-400); border: 1px solid rgba(99,102,241,0.15); }
.src-coursera  { background: rgba(0,86,210,0.12); color: #60a5fa; border: 1px solid rgba(0,86,210,0.22); }
.mod-req   { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fb7185; }
.mod-opt   { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fbbf24; }

/* Filtro de módulos */
.mod-filter { display: flex; gap: 0.375rem; margin-left: auto; }
.mod-filter-btn {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.625rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border-dim); background: transparent;
  color: var(--text-dim); cursor: pointer; font-family: var(--font);
  transition: all 0.15s;
}
.mod-filter-btn:hover { border-color: var(--border); color: var(--text-muted); }
.mod-filter-btn.active { border-color: var(--brand-500); color: var(--brand-500); background: rgba(250,90,80,0.07); }
.mod-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.375rem; flex-shrink: 0; }
.mod-btn-open { font-size: 0.7rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: var(--radius-pill); background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; transition: all 0.15s; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.mod-btn-open:hover { border-color: var(--brand-500); color: var(--brand-500); }
.mod-btn-done { font-size: 0.7rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: var(--radius-pill); background: transparent; border: 1px solid var(--border-dim); color: var(--text-dim); cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.mod-btn-done:hover:not(.is-done) { border-color: var(--brand-500); color: var(--brand-500); background: rgba(250,90,80,0.06); }
.mod-btn-done.is-done { border-color: rgba(250,90,80,0.2); color: var(--brand-500); background: rgba(250,90,80,0.06); }
.stage-locked-msg { padding: 1.25rem 1.5rem; font-size: 0.875rem; color: var(--text-muted); border-top: 1px solid var(--border-dim); display: flex; align-items: center; gap: 0.625rem; }

/* ════════════════════════════════════════════════════════
   EPISODES GRID
   ════════════════════════════════════════════════════════ */
.ep-grid-scroll { height: calc(100vh - var(--header-h)); overflow-y: auto; }
.ep-grid-inner  { max-width: 960px; margin: 0 auto; padding: 2rem 2rem 5rem; }
.ep-grid-title  { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.25rem; }
.ep-grid        { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.ep-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
  transform-style: preserve-3d; perspective: 800px;
  will-change: transform;
}
.ep-card:hover {
  border-color: rgba(250,90,80,0.35);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(250,90,80,0.12);
}
.ep-card.locked { opacity: 0.4; cursor: default; pointer-events: none; }
.ep-thumb { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; border-bottom: 1px solid var(--border-dim); }
.ep-card:nth-child(1) .ep-thumb { background: linear-gradient(135deg,#0a1628,#0e2040,#112855); }
.ep-card:nth-child(2) .ep-thumb { background: linear-gradient(135deg,#0a1e14,#0d3020,#0a3f28); }
.ep-card:nth-child(3) .ep-thumb { background: linear-gradient(135deg,#1a1028,#261540,#301855); }
.ep-card:nth-child(4) .ep-thumb { background: linear-gradient(135deg,#281210,#3d1a18,#501e1c); }
.ep-card:nth-child(n+5) .ep-thumb { background: linear-gradient(135deg,#0e1a20,#152432,#1a2d40); }
.ep-week-badge { position: absolute; top: 0.625rem; left: 0.625rem; background: rgba(17,17,22,0.8); border: 1px solid var(--border); color: var(--text-muted); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.175rem 0.5rem; border-radius: var(--radius-pill); backdrop-filter: blur(4px); }
.ep-status-badge { position: absolute; top: 0.625rem; right: 0.625rem; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.175rem 0.5rem; border-radius: var(--radius-pill); }
.ep-status-badge.avail { background: rgba(250,90,80,0.12); color: var(--brand-500); border: 1px solid rgba(250,90,80,0.25); }
.ep-status-badge.soon  { background: rgba(255,255,255,0.06); color: var(--text-dim); border: 1px solid var(--border-dim); }
.ep-done-ring { position: absolute; bottom: 0.625rem; right: 0.625rem; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-500); border: 2px solid var(--bg-card); display: flex; align-items: center; justify-content: center; font-size: 0.625rem; color: #fff; font-weight: 800; }
.ep-body { padding: 1.125rem; flex: 1; display: flex; flex-direction: column; gap: 0.375rem; }
.ep-num  { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-500); }
.ep-title   { font-size: 0.9375rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.ep-tagline { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; }
.ep-tags    { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: auto; padding-top: 0.75rem; }
.ep-cta     { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.625rem; padding-top: 0.625rem; border-top: 1px solid var(--border-dim); font-size: 0.8rem; font-weight: 600; color: var(--brand-500); transition: gap 0.2s; }
.ep-card:hover .ep-cta { gap: 0.625rem; }

/* ════════════════════════════════════════════════════════
   EPISODE PAGE
   ════════════════════════════════════════════════════════ */
.ep-page-scroll { height: calc(100vh - var(--header-h)); overflow-y: auto; }
.ep-page-inner  { max-width: 720px; margin: 0 auto; padding: 2rem 2rem 6rem; }
.read-progress { position: fixed; top: 0; left: var(--sidebar-w); right: 0; height: 2px; background: linear-gradient(90deg, var(--brand-500), var(--indigo-500)); z-index: 200; transform-origin: left; transform: scaleX(0); transition: transform 0.1s linear; }
.ep-back { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); background: none; border: none; padding: 0; cursor: pointer; margin-bottom: 2rem; transition: color 0.15s; font-family: var(--font); }
.ep-back:hover { color: var(--text); }
.ep-hd-eyebrow { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-500); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.ep-hd-eyebrow::before { content: ''; width: 12px; height: 2px; background: var(--brand-500); border-radius: 1px; display: block; }
.ep-hd-title   { font-size: clamp(1.75rem, 4.5vw, 2.5rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.08; color: #fff; margin-bottom: 0.5rem; }
.ep-hd-tagline { font-size: 1rem; color: var(--text-muted); margin-bottom: 0.875rem; line-height: 1.6; }
.ep-hd-meta  { display: flex; align-items: center; gap: 0.75rem; font-size: 0.775rem; color: var(--text-dim); margin-bottom: 0.875rem; }
.ep-hd-meta .dot::before { content: '·'; margin-right: 0.75rem; }
.ep-hd-tags  { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ep-opener { margin: 1.5rem 0; }
.ep-opener-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-500); margin-bottom: 0.625rem; display: flex; align-items: center; gap: 0.4rem; }
.ep-opener-label .ti { font-size: 0.6rem; }
.ep-opener-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: #000; border: 1px solid var(--border); }
.ep-opener-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.ep-intro { font-size: 1rem; line-height: 1.85; color: var(--text-muted); padding: 1.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.ep-sec { margin-bottom: 2.5rem; }
.ep-sec-title { font-size: 1rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 0.75rem; color: var(--text); }
.ep-sec-body  { font-size: 0.95rem; color: var(--text-muted); line-height: 1.85; }
.ep-sec-insight    { border-left: 3px solid var(--brand-500); padding-left: 1.25rem; }
.ep-sec-definition { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.375rem 1.5rem; }
.ep-sec-reflection .ep-sec-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.ep-sec-highlight  { background: linear-gradient(135deg, rgba(250,90,80,0.07) 0%, rgba(99,102,241,0.05) 100%); border: 1px solid rgba(250,90,80,0.18); border-radius: var(--radius-lg); padding: 1.75rem 2rem; text-align: center; }
.ep-sec-highlight .ep-sec-body  { font-size: 1.15rem; font-weight: 600; color: var(--text); font-style: italic; line-height: 1.55; }
.ep-sec-highlight .ep-sec-title { display: none; }
.concept-list  { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.875rem; }
.concept-item  { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.875rem 1.125rem; display: flex; gap: 0.875rem; align-items: flex-start; }
.concept-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); flex-shrink: 0; margin-top: 0.4rem; }
.concept-term  { font-weight: 700; font-size: 0.875rem; margin-bottom: 0.2rem; color: var(--text); }
.concept-desc  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.stats-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.875rem; margin-top: 0.875rem; }
.stat-card     { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.125rem; }
.stat-num      { font-size: 1.625rem; font-weight: 900; letter-spacing: -0.04em; color: var(--brand-500); line-height: 1; margin-bottom: 0.25rem; }
.stat-label    { font-size: 0.775rem; color: var(--text-muted); line-height: 1.4; }
.video-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.875rem; margin-top: 0.875rem; }
.video-card    { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: border-color 0.18s, transform 0.18s; }
.video-card:hover { border-color: var(--brand-500); transform: translateY(-2px); }
.video-thumb   { position: relative; aspect-ratio: 16/9; background: #111; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.2s; }
.video-card:hover .video-thumb img { opacity: 1; }
.video-play    { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-play span { width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.65); border: 2px solid rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; padding-left: 2px; color: #fff; transition: all 0.18s; }
.video-card:hover .video-play span { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.video-info    { padding: 0.75rem; flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.video-channel { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo-400); }
.video-title   { font-size: 0.8rem; font-weight: 600; color: var(--text); line-height: 1.35; }
.video-dur     { font-size: 0.7rem; color: var(--text-dim); margin-top: auto; padding-top: 0.25rem; }
.checkpoint    { background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, rgba(250,90,80,0.04) 100%); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 2.5rem; }
.checkpoint-lbl { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo-400); margin-bottom: 0.875rem; display: flex; align-items: center; gap: 0.4rem; }
.checkpoint-lbl::before { content: '◆'; font-size: 0.45rem; }
.cp-q          { border: 1px solid var(--border-dim); border-radius: var(--radius); overflow: hidden; margin-bottom: 0.625rem; }
.cp-q:last-child { margin-bottom: 0; }
.cp-q-text     { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.875rem; padding: 0.875rem 1rem; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--text); line-height: 1.45; transition: background 0.15s; }
.cp-q-text:hover { background: var(--bg-hover); }
.cp-toggle     { font-size: 0.7rem; color: var(--text-dim); flex-shrink: 0; margin-top: 0.15rem; transition: transform 0.2s; }
.cp-q.open .cp-toggle { transform: rotate(180deg); }
.cp-answer     { display: none; padding: 0 1rem 1rem; border-top: 1px solid var(--border-dim); }
.cp-q.open .cp-answer { display: block; }
.cp-answer p   { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; padding-top: 0.75rem; }
.cp-answer strong { color: var(--brand-500); font-weight: 700; }
.next-ep       { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; margin-top: 2.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: border-color 0.2s; }
.next-ep:hover { border-color: rgba(250,90,80,0.3); }
.next-ep-lbl   { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.25rem; }
.next-ep-title { font-weight: 700; font-size: 0.9375rem; color: var(--text); }
.next-ep-sub   { font-size: 0.775rem; color: var(--text-dim); margin-top: 0.2rem; }
.next-ep-arrow { color: var(--brand-500); font-size: 1.125rem; flex-shrink: 0; }
.sandbox       { margin-top: 2rem; padding: 1.5rem 2rem; background: linear-gradient(135deg, rgba(250,90,80,0.06) 0%, rgba(99,102,241,0.04) 100%); border: 1px solid rgba(250,90,80,0.18); border-radius: var(--radius-lg); display: flex; align-items: center; gap: 1.5rem; }
.sandbox-text  { flex: 1; }
.sandbox-eyebrow { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-500); margin-bottom: 0.3rem; }
.sandbox-title { font-size: 1rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 0.3rem; }
.sandbox-desc  { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.55; }
.sandbox-btn   { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--brand-500); color: #fff; font-size: 0.8125rem; font-weight: 700; padding: 0.65rem 1.25rem; border-radius: var(--radius); border: none; cursor: pointer; font-family: var(--font); white-space: nowrap; flex-shrink: 0; text-decoration: none; transition: background 0.15s; }
.sandbox-btn:hover { background: var(--brand-600); }

/* ── Profile page ── */
.prof-scroll  { overflow-y: auto; height: calc(100vh - var(--header-h)); }
.prof-inner   { max-width: 760px; margin: 0 auto; padding: 2.5rem 2rem 4rem; }

.prof-hero    { display: flex; align-items: flex-start; gap: 1.75rem; margin-bottom: 2rem; }

.prof-avatar-wrap {
  position: relative; flex-shrink: 0; cursor: pointer;
  width: 88px; height: 88px; border-radius: 50%;
}
.prof-avatar  {
  width: 88px; height: 88px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--indigo-500) 0%, var(--brand-500) 100%);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border);
}
.prof-avatar-img      { width: 100%; height: 100%; object-fit: cover; }
.prof-avatar-initials { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.prof-avatar-overlay  {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s; font-size: 1.25rem; color: #fff;
}
.prof-avatar-wrap:hover .prof-avatar-overlay { opacity: 1; }

.prof-hero-info { flex: 1; padding-top: 0.25rem; }
.prof-name-row  { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.5rem; }
.prof-name      { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.prof-name-edit { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.prof-name-input { max-width: 220px; }
.prof-edit-btn  {
  background: transparent; border: 1px solid var(--border-dim); color: var(--text-dim);
  border-radius: var(--radius); padding: 0.3rem 0.625rem; font-size: 0.75rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font);
  transition: color 0.15s, border-color 0.15s;
}
.prof-edit-btn:hover { color: var(--text); border-color: var(--border); }
.prof-meta-row  { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.prof-login     { font-size: 0.75rem; color: var(--text-dim); font-family: var(--font-mono); }

.prof-stats {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem; margin-bottom: 2rem;
  position: relative; overflow: hidden;
}
.prof-stats::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--indigo-500), var(--brand-500));
  background-size: 200% 100%; animation: shimmer-bar 4s linear infinite;
}
.prof-stat       { flex: 1; text-align: center; }
.prof-stat-div   { width: 1px; height: 2.5rem; background: var(--border-dim); flex-shrink: 0; }
.prof-stat-num   { display: block; font-size: 1.75rem; font-weight: 900; letter-spacing: -0.04em; color: var(--brand-500); }
.prof-stat-label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); margin-top: 0.2rem; }

.prof-section       { margin-bottom: 2rem; }
.prof-section-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }

.prof-stages      { display: flex; flex-direction: column; gap: 0.75rem; }
.prof-stage-row   { display: flex; align-items: center; gap: 1rem; }
.prof-stage-meta  { min-width: 160px; }
.prof-stage-label { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.1rem; }
.prof-stage-title { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.prof-stage-bar-wrap { flex: 1; display: flex; align-items: center; gap: 0.75rem; }
.prof-stage-bar   { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 99px; overflow: hidden; }
.prof-stage-fill  { height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--indigo-400)); border-radius: 99px; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.prof-stage-fill.done { background: linear-gradient(90deg, #22c55e, #16a34a); }
.prof-stage-pct   { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); min-width: 36px; text-align: right; }

.prof-ach-list   { display: flex; flex-direction: column; gap: 0.5rem; }
.prof-ach-item   {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.875rem 1rem; background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg); opacity: 0.4; filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s, border-color 0.2s;
}
.prof-ach-item.unlocked { opacity: 1; filter: none; border-color: rgba(250,90,80,0.2); }
.prof-ach-icon  { font-size: 1.625rem; flex-shrink: 0; }
.prof-ach-info  { flex: 1; }
.prof-ach-name  { font-size: 0.875rem; font-weight: 700; color: var(--text); margin-bottom: 0.15rem; }
.prof-ach-item:not(.unlocked) .prof-ach-name { color: var(--text-muted); }
.prof-ach-desc  { font-size: 0.75rem; color: var(--text-dim); }
.prof-ach-item.unlocked .prof-ach-desc { color: var(--text-muted); }
.prof-ach-check { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-500); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.7rem; flex-shrink: 0; }

.prof-settings-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.prof-setting-row   { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.prof-setting-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.2rem; }
.prof-setting-val   { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.prof-area-grid     { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.prof-area-opt      {
  padding: 0.6rem 0.875rem; background: var(--bg-card-2); border: 1px solid var(--border-dim);
  border-radius: var(--radius); font-size: 0.8125rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: all 0.15s;
}
.prof-area-opt:hover { border-color: var(--border); color: var(--text); }
.prof-area-opt.on    { border-color: var(--brand-500); color: var(--brand-500); background: rgba(250,90,80,0.06); font-weight: 700; }

/* ── Achievements section ── */
.portal-nps        { display: flex; flex-direction: column; gap: 0.5rem; }
.portal-nps-q      { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
.portal-nps-scale  { flex-wrap: wrap; }
.portal-nps-done   { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--text-muted); padding: 0.5rem 0; }
.ach-section       { margin-top: 1.5rem; }
.ach-section-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.ach-count         { background: rgba(255,255,255,0.06); border: 1px solid var(--border-dim); border-radius: var(--radius-pill); padding: 0.1rem 0.5rem; font-size: 0.65rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0; }
.ach-grid          { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.875rem; }
@media (max-width: 900px) { .ach-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .ach-grid { grid-template-columns: repeat(4, 1fr); } }

.ach-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1rem 0.5rem; background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg); text-align: center; opacity: 0.35; filter: grayscale(1);
  transition: opacity 0.25s, filter 0.25s, border-color 0.25s;
}
.ach-card.unlocked { opacity: 1; filter: none; border-color: rgba(250,90,80,0.25); background: linear-gradient(135deg, rgba(250,90,80,0.06) 0%, transparent 80%); }
.ach-card-icon     { font-size: 1.75rem; line-height: 1; }
.ach-card-name     { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); line-height: 1.3; }
.ach-card.unlocked .ach-card-name { color: var(--text); }
.ach-card-check    { position: absolute; top: 0.375rem; right: 0.375rem; width: 14px; height: 14px; background: var(--brand-500); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.5rem; color: #fff; font-weight: 900; }

/* ── Level result modal ── */
.lv-modal-backdrop {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  background: rgba(10,10,16,0.75);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.3s;
}
.lv-modal-backdrop.lv-modal-visible { opacity: 1; }
.lv-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 480px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.12);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  opacity: 0;
}
.lv-modal-backdrop.lv-modal-visible .lv-modal {
  transform: translateY(0) scale(1); opacity: 1;
}

/* Step header */
.lv-modal-step {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 1.125rem 1.5rem;
}
.lv-step-check {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  box-shadow: 0 0 0 6px rgba(34,197,94,0.12);
  animation: lv-check-pop 0.5s 0.25s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes lv-check-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.lv-step-info { display: flex; flex-direction: column; gap: 0.125rem; }
.lv-step-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--success); }
.lv-step-name  { font-size: 0.9rem; font-weight: 700; color: var(--text); }

.lv-modal-divider { height: 1px; background: var(--border); }

/* Body */
.lv-modal-body { padding: 1.5rem; }
.lv-modal-eyebrow {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--indigo-400); margin-bottom: 0.875rem;
}
.lv-modal-badge-row { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.875rem; }
.lv-modal-icon { font-size: 1.5rem; line-height: 1; animation: lv-icon-in 0.4s 0.4s ease both; }
@keyframes lv-icon-in { from { transform: scale(0.5); opacity:0; } to { transform: scale(1); opacity:1; } }
.lv-modal-badge { font-size: 0.8rem !important; }
.lv-modal-title {
  font-size: clamp(1rem, 2.8vw, 1.2rem); font-weight: 700; line-height: 1.45;
  letter-spacing: -0.02em; color: var(--text); margin-bottom: 0.625rem;
}
.lv-modal-title strong { color: #fff; }
.lv-modal-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }
.lv-modal-notice {
  display: flex; gap: 0.625rem; align-items: flex-start;
  position: relative; overflow: hidden;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-lg);
  padding: 0.75rem 0.875rem;
}
.lv-modal-notice::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(245,158,11,0.8) 0%, transparent 80%);
}
.lv-notice-icon { color: var(--warning); font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }
.lv-notice-text { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.lv-notice-link {
  color: var(--warning); font-weight: 600; text-decoration: none;
  white-space: nowrap;
}
.lv-notice-link:hover { text-decoration: underline; }
.lv-notice-link .ti { font-size: 0.7rem; vertical-align: middle; margin-left: 0.15rem; }

/* Footer */
.lv-modal-footer { padding: 1rem 1.5rem 1.5rem; }
.lv-modal-cta { width: 100%; justify-content: center; }

/* ── Achievement toast ── */
.achievement-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; align-items: center; gap: 0.875rem;
  background: var(--bg-card); border: 1px solid rgba(250,90,80,0.35);
  border-radius: var(--radius-lg); padding: 0.875rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(250,90,80,0.1);
  transform: translateY(120%); opacity: 0; transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.35s;
  max-width: 280px;
}
.achievement-toast.show { transform: translateY(0); opacity: 1; }
.ach-toast-icon  { font-size: 1.75rem; line-height: 1; flex-shrink: 0; }
.ach-toast-title { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-500); margin-bottom: 0.2rem; }
.ach-toast-name  { font-size: 0.875rem; font-weight: 700; color: var(--text); }

/* ════════════════════════════════════════════════════════
   CERTIFICATE BANNER + MODAL
   ════════════════════════════════════════════════════════ */
.cert-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(250,90,80,0.3);
  border-radius: var(--radius-xl);
  padding: 1.375rem 1.5rem; margin-bottom: 1.5rem;
}
.cert-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(250,90,80,0.15) 0%, transparent 55%);
  pointer-events: none;
}
.cert-banner::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--brand-500) 0%, rgba(59,130,246,0.5) 50%, transparent 100%);
}
.cert-banner-left { position: relative; z-index: 1; display: flex; align-items: center; gap: 1rem; }
.cert-banner-btn  { position: relative; z-index: 1; white-space: nowrap; }
.cert-banner-left { display: flex; align-items: center; gap: 1rem; }
.cert-banner-icon { font-size: 2rem; line-height: 1; }
.cert-banner-title { font-size: 0.9375rem; font-weight: 700; color: #fff; margin-bottom: 0.2rem; }
.cert-banner-sub   { font-size: 0.8125rem; color: var(--text-muted); }
.cert-banner-btn   { white-space: nowrap; }

/* ══════════════════════════════════════════════════════
   CERTIFICADO — DESIGN PREMIUM
   ══════════════════════════════════════════════════════ */

/* Overlay */
.cert-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(4,8,22,0.9); backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; overflow-y: auto;
  opacity: 0; transition: opacity 0.35s;
}
.cert-overlay.show { opacity: 1; }

/* Shell do modal */
.cert-modal {
  width: 100%; max-width: 720px; position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.34,1.3,0.64,1);
}
.cert-overlay.show .cert-modal { transform: translateY(0) scale(1); }

/* Botão fechar */
.cert-close {
  position: absolute; top: -14px; right: -14px; z-index: 20;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-card-2); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 1rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.cert-close:hover { background: var(--border); color: #fff; transform: scale(1.1); }

/* ── Certificado imprimível ── */
.cert-inner {
  border-radius: 20px; overflow: hidden; position: relative;
  background: #080f24;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 0 1px rgba(250,90,80,0.15),
              inset 0 0 120px rgba(250,90,80,0.04);
}

/* Grade decorativa de fundo */
.cert-inner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(250,90,80,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250,90,80,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; z-index: 0;
}

/* Borda ornamental em gradiente */
.cert-border-ring {
  position: absolute; inset: 12px; border-radius: 12px; z-index: 1;
  border: 1px solid transparent;
  background: linear-gradient(#080f24, #080f24) padding-box,
              linear-gradient(135deg, rgba(250,90,80,0.6) 0%, rgba(59,130,246,0.3) 40%, rgba(250,90,80,0.5) 100%) border-box;
  pointer-events: none;
}

/* Blobs de luz */
.cert-blob-1 {
  position: absolute; top: -80px; left: -80px; z-index: 0;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(250,90,80,0.12); filter: blur(80px);
  pointer-events: none;
}
.cert-blob-2 {
  position: absolute; bottom: -80px; right: -60px; z-index: 0;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(59,130,246,0.1); filter: blur(80px);
  pointer-events: none;
}

/* Corpo do certificado */
.cert-body {
  position: relative; z-index: 2;
  padding: 3.5rem 3.5rem 3rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

/* Topo: linha coral */
.cert-top-rule {
  width: 100%; height: 3px; margin-bottom: 3rem;
  background: linear-gradient(90deg, transparent 0%, var(--brand-500) 30%, #3b82f6 70%, transparent 100%);
  border-radius: 2px;
}

/* Logo row */
.cert-logo-row {
  display: flex; align-items: center; gap: 0.625rem; margin-bottom: 2.5rem;
}
.cert-logo-mark {
  width: 34px; height: 34px; background: var(--brand-500); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem;
  box-shadow: 0 0 20px rgba(250,90,80,0.4);
}
.cert-logo-text { font-size: 0.875rem; font-weight: 700; color: rgba(255,255,255,0.7); letter-spacing: 0.04em; }

/* Eyebrow */
.cert-label {
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand-500); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.cert-label::before, .cert-label::after {
  content: ''; flex: 1; max-width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250,90,80,0.5));
}
.cert-label::after { transform: scaleX(-1); }

/* Programa */
.cert-program {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1.1; color: #fff;
  margin-bottom: 2.5rem;
  text-shadow: 0 0 40px rgba(250,90,80,0.2);
}

/* Linha divisória ornamental */
.cert-ornament {
  display: flex; align-items: center; gap: 0.875rem; width: 100%; margin-bottom: 1.25rem;
}
.cert-ornament-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
.cert-ornament-diamond {
  width: 6px; height: 6px; border: 1.5px solid var(--brand-500);
  transform: rotate(45deg); flex-shrink: 0;
}

/* Certifica */
.cert-certifies {
  font-size: 0.8125rem; color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.75rem;
}

/* Nome */
.cert-name {
  font-size: clamp(1.875rem, 5vw, 2.75rem); font-weight: 900;
  letter-spacing: -0.04em; color: var(--brand-500); line-height: 1.1; margin-bottom: 2rem;
}

/* Texto corpo */
.cert-body-text {
  font-size: 0.875rem; color: rgba(255,255,255,0.45);
  line-height: 1.8; max-width: 500px; margin-bottom: 2.5rem;
}
.cert-body-text strong { color: rgba(255,255,255,0.75); font-weight: 600; }

/* Data e selo */
.cert-footer-row {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  gap: 1rem;
}
.cert-date-block { text-align: left; }
.cert-date-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 0.25rem; }
.cert-date-val   { font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.6); }
.cert-seal-block { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.cert-seal-ring {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid rgba(250,90,80,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; line-height: 1;
  box-shadow: 0 0 20px rgba(250,90,80,0.2), inset 0 0 20px rgba(250,90,80,0.05);
}
.cert-seal-label { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.25); }
.cert-sign-block { text-align: right; }
.cert-sign-line  { width: 100px; height: 1px; background: rgba(255,255,255,0.2); margin: 0 0 0.25rem auto; }
.cert-sign-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); }

/* Linha inferior coral */
.cert-bottom-rule {
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent 0%, #3b82f6 30%, var(--brand-500) 70%, transparent 100%);
}

/* Ações */
.cert-actions {
  display: flex; gap: 0.75rem; justify-content: center;
  padding: 1.25rem 0 0;
}
.cert-btn-loading { opacity: 0.6; pointer-events: none; }

/* Print */
@media print {
  body > *:not(#cert-modal) { display: none !important; }
  .cert-overlay { position: static; background: #080f24 !important; backdrop-filter: none; padding: 1cm; }
  .cert-close, .cert-actions { display: none !important; }
  .cert-modal { max-width: 100%; }
  .cert-inner { box-shadow: none; }
}

/* ════════════════════════════════════════════════════════
   SCROLLBAR CUSTOMIZADA
   ════════════════════════════════════════════════════════ */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ════════════════════════════════════════════════════════
   GRAPHIC DETAILS — elementos únicos de DS
   ════════════════════════════════════════════════════════ */

/* Linha-divisor com fade nas pontas */
.divider-fade {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
  margin: 1.5rem 0;
}

/* Número de ordem — usado nos estágios */
.stage-order-num {
  font-size: 0.625rem; font-weight: 800; font-family: var(--font-mono);
  color: var(--brand-500); letter-spacing: 0.08em;
  background: rgba(250,90,80,0.1); border: 1px solid rgba(250,90,80,0.2);
  border-radius: var(--radius-pill); padding: 0.1rem 0.45rem;
  line-height: 1.5;
}

/* Glow suave para números grandes no portal */
.portal-overall-pct {
  text-shadow: 0 0 24px rgba(250,90,80,0.4);
}

/* Input: monospace para email corporativo */
#ob-login, #as-email { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* Tag com gradiente de borda */
.tag-gradient {
  background: linear-gradient(var(--bg-card-2), var(--bg-card-2)) padding-box,
              linear-gradient(135deg, var(--brand-500), var(--indigo-500)) border-box;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.175rem 0.5rem; color: var(--text-muted);
}

/* Linha decorativa com coral usada em seções */
.section-rule {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 1rem;
}
.section-rule::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

/* ════════════════════════════════════════════════════════
   COMPLETION + eNPS
   ════════════════════════════════════════════════════════ */
.completion-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(4,8,22,0.92); backdrop-filter: blur(18px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  opacity: 0; transition: opacity 0.4s;
}
.completion-overlay.show { opacity: 1; }

.completion-modal {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl); padding: 3rem 3rem 2.5rem;
  width: 100%; max-width: 540px; text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(250,90,80,0.08);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.34,1.3,0.64,1);
  position: relative; overflow: hidden;
}
.completion-overlay.show .completion-modal { transform: translateY(0) scale(1); }
.completion-modal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-500) 40%, #3b82f6 70%, transparent);
}

.completion-step { animation: ob-fade-up 0.5s ease forwards; }

.completion-burst {
  font-size: 2.5rem; line-height: 1; margin-bottom: 1.5rem; display: block;
  color: var(--brand-500);
  animation: burst-pop 0.6s 0.1s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes burst-pop {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.completion-eyebrow {
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-500); margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.625rem;
}
.completion-eyebrow::before, .completion-eyebrow::after {
  content: ''; width: 24px; height: 1px; background: rgba(250,90,80,0.4);
}
.completion-title {
  font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800;
  letter-spacing: -0.04em; color: #fff; line-height: 1.15; margin-bottom: 1.25rem;
}
.completion-desc {
  font-size: 0.9375rem; color: var(--text-muted); line-height: 1.75;
  max-width: 420px; margin: 0 auto 2rem;
}
.completion-reflection {
  text-align: left; margin: 0 0 1.5rem;
}
.completion-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.completion-actions .btn { flex: 1; justify-content: center; min-width: 140px; }
.completion-cta { width: 100%; justify-content: center; }

/* eNPS */
.enps-scale {
  display: flex; gap: 0.375rem; justify-content: center; flex-wrap: wrap;
  margin: 1.75rem 0 0.75rem;
}
.enps-btn {
  width: 42px; height: 42px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card-2);
  color: var(--text-muted); font-size: 0.875rem; font-weight: 700;
  cursor: pointer; font-family: var(--font);
  transition: all 0.15s; flex-shrink: 0;
}
.enps-btn:hover { border-color: var(--brand-500); color: var(--brand-500); }
.enps-btn.active {
  background: var(--brand-500); border-color: var(--brand-500);
  color: #fff; box-shadow: 0 0 12px rgba(250,90,80,0.35);
}
/* Cores por zona */
.enps-btn[data-score="0"], .enps-btn[data-score="1"], .enps-btn[data-score="2"],
.enps-btn[data-score="3"], .enps-btn[data-score="4"], .enps-btn[data-score="5"],
.enps-btn[data-score="6"] { --enps-c: #fb7185; }
.enps-btn[data-score="7"], .enps-btn[data-score="8"] { --enps-c: #fbbf24; }
.enps-btn[data-score="9"], .enps-btn[data-score="10"] { --enps-c: #4ade80; }
.enps-btn.active { background: var(--enps-c, var(--brand-500)); border-color: var(--enps-c, var(--brand-500)); }

.enps-labels {
  display: flex; justify-content: space-between;
  font-size: 0.6875rem; color: var(--text-dim); margin-bottom: 0.25rem;
  padding: 0 0.25rem;
}

.enps-comment-wrap {
  margin-top: 1.5rem; text-align: left;
  animation: ob-fade-up 0.4s ease forwards;
}
.enps-comment-label {
  display: block; font-size: 0.75rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.enps-comment-label span { color: var(--text-dim); font-weight: 400; }
.enps-comment {
  width: 100%; background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 0.875rem 1rem;
  font-family: var(--font); font-size: 0.875rem; color: var(--text);
  outline: none; resize: vertical; min-height: 80px; line-height: 1.6;
  transition: border-color 0.15s;
}
.enps-comment:focus { border-color: var(--brand-500); }
.enps-submit { width: 100%; justify-content: center; margin-top: 0.875rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-area { margin-left: 0; }
  .read-progress { left: 0; }
  .ob-card, .as-card { padding: 2rem 1.5rem; }
  .opt-grid.cols-2 { grid-template-columns: 1fr; }
  .sandbox { flex-direction: column; gap: 1rem; }
  .sandbox-btn { width: 100%; justify-content: center; }
  .portal-welcome { flex-direction: column; align-items: flex-start; }
  .achievement-toast { bottom: 1rem; right: 1rem; left: 1rem; max-width: none; }
}
