/* ═══════════════════════════════════════════════════════
   main.css — CyberAcademy Global Styles
   REDESIGNED v2.0 — 8px grid · depth system · premium feel
   ═══════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* ── Background depth system (3 levels) ── */
  --bg-base:      #06090d;
  --bg-surface:   #0d1117;
  --bg-elevated:  #131b24;
  --bg-overlay:   #1a2332;
  --bg-card:      rgba(13, 17, 23, 0.9);
  --bg-glass:     rgba(0, 212, 255, 0.03);

  /* ── Brand accent ── */
  --accent:        #00d4ff;
  --accent-dim:    rgba(0, 212, 255, 0.10);
  --accent-hover:  #33ddff;
  --accent-glow:   rgba(0, 212, 255, 0.30);
  --accent-subtle: rgba(0, 212, 255, 0.06);

  /* ── Text hierarchy ── */
  --text-primary:    #f0f6ff;
  --text-secondary:  #a8bdd0;
  --text-muted:      #6a7f94;
  --text-disabled:   #2d3748;

  /* ── Semantic color tokens (never use raw hex) ── */
  --color-success:   #22c55e;
  --color-success-bg: rgba(34, 197, 94, 0.10);
  --color-success-border: rgba(34, 197, 94, 0.25);

  --color-error:     #f43f5e;
  --color-error-bg:  rgba(244, 63, 94, 0.10);
  --color-error-border: rgba(244, 63, 94, 0.25);

  --color-warning:   #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.10);
  --color-warning-border: rgba(245, 158, 11, 0.25);

  --color-info:      #00d4ff;

  /* Legacy aliases — keep for backward compat */
  --success: var(--color-success);
  --warning: var(--color-warning);
  --danger:  var(--color-error);
  --info:    var(--color-info);

  /* ── Difficulty ── */
  --beginner:    #22c55e;
  --intermediate:#f59e0b;
  --advanced:    #f43f5e;

  /* ── Border hierarchy (4 levels) ── */
  --border-subtle:    rgba(0, 212, 255, 0.06);
  --border:           rgba(0, 212, 255, 0.12);
  --border-medium:    rgba(0, 212, 255, 0.20);
  --border-hover:     rgba(0, 212, 255, 0.35);
  --border-strong:    rgba(0, 212, 255, 0.55);

  /* ── Typography ── */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Syne', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* ── 8px spacing grid ── */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* Legacy aliases */
  --space-xs:  var(--space-1);
  --space-sm:  var(--space-2);
  --space-md:  var(--space-4);
  --space-lg:  var(--space-6);
  --space-xl:  var(--space-10);
  --space-2xl: var(--space-16);
  --space-3xl: var(--space-24);

  /* ── Border radius ── */
  --radius-sm: 4px;
  --radius:    6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* ── Elevation shadows ── */
  --shadow-xs:    0 1px 3px rgba(0,0,0,0.5);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.4);
  --shadow-card:  0 4px 24px rgba(0,0,0,0.45);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--border-medium);
  --shadow-glow:  0 0 0 1px var(--border-medium), 0 0 24px var(--accent-glow);
  --shadow-modal: 0 24px 64px rgba(0,0,0,0.7);

  /* ── Transitions ── */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition:      180ms var(--ease);
  --transition-slow: 320ms var(--ease);
  --transition-fast:  80ms var(--ease);

  /* ── Layout ── */
  --navbar-h:      68px;
  --container-max: 1280px;
  --sidebar-w:     280px;
}

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

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    linear-gradient(rgba(0,212,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.018) 1px, transparent 1px);
  background-size: 40px 40px;
}

