/* ==========================================================
   GURU INOVATIF — Premium EdTech Stylesheet
   Design: Luxury Academia · Deep Space · Gold Accents
   ========================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Brand Colors */
  --clr-primary:       #5e1aa2;
  --clr-primary-deep:  #3d0e6b;
  --clr-primary-rich:  #7a22cc;
  --clr-secondary:     #a807d5;
  --clr-accent:        #f59e0b;
  --clr-accent-light:  #fbbf24;
  --clr-accent-glow:   #fde68a;
  --clr-bg:            #f8fafc;
  --clr-white:         #ffffff;

  /* Dark Palette (Hero/Footer) */
  --clr-dark:          #080412;
  --clr-dark-mid:      #120824;
  --clr-dark-card:     rgba(255,255,255,0.04);

  /* Text */
  --clr-text:          #1a0e30;
  --clr-text-muted:    #6b7280;
  --clr-text-light:    #9ca3af;
  --clr-text-white:    rgba(255,255,255,0.92);
  --clr-text-dim:      rgba(255,255,255,0.55);

  /* Borders */
  --clr-border:        #e5e7eb;
  --clr-border-light:  #f3f4f6;
  --clr-border-glass:  rgba(255,255,255,0.12);

  /* Gradients */
  --grad-primary:      linear-gradient(135deg, #5e1aa2 0%, #a807d5 100%);
  --grad-hero:         linear-gradient(135deg, #060311 0%, #140826 35%, #2a0f52 65%, #5e1aa2 100%);
  --grad-gold:         linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
  --grad-card:         linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  --grad-shimmer:      linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);

  /* Shadows */
  --shadow-xs:   0 1px 3px rgba(94,26,162,0.06);
  --shadow-sm:   0 2px 8px rgba(94,26,162,0.1);
  --shadow-md:   0 8px 24px rgba(94,26,162,0.15);
  --shadow-lg:   0 16px 48px rgba(94,26,162,0.2);
  --shadow-xl:   0 32px 80px rgba(94,26,162,0.28);
  --shadow-gold: 0 8px 32px rgba(245,158,11,0.35);
  --shadow-glow: 0 0 40px rgba(168,7,213,0.3);

  /* Radii */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-2xl:  44px;
  --r-full: 9999px;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;
  --space-4xl:  128px;

  /* Typography */
  --font-display: 'Poppins', 'Tahoma', Arial, sans-serif;
  --font-body:    'Nunito', 'Tahoma', Arial, sans-serif;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-inout: cubic-bezier(0.87, 0, 0.13, 1);
  --t-fast:     0.18s;
  --t-med:      0.32s;
  --t-slow:     0.55s;

  /* Layout */
  --nav-h:         76px;
  --max-w:         1280px;
  --content-px:    clamp(20px, 5vw, 80px);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--clr-primary); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--clr-dark); }
::-webkit-scrollbar-thumb { background: var(--clr-primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-secondary); }

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--content-px);
}

.container-narrow {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--content-px);
}

.section { padding-block: var(--space-3xl); }
.section-alt { background: #f0edf8; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 700;
  color: var(--clr-text);
}

.display-1 { font-size: clamp(2.8rem, 6vw, 5.2rem); font-weight: 900; letter-spacing: -0.03em; }
.display-2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
.h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; }
.h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; }
.h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
.body-lg { font-size: 1.125rem; line-height: 1.75; }
.body-sm { font-size: 0.875rem; }
.caption { font-size: 0.75rem; letter-spacing: 0.04em; }

.text-gradient-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-primary {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section Label ── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(94, 26, 162, 0.1);
  border: 1px solid rgba(94, 26, 162, 0.2);
  color: var(--clr-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: var(--r-full);
  margin-bottom: var(--space-md);
}
.section-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--clr-secondary);
  border-radius: 50%;
  animation: dot-pulse 1.8s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.6); opacity: 0.5; }
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: var(--clr-text);
}
.section-desc {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--t-med) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-shimmer);
  background-size: 200% 100%;
  background-position: -100% 0;
  transition: background-position var(--t-med);
}
.btn:hover::before { background-position: 100% 0; }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 6px 24px rgba(94,26,162,0.38);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(94,26,162,0.5), var(--shadow-glow);
}
.btn-primary:active { transform: translateY(-1px) scale(1); }

