/* ═══════════════════════════════════════════════════════════
   CREYAN — Academia Integral de Transformación Humana
   Main Stylesheet  ·  Dark Premium Theme
   ═══════════════════════════════════════════════════════════ */

/* ── 1. CSS VARIABLES ───────────────────────────────────── */
:root {
  /* Background scale */
  --bg-base:    #04040f;
  --bg-surface: #080820;
  --bg-card:    #0d0d28;
  --bg-card2:   #11113a;
  --bg-hover:   #16164a;
  --bg-active:  #1e1e5e;

  /* Purple scale */
  --purple-900: #1e0a4a;
  --purple-800: #2d1270;
  --purple-700: #4c1d95;
  --purple-600: #6d28d9;
  --purple-500: #8b5cf6;
  --purple-400: #a78bfa;
  --purple-300: #c4b5fd;

  /* Gold scale */
  --gold-dark:  #78450a;
  --gold-mid:   #b7730f;
  --gold-base:  #d4a017;
  --gold-light: #f0c040;
  --gold-pale:  #fde68a;

  /* Accent colors */
  --magenta:    #ec4899;
  --magenta-dk: #be185d;
  --teal:       #0d9488;
  --green:      #10b981;
  --green-dk:   #065f46;
  --red:        #ef4444;
  --red-dk:     #991b1b;
  --blue:       #3b82f6;
  --blue-dk:    #1e40af;
  --orange:     #f97316;

  /* Text */
  --text-1: #f0f0ff;
  --text-2: #a0a0c0;
  --text-3: #606080;

  /* Borders */
  --border:     rgba(255,255,255,0.06);
  --border-md:  rgba(255,255,255,0.10);
  --border-hi:  rgba(255,255,255,0.18);

  /* Glow */
  --glow-purple: 0 0 40px rgba(109,40,217,0.35);
  --glow-gold:   0 0 40px rgba(212,160,23,0.35);
  --glow-sm:     0 0 18px rgba(109,40,217,0.25);

  /* Spacing */
  --sidebar-w: 228px;
  --right-w:   284px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms var(--ease);
  --t-med:  250ms var(--ease);
  --t-slow: 400ms var(--ease);
}

/* ── 2. RESET & BASE ────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-1);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--purple-700); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-500); }

/* ── 3. LAYOUT ──────────────────────────────────────────── */
.app-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── 4. SIDEBAR ─────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #060618 0%, #08082a 60%, #060618 100%);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  position: relative;
  z-index: 30;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 280px;
  background: radial-gradient(ellipse at 50% 0%, rgba(109,40,217,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Logo header */
.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 14px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(212,160,23,0.5));
  transition: transform var(--t-med), filter var(--t-med);
}
.sidebar-logo:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 24px rgba(212,160,23,0.7));
}

.sidebar-brand-text { text-align: center; }

.sidebar-brand-name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold-base), var(--gold-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.12em;
}

.sidebar-brand-sub {
  display: block;
  font-size: 0.6rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin-top: 2px;
  text-transform: uppercase;
}

/* Nav */
.sidebar-nav { flex: 1; padding: 10px 0; overflow-y: auto; }

.nav-list { display: flex; flex-direction: column; }

.nav-section-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
  padding: 16px 16px 6px;
}

.nav-item > .nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  margin: 1px 8px;
  font-size: 0.78rem;
  color: var(--text-2);
  transition: all var(--t-fast);
  position: relative;
}

.nav-link i { font-size: 1.05rem; flex-shrink: 0; width: 18px; }

.nav-link:hover {
  color: var(--text-1);
  background: rgba(139,92,246,0.12);
}

.nav-item.active > .nav-link {
  color: var(--text-1);
  background: linear-gradient(90deg, rgba(109,40,217,0.4), rgba(109,40,217,0.15));
  border-left: 2px solid var(--purple-500);
}
.nav-item.active > .nav-link i { color: var(--purple-400); }

.nav-item--highlight > .nav-link {
  color: var(--gold-light);
}
.nav-item--highlight > .nav-link:hover {
  background: rgba(212,160,23,0.12);
}