img    { max-width: 100%; height: auto; display: block; }
a      { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover{ color: var(--accent-hover); }
ul     { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* ─── TYPOGRAPHY SCALE ──────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.accent { color: var(--accent); }
code, pre, .mono { font-family: var(--font-mono); }

/* Type utilities */
.text-xs    { font-size: 0.75rem; }
.text-sm    { font-size: 0.85rem; }
.text-base  { font-size: 1rem; }
.text-lg    { font-size: 1.125rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-mono  { font-family: var(--font-mono); }

/* ─── LAYOUT ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-4); }
}

.bg-alt    { background-color: var(--bg-surface); }
section    { padding: var(--space-24) 0; }
.hidden    { display: none !important; }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── NAVBAR ────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  background: rgba(6, 9, 13, 0.80);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

.navbar.scrolled {
  background: rgba(6, 9, 13, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-8);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.logo-bracket { color: var(--text-muted); }
.logo-accent  { color: var(--accent); }

.nav-links {
  display: flex;
  gap: var(--space-1);
  margin-left: auto;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
  position: relative;
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 50%; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform var(--transition);
  transform-origin: center;
}

.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--text-primary); }
.nav-link.active::after, .nav-link:hover::after { transform: translateX(-50%) scaleX(1); }

.nav-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-left: auto;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-2);
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─── BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.6rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  user-select: none;
}

.btn:active { transform: scale(0.97) !important; }

/* Loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn.loading::after {
  content: '';
  width: 12px; height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  margin-left: var(--space-2);
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* Primary */
.btn-primary {
  background: var(--accent);
  color: #020a0d;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
  color: #020a0d;
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-medium);
}
.btn-outline:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

/* Danger */
.btn-danger {
  background: transparent;
  color: var(--color-error);
  border-color: var(--color-error-border);
}
.btn-danger:hover {
  background: var(--color-error-bg);
  border-color: var(--color-error);
}

/* Success */
.btn-success {
  background: var(--color-success);
  color: #020a0d;
  border-color: var(--color-success);
}
.btn-success:hover {
  background: #16a34a;
  border-color: #16a34a;
  transform: translateY(-1px);
}

/* Sizes */
.btn-lg { padding: 0.75rem 1.75rem; font-size: 0.85rem; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.7rem; }
.btn-xs { padding: 0.25rem 0.5rem;  font-size: 0.65rem; }
.btn-full { width: 100%; }

/* Icon-only button */
.btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

/* ─── CARDS ─────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-slow), box-shadow var(--transition-slow), transform var(--transition-slow);
}

/* Top-edge shimmer on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card:hover::before { opacity: 0.6; }

/* ─── INPUTS ────────────────────────────────────────── */
.input {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: 0.65rem 0.875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.input:hover { border-color: var(--border-medium); }

.input:focus {
  border-color: var(--accent);
  background: rgba(0,0,0,0.45);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Error state */
.input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px var(--color-error-bg);
}
.input.error:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px var(--color-error-bg);
}

/* Success state */
.input.success {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px var(--color-success-bg);
}

.input::placeholder { color: var(--text-muted); opacity: 1; }
.textarea  { resize: vertical; min-height: 100px; line-height: 1.6; }
.input-sm  { padding: 0.45rem 0.7rem; font-size: 0.8rem; }

/* Select (custom styled) */
.select {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: 0.65rem 2.25rem 0.65rem 0.875rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300d4ff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.select:hover  { border-color: var(--border-medium); }
.select:focus  { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.select option { background: var(--bg-elevated); color: var(--text-primary); }

/* ─── FORM LAYOUT ────────────────────────────────────── */
.form-group   { margin-bottom: var(--space-6); }
.form-label   {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-hint    { font-size: 0.78rem; color: var(--text-muted); margin-top: var(--space-1); }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-feedback {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 1.2em;
}
.form-feedback.success { color: var(--color-success); }
.form-feedback.error   { color: var(--color-error); }

/* ─── BADGES ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-beginner    { background: var(--color-success-bg);  color: var(--beginner);    border: 1px solid var(--color-success-border); }
.badge-intermediate{ background: var(--color-warning-bg);  color: var(--intermediate);border: 1px solid var(--color-warning-border); }
.badge-advanced    { background: var(--color-error-bg);    color: var(--advanced);    border: 1px solid var(--color-error-border); }
.badge-pending     { background: var(--color-warning-bg);  color: var(--color-warning);border: 1px solid var(--color-warning-border); }
.badge-active      { background: var(--color-success-bg);  color: var(--color-success);border: 1px solid var(--color-success-border); }
.badge-info        { background: var(--accent-dim);         color: var(--accent);       border: 1px solid var(--border-medium); }

/* ─── PROGRESS ──────────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: var(--radius-full);
  transition: width 0.8s var(--ease-out);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ─── COURSE CARD ────────────────────────────────────── */
/* ═══════════════════════════════════════════════════
   COURSE CARD — Premium dark redesign
   ═══════════════════════════════════════════════════ */

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #080d13;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s cubic-bezier(.22,.68,0,1.2),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  isolation: isolate;
}

.course-card:hover {
  transform: translateY(-3px) scale(1.005);
  border-color: rgba(var(--diff-glow, 0,212,255), 0.4);
  box-shadow:
    0 0 0 1px rgba(var(--diff-glow, 0,212,255), 0.2),
    0 20px 60px rgba(0,0,0,0.7),
    0 0 40px rgba(var(--diff-glow, 0,212,255), 0.08);
}

/* ── Glow layer that lights up on hover ── */
.course-card-glow {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  opacity: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(var(--diff-glow, 0,212,255), 0.07) 0%,
    transparent 65%
  );
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.course-card:hover .course-card-glow { opacity: 1; }

/* ── Thumbnail ── */
.course-thumb {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background: #06090d;
}

/* Animated mesh background */
.course-thumb-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(var(--diff-glow, 0,212,255), 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(var(--diff-glow, 0,212,255), 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #0a1018 0%, #060a0f 100%);
  transition: opacity 0.3s ease;
}

.course-card:hover .course-thumb-bg {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(var(--diff-glow, 0,212,255), 0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(var(--diff-glow, 0,212,255), 0.1) 0%, transparent 45%),
    linear-gradient(180deg, #0a1018 0%, #060a0f 100%);
}

/* CRT scanline overlay removed for clean thumbnail display */
.course-thumb-scan { display: none; }

.course-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.course-card:hover .course-thumb-img {
  opacity: 1;
  transform: scale(1.04);
}

.course-thumb-emoji {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  filter: drop-shadow(0 0 18px rgba(var(--diff-glow, 0,212,255), 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.course-card:hover .course-thumb-emoji {
  transform: scale(1.12);
  filter: drop-shadow(0 0 28px rgba(var(--diff-glow, 0,212,255), 0.65));
}

/* Top-right badge (FREE / Premium) */
.course-badge {
  position: absolute;
  top: .65rem;
  right: .65rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  padding: .22rem .6rem;
  border-radius: 4px;
  z-index: 4;
  letter-spacing: 0.04em;
}

.course-badge--free {
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.35);
  color: #22c55e;
}

.course-badge--paid {
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.12);
  color: #a8bdd0;
  backdrop-filter: blur(4px);
}

/* Bottom-left difficulty badge */
.course-diff-badge {
  position: absolute;
  bottom: .65rem;
  left: .65rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: .18rem .55rem;
  border-radius: 3px;
  border: 1px solid;
  z-index: 4;
  backdrop-filter: blur(6px);
}

/* Thin glowing line at top of card on hover */
.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--diff-glow, 0,212,255), 0.9),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.course-card:hover::before { opacity: 1; }

/* ── Card body ── */
.course-body {
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #0c1119 0%, #080d13 100%);
}

.course-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.course-duration,
.course-lessons {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.course-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-display, var(--font-sans));
}

.course-card:hover .course-title {
  color: rgba(var(--diff-glow, 0,212,255), 1);
  /* Fallback to accent if CSS custom property not supported */
  color: var(--accent);
}

.course-desc {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Progress bar ── */
.course-progress-wrap {
  margin-top: .25rem;
}

.course-progress-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-secondary);
  margin-bottom: .35rem;
}

.course-progress-track {
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}

.course-progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
  box-shadow: 0 0 8px currentColor;
}

/* ── Footer ── */
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .25rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
}

.course-instructor {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.course-instructor-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--diff-glow,0,212,255),0.3), rgba(var(--diff-glow,0,212,255),0.08));
  border: 1px solid rgba(var(--diff-glow,0,212,255),0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.course-instructor-name {
  font-size: .75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

/* ── Action buttons ── */
.course-action-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: .35rem .75rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.course-action-btn--start {
  color: var(--text-muted);
  background: transparent;
  padding-right: 0;
}

.course-card:hover .course-action-btn--start {
  color: var(--accent);
}

.course-action-btn--continue {
  background: rgba(var(--diff-glow,0,212,255), 0.1);
  border: 1px solid rgba(var(--diff-glow,0,212,255), 0.25);
  color: var(--accent);
}

.course-action-btn--continue:hover {
  background: rgba(var(--diff-glow,0,212,255), 0.2);
  box-shadow: 0 0 16px rgba(var(--diff-glow,0,212,255), 0.2);
}

.course-action-btn--subscribe {
  background: var(--accent);
  color: #000;
  font-weight: 800;
}

.course-action-btn--subscribe:hover {
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
  transform: scale(1.03);
}

.course-action-icon {
  font-style: normal;
}

/* ── Grid ── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── Skeleton loaders (keep existing) ── */
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated), var(--bg-overlay), var(--bg-elevated));
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s ease infinite;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

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