.btn-gold {
  background: var(--grad-gold);
  color: #1a0e30;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 48px rgba(245,158,11,0.55);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}
.btn-outline:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm  { padding: 9px 22px; font-size: 0.82rem; border-radius: var(--r-sm); }
.btn-lg  { padding: 18px 44px; font-size: 1.05rem; border-radius: var(--r-lg); }
.btn-xl  { padding: 20px 56px; font-size: 1.1rem; border-radius: var(--r-lg); }
.btn-pill { border-radius: var(--r-full); }
.btn-icon-only { padding: 12px; aspect-ratio: 1; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-purple { background: rgba(94,26,162,0.12); color: var(--clr-primary); }
.badge-gold   { background: rgba(245,158,11,0.15); color: #b45309; }
.badge-green  { background: rgba(16,185,129,0.12); color: #059669; }
.badge-red    { background: rgba(239,68,68,0.12); color: #dc2626; }
.badge-blue   { background: rgba(59,130,246,0.12); color: #2563eb; }
.badge-live   { background: linear-gradient(135deg,#ef4444,#dc2626); color: #fff; animation: live-pulse 2s infinite; }
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(94,26,162,0.08);
  transition: all var(--t-med) var(--ease-out);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 32px rgba(94,26,162,0.12);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  transition: all var(--t-fast) var(--ease-out);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: all var(--t-med) var(--ease-out);
}
.nav-link:hover { color: var(--clr-primary); background: rgba(94,26,162,0.06); }
.nav-link:hover::after { left: 14px; right: 14px; }
.nav-link.active { color: var(--clr-primary); }
.nav-link.active::after { left: 14px; right: 14px; }
.nav-link .nav-icon { font-size: 1rem; }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }

.nav-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.88rem;
  border: 2px solid rgba(94,26,162,0.2);
  transition: all var(--t-fast);
  cursor: pointer;
}
.nav-avatar:hover { transform: scale(1.08); box-shadow: var(--shadow-md); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.hamburger:hover { background: rgba(94,26,162,0.06); }
.ham-bar {
  display: block;
  width: 24px; height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--t-med) var(--ease-out);
  transform-origin: center;
}
.hamburger.open .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--clr-border);
  padding: 20px var(--content-px) 28px;
  z-index: 999;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-110%);
  transition: transform var(--t-med) var(--ease-out);
  box-shadow: 0 8px 40px rgba(94,26,162,0.15);
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer .nav-link { font-size: 1rem; padding: 14px 16px; }
.mobile-drawer-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--clr-border); }

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Animated background mesh */
.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: orb-drift ease-in-out infinite;
}
.mesh-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #a807d5 0%, transparent 70%);
  top: -250px; right: -150px;
  animation-duration: 12s;
  animation-delay: 0s;
}
.mesh-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #5e1aa2 0%, transparent 70%);
  bottom: -150px; left: -100px;
  animation-duration: 9s;
  animation-delay: -3s;
}
.mesh-orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(245,158,11,0.6) 0%, transparent 70%);
  top: 40%; left: 35%;
  animation-duration: 7s;
  animation-delay: -1.5s;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.08); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* Grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  z-index: 0;
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(245,158,11,0.7);
  animation: float-up linear infinite;
}
.particle:nth-child(1)  { width: 3px; height: 3px; left: 10%; animation-duration: 8s;  animation-delay: 0s; }
.particle:nth-child(2)  { width: 5px; height: 5px; left: 25%; animation-duration: 12s; animation-delay: -3s; }
.particle:nth-child(3)  { width: 2px; height: 2px; left: 40%; animation-duration: 9s;  animation-delay: -1s; }
.particle:nth-child(4)  { width: 4px; height: 4px; left: 60%; animation-duration: 11s; animation-delay: -5s; }
.particle:nth-child(5)  { width: 3px; height: 3px; left: 75%; animation-duration: 7s;  animation-delay: -2s; }
.particle:nth-child(6)  { width: 6px; height: 6px; left: 88%; animation-duration: 14s; animation-delay: -4s; }
.particle:nth-child(7)  { width: 2px; height: 2px; left: 55%; animation-duration: 10s; animation-delay: -6s; }
.particle:nth-child(8)  { width: 4px; height: 4px; left: 18%; animation-duration: 13s; animation-delay: -7s; }
@keyframes float-up {
  0%   { bottom: -20px; opacity: 0; transform: translateX(0) scale(0); }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { bottom: 110%; opacity: 0; transform: translateX(50px) scale(1.5); }
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-block: var(--space-2xl);
}

/* ── Hero Left ── */
.hero-left { display: flex; flex-direction: column; gap: 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: var(--r-full);
  margin-bottom: 28px;
  width: fit-content;
  animation: hero-badge-in 0.8s var(--ease-out) 0.2s both;
}
@keyframes hero-badge-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge-dot { width: 8px; height: 8px; background: #fbbf24; border-radius: 50%; animation: dot-pulse 1.8s infinite; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 28px;
  animation: hero-text-in 0.9s var(--ease-out) 0.35s both;
}
@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-title .line-gold {
  display: block;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 40%, #fde68a 70%, #fbbf24 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-text 3s linear 1.5s infinite;
}
@keyframes shimmer-text {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin-bottom: 40px;
  animation: hero-text-in 0.9s var(--ease-out) 0.5s both;
}

.hero-search {
  display: flex;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
  margin-bottom: 36px;
  transition: all var(--t-med) var(--ease-out);
  animation: hero-text-in 0.9s var(--ease-out) 0.6s both;
}
.hero-search:focus-within {
  border-color: rgba(245,158,11,0.5);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.15);
}
.hero-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 16px 8px;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.hero-search input::placeholder { color: rgba(255,255,255,0.42); }
.hero-search-btn {
  padding: 12px 24px;
  margin: 6px;
  background: var(--grad-gold);
  color: #1a0e30;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--r-sm);
  transition: all var(--t-fast) var(--ease-out);
  font-family: var(--font-display);
}
.hero-search-btn:hover { transform: scale(1.04); box-shadow: var(--shadow-gold); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: hero-text-in 0.9s var(--ease-out) 0.7s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: hero-text-in 0.9s var(--ease-out) 0.85s both;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-stat-num span { color: var(--clr-accent-light); }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 4px; }