/* Sidebar footer */
.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}

.sf-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
  border: 2px solid var(--purple-500);
}

.sf-user-info { flex: 1; min-width: 0; }
.sf-name { display: block; font-size: 0.75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-role { display: block; font-size: 0.62rem; color: var(--text-3); }

.sf-menu-btn {
  color: var(--text-3);
  padding: 4px;
  border-radius: 4px;
  transition: color var(--t-fast);
}
.sf-menu-btn:hover { color: var(--text-1); }

.sf-profile-link {
  width: 100%;
  text-align: center;
  font-size: 0.68rem;
  color: var(--purple-400);
  font-weight: 500;
  cursor: pointer;
}
.sf-profile-link:hover { color: var(--purple-300); }

/* ── 5. MAIN CONTENT ────────────────────────────────────── */
.main-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ── 6. TOP BAR ─────────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(6,6,24,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
}

.topbar-toggle {
  color: var(--text-2);
  font-size: 1.2rem;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
  display: none;
}
.topbar-toggle:hover { color: var(--text-1); background: var(--bg-hover); }

.search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 7px 12px;
  max-width: 340px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search-wrap:focus-within {
  border-color: var(--purple-600);
  box-shadow: 0 0 0 3px rgba(109,40,217,0.15);
}

.search-ic { color: var(--text-3); font-size: 0.95rem; flex-shrink: 0; }

.search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-1);
  font: inherit;
  font-size: 0.8rem;
  width: 100%;
}
.search-input::placeholder { color: var(--text-3); }

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

.tb-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: 1.1rem;
  position: relative;
  transition: all var(--t-fast);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
.tb-btn:hover { color: var(--text-1); border-color: var(--border-md); background: var(--bg-hover); }

.tb-badge {
  position: absolute;
  top: -3px; right: -3px;
  width: 16px; height: 16px;
  background: var(--red);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-base);
}

.tb-user {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 5px 10px 5px 5px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.tb-user:hover { border-color: var(--border-md); background: var(--bg-hover); }

.tb-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
}

.tb-name { display: block; font-size: 0.75rem; font-weight: 600; }
.tb-role { display: block; font-size: 0.62rem; color: var(--text-3); }
.tb-caret { font-size: 0.8rem; color: var(--text-3); }

/* ── 7. HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hbg-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at 50% 80%, #0a0028 0%, transparent 80%),
    linear-gradient(135deg, #07071e 0%, #130b35 35%, #0e0628 65%, #05051a 100%);
}

.hbg-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.hbg-spot--1 {
  width: 480px; height: 380px;
  background: radial-gradient(circle, rgba(109,40,217,0.22) 0%, transparent 70%);
  top: -80px; left: 10%;
}
.hbg-spot--2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(212,160,23,0.14) 0%, transparent 70%);
  top: 20%; right: 10%;
}
.hbg-spot--3 {
  width: 300px; height: 200px;
  background: radial-gradient(circle, rgba(236,72,153,0.12) 0%, transparent 70%);
  bottom: 0; left: 40%;
}

.hbg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Hero inner layout */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  padding: 30px 22px 24px;
  align-items: start;
}

/* Copy column */
.hero-copy { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,160,23,0.12);
  border: 1px solid rgba(212,160,23,0.3);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.hero-badge i { font-size: 0.85rem; }

.hero-h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-1);
  margin-bottom: 12px;
}
.hero-h1 em {
  display: block;
  font-style: italic;
  background: linear-gradient(90deg, var(--gold-pale), var(--gold-base), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Playfair Display', serif;
  font-size: 1.1em;
}

.hero-p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 18px;
}
.hero-p strong { color: var(--text-1); }
.hero-p em { color: var(--purple-400); font-style: italic; }

/* CTA buttons */
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--t-med);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
  color: #fff;
  box-shadow: 0 4px 20px rgba(109,40,217,0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  box-shadow: 0 6px 28px rgba(109,40,217,0.55);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-1);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-base), var(--gold-mid));
  color: #1a0a00;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(212,160,23,0.4);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-base));
  box-shadow: 0 6px 28px rgba(212,160,23,0.55);
  transform: translateY(-1px);
}