.skeleton-text {
  height: 0.875rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  animation: skeletonPulse 1.6s ease infinite;
}

/* ─── CATEGORY GRID ──────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.category-card {
  background: var(--bg-surface);
  border: none;
  border-radius: 0;
  padding: var(--space-6) var(--space-5);
  cursor: pointer;
  transition: background var(--transition-slow);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
}

/* Per-card accent bar at top (color driven by --cat-accent CSS var) */
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cat-accent, var(--accent));
  opacity: 0.85;
}

.category-card:hover {
  background: var(--bg-elevated);
}

/* Icon pill */
.cat-icon-wrap {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--cat-accent-bg, var(--accent-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cat-icon {
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.cat-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  line-height: 1.35;
}

.cat-desc {
  font-size: 0.775rem;
  color: var(--text-secondary);
  line-height: 1.55;
  position: relative;
  z-index: 1;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.cat-count {
  font-size: 0.68rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
}

.cat-arrow {
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: color var(--transition), transform var(--transition);
}

.category-card:hover .cat-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ─── SECTION LAYOUT ─────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.section-header.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-top: var(--space-2);
  font-size: 0.95rem;
  line-height: 1.65;
}

.section-footer {
  text-align: center;
  margin-top: var(--space-10);
}

.link-arrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--transition);
}
.link-arrow:hover { gap: var(--space-2); color: var(--accent-hover); }