/* ── Hero Right: Dashboard Card ── */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: hero-card-in 1s var(--ease-out) 0.4s both;
}
@keyframes hero-card-in {
  from { opacity: 0; transform: translateX(50px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

.dashboard-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-xl);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 32px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
  animation: card-float 8s ease-in-out infinite;
}
@keyframes card-float {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50%       { transform: translateY(-16px) rotate(0.5deg); }
}

.dc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dc-title-row { display: flex; align-items: center; gap: 10px; }
.dc-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.dc-name { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 0.95rem; }
.dc-role { font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.dc-status { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: #6ee7b7; }
.dc-status::before { content: ''; width: 8px; height: 8px; background: #6ee7b7; border-radius: 50%; animation: dot-pulse 1.8s infinite; }

.dc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.dc-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 14px;
  text-align: center;
  transition: all var(--t-fast);
}
.dc-stat:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.dc-stat-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--clr-accent-light);
  line-height: 1;
  margin-bottom: 4px;
}
.dc-stat-lbl { font-size: 0.68rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.06em; }

.dc-progress-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.dc-prog-item {}
.dc-prog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}
.dc-prog-name { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.dc-prog-pct  { font-size: 0.8rem; font-weight: 800; color: var(--clr-accent-light); font-family: var(--font-display); }
.dc-prog-bar  { height: 7px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.dc-prog-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--grad-primary);
  transition: width 1.5s var(--ease-out);
  position: relative;
}
.dc-prog-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 12px; height: 100%;
  background: rgba(255,255,255,0.4);
  border-radius: 4px;
  filter: blur(3px);
}
.dc-prog-fill.gold-fill  { background: var(--grad-gold); }
.dc-prog-fill.teal-fill  { background: linear-gradient(90deg, #14b8a6, #6ee7b7); }

.dc-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dc-next { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.dc-next strong { color: rgba(255,255,255,0.85); font-family: var(--font-display); }

/* Floating chips */
.hero-chip {
  position: absolute;
  background: #fff;
  border-radius: var(--r-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  animation: chip-float ease-in-out infinite;
}
.hero-chip-1 { top: 10%; left: -32px; animation-duration: 5s; animation-delay: 0s; }
.hero-chip-2 { bottom: 12%; right: -24px; animation-duration: 6s; animation-delay: -2s; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.hero-chip-icon { font-size: 1.5rem; }
.hero-chip-text-main { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--clr-text); }
.hero-chip-text-sub  { font-size: 0.7rem; color: var(--clr-text-muted); margin-top: 1px; }

/* ── Scroll indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fade-in 1s ease 1.5s both;
}
.scroll-mouse {
  width: 26px; height: 40px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-mouse::before {
  content: '';
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scroll-wheel 2.5s ease infinite;
}
@keyframes scroll-wheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ═══════════════════════════════════════════
   TRUST STRIP
═══════════════════════════════════════════ */
.trust-strip {
  background: var(--grad-primary);
  padding: 28px 0;
  overflow: hidden;
  position: relative;
}
.trust-strip::before, .trust-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 1;
}
.trust-strip::before { left: 0; background: linear-gradient(90deg, rgba(94,26,162,0.8), transparent); }
.trust-strip::after  { right: 0; background: linear-gradient(-90deg, rgba(168,7,213,0.8), transparent); }

.trust-track {
  display: flex;
  gap: 0;
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}
.trust-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 48px;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.trust-item-icon { font-size: 1.1rem; }

/* ═══════════════════════════════════════════
   CATEGORY CARDS
═══════════════════════════════════════════ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.category-card {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--t-med) var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: var(--grad-primary);
  border-radius: 0;
  transition: height var(--t-med) var(--ease-out);
  z-index: 0;
}
.category-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-xl);
}
.category-card:hover::before { height: 4px; }
.category-card:hover .cat-icon-wrap { transform: scale(1.12) rotate(5deg); }
.category-card:hover .cat-name { color: var(--clr-primary); }

.cat-icon-wrap {
  width: 72px; height: 72px;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 2rem;
  transition: all var(--t-med) var(--ease-out);
  position: relative; z-index: 1;
}
.ci-purple { background: linear-gradient(135deg, rgba(94,26,162,0.12), rgba(168,7,213,0.08)); }
.ci-gold   { background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(251,191,36,0.08)); }
.ci-teal   { background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(6,182,212,0.08)); }
.ci-blue   { background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(99,102,241,0.08)); }
.ci-rose   { background: linear-gradient(135deg, rgba(244,63,94,0.12), rgba(239,68,68,0.08)); }
.ci-green  { background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(52,211,153,0.08)); }
.ci-amber  { background: linear-gradient(135deg, rgba(251,146,60,0.12), rgba(253,186,116,0.08)); }
.ci-indigo { background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(129,140,248,0.08)); }

.cat-name  { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--clr-text); margin-bottom: 6px; position: relative; z-index: 1; transition: color var(--t-fast); }
.cat-count { font-size: 0.78rem; color: var(--clr-text-muted); position: relative; z-index: 1; }

/* ═══════════════════════════════════════════
   COURSE CARDS
═══════════════════════════════════════════ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.course-card {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t-med) var(--ease-out);
  display: flex; flex-direction: column;
}
.course-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-xl);
}

.course-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--grad-primary);
  flex-shrink: 0;
}
.course-thumb-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  position: relative;
  background: linear-gradient(135deg, var(--clr-primary-deep), var(--clr-secondary));
}
.course-thumb-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, transparent 60%);
}
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.course-card:hover .course-thumb img { transform: scale(1.06); }

.course-level-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lt-beginner { background: rgba(16,185,129,0.9); color: #fff; }
.lt-mid      { background: rgba(245,158,11,0.9); color: #fff; }
.lt-adv      { background: rgba(239,68,68,0.9); color: #fff; }

.course-play-btn {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.course-card:hover .course-play-btn { opacity: 1; }
.play-circle {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  padding-left: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: transform var(--t-fast) var(--ease-out);
}
.course-card:hover .play-circle { transform: scale(1.1); }

.course-discount {
  position: absolute;
  top: 14px; right: 14px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--r-sm);
}

.course-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-cat {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--clr-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.course-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.45;
  margin-bottom: 12px;
  flex: 1;
}
.course-title:hover { color: var(--clr-primary); }

.course-instructor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.ins-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.ins-name { font-size: 0.82rem; color: var(--clr-text-muted); }

.course-meta {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--clr-border-light);
  border-bottom: 1px solid var(--clr-border-light);
  margin-bottom: 14px;
}
.meta-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}
.meta-chip .ico { font-size: 0.88rem; }

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.course-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stars { color: #f59e0b; font-size: 0.82rem; letter-spacing: -2px; }
.rat-num { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; }
.rat-count { font-size: 0.75rem; color: var(--clr-text-muted); }

.course-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 900; color: var(--clr-primary); }
.course-price-free { color: #059669; }
.price-old { font-size: 0.82rem; color: var(--clr-text-muted); text-decoration: line-through; margin-right: 4px; }

/* ── Filter Tabs ── */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.ftab {
  padding: 9px 22px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--clr-border);
  background: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}
.ftab:hover { border-color: var(--clr-primary); color: var(--clr-primary); background: rgba(94,26,162,0.04); }
.ftab.active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(94,26,162,0.3);
}

/* ═══════════════════════════════════════════
   STATS BAND
═══════════════════════════════════════════ */
.stats-band {
  background: var(--grad-hero);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
.stat-item {
  text-align: center;
  padding: 20px 40px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-icon-wrap { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number .gold-digit { color: var(--clr-accent-light); }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.6); font-weight: 500; }

/* ═══════════════════════════════════════════
   WEBINAR / EVENTS
═══════════════════════════════════════════ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.event-card {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  transition: all var(--t-med) var(--ease-out);
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.event-date-col {
  min-width: 88px;
  background: var(--grad-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  text-align: center;
  flex-shrink: 0;
}
.event-day {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.event-month { font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.event-body { padding: 22px 24px; flex: 1; }
.event-tag { font-size: 0.7rem; font-weight: 800; color: var(--clr-secondary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.event-title { font-family: var(--font-display); font-size: 0.97rem; font-weight: 700; color: var(--clr-text); line-height: 1.45; margin-bottom: 10px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.78rem; color: var(--clr-text-muted); margin-bottom: 16px; }
.event-meta span { display: flex; align-items: center; gap: 4px; }

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--t-med) var(--ease-out);
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.testi-card::after {
  content: '"';
  position: absolute;
  top: 16px; right: 24px;
  font-size: 7rem;
  line-height: 1;
  color: var(--clr-primary);
  opacity: 0.06;
  font-family: Georgia, serif;
  pointer-events: none;
}
.testi-stars { color: #f59e0b; font-size: 1rem; letter-spacing: -2px; margin-bottom: 14px; }
.testi-text { font-size: 0.9rem; color: var(--clr-text-muted); line-height: 1.8; font-style: italic; margin-bottom: 22px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-ava {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.testi-name { font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; margin-bottom: 2px; }
.testi-role { font-size: 0.78rem; color: var(--clr-text-muted); }

/* ═══════════════════════════════════════════
   ARTICLES / BLOG
═══════════════════════════════════════════ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-card {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t-med) var(--ease-out);
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }

.article-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--grad-primary);
}
.article-thumb-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--clr-primary-deep), var(--clr-secondary));
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.article-card:hover .article-thumb img { transform: scale(1.06); }
.article-thumb-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--clr-primary);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 700;
}

.article-body { padding: 24px; }
.article-date { font-size: 0.75rem; color: var(--clr-text-light); margin-bottom: 10px; }
.article-title { font-family: var(--font-display); font-size: 0.97rem; font-weight: 700; color: var(--clr-text); line-height: 1.45; margin-bottom: 10px; }
.article-title:hover { color: var(--clr-primary); }
.article-excerpt { font-size: 0.85rem; color: var(--clr-text-muted); line-height: 1.75; margin-bottom: 18px; }
.article-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-primary);
  transition: gap var(--t-fast);
}
.article-cta:hover { gap: 12px; }

/* ═══════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════ */
.cta-section {
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  padding: var(--space-4xl) 0;
  text-align: center;
}
.cta-section .mesh-orb { z-index: 0; }
.cta-section .container { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.cta-desc { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 44px; line-height: 1.8; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--clr-dark);
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}
.footer-brand img { height: 50px; margin-bottom: 22px; }
.footer-desc { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.85; margin-bottom: 28px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.soc-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: all var(--t-fast) var(--ease-out);
}
.soc-btn:hover { background: var(--clr-primary); color: #fff; border-color: transparent; transform: translateY(-3px); box-shadow: var(--shadow-md); }

.footer-col h4 { font-family: var(--font-display); font-size: 0.88rem; font-weight: 800; color: #fff; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 22px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.5);
  transition: all var(--t-fast);
  display: flex; align-items: center; gap: 8px;
}
.footer-links a::before { content: '›'; color: var(--clr-secondary); font-size: 1.1rem; transition: transform var(--t-fast); }
.footer-links a:hover { color: rgba(255,255,255,0.9); transform: translateX(4px); }
.footer-links a:hover::before { transform: translateX(3px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: var(--clr-accent-light); }

/* ═══════════════════════════════════════════
   COURSE DETAIL PAGE
═══════════════════════════════════════════ */
.detail-hero {
  background: var(--grad-hero);
  padding: calc(var(--nav-h) + 40px) 0 60px;
  position: relative;
  overflow: hidden;
}
.detail-hero .mesh-orb { z-index: 0; }
.detail-hero .container { position: relative; z-index: 1; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.45); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--clr-accent-light); }
.breadcrumb .sep { color: rgba(255,255,255,0.2); }

.detail-cat { font-size: 0.75rem; font-weight: 800; color: var(--clr-accent-light); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.detail-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 18px; letter-spacing: -0.02em; }
.detail-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.7); line-height: 1.75; margin-bottom: 24px; }