.btn-outline-gold {
  border: 1px solid rgba(212,160,23,0.4);
  color: var(--gold-light);
  background: rgba(212,160,23,0.06);
  font-size: 0.75rem;
}
.btn-outline-gold:hover {
  background: rgba(212,160,23,0.12);
  border-color: rgba(212,160,23,0.6);
}

.btn-block { width: 100%; justify-content: center; }

.play-dot {
  width: 24px; height: 24px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hstat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  transition: all var(--t-fast);
}
.hstat:hover { background: rgba(255,255,255,0.06); border-color: var(--border-md); }

.hstat-ic { font-size: 1.2rem; color: var(--gold-base); flex-shrink: 0; margin-top: 2px; }

.hstat-num {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
}

.hstat-lbl {
  display: block;
  font-size: 0.58rem;
  color: var(--text-3);
  line-height: 1.3;
  margin-top: 2px;
}

/* Hero visual (center art) */
.hero-visual {
  position: relative;
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hv-glow-ring {
  position: absolute;
  top: 20px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hv-frame {
  position: relative;
  width: 180px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hv-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(25px);
  pointer-events: none;
}
.hv-orb--gold { width: 120px; height: 120px; top: 60px; left: 20px; background: rgba(212,160,23,0.2); animation: float 4s ease-in-out infinite; }
.hv-orb--purple { width: 90px; height: 90px; bottom: 40px; right: 20px; background: rgba(109,40,217,0.25); animation: float 4s ease-in-out infinite reverse; }

.hv-art { position: relative; z-index: 1; }
.hv-mic-svg { width: 160px; height: 240px; filter: drop-shadow(0 8px 24px rgba(212,160,23,0.3)); }

.hv-name-tag {
  text-align: center;
  margin-top: 8px;
}
.hv-name { display: block; font-size: 0.8rem; font-weight: 700; color: var(--gold-light); }
.hv-title { display: block; font-size: 0.6rem; color: var(--text-3); margin-top: 2px; }

/* ── 8. PROCESS CARD ─────────────────────────────────────── */
.glass-card {
  background: rgba(13,13,40,0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
}

.process-card {
  width: 220px;
  flex-shrink: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.process-title-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

.process-ring-wrap { display: flex; justify-content: center; }

.progress-ring {
  width: 110px; height: 110px;
}

.pr-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 8;
}

.pr-fill {
  fill: none;
  stroke: url(#progressGrad);
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  transition: stroke-dashoffset 1.5s var(--ease);
}

.pr-pct {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  fill: var(--text-1);
}

.pr-sub-text {
  font-size: 7px;
  fill: var(--text-3);
}

/* Inject gradient def via CSS trick (we define it inline in SVG) */

.process-steps { display: flex; flex-direction: column; gap: 6px; }

.ps-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  transition: all var(--t-fast);
}

.ps-icon { font-size: 1rem; flex-shrink: 0; }

.ps-text { display: flex; flex-direction: column; }
.ps-name { font-size: 0.72rem; font-weight: 500; }
.ps-status { font-size: 0.58rem; color: var(--text-3); }

.ps--done { border-color: rgba(16,185,129,0.2); background: rgba(16,185,129,0.05); }
.ps--done .ps-icon { color: var(--green); }
.ps--done .ps-status { color: var(--green); }

.ps--active { border-color: rgba(109,40,217,0.3); background: rgba(109,40,217,0.08); }
.ps--active .ps-icon { color: var(--purple-400); }
.ps--active .ps-status { color: var(--purple-400); }

.ps--pending .ps-icon { color: var(--text-3); }

/* ── 9. SECTIONS COMMON ──────────────────────────────────── */
.section { padding: 20px 22px; }

.section-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
}

.section-sub {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 2px;
}

.section-link {
  font-size: 0.72rem;
  color: var(--purple-400);
  font-weight: 500;
  transition: color var(--t-fast);
}
.section-link:hover { color: var(--purple-300); }

/* ── 10. PROGRAMS GRID ───────────────────────────────────── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.prog-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: transform var(--t-med), box-shadow var(--t-med);
  border: 1px solid rgba(255,255,255,0.06);
}

.prog-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
}

.prog-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 100%);
  transition: all var(--t-med);
}
.prog-card:hover .prog-bg { filter: brightness(1.15); }

.prog-emoji {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 2rem;
  opacity: 0.6;
  transition: all var(--t-med);
}
.prog-card:hover .prog-emoji { opacity: 1; transform: scale(1.15); }

.prog-body {
  position: relative;
  z-index: 1;
  padding: 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.prog-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.prog-desc {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  margin-bottom: 8px;
}

.prog-link {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 600;
  transition: color var(--t-fast);
}
.prog-link:hover { color: #fff; }

/* ── 11. INFO ROW ────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--t-med);
  cursor: pointer;
}
.info-card:hover {
  border-color: rgba(139,92,246,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.info-thumb {
  height: 70px;
  background: linear-gradient(135deg, rgba(0,0,0,0.4), color-mix(in srgb, var(--th-color) 20%, transparent));
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.info-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--th-color) 25%, transparent) 0%, transparent 70%);
}

.ic-thumb-icon {
  font-size: 1.8rem;
  color: var(--th-color);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px var(--th-color));
}

.info-body { padding: 10px 12px; }
.info-title { font-size: 0.72rem; font-weight: 600; margin-bottom: 4px; }
.info-text { font-size: 0.62rem; color: var(--text-3); line-height: 1.4; margin-bottom: 8px; }
.info-link {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--purple-400);
  transition: color var(--t-fast);
}
.info-link:hover { color: var(--purple-300); }

/* ── 12. BOTTOM DASHBOARD ────────────────────────────────── */
.bottom-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.dc-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-1);
}