/* ─── FILTER TABS ────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.tab {
  padding: 0.35rem 0.875rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab:hover { border-color: var(--border-medium); color: var(--text-primary); }
.tab.active {
  background: var(--accent-dim);
  border-color: var(--border-medium);
  color: var(--accent);
}

/* ─── TERMINAL COMPONENT ─────────────────────────────── */
.terminal-bar {
  background: rgba(0,0,0,0.6);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 1px solid var(--border);
}

.t-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.t-dot.red    { background: #ff5f56; }
.t-dot.yellow { background: #ffbd2e; }
.t-dot.green  { background: #27c93f; }

.t-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 auto;
}

.terminal-body {
  background: rgba(0,0,0,0.5);
  padding: var(--space-6);
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.8;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  min-height: 120px;
}

.terminal-body .prompt { color: var(--accent); }
.terminal-body .cmd    { color: var(--text-primary); }
.terminal-body .output { color: var(--text-secondary); padding-left: 1rem; }
.terminal-body .cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  border-radius: 1px;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ─── PAGE HERO ──────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--navbar-h) + var(--space-24));
  padding-bottom: var(--space-12);
  background: linear-gradient(180deg, rgba(0,212,255,0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── MODAL ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  animation: overlayIn var(--transition) var(--ease-out) both;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-overlay.hidden { display: none !important; }

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 200ms var(--ease-spring) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}

.modal-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.modal-close:hover { border-color: var(--color-error); color: var(--color-error); background: var(--color-error-bg); }

.modal-body   { margin-bottom: var(--space-8); }
.modal-footer { display: flex; justify-content: flex-end; gap: var(--space-2); }

/* ─── CALLOUT BOXES ──────────────────────────────────── */
.callout {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border-left: 3px solid;
  margin: var(--space-4) 0;
}

.callout-warning { background: var(--color-warning-bg); border-color: var(--color-warning); }
.callout-info    { background: var(--accent-subtle);    border-color: var(--accent); }
.callout-success { background: var(--color-success-bg); border-color: var(--color-success); }
.callout-danger  { background: var(--color-error-bg);   border-color: var(--color-error); }

.callout-warning .callout-icon { color: var(--color-warning); }
.callout-info    .callout-icon { color: var(--accent); }
.callout-success .callout-icon { color: var(--color-success); }
.callout-danger  .callout-icon { color: var(--color-error); }
.callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

/* ─── QUIZ COMPONENT ─────────────────────────────────── */
.quiz-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin: var(--space-6) 0;
}

.quiz-title    { font-size: 0.95rem; margin-bottom: var(--space-4); color: var(--accent); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.quiz-question p { font-weight: 600; margin-bottom: var(--space-4); font-size: 1rem; }
.quiz-options  { display: flex; flex-direction: column; gap: var(--space-2); }

.quiz-option {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  padding: 0.65rem 1rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition);
  width: 100%;
}
.quiz-option:hover   { border-color: var(--border-medium); color: var(--text-primary); background: rgba(255,255,255,0.04); }
.quiz-option.correct { border-color: var(--color-success); background: var(--color-success-bg); color: var(--color-success); }
.quiz-option.wrong   { border-color: var(--color-error);   background: var(--color-error-bg);   color: var(--color-error); }