.detail-rating-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 22px; }
.detail-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.detail-meta-item { display: flex; align-items: center; gap: 7px; font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* Sticky Purchase Card */
.sticky-card {
  background: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.sticky-preview {
  aspect-ratio: 16/9;
  background: var(--grad-primary);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.sticky-preview-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 5rem; opacity: 0.35; }
.preview-play {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  padding-left: 5px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: all var(--t-fast) var(--ease-out);
  z-index: 1;
}
.sticky-preview:hover .preview-play { transform: scale(1.12); background: #fff; }
.preview-label { position: absolute; bottom: 14px; font-size: 0.78rem; color: rgba(255,255,255,0.85); font-weight: 500; z-index: 1; }

.sticky-body { padding: 28px; }
.price-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.price-main { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--clr-primary); }
.price-orig { font-size: 1rem; color: var(--clr-text-muted); text-decoration: line-through; }
.price-badge { padding: 6px 12px; background: rgba(239,68,68,0.1); color: #dc2626; font-size: 0.78rem; font-weight: 800; border-radius: var(--r-sm); }

.timer-row { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); border-radius: var(--r-sm); padding: 10px 16px; margin-bottom: 20px; text-align: center; font-size: 0.82rem; color: #b45309; font-weight: 600; }
.timer-row .clock { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; }

.enroll-btn { width: 100%; margin-bottom: 14px; }
.guarantee { text-align: center; font-size: 0.78rem; color: var(--clr-text-muted); margin-bottom: 22px; }

.includes-list { display: flex; flex-direction: column; gap: 11px; }
.include-item { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--clr-text); }
.include-item .inc-ico { font-size: 1rem; width: 22px; text-align: center; flex-shrink: 0; }

/* Detail body tabs */
.detail-body-section { padding: var(--space-3xl) 0; }
.detail-body-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.tab-nav { display: flex; border-bottom: 2px solid var(--clr-border); margin-bottom: 36px; overflow-x: auto; }
.tab-btn {
  padding: 14px 26px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  background: none;
  border-top: none; border-left: none; border-right: none;
}
.tab-btn:hover { color: var(--clr-primary); }
.tab-btn.active { color: var(--clr-primary); border-bottom-color: var(--clr-primary); }

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: tab-appear 0.35s var(--ease-out); }
@keyframes tab-appear {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Curriculum */
.curriculum-module { border: 1.5px solid var(--clr-border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px; }
.cm-header {
  padding: 18px 22px;
  background: #f8fafc;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  transition: background var(--t-fast);
}
.cm-header:hover { background: #f0edf8; }
.cm-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--clr-text); }
.cm-meta { font-size: 0.78rem; color: var(--clr-text-muted); }
.cm-chevron { font-size: 0.9rem; color: var(--clr-text-muted); transition: transform var(--t-fast); }
.cm-header.open .cm-chevron { transform: rotate(180deg); }

.cm-lessons { border-top: 1.5px solid var(--clr-border); }
.cm-lesson {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--clr-border-light);
  font-size: 0.85rem;
  color: var(--clr-text);
  transition: background var(--t-fast);
  cursor: default;
}
.cm-lesson:last-child { border-bottom: none; }
.cm-lesson:hover { background: rgba(94,26,162,0.03); }
.cm-lesson .l-ico { font-size: 0.9rem; width: 20px; text-align: center; color: var(--clr-text-muted); flex-shrink: 0; }
.cm-lesson .l-name { flex: 1; }
.cm-lesson .l-dur { font-size: 0.75rem; color: var(--clr-text-muted); }
.cm-lesson.preview-free .l-name { color: var(--clr-primary); cursor: pointer; }
.cm-lesson.preview-free::after { content: 'Preview'; font-size: 0.68rem; font-weight: 800; color: var(--clr-primary); background: rgba(94,26,162,0.1); padding: 3px 9px; border-radius: var(--r-full); }

/* Sidebar instructor card */
.instructor-card {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: 28px;
  margin-bottom: 20px;
}
.ic-header { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.ic-ava {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 900; color: #fff;
  flex-shrink: 0;
  border: 3px solid rgba(94,26,162,0.15);
}
.ic-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; color: var(--clr-text); margin-bottom: 4px; }
.ic-title { font-size: 0.82rem; color: var(--clr-text-muted); }
.ic-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 18px; border-top: 1px solid var(--clr-border); padding-top: 18px; }
.ic-stat-val { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--clr-primary); }
.ic-stat-lbl { font-size: 0.72rem; color: var(--clr-text-muted); }