.dc-sub { font-size: 0.62rem; color: var(--text-3); margin-top: 2px; }

.dc-period {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--text-3);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  transition: all var(--t-fast);
  font-family: inherit;
}
.dc-period:hover { border-color: var(--border-md); color: var(--text-2); }

/* Financial */
.fin-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.fin-metric {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.fm-lbl { display: block; font-size: 0.62rem; color: var(--text-3); margin-bottom: 4px; }
.fm-val { display: block; font-size: 0.78rem; font-weight: 700; margin-bottom: 2px; }
.fm-val.green { color: var(--green); }
.fm-val.red { color: var(--red); }

.fm-change { font-size: 0.6rem; font-weight: 600; }
.fm-change.up { color: var(--green); }
.fm-change.dn { color: var(--red); }

.fin-secondary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fin-sec-item { font-size: 0.62rem; }
.fin-sec-item span { display: block; color: var(--text-3); margin-bottom: 2px; }
.fin-sec-item strong { display: block; color: var(--text-1); }

.mini-chart {
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.mini-chart svg { width: 100%; height: 100%; }

/* CRM */
.crm-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.crm-m {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.crm-m span { font-size: 0.62rem; color: var(--text-3); }

.crm-num { font-size: 1.2rem; font-weight: 700; }
.crm-num.blue { color: var(--blue); }
.crm-num.purple { color: var(--purple-400); }
.crm-num.green { color: var(--green); }

.crm-funnel { display: flex; flex-direction: column; gap: 6px; }

.funnel-row { display: flex; align-items: center; gap: 8px; }
.funnel-bar {
  height: 8px;
  width: var(--w);
  background: linear-gradient(90deg, var(--purple-700), var(--purple-500));
  border-radius: 4px;
  transition: width 1s var(--ease);
}
.funnel-row span { font-size: 0.62rem; color: var(--text-3); white-space: nowrap; }

/* Offers */
.offers-badge {
  font-size: 0.6rem;
  background: rgba(239,68,68,0.15);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.3);
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
  white-space: nowrap;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  justify-content: center;
}

.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cd-num {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-1);
  min-width: 36px;
  text-align: center;
  background: var(--bg-card2);
  border-radius: var(--radius-sm);
  padding: 2px 4px;
}
.cd-lbl { font-size: 0.55rem; color: var(--text-3); }
.cd-sep { font-size: 1.2rem; font-weight: 700; color: var(--purple-500); padding-bottom: 12px; }

.offer-product {
  display: flex;
  gap: 10px;
  align-items: center;
}

.offer-thumb {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-mid));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.offer-ic { font-size: 1.6rem; color: var(--gold-pale); }
.offer-name { font-size: 0.72rem; font-weight: 700; margin-bottom: 2px; }
.offer-desc { font-size: 0.62rem; color: var(--text-3); margin-bottom: 6px; }