/* ─── BREADCRUMB ─────────────────────────────────────── */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.breadcrumb a        { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover  { color: var(--accent); }
.breadcrumb span     { color: var(--text-secondary); }

/* ─── NEWSLETTER ─────────────────────────────────────── */
.section-newsletter { padding: var(--space-16) 0; }

.newsletter-card {
  background: linear-gradient(135deg, rgba(0,212,255,0.07) 0%, rgba(0,212,255,0.02) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  box-shadow: 0 0 60px rgba(0,212,255,0.06);
}

.newsletter-card h2 { font-size: 1.75rem; margin-bottom: var(--space-2); letter-spacing: -0.01em; }
.newsletter-card p  { color: var(--text-secondary); margin-bottom: var(--space-8); }

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-form .input { flex: 1; }

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  background: rgba(0,0,0,0.5);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-20) 0 0;
  margin-top: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-16);
}

.footer-brand .nav-logo { margin-bottom: var(--space-4); display: block; }
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a  { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }

.social-links { display: flex; gap: var(--space-2); }
.social-link {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-style: normal;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-tech     { font-family: var(--font-mono); }

/* ─── EMPTY STATE ────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-24);
  color: var(--text-muted);
}

.empty-icon  { font-size: 2.5rem; margin-bottom: var(--space-6); display: block; opacity: 0.6; }
.empty-state h3  { margin-bottom: var(--space-2); color: var(--text-secondary); font-size: 1.1rem; }
.empty-state p   { margin-bottom: var(--space-6); font-size: 0.9rem; color: var(--text-muted); max-width: 400px; margin-left: auto; margin-right: auto; }

/* ─── BACKEND PLACEHOLDER ────────────────────────────── */
.backend-placeholder {
  text-align: center;
  padding: var(--space-16);
  color: var(--text-muted);
}
.placeholder-icon { font-size: 2.5rem; display: block; margin-bottom: var(--space-6); opacity: 0.5; }

/* ─── TOAST NOTIFICATIONS ────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-modal);
  pointer-events: all;
  animation: toastIn 280ms var(--ease-spring) both;
  max-width: 360px;
  backdrop-filter: blur(12px);
}

.toast.exiting { animation: toastOut 200ms var(--ease) forwards; }

@keyframes toastIn  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); }    to { opacity: 0; transform: translateX(20px); } }

.toast.success { border-color: var(--color-success-border); }
.toast.error   { border-color: var(--color-error-border); }
.toast.info    { border-color: var(--border-medium); }

/* ─── SCROLL-TO-TOP ──────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  width: 38px; height: 38px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.scroll-top-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ─── SCROLL ANIMATIONS ──────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── ABOUT / CONTACT / BLOG ─────────────────────────── */
.about-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.about-text h2 { font-size: 2rem; margin-bottom: var(--space-6); letter-spacing: -0.01em; }
.about-text p  { color: var(--text-secondary); margin-bottom: var(--space-4); line-height: 1.75; }
.about-text .btn { margin-top: var(--space-4); }

.values-grid, .team-grid, .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-6);
}

.value-card, .team-card, .blog-card { text-align: center; }
.value-icon { font-size: 1.75rem; margin-bottom: var(--space-4); }
.value-card h3, .team-card h3 { margin-bottom: var(--space-2); }
.value-card p, .team-card .team-bio { font-size: 0.875rem; color: var(--text-secondary); }

.team-avatar { font-size: 2.5rem; margin-bottom: var(--space-4); }
.team-name   { font-size: 1.05rem; }
.team-role   { font-size: 0.75rem; color: var(--accent); font-family: var(--font-mono); margin-bottom: var(--space-2); }
.team-social { display: flex; gap: var(--space-2); justify-content: center; margin-top: var(--space-4); }
.team-social a { font-size: 0.8rem; color: var(--text-secondary); padding: 3px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); transition: all var(--transition); }
.team-social a:hover { color: var(--accent); border-color: var(--accent); }

.blog-card { text-align: left; }
.blog-date { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); margin-bottom: var(--space-2); }
.blog-card h3 { font-size: 1rem; margin-bottom: var(--space-2); }
.blog-card p  { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: var(--space-4); }