/* ═══════════════════════════════════════════
   DASHBOARD PAGE
═══════════════════════════════════════════ */
.dash-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  min-height: calc(100svh - var(--nav-h));
  margin-top: var(--nav-h);
}

.dash-sidebar {
  background: var(--clr-dark-mid);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 36px 0 36px;
  position: sticky;
  top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  overflow-y: auto;
}
.dash-sidebar::-webkit-scrollbar { width: 3px; }

.ds-user { padding: 0 20px 28px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 20px; }
.ds-ava {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 900; color: #fff;
  margin-bottom: 12px;
  border: 3px solid rgba(94,26,162,0.3);
  box-shadow: 0 4px 20px rgba(94,26,162,0.4);
}
.ds-user-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; color: #fff; margin-bottom: 3px; }
.ds-user-role { font-size: 0.75rem; color: rgba(255,255,255,0.45); }

.ds-nav-group { padding: 0 12px; margin-bottom: 24px; }
.ds-nav-label { font-size: 0.65rem; font-weight: 800; color: rgba(255,255,255,0.25); letter-spacing: 0.14em; text-transform: uppercase; padding: 0 8px 8px; }
.ds-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
  margin-bottom: 2px;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  border: none;
  text-decoration: none;
}
.ds-nav-link .nav-ico { font-size: 1rem; width: 22px; text-align: center; flex-shrink: 0; }
.ds-nav-link:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.ds-nav-link.active { background: linear-gradient(135deg, rgba(94,26,162,0.6), rgba(168,7,213,0.35)); color: #fff; }
.ds-nav-link .notif { margin-left: auto; background: var(--clr-accent); color: #1a0e30; font-size: 0.65rem; font-weight: 800; padding: 2px 7px; border-radius: var(--r-full); }

/* Dashboard Main */
.dash-main { padding: 44px 52px; background: var(--clr-bg); overflow-y: auto; }

.dash-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.dash-greeting h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; color: var(--clr-text); }
.dash-greeting p { font-size: 0.9rem; color: var(--clr-text-muted); margin-top: 4px; }
.dash-topbar-actions { display: flex; gap: 12px; }

/* Stat cards */
.dash-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 36px; }
.dsc {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--t-med) var(--ease-out);
}
.dsc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.dsc-icon { font-size: 2.2rem; margin-bottom: 14px; display: block; }
.dsc-val { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; color: var(--clr-text); line-height: 1; margin-bottom: 6px; }
.dsc-lbl { font-size: 0.82rem; color: var(--clr-text-muted); }
.dsc-trend { font-size: 0.75rem; margin-top: 10px; display: flex; align-items: center; gap: 4px; font-weight: 600; }
.dsc-trend.up { color: #059669; }
.dsc-trend.down { color: #dc2626; }
.dsc::after { content: ''; position: absolute; top: 0; right: 0; width: 56px; height: 56px; border-radius: 0 var(--r-xl) 0 56px; opacity: 0.06; }
.dsc-1::after { background: var(--clr-primary); }
.dsc-2::after { background: var(--clr-accent); }
.dsc-3::after { background: #10b981; }
.dsc-4::after { background: #3b82f6; }

/* My Courses */
.dash-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-section-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--clr-text); }
.dash-section-link { font-size: 0.82rem; font-weight: 600; color: var(--clr-primary); }

.my-courses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 36px; }
.mcc {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: 20px;
  display: flex; gap: 16px;
  transition: all var(--t-med) var(--ease-out);
}
.mcc:hover { box-shadow: var(--shadow-lg); border-color: rgba(94,26,162,0.2); transform: translateY(-2px); }
.mcc-thumb {
  width: 88px; height: 88px;
  border-radius: var(--r-md);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  overflow: hidden;
}
.mcc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mcc-body { flex: 1; min-width: 0; }
.mcc-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--clr-text); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcc-ins { font-size: 0.76rem; color: var(--clr-text-muted); margin-bottom: 12px; }
.mcc-prog-bar { height: 6px; background: var(--clr-border); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.mcc-prog-fill { height: 100%; background: var(--grad-primary); border-radius: 3px; transition: width 1.2s var(--ease-out); }
.mcc-prog-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--clr-text-muted); }
.mcc-prog-labels span:first-child { color: var(--clr-primary); font-weight: 700; }