.offer-pricing { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.offer-current { font-size: 0.88rem; font-weight: 700; color: var(--gold-light); }
.offer-old { font-size: 0.68rem; color: var(--text-3); text-decoration: line-through; }
.offer-badge-pct {
  font-size: 0.6rem;
  background: rgba(239,68,68,0.15);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.3);
  padding: 1px 6px;
  border-radius: 99px;
  font-weight: 700;
}

.dc-footer-link {
  font-size: 0.68rem;
  color: var(--purple-400);
  font-weight: 500;
  text-align: center;
  display: block;
  transition: color var(--t-fast);
  margin-top: auto;
}
.dc-footer-link:hover { color: var(--purple-300); }

/* ── 13. IA BAR ──────────────────────────────────────────── */
.ia-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  background: linear-gradient(90deg, rgba(13,13,40,0.95), rgba(30,10,70,0.95));
  border-top: 1px solid rgba(109,40,217,0.2);
  border-bottom: 1px solid rgba(109,40,217,0.2);
  flex-shrink: 0;
}

.ia-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ia-ic {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 16px rgba(109,40,217,0.5);
}

.ia-brand strong { display: block; font-size: 0.78rem; font-weight: 700; color: var(--purple-300); }
.ia-brand span { display: block; font-size: 0.62rem; color: var(--text-3); }

.ia-features {
  display: flex;
  gap: 20px;
  flex: 1;
  overflow: hidden;
}

.ia-feat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--text-2);
  white-space: nowrap;
}
.ia-feat i { font-size: 0.85rem; color: var(--purple-400); }

.ia-btn { flex-shrink: 0; font-size: 0.78rem; }

/* Footer strip */
.footer-strip {
  padding: 12px 22px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.footer-strip em { color: var(--purple-400); font-style: italic; }

/* ── 14. RIGHT PANEL ─────────────────────────────────────── */
.right-panel {
  width: var(--right-w);
  flex-shrink: 0;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Quick Stats grid */
.qs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.qs-card {
  padding: 14px 14px 12px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background var(--t-fast);
}
.qs-card:hover { background: var(--bg-hover); }
.qs-card:nth-child(even) { border-right: none; }
.qs-card:nth-child(3),
.qs-card:nth-child(4) { border-bottom: none; }

.qs-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qs-ic-wrap {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--iq) 15%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--iq);
  flex-shrink: 0;
}

.qs-lbl { font-size: 0.6rem; color: var(--text-3); line-height: 1.3; }

.qs-num {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
}

.qs-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.trend-up { font-size: 0.62rem; font-weight: 600; color: var(--green); }
.trend-dn { font-size: 0.62rem; font-weight: 600; color: var(--red); }
.trend-up.sm, .trend-dn.sm { font-size: 0.6rem; }

.qs-detail-lnk { font-size: 0.6rem; color: var(--purple-400); }
.qs-detail-lnk:hover { color: var(--purple-300); }

/* Right panel cards */
.rp-card {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.rp-card:last-child { border-bottom: none; }

/* Indicators */
.indicators-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }

.ind-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.ind-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.ind-name { font-size: 0.6rem; color: var(--text-3); }
.ind-val { font-size: 1rem; font-weight: 700; display: block; line-height: 1; margin-bottom: 4px; }
.ind-val.green { color: var(--green); }
.ind-val.red { color: var(--red); }
.ind-val.gold { color: var(--gold-light); }
.ind-val.blue { color: var(--blue); }
.ind-val small { font-size: 0.65em; color: var(--text-3); }