/* ─── CONTACT PAGE ───────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-form-wrap h2 { margin-bottom: var(--space-8); }
.contact-info h2      { margin-bottom: var(--space-8); }
.contact-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  align-items: flex-start;
}
.contact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; margin-bottom: 2px; font-size: 0.875rem; }
.contact-item p, .contact-item a { font-size: 0.875rem; color: var(--text-secondary); }

/* ─── PRICING ────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
  position: relative;
  transition: all var(--transition-slow);
}

.pricing-card.featured {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-glow);
}

.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #020a0d;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-plan  { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--space-2); }
.pricing-price { font-size: 2.75rem; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: var(--space-1); letter-spacing: -0.03em; }
.pricing-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-desc  { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: var(--space-6); }
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.pricing-features li { font-size: 0.875rem; color: var(--text-secondary); display: flex; gap: var(--space-3); align-items: flex-start; }
.pricing-features li::before { content: '✓'; color: var(--color-success); flex-shrink: 0; font-weight: 700; }

/* ─── FAQ ────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--border-medium); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: var(--space-5) var(--space-6);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }

.faq-chevron { color: var(--accent); font-size: 0.9rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.32s var(--ease-out); }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 var(--space-6) var(--space-5); color: var(--text-secondary); font-size: 0.9rem; line-height: 1.72; }

/* ─── TESTIMONIALS ───────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-slow);
}
.testimonial-card:hover { border-color: var(--border-medium); transform: translateY(-2px); }

.testimonial-quote {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: var(--space-4); }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.875rem; }
.testimonial-role { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ─── SIDEBAR (courses page) ─────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
}

.sidebar-section { margin-bottom: var(--space-8); }

.sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--space-4);
  opacity: 0.8;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.filter-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  padding: var(--space-1) 0;
  transition: color var(--transition);
}
.filter-label:hover { color: var(--text-primary); }
.filter-label input[type="checkbox"],
.filter-label input[type="radio"] {
  accent-color: var(--accent);
  width: 14px; height: 14px;
  cursor: pointer;
}

/* ─── SEARCH BOX ─────────────────────────────────────── */
.search-box { position: relative; }
.search-icon {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

/* ─── CODE BLOCKS ────────────────────────────────────── */
.code-block { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin: var(--space-4) 0; }
.code-header {
  background: rgba(0,0,0,0.45);
  padding: 7px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.code-lang  { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.copy-btn   {
  background: var(--accent-dim); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--accent);
  font-size: 0.7rem; padding: 2px 8px;
  font-family: var(--font-mono); transition: all var(--transition);
}
.copy-btn:hover { background: var(--accent); color: #020a0d; }
.code-content {
  display: block;
  background: rgba(0,0,0,0.5);
  padding: var(--space-5);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .about-grid   { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 100%; }

  .nav-links   { display: none; }
  .nav-actions { display: none; }
  .nav-toggle  { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--navbar-h); left: 0; right: 0;
    background: rgba(6, 9, 13, 0.98);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4);
    gap: 0;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    animation: navOpen 200ms var(--ease-out) both;
  }

  /* Auth buttons shown at bottom of open mobile menu */
  .nav-actions.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0; right: 0;
    background: rgba(6, 9, 13, 0.98);
    border-bottom: 1px solid var(--border);
    padding: var(--space-3) var(--space-4) var(--space-4);
    gap: var(--space-3);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    z-index: 999;
  }

  .nav-actions.mobile-open .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  @keyframes navOpen {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-link { padding: var(--space-4); border-bottom: 1px solid var(--border-subtle); border-radius: 0; }

  .footer-grid     { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .courses-grid    { grid-template-columns: 1fr; }
  .category-grid   { grid-template-columns: repeat(2, 1fr); }
  .values-grid, .team-grid, .blog-grid { grid-template-columns: 1fr; }

  section { padding: var(--space-16) 0; }

  .toast-container { bottom: var(--space-4); right: var(--space-4); left: var(--space-4); }
  .toast { max-width: 100%; }

  .scroll-top-btn { bottom: var(--space-4); left: var(--space-4); }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
  .filter-tabs   { overflow-x: auto; flex-wrap: nowrap; padding-bottom: var(--space-2); }
  .form-row      { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   SITE NOTIFICATION BANNER — Premium SOC Style
   ═══════════════════════════════════════════════════ */
#notificationBanner {
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  z-index: 990;
}

.notif-banner {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgba(6, 10, 20, 0.97);
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: notifReveal 0.5s cubic-bezier(.22,.68,0,1.1) both;
}

@keyframes notifReveal {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Thin cyan top border — matches platform accent ── */
.notif-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,212,255,0.4) 30%,
    rgba(0,212,255,0.4) 70%,
    transparent 100%
  );
}

/* ── No radial glow ── */
.notif-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Animated scan line ── */
.notif-banner-bg { display: none; }

@keyframes notifScan {
  0%   { left: -40%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Unused beam div — hide cleanly */
.notif-banner-beam { display: none; }

/* ── Left label section ── */
.notif-banner-label {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 1.1rem 0 1.25rem;
  height: 100%;
  flex-shrink: 0;
  border-right: 1px solid rgba(0,212,255,0.12);
}

.notif-banner-icon {
  font-size: 0.9rem;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(0,212,255,0.6));
}

.notif-banner-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00d4ff;
  white-space: nowrap;
}

/* Live indicator dot */
.notif-banner-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 6px rgba(0,212,255,0.8);
  flex-shrink: 0;
  animation: notifLive 2s ease-in-out infinite;
}