/* Activity feed */
.activity-feed { background: #fff; border: 1.5px solid var(--clr-border); border-radius: var(--r-xl); padding: 22px; }
.af-item { display: flex; align-items: flex-start; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--clr-border-light); }
.af-item:last-child { border-bottom: none; padding-bottom: 0; }
.af-dot {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.af-dot-p { background: rgba(94,26,162,0.1); }
.af-dot-g { background: rgba(16,185,129,0.1); }
.af-dot-a { background: rgba(245,158,11,0.1); }
.af-dot-b { background: rgba(59,130,246,0.1); }
.af-text { font-size: 0.85rem; color: var(--clr-text); line-height: 1.5; }
.af-time { font-size: 0.72rem; color: var(--clr-text-muted); margin-top: 3px; }

/* ═══════════════════════════════════════════
   CERTIFICATE PAGE
═══════════════════════════════════════════ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.cert-card {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t-med) var(--ease-out);
}
.cert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }

.cert-top {
  background: var(--grad-primary);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cert-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.04) 0,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 12px
  );
}
.cert-medal { font-size: 3.8rem; display: block; margin-bottom: 8px; position: relative; z-index: 1; animation: medal-bounce 3s ease-in-out infinite; }
@keyframes medal-bounce {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-6px) rotate(3deg); }
}
.cert-top-title { font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; color: rgba(255,255,255,0.95); position: relative; z-index: 1; line-height: 1.4; }
.cert-body { padding: 24px; }
.cert-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; color: var(--clr-text); margin-bottom: 10px; }
.cert-meta { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.cert-meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--clr-text-muted); }
.cert-actions { display: flex; gap: 10px; }

/* Certificate Preview */
.cert-preview-wrap {
  background: linear-gradient(135deg, #fefcff, #f8f0ff);
  border: 2px solid var(--clr-primary);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-width: 860px;
  margin: 0 auto 48px;
  position: relative;
}
.cert-inner-border {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(94,26,162,0.18);
  border-radius: var(--r-lg);
  pointer-events: none;
  z-index: 1;
}
.cert-inner-border::before, .cert-inner-border::after {
  content: '❧';
  position: absolute;
  font-size: 1.2rem;
  color: rgba(94,26,162,0.2);
}
.cert-inner-border::before { top: -12px; left: 50%; transform: translateX(-50%); }
.cert-inner-border::after  { bottom: -12px; left: 50%; transform: translateX(-50%) rotate(180deg); }

.cert-content { padding: 56px 64px; text-align: center; position: relative; }
.cert-logo-row { margin-bottom: 28px; }
.cert-logo-row img { height: 52px; margin: 0 auto; }
.cert-header-text {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--clr-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cert-present { font-size: 1rem; color: var(--clr-text-muted); margin-bottom: 6px; }
.cert-recipient {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 14px;
}
.cert-completed-text { font-size: 0.95rem; color: var(--clr-text-muted); margin-bottom: 6px; }
.cert-course-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--clr-text); margin-bottom: 32px; }
.cert-divider {
  width: 100px; height: 3px;
  background: var(--grad-gold);
  margin: 0 auto 32px;
  border-radius: 2px;
}
.cert-footer-row { display: flex; justify-content: space-between; align-items: flex-end; }
.cert-sig { text-align: center; }
.cert-sig-line { width: 130px; height: 1px; background: var(--clr-text); margin: 0 auto 8px; }
.cert-sig-name { font-family: var(--font-display); font-size: 0.88rem; font-weight: 800; color: var(--clr-text); }
.cert-sig-title { font-size: 0.75rem; color: var(--clr-text-muted); margin-top: 2px; }
.cert-seal {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 24px rgba(94,26,162,0.45);
  border: 3px solid rgba(255,255,255,0.5);
}
.cert-seal-icon { font-size: 1.6rem; margin-bottom: 2px; }
.cert-seal-text { font-size: 0.52rem; font-weight: 800; letter-spacing: 0.06em; text-align: center; line-height: 1.4; text-transform: uppercase; }
.cert-id { font-size: 0.72rem; color: var(--clr-text-light); margin-top: 24px; letter-spacing: 0.06em; }

/* ═══════════════════════════════════════════
   FORUM PAGE
═══════════════════════════════════════════ */
.forum-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 36px;
  padding: var(--space-2xl) 0;
}
.forum-sidebar-widget {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: 22px;
  margin-bottom: 20px;
}
.forum-widget-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 800; color: var(--clr-text); margin-bottom: 16px; }