.sparkline { width: 100%; height: 20px; display: block; }

/* PQR */
.pqr-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }

.pqr-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pqr-box--warn { border-color: rgba(245,158,11,0.2); }
.pqr-box--pos { border-color: rgba(16,185,129,0.2); }

.pqr-ic-wrap {
  font-size: 1.2rem;
}
.pqr-box--warn .pqr-ic-wrap { color: var(--gold-base); }
.pqr-box--pos .pqr-ic-wrap { color: var(--green); }

.pqr-content { flex: 1; }
.pqr-num { display: block; font-family: 'Cinzel', serif; font-size: 1.3rem; font-weight: 700; line-height: 1; }
.pqr-lbl { display: block; font-size: 0.65rem; font-weight: 600; }
.pqr-status { display: block; font-size: 0.58rem; color: var(--text-3); }

.pqr-ver {
  font-size: 0.6rem;
  color: var(--purple-400);
  font-weight: 500;
}
.pqr-ver:hover { color: var(--purple-300); }

/* Activity */
.act-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

.act-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.act-ic {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--aic) 15%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--aic);
  flex-shrink: 0;
}

.act-body p { font-size: 0.65rem; color: var(--text-2); line-height: 1.4; }
.act-body strong { color: var(--text-1); }
.act-time { font-size: 0.58rem; color: var(--text-3); display: block; margin-top: 2px; }

/* ── SVG Text styles ─────────────────────────────────────── */
.pr-pct {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  fill: #f0f0ff;
}
.pr-sub-text {
  font-size: 7px;
  fill: #606080;
}

/* ── 15. ANIMATIONS ──────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.6; }
  70% { transform: scale(1.05); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Entrance animations */
.hero-copy { animation: fadeInUp 0.6s var(--ease) both; }
.hero-visual { animation: fadeInUp 0.6s var(--ease) 0.1s both; }
.process-card { animation: fadeInUp 0.6s var(--ease) 0.2s both; }

.prog-card { animation: fadeInUp 0.5s var(--ease) both; }
.prog-card:nth-child(1) { animation-delay: 0.05s; }
.prog-card:nth-child(2) { animation-delay: 0.10s; }
.prog-card:nth-child(3) { animation-delay: 0.15s; }
.prog-card:nth-child(4) { animation-delay: 0.20s; }
.prog-card:nth-child(5) { animation-delay: 0.25s; }
.prog-card:nth-child(6) { animation-delay: 0.30s; }

/* Gold shimmer on brand name */
.sidebar-brand-name {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

/* ── 16. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1400px) {
  :root { --sidebar-w: 200px; --right-w: 260px; }
  .programs-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
  :root { --right-w: 240px; }
  .hero-inner { grid-template-columns: 1fr auto; }
  .hero-visual { display: none; }
  .bottom-section { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 60px; }
  .sidebar-brand-text,
  .nav-link span,
  .nav-section-label,
  .sf-user-info,
  .sf-profile-link { display: none; }
  .sidebar-header { padding: 12px 8px; }
  .sidebar-logo { width: 40px; height: 40px; }
  .nav-link { justify-content: center; padding: 10px; }
  .nav-link i { width: auto; }
  .sf-menu-btn { display: none; }
  .sf-avatar { margin: auto; }
  .topbar-toggle { display: flex; }
}

@media (max-width: 768px) {
  .right-panel { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .process-card { width: 100%; }
  .bottom-section { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .ia-features { display: none; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .fin-metrics { grid-template-columns: 1fr; }
  .crm-metrics { grid-template-columns: 1fr; }
}

/* ── 17. UTILITY CLASSES ─────────────────────────────────── */
.green { color: var(--green) !important; }
.red   { color: var(--red)   !important; }
.gold  { color: var(--gold-light) !important; }
.blue  { color: var(--blue)  !important; }
.purple{ color: var(--purple-400) !important; }