@keyframes notifLive {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(0,212,255,0.8); }
  50%       { opacity: 0.3; box-shadow: 0 0 2px rgba(0,212,255,0.3); }
}

/* ── Scrolling ticker ── */
.notif-ticker-track {
  position: relative;
  z-index: 3;
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 3%, black 97%, transparent 100%);
}

.notif-banner-msg {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.83rem;
  color: rgba(200,230,255,0.75);
  padding-left: 1.5rem;
  letter-spacing: 0.015em;
  animation: notifScroll 28s linear infinite;
}

.notif-banner-msg strong {
  color: #00d4ff;
  font-weight: 600;
}

@keyframes notifScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── CTA button ── */
.notif-banner-cta {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  margin: 0 1rem;
  border-radius: 4px;
  border: 1px solid rgba(0,212,255,0.3);
  color: #00d4ff;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(0,212,255,0.06);
  box-shadow: 0 0 12px rgba(0,212,255,0.08), inset 0 0 6px rgba(0,212,255,0.04);
  transition: all 0.25s ease;
}

.notif-banner-cta::after { content: ' →'; }

.notif-banner-cta:hover {
  background: rgba(0,212,255,0.12);
  border-color: rgba(0,212,255,0.6);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0,212,255,0.2), inset 0 0 10px rgba(0,212,255,0.06);
  text-shadow: 0 0 8px rgba(0,212,255,0.5);
}

/* ── Inner wrapper (used in old markup — keep compatible) ── */
.notif-banner-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* ── Push hero down ── */
body.has-notifications .hero,
body.has-notifications .page-hero {
  padding-top: calc(var(--navbar-h) + 44px + var(--space-3xl));
}

/* ═══════════════════════════════════════════════════════
   WINDOWS HIGH CONTRAST MODE / FORCED COLORS
   ───────────────────────────────────────────────────────
   Windows High Contrast Mode (forced-colors: active) strips
   all custom colors and replaces them with system keywords.
   This block maps those system colors to sensible roles so
   the app remains readable and usable without losing its
   layout or interactive states.
   ═══════════════════════════════════════════════════════ */

/* Tell the browser this is a dark-themed app so Windows picks
   the Dark High Contrast palette rather than the light one. */
:root { color-scheme: dark; }