.forum-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.forum-chip {
  padding: 7px 18px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--clr-border);
  background: #fff;
  font-size: 0.82rem; font-weight: 600;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: var(--font-display);
}
.forum-chip:hover, .forum-chip.active { border-color: var(--clr-primary); color: var(--clr-primary); background: rgba(94,26,162,0.05); }

.forum-thread {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: 24px;
  margin-bottom: 16px;
  transition: all var(--t-med) var(--ease-out);
  cursor: pointer;
}
.forum-thread:hover { border-color: rgba(94,26,162,0.3); box-shadow: var(--shadow-md); transform: translateX(4px); }
.ft-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.ft-ava {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.ft-meta h4 { font-family: var(--font-display); font-size: 0.97rem; font-weight: 700; color: var(--clr-text); margin-bottom: 3px; line-height: 1.4; }
.ft-meta .time { font-size: 0.75rem; color: var(--clr-text-muted); }
.ft-excerpt { font-size: 0.85rem; color: var(--clr-text-muted); line-height: 1.7; margin-bottom: 14px; }
.ft-footer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ft-stat { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--clr-text-muted); }
.ft-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.ft-tag { background: rgba(94,26,162,0.08); color: var(--clr-primary); padding: 3px 11px; border-radius: var(--r-full); font-size: 0.7rem; font-weight: 600; }