@media (forced-colors: active) {

  /* ── Re-map design tokens to system color keywords ── */
  :root {
    --bg-base:        Canvas;
    --bg-surface:     Canvas;
    --bg-elevated:    Canvas;
    --bg-overlay:     Canvas;
    --bg-card:        Canvas;
    --bg-glass:       Canvas;

    --text-primary:   CanvasText;
    --text-secondary: CanvasText;
    --text-muted:     GrayText;
    --text-disabled:  GrayText;

    --accent:         Highlight;
    --accent-hover:   Highlight;
    --accent-dim:     Canvas;
    --accent-glow:    transparent;
    --accent-subtle:  Canvas;

    --border:         ButtonBorder;
    --border-subtle:  ButtonBorder;
    --border-medium:  ButtonBorder;
    --border-hover:   Highlight;
    --border-strong:  Highlight;

    --color-success:  CanvasText;
    --color-error:    LinkText;
    --color-warning:  CanvasText;
  }

  /* ── Body & backgrounds ── */
  body { background: Canvas; color: CanvasText; }

  /* ── Navbar ── */
  .navbar { background: Canvas; border-bottom: 1px solid ButtonBorder; }
  .nav-link, .nav-link:visited { color: LinkText; }
  .nav-link.active, .nav-link:hover { color: Highlight; border-color: Highlight; }

  /* ── Cards ── */
  .card { background: Canvas; border: 1px solid ButtonBorder; box-shadow: none; }
  .card:hover { border-color: Highlight; box-shadow: none; }

  /* ── Buttons ── */
  .btn { border: 2px solid ButtonBorder; background: ButtonFace; color: ButtonText; }
  .btn:hover, .btn:focus { border-color: Highlight; color: Highlight; background: Canvas; }
  .btn-primary { background: Highlight; color: HighlightText; border-color: Highlight; }
  .btn-primary:hover { background: Canvas; color: Highlight; border-color: Highlight; }
  .btn-ghost { background: Canvas; color: LinkText; border-color: ButtonBorder; }
  .btn-ghost:hover { border-color: Highlight; color: Highlight; }

  /* ── Inputs / Forms ── */
  .input, input, textarea, select {
    background: Canvas;
    color: CanvasText;
    border: 1px solid ButtonBorder;
  }
  .input:focus, input:focus, textarea:focus, select:focus {
    border-color: Highlight;
    outline: 2px solid Highlight;
    outline-offset: 1px;
  }

  /* ── Links ── */
  a { color: LinkText; }
  a:hover, a:focus { color: Highlight; }
  a:visited { color: VisitedText; }

  /* ── Course sidebar / outline ── */
  .lesson-item { border: 1px solid ButtonBorder; background: Canvas; color: CanvasText; }
  .lesson-item.active { border-color: Highlight; color: Highlight; background: Canvas; }
  .lesson-item:hover { border-color: Highlight; }

  /* ── Badges / tags ── */
  .badge, .tag { border: 1px solid ButtonBorder; background: Canvas; color: CanvasText; }

  /* ── Modal ── */
  .modal-overlay { background: Canvas; }
  .modal { background: Canvas; border: 1px solid ButtonBorder; box-shadow: none; }

  /* ── Dropdowns / menus ── */
  .dropdown-menu { background: Canvas; border: 1px solid ButtonBorder; }
  .dropdown-item:hover { background: Highlight; color: HighlightText; }

  /* ── Progress bars ── */
  .progress-bar { background: ButtonBorder; }
  .progress-fill { background: Highlight; forced-color-adjust: none; }

  /* ── Terminal ── */
  #terminalWrap { border: 1px solid ButtonBorder; background: Canvas; }
  .terminal-titlebar { background: Canvas; border-bottom: 1px solid ButtonBorder; }

  /* ── Strength meter bars — keep colors meaningful ── */
  .strength-bar { background: ButtonBorder; forced-color-adjust: none; }
  .strength-bar.active-weak   { background: LinkText;    forced-color-adjust: none; }
  .strength-bar.active-fair   { background: CanvasText;  forced-color-adjust: none; }
  .strength-bar.active-good   { background: Highlight;   forced-color-adjust: none; }
  .strength-bar.active-strong { background: Highlight;   forced-color-adjust: none; }

  /* ── Tables ── */
  table { border-collapse: collapse; }
  th, td { border: 1px solid ButtonBorder; color: CanvasText; }
  th { background: Canvas; color: CanvasText; }

  /* ── Glows, shadows, gradients — strip them all ── */
  * { box-shadow: none !important; text-shadow: none !important; }
  *::before, *::after { box-shadow: none !important; }

  /* ── Focus rings — make them visible ── */
  :focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 2px !important;
  }
}

/* ── Prevent white flash on all images while loading ── */
img {
  background: #0d1117;
  color: transparent;
}

/* ── Dark background on all image containers ── */
.banner-slide, .banner-slide a, .banner-slide img,
#bannerTrack, #heroBannerSlider {
  background: #080c16 !important;
}

/* ── Firefox image decode flash fix ── */
@-moz-document url-prefix() {
  img {
    background: #0d1117 !important;
  }
  .banner-slide, .banner-slide a,
  #bannerTrack, #heroBannerSlider {
    background: #080c16 !important;
  }
  .pcp-thumb, .course-thumb {
    background: #0d1117 !important;
  }
}

/* ── AI badges on course & path cards ── */
.course-ai-badge,
.pcp-ai-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(13,17,23,.85);
  border: 1px solid rgba(0,212,170,.3);
  border-radius: 999px;
  padding: .18rem .5rem .18rem .18rem;
  box-shadow: 0 0 10px rgba(0,212,170,.15);
  backdrop-filter: blur(6px);
}
.course-ai-badge {
  bottom: .6rem;
  right: .6rem;
}
.pcp-ai-badge {
  bottom: .6rem;
  left: .85rem;
}
.course-ai-badge .xeri-dot,
.pcp-ai-badge .xeri-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg,#00d4aa,#00a896);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: .48rem;
  font-weight: 800;
  color: #0d1117;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0,212,170,.4);
}
.course-ai-badge .xeri-label,
.pcp-ai-badge .xeri-label {
  font-family: monospace;
  font-size: .58rem;
  font-weight: 700;
  color: #00d4aa;
  letter-spacing: .06em;
  text-transform: uppercase;
}