/* ═══════════════════════════════════════════
   VIDEO MODAL
═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6,3,17,0.88);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease-out);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: #fff;
  border-radius: var(--r-xl);
  width: 100%; max-width: 820px;
  overflow: hidden;
  box-shadow: 0 48px 100px rgba(0,0,0,0.7);
  transform: scale(0.88) translateY(24px);
  transition: transform var(--t-med) var(--ease-out);
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }

.modal-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--clr-border);
}
.modal-hdr h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.modal-close-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--clr-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--t-fast);
}
.modal-close-btn:hover { background: #e5e7eb; transform: scale(1.08); }
.modal-body {}
.video-wrap { aspect-ratio: 16/9; background: #000; }
.video-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ═══════════════════════════════════════════
   TOAST SYSTEM
═══════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 3000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 16px 22px;
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: 13px;
  min-width: 320px; max-width: 440px;
  border-left: 4px solid var(--clr-primary);
  transform: translateX(120%);
  transition: transform var(--t-med) var(--ease-out);
  font-size: 0.88rem;
  color: var(--clr-text);
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: #10b981; }
.toast.warning { border-left-color: var(--clr-accent); }
.toast.error   { border-left-color: #ef4444; }
.toast-icon { font-size: 1.3rem; flex-shrink: 0; }
.toast-text { flex: 1; line-height: 1.5; }
.toast-close { font-size: 1rem; color: var(--clr-text-muted); cursor: pointer; transition: color var(--t-fast); padding: 2px; }
.toast-close:hover { color: var(--clr-text); }

/* ═══════════════════════════════════════════
   BACK TO TOP & PROGRESS
═══════════════════════════════════════════ */
.btt-btn {
  position: fixed;
  bottom: 36px; left: 36px;
  z-index: 100;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.8);
  transition: all var(--t-med) var(--ease-out);
  border: none;
}
.btt-btn.show { opacity: 1; transform: translateY(0) scale(1); }
.btt-btn:hover { transform: translateY(-4px) scale(1.08); box-shadow: var(--shadow-xl), var(--shadow-glow); }

.page-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary), var(--clr-accent));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════
   ANIMATIONS (Scroll-triggered)
═══════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.88); }
[data-reveal].revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

/* ═══════════════════════════════════════════
   PAGE HEADER (internal pages)
═══════════════════════════════════════════ */
.page-header {
  background: var(--grad-hero);
  padding: calc(var(--nav-h) + 56px) 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; color: #fff; margin-bottom: 14px; letter-spacing: -0.03em; }
.page-header p { font-size: 1.05rem; color: rgba(255,255,255,0.68); max-width: 580px; margin: 0 auto; line-height: 1.8; }

/* ═══════════════════════════════════════════
   COURSES FILTER SIDEBAR LAYOUT
═══════════════════════════════════════════ */
.courses-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
.filter-sidebar {
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: 28px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.filter-group { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--clr-border); }
.filter-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-group-title { font-family: var(--font-display); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--clr-text); margin-bottom: 16px; }
.filter-check { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.filter-check input { width: 16px; height: 16px; accent-color: var(--clr-primary); cursor: pointer; }
.filter-check span { font-size: 0.88rem; color: var(--clr-text-muted); flex: 1; }
.filter-check .fc-count { font-size: 0.75rem; background: var(--clr-border-light); color: var(--clr-text-muted); padding: 2px 9px; border-radius: var(--r-full); }

.courses-result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.result-count { font-size: 0.9rem; color: var(--clr-text-muted); }
.result-count strong { color: var(--clr-text); font-family: var(--font-display); font-weight: 700; }
.sort-select { padding: 9px 18px; border: 1.5px solid var(--clr-border); border-radius: var(--r-sm); font-family: var(--font-body); font-size: 0.85rem; color: var(--clr-text); cursor: pointer; outline: none; background: #fff; }
.sort-select:focus { border-color: var(--clr-primary); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 52px; }
.pag-btn {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--clr-border);
  background: #fff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
  display: flex; align-items: center; justify-content: center;
}
.pag-btn:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.pag-btn.active { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: 0 4px 16px rgba(94,26,162,0.3); }
.pag-btn.disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ── Misc Utilities ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.w-full { width: 100%; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr 340px; }
  .detail-body-grid { grid-template-columns: 1fr 340px; }
  .dash-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-layout { grid-template-columns: 240px 1fr; }
}

@media (max-width: 900px) {
  :root { --content-px: clamp(16px, 4vw, 48px); }
  .hero .container { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-left { align-items: center; }
  .hero-search { max-width: 520px; }
  .hero-right { display: none; }
  .hero-badge { margin-inline: auto; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .detail-body-grid { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; height: auto; display: flex; flex-direction: row; overflow-x: auto; gap: 0; padding: 12px 0; }
  .ds-user { display: none; }
  .ds-nav-group { display: flex; gap: 4px; border: none; padding: 0 16px; white-space: nowrap; }
  .ds-nav-label { display: none; }
  .dash-main { padding: 24px 20px; }
  .my-courses-grid { grid-template-columns: 1fr; }
  .forum-layout { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .cert-content { padding: 32px 24px; }
  .cert-recipient { font-size: 2rem; }
  .courses-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-actions .btn:not(.btn-sm.mobile-only) { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-title { font-size: 1.8rem; }
  .dash-stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: auto; }
  .btt-btn { bottom: 20px; left: 20px; }
  .cert-footer-row { flex-direction: column; align-items: center; gap: 20px; }
}
