﻿/* ═══════════════════════════════════════════════════════════
   SkillForge — Premium Modern Stylesheet v2.0
   Michael Liyanda — Lusaka, Zambia
   Features: Dark/Light mode, Glassmorphism, Animations
   ═══════════════════════════════════════════════════════════ */

/* ── IMPORT FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ═══════════════════════════════════
   THEME VARIABLES
   ═══════════════════════════════════ */
:root,
[data-theme="dark"] {
  --bg-0:      #020817;
  --bg-1:      #030d1e;
  --bg-2:      #071228;
  --bg-card:   #0c1830;
  --bg-card2:  #102038;
  --bg-glass:  rgba(12, 24, 48, 0.6);
  --bg-glass2: rgba(7, 18, 40, 0.8);
  --border:    rgba(255,255,255,0.06);
  --border2:   rgba(255,255,255,0.1);
  --border-h:  rgba(255,117,31,0.4);

  --gold:       #ff751f;
  --gold-h:     #e05c00;
  --gold-light: #ff9a5c;
  --gold-glow:  rgba(255,117,31,0.25);
  --blue:       #0097b2;
  --blue-h:     #007a91;
  --blue-glow:  rgba(0,151,178,0.2);
  --purple:     #a78bfa;
  --purple-h:   #8b5cf6;
  --green:      #34d399;
  --green-h:    #10b981;
  --red:        #f87171;
  --orange:     #fb923c;
  --pink:       #f472b6;

  --text:      #f0f6ff;
  --text-2:    #cbd5e1;
  --text-m:    #8ba3c0;
  --text-d:    #506070;

  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.5s cubic-bezier(0.4,0,0.2,1);

  --shadow:      0 8px 40px rgba(0,0,0,0.6);
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 40px rgba(255,117,31,0.2), 0 8px 32px rgba(255,117,31,0.1);
  --shadow-blue: 0 0 40px rgba(0,151,178,0.15), 0 8px 32px rgba(0,151,178,0.1);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.5);

  --glass-border: rgba(255,255,255,0.08);
  --glass-bg:     rgba(12,24,48,0.5);
  --glass-blur:   blur(20px);

  /* Light mode indicator */
  --theme-icon: '☀️';
  --mode-label: 'light';
}

[data-theme="light"] {
  --bg-0:      #f0f4ff;
  --bg-1:      #f8faff;
  --bg-2:      #eef2ff;
  --bg-card:   #ffffff;
  --bg-card2:  #f5f7ff;
  --bg-glass:  rgba(255,255,255,0.7);
  --bg-glass2: rgba(240,244,255,0.9);
  --border:    rgba(0,0,0,0.07);
  --border2:   rgba(0,0,0,0.12);
  --border-h:  rgba(255,117,31,0.5);

  --gold:       #e05c00;
  --gold-h:     #cc4a00;
  --gold-light: #ff751f;
  --gold-glow:  rgba(224,92,0,0.15);
  --blue:       #0097b2;
  --blue-h:     #007a91;
  --blue-glow:  rgba(0,151,178,0.15);
  --purple:     #7c3aed;
  --purple-h:   #6d28d9;
  --green:      #059669;
  --green-h:    #047857;
  --red:        #dc2626;
  --orange:     #ea580c;
  --pink:       #db2777;

  --text:      #0f172a;
  --text-2:    #1e293b;
  --text-m:    #475569;
  --text-d:    #94a3b8;

  --shadow:      0 8px 40px rgba(0,0,0,0.12);
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.08);
  --shadow-gold: 0 0 40px rgba(224,92,0,0.15), 0 8px 32px rgba(224,92,0,0.08);
  --shadow-blue: 0 0 40px rgba(0,151,178,0.1), 0 8px 32px rgba(0,151,178,0.06);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);

  --glass-border: rgba(0,0,0,0.1);
  --glass-bg:     rgba(255,255,255,0.6);
  --glass-blur:   blur(20px);

  --theme-icon: '🌙';
  --mode-label: 'dark';
}

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

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

body {
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-1);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition-slow), color var(--transition-slow);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

h1,h2,h3,h4,h5 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
  color: var(--text);
}
h1,h2,h3 {
  color: var(--blue);
  font-weight: 700;
}

/* ═══════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--blue));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ═══════════════════════════════════
   UTILITIES
   ═══════════════════════════════════ */
.container { max-width: 1220px; margin: 0 auto; padding: 0 28px; }
.text-gold    { color: var(--gold) !important; }
.text-blue    { color: var(--blue) !important; }
.text-green   { color: var(--green) !important; }
.text-purple  { color: var(--purple) !important; }
.text-muted   { color: var(--text-m) !important; }
.text-center  { text-align: center; }
.mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ── GLASS UTILITY ── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

/* ── SITE LOGO ── */
.sf-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  /* transparent — drop-in ready for a transparent-background PNG */
}
.sf-logo-wrap img {
  /* logo content is ~85% wide × ~28% tall in the 2000×2000 canvas  (ratio ≈ 3:1)
     height:350% with 3:1 containers = ~99% fill with NO cutting on any edge */
  height: 350%;
  width: auto;
  flex-shrink: 0;
  display: block;
}
/* sizes: width ÷ 3 = height  (matches logo content ratio) */
.sf-logo-xs { width: 96px;  height: 32px; }   /* admin sidebar */
.sf-logo-sm { width: 240px; height: 80px; }   /* navbar        */
.sf-logo-md { width: 144px; height: 48px; }   /* footer        */
.sf-logo-lg { width: 210px; height: 70px; }   /* auth pages    */

/* ═══════════════════════════════════
   BUTTONS
   ═══════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-h));
  color: #fff;
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-gold:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-glow);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-h));
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--blue-glow);
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--blue-glow); color: #000; }

.btn-green  { background: linear-gradient(135deg, var(--green), var(--green-h)); color: #fff; }
.btn-green:hover { transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-m);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-danger { background: var(--red); color: #fff; }
.btn-sm  { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg  { padding: 16px 40px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ═══════════════════════════════════
   BADGES
   ═══════════════════════════════════ */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.badge-gold   { background: rgba(255,117,31,0.12); color: var(--gold);   border: 1px solid rgba(255,117,31,0.25); }
.badge-blue   { background: rgba(0,151,178,0.12); color: var(--blue);   border: 1px solid rgba(0,151,178,0.25); }
.badge-green  { background: rgba(52,211,153,0.12); color: var(--green);  border: 1px solid rgba(52,211,153,0.25); }
.badge-purple { background: rgba(167,139,250,0.12); color: var(--purple); border: 1px solid rgba(167,139,250,0.25); }
.badge-red    { background: rgba(248,113,113,0.12); color: var(--red);    border: 1px solid rgba(248,113,113,0.25); }
.badge-gray   { background: rgba(100,116,139,0.12); color: var(--text-d); border: 1px solid rgba(100,116,139,0.2); }
.badge-live {
  background: rgba(248,113,113,0.15);
  color: #ff6b6b;
  border: 1px solid rgba(248,113,113,0.35);
  animation: pulse-badge 2s infinite;
}

/* ═══════════════════════════════════
   FORMS
   ═══════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-m);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all var(--transition);
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: var(--bg-card);
}
.form-control::placeholder { color: var(--text-d); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-hint  { font-size: 12px; color: var(--text-d); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 6px; }

/* ═══════════════════════════════════
   ALERTS
   ═══════════════════════════════════ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: rgba(52,211,153,0.08);  border: 1px solid rgba(52,211,153,0.2);  color: var(--green); }
.alert-error   { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2); color: var(--red);   }
.alert-info    { background: rgba(0,151,178,0.08);  border: 1px solid rgba(0,151,178,0.2);  color: var(--blue);  }
.alert-warn    { background: rgba(255,117,31,0.08);  border: 1px solid rgba(255,117,31,0.2);  color: var(--gold);  }

/* ═══════════════════════════════════
   SECTION STYLES
   ═══════════════════════════════════ */
.section    { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-dark { background: var(--bg-0); }
.section-alt  { background: var(--bg-2); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255,117,31,0.08);
  border: 1px solid rgba(255,117,31,0.2);
  padding: 5px 18px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.section-sub   { font-size: 1.05rem; color: var(--text-m); max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* ═══════════════════════════════════
   NAVBAR
   ═══════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-slow);
}

.navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
  border-bottom-color: var(--border2);
}

.nav-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.85; color: var(--text); }

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--gold-glow);
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 2px;
  margin-left: auto;
  margin-right: 12px;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-m);
  border-radius: 10px;
  transition: all var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-link:hover::after, .nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(255,117,31,0.1);
  border-color: var(--border-h);
  transform: rotate(15deg) scale(1.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  transition: background var(--transition);
}
.nav-toggle:hover { background: rgba(255,255,255,0.05); }
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  display: block;
}

/* ═══════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-0);
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
}

/* Animated mesh background */
.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 50%, rgba(255,117,31,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 85% 25%, rgba(0,151,178,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 70% 80%, rgba(167,139,250,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 40% 15%, rgba(52,211,153,0.04) 0%, transparent 55%);
  animation: mesh-shift 15s ease-in-out infinite alternate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* Canvas for particles */
#hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: 0 auto;
  padding: 80px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,117,31,0.08);
  border: 1px solid rgba(255,117,31,0.2);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeSlideDown 0.7s ease forwards;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
  animation: fadeSlideUp 0.7s 0.1s ease both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 50%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Typing cursor */
.type-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--gold);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--text-m);
  margin-bottom: 40px;
  line-height: 1.75;
  max-width: 480px;
  animation: fadeSlideUp 0.7s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  animation: fadeSlideUp 0.7s 0.3s ease both;
}

.hero-badges {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.7s 0.4s ease both;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-m);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px currentColor;
  animation: dot-pulse 2s ease-in-out infinite;
}

/* Hero Visual Cards */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeSlideLeft 0.8s 0.3s ease both;
}

.hero-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  animation: float 7s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue), var(--purple));
  opacity: 0.7;
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.hero-card:nth-child(2) { animation-delay: -2.5s; margin-left: 48px; }
.hero-card:nth-child(3) { animation-delay: -5s; }

.hc-label { font-size: 10px; color: var(--text-d); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; font-weight: 600; }
.hc-value { font-size: 1.8rem; font-weight: 900; color: var(--gold); font-family: 'Space Grotesk', sans-serif; }
.hc-sub   { font-size: 12px; color: var(--text-m); margin-top: 4px; }

/* ═══════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════ */
.trust-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.trust-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,117,31,0.03), transparent);
  animation: shimmer-h 4s ease-in-out infinite;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
  position: relative;
}

.trust-item {
  padding: 12px;
  border-radius: var(--radius);
  transition: transform var(--transition);
}
.trust-item:hover { transform: translateY(-4px); }

.trust-item .num {
  font-size: 2.4rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.trust-item .label {
  font-size: 0.8rem;
  color: var(--text-d);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 70px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card2));
  border: 1px solid var(--border2);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,117,31,0.05), rgba(0,151,178,0.05));
}

.about-img-placeholder {
  font-size: 6rem;
  opacity: 0.25;
  filter: grayscale(1);
}

.about-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--bg-glass2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.about-content h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 20px; }
.about-content p  { color: var(--text-m); margin-bottom: 18px; line-height: 1.85; }

.about-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--text-m);
  transition: all var(--transition);
  cursor: default;
}
.chip:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255,117,31,0.06);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════
   SERVICE CARDS
   ═══════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,117,31,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border2);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,117,31,0.08);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after  { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,117,31,0.1), rgba(0,151,178,0.05));
  border: 1px solid rgba(255,117,31,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  transition: transform var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); }

.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.service-card p  { font-size: 0.85rem; color: var(--text-m); margin-bottom: 22px; line-height: 1.65; }

.service-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.price-range { font-size: 0.85rem; color: var(--gold); font-weight: 700; }

/* ═══════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue), var(--purple));
  opacity: 0.25;
  pointer-events: none;
}

.step-card {
  text-align: center;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--border2);
  box-shadow: var(--shadow-card);
}

.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #050a14;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px var(--gold-glow);
  position: relative;
  transition: transform var(--transition);
}
.step-card:hover .step-num { transform: scale(1.1); }

.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.step-card p  { font-size: 0.85rem; color: var(--text-m); line-height: 1.65; }

/* ═══════════════════════════════════
   COURSE CARDS
   ═══════════════════════════════════ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--border2);
  box-shadow: var(--shadow);
}

.course-thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.course-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,117,31,0.06), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.course-card:hover .course-thumb::after { opacity: 1; }

.course-thumb-icon {
  position: relative;
  z-index: 1;
  transition: transform var(--transition);
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}
.course-card:hover .course-thumb-icon { transform: scale(1.15) rotate(-5deg); }

.course-live-badge { position: absolute; top: 12px; right: 12px; }

.course-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.course-meta  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.course-card h3 { font-size: 0.95rem; font-weight: 700; line-height: 1.4; }
.course-card p  { font-size: 0.82rem; color: var(--text-m); flex: 1; }

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.instructor-mini { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-m); }
.avatar-xs {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #060c1a; flex-shrink: 0;
}

/* ═══════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════ */
.portfolio-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  justify-content: center;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text-m);
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}
.filter-btn.active, .filter-btn:hover {
  background: rgba(255,117,31,0.08);
  border-color: rgba(255,117,31,0.25);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(255,117,31,0.1);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--border2);
}

.portfolio-thumb {
  height: 190px;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-glass2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity var(--transition);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-body { padding: 20px 22px; }
.portfolio-body h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.portfolio-body p  { font-size: 0.82rem; color: var(--text-m); margin-bottom: 14px; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tag {
  background: rgba(0,151,178,0.07);
  border: 1px solid rgba(0,151,178,0.18);
  color: var(--blue);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
}

/* ═══════════════════════════════════
   INSTRUCTORS
   ═══════════════════════════════════ */
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.instructor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.instructor-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,117,31,0.03), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.instructor-card:hover::before { opacity: 1; }

.instructor-card.featured {
  border-color: rgba(255,117,31,0.25);
  box-shadow: 0 0 0 1px rgba(255,117,31,0.08);
}

.instructor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.instructor-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #060c1a;
  border: 4px solid rgba(255,117,31,0.2);
  box-shadow: 0 0 0 8px rgba(255,117,31,0.05);
  transition: all var(--transition);
}
.instructor-card:hover .instructor-avatar { box-shadow: 0 0 0 12px rgba(255,117,31,0.08), 0 8px 24px var(--gold-glow); }

.instructor-card h3    { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.instructor-card .role { font-size: 0.82rem; color: var(--text-m); margin-bottom: 12px; }
.instructor-card p     { font-size: 0.82rem; color: var(--text-d); line-height: 1.65; margin-bottom: 16px; }

.instructor-join {
  border: 2px dashed var(--border2);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  cursor: pointer;
  transition: all var(--transition);
}
.instructor-join:hover { border-color: var(--gold); background: rgba(255,117,31,0.02); }
.join-icon { font-size: 2.8rem; margin-bottom: 14px; opacity: 0.4; transition: opacity var(--transition); }
.instructor-join:hover .join-icon { opacity: 0.7; }

/* ═══════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════ */
.testimonials-wrap { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.testimonials-slider { display: flex; gap: 22px; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); cursor: grab; }
.testimonials-slider:active { cursor: grabbing; }

.testimonial-card {
  min-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  flex-shrink: 0;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.06;
  font-family: 'Space Grotesk', serif;
  line-height: 1;
  pointer-events: none;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 16px;
  display: flex;
  gap: 2px;
}

.star-filled { color: var(--gold); }
.star-empty  { color: var(--border2); }

.testimonial-card blockquote {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 22px;
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 14px; }
.t-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(0,151,178,0.2);
}
.t-name { font-weight: 700; font-size: 0.9rem; }
.t-role { font-size: 0.78rem; color: var(--text-m); margin-top: 2px; }

.slider-controls { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border2);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.slider-dot.active { background: var(--gold); width: 28px; border-radius: 4px; box-shadow: 0 0 8px var(--gold-glow); }

/* ═══════════════════════════════════
   PRICING
   ═══════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 22px;
  max-width: 1060px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  opacity: 0;
  transition: opacity var(--transition);
}
.pricing-card:hover::before { opacity: 1; }

.pricing-card.recommended {
  border-color: rgba(255,117,31,0.35);
  box-shadow: 0 0 0 1px rgba(255,117,31,0.12), var(--shadow-gold);
  background: linear-gradient(135deg, var(--bg-card), rgba(255,117,31,0.02));
}

.pricing-card.recommended::before { opacity: 1; }

/* Animated border for recommended */
.pricing-card.recommended::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, var(--gold), var(--orange), var(--purple)) border-box;
  pointer-events: none;
  opacity: 0.3;
}

.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pricing-card.recommended:hover { box-shadow: var(--shadow-gold); }

.recommended-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #050a14;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 18px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  white-space: nowrap;
  box-shadow: 0 4px 16px var(--gold-glow);
}

.plan-name  { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: var(--text-m); }
.plan-price { font-size: 3rem; font-weight: 900; font-family: 'Space Grotesk', sans-serif; margin: 10px 0 4px; line-height: 1; }
.plan-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-m); }
.plan-desc  { font-size: 0.82rem; color: var(--text-m); margin-bottom: 18px; }

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  margin-bottom: 28px;
}
.plan-features li {
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.plan-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ═══════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-card2) 0%, var(--bg-card) 50%, var(--bg-card2) 100%);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 70%;
  height: 220%;
  background: radial-gradient(ellipse, rgba(255,117,31,0.06), transparent 65%);
  pointer-events: none;
  animation: cta-orb 8s ease-in-out infinite alternate;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0,151,178,0.05), transparent 65%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
}
.cta-banner p {
  font-size: 1.05rem;
  color: var(--text-m);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ═══════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════ */
.dashboard-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: sticky;
  top: 90px;
}
.sidebar-user {
  text-align: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.sidebar-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #060c1a;
  border: 3px solid rgba(255,117,31,0.2);
}
.sidebar-user h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-m);
  transition: all var(--transition);
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,117,31,0.08);
  color: var(--gold);
}
.main-content { min-width: 0; }
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: all var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.stat-card .sc-label { font-size: 11px; color: var(--text-d); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 8px; font-weight: 600; }
.stat-card .sc-value { font-size: 2.2rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; }
.stat-card .sc-sub   { font-size: 12px; color: var(--text-m); margin-top: 6px; }

/* ═══════════════════════════════════
   ADMIN
   ═══════════════════════════════════ */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
.admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: sticky;
  top: 90px;
}
.admin-sidebar h3 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-d);
  padding: 10px 12px 8px;
  margin-top: 8px;
}
.admin-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-m);
  transition: all var(--transition);
  margin-bottom: 2px;
}
.admin-link:hover, .admin-link.active { background: rgba(255,117,31,0.08); color: var(--gold); }
.admin-link .al-count {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 100px;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h1 { font-size: 1.6rem; font-weight: 800; }

/* ═══════════════════════════════════
   TABLES
   ═══════════════════════════════════ */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead tr { background: var(--bg-card2); }
.data-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-d);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.data-table td {
  padding: 14px 20px;
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.action-btns { display: flex; gap: 6px; align-items: center; }

/* ═══════════════════════════════════
   MODALS
   ═══════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,8,23,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.96);
  transition: all var(--transition-slow);
  box-shadow: var(--shadow);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.modal-header h3 { font-size: 1.2rem; font-weight: 700; }
.modal-close {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text-m);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 6px 10px;
  transition: all var(--transition);
}
.modal-close:hover { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.3); color: var(--red); }

/* ═══════════════════════════════════
   PAGE WRAPS & AUTH
   ═══════════════════════════════════ */
.page-wrap { padding: 48px 0; min-height: calc(100vh - 70px); }
.auth-wrap {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-0);
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}
.auth-wrap::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(255,117,31,0.05), transparent 60%);
  pointer-events: none;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 44px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: var(--shadow);
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue), var(--purple));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.auth-card h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-m); font-size: 0.9rem; margin-bottom: 30px; }
.auth-footer { text-align: center; margin-top: 26px; font-size: 0.85rem; color: var(--text-m); }

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
.site-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--blue), var(--purple), transparent);
  opacity: 0.4;
}

.footer-grid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-brand p { font-size: 0.85rem; color: var(--text-m); line-height: 1.75; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-m);
  transition: all var(--transition);
  text-decoration: none;
}
.social-btn:hover {
  background: rgba(255,117,31,0.08);
  border-color: rgba(255,117,31,0.25);
  color: var(--gold);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-m);
  margin-bottom: 18px;
}
.footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-d);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }

.footer-bottom {
  max-width: 1220px;
  margin: 48px auto 0;
  padding: 22px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-d);
}
.footer-heart { display: flex; align-items: center; gap: 6px; }

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #050a14;
  box-shadow: 0 6px 24px var(--gold-glow);
  transition: all var(--transition);
  z-index: 999;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--gold-glow); }

/* ═══════════════════════════════════
   ANIMATIONS & KEYFRAMES
   ═══════════════════════════════════ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(248,113,113,0.3); }
  50%       { opacity: 0.8; box-shadow: 0 0 0 6px rgba(248,113,113,0); }
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 6px currentColor; }
  50%       { transform: scale(1.2); box-shadow: 0 0 12px currentColor; }
}

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

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

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

@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes mesh-shift {
  0%   { opacity: 1; transform: scale(1) translate(0, 0); }
  100% { opacity: 0.8; transform: scale(1.05) translate(-2%, 2%); }
}

@keyframes shimmer-h {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes cta-orb {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, 5%) scale(1.1); }
}

@keyframes gradient-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Scroll reveal */
.animate-fade-up { opacity: 0; }
.animate-fade-up.visible { animation: fadeUp 0.65s cubic-bezier(0.4,0,0.2,1) forwards; }

/* Stagger delays */
.animate-fade-up:nth-child(1) { animation-delay: 0ms; }
.animate-fade-up:nth-child(2) { animation-delay: 80ms; }
.animate-fade-up:nth-child(3) { animation-delay: 160ms; }
.animate-fade-up:nth-child(4) { animation-delay: 240ms; }
.animate-fade-up:nth-child(5) { animation-delay: 320ms; }
.animate-fade-up:nth-child(6) { animation-delay: 400ms; }

/* ═══════════════════════════════════
   LIGHT MODE OVERRIDES
   ═══════════════════════════════════ */
[data-theme="light"] .navbar { background: rgba(248,250,255,0.85); }
[data-theme="light"] .navbar.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.1); }
[data-theme="light"] .hero { background: linear-gradient(135deg, #f0f4ff 0%, #f8faff 100%); }
[data-theme="light"] .hero-grid { background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}
[data-theme="light"] .service-card,
[data-theme="light"] .course-card,
[data-theme="light"] .portfolio-card,
[data-theme="light"] .instructor-card,
[data-theme="light"] .step-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .sidebar,
[data-theme="light"] .stat-card,
[data-theme="light"] .table-wrap,
[data-theme="light"] .modal,
[data-theme="light"] .auth-card {
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
[data-theme="light"] .trust-bar { background: var(--bg-2); }
[data-theme="light"] .data-table tr:hover td { background: rgba(0,0,0,0.02); }
[data-theme="light"] .hero-card {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .modal-overlay { background: rgba(15,23,42,0.5); }
[data-theme="light"] .site-footer { background: var(--bg-0); }
[data-theme="light"] .section-dark { background: #e8eeff; }
[data-theme="light"] .section-alt  { background: var(--bg-2); }
[data-theme="light"] .cta-banner { background: linear-gradient(135deg, #fff 0%, #f5f7ff 100%); }
[data-theme="light"] .chip { background: rgba(0,0,0,0.04); }
[data-theme="light"] .btn-ghost {
  background: rgba(0,0,0,0.04);
  color: var(--text);
  border-color: var(--border2);
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(0,0,0,0.07);
  color: var(--text);
}
[data-theme="light"] .filter-btn { background: rgba(0,0,0,0.03); }
[data-theme="light"] .portfolio-overlay {
  background: rgba(240,244,255,0.9);
}

/* Mobile-only nav auth items (hidden on desktop, shown in hamburger dropdown) */
li.nav-mobile-auth { display: none; }

/* ═══════════════════════════════════
   MOBILE SIDEBAR DRAWER SYSTEM
   ═══════════════════════════════════ */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2,8,23,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1499;
}
.sidebar-backdrop.visible { display: block; }

.mob-sidebar-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text-m);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition);
}
.mob-sidebar-btn:hover { border-color: var(--gold); color: var(--gold); }

.mob-sidebar-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text-m);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition);
  z-index: 10;
  letter-spacing: 0.5px;
}
.mob-sidebar-close:hover { background: rgba(248,113,113,0.1); border-color: var(--red); color: var(--red); }

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-content       { grid-template-columns: 1fr; }
  .hero-visual        { display: none; }
  .about-grid         { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .dashboard-layout   { grid-template-columns: 1fr; }
  .admin-layout       { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
}

@media (max-width: 768px) {
  .sf-logo-sm { width: 160px; height: 53px; } /* scale down for mobile */
  .nav-links { display: none; }
  .nav-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
  }
  .nav-actions .btn { white-space: nowrap; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: var(--bg-glass2);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    z-index: 999;
  }
  .nav-toggle { display: flex; margin-left: auto; } /* push hamburger + actions to right */
  .theme-toggle { display: flex; }
  /* Hide auth buttons from top bar — they move into hamburger dropdown */
  .nav-actions .btn-ghost,
  .nav-actions .btn-outline { display: none; }
  li.nav-mobile-auth { display: block; }
  .services-grid,
  .courses-grid,
  .portfolio-grid,
  .instructors-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero h1  { font-size: 2.2rem; }
  .section  { padding: 72px 0; }
  .cta-banner { padding: 48px 28px; }
  .cta-banner h2 { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .testimonial-card { min-width: 290px; }
  /* Sidebar -> slide-in drawer overlay on mobile */
  .sidebar, .admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -290px;
    width: 272px !important;
    height: 100vh !important;
    z-index: 1500 !important;
    overflow-y: auto;
    border-radius: 0 !important;
    border: none !important;
    border-right: 1px solid var(--border) !important;
    box-shadow: 4px 0 40px rgba(0,0,0,0.5);
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
    padding-top: 56px !important;
  }
  .sidebar.mob-open, .admin-sidebar.mob-open { left: 0 !important; }
  .mob-sidebar-btn { display: flex; }
  .mob-sidebar-close { display: block; }
  /* Tables: horizontal scroll instead of overflow */
  .table-wrap { overflow-x: auto; }
  /* Tighter page wrap on mobile */
  .page-wrap { padding: 24px 0; }
  /* Compact modal on mobile */
  .modal { padding: 24px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .sf-logo-sm { width: 120px; height: 40px; } /* smallest screens */
  .hero h1 { font-size: 1.9rem; }
  .hero-ctas { flex-direction: column; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 20px; }
  .auth-card { padding: 32px 24px; }
  .testimonial-card { min-width: 260px; }
  /* Compact primary CTA button */
  .nav-actions .btn-gold.btn-sm,
  .nav-actions .btn-blue.btn-sm { padding: 7px 12px; font-size: 0.77rem; }
}

@media (max-width: 360px) {
  .sf-logo-sm { width: 100px; height: 33px; }
  .theme-toggle { display: none; } /* hide theme toggle on very small screens */
  .nav-actions .btn-gold.btn-sm,
  .nav-actions .btn-blue.btn-sm { padding: 6px 10px; font-size: 0.74rem; }
}

/* ═══════════════════════════════════
   EXTRA POLISH & MICRO-DETAILS
   ═══════════════════════════════════ */

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 8px;
  border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
* { scrollbar-width: thin; scrollbar-color: var(--border2) var(--bg-0); }

/* ── Text Selection ── */
::selection { background: rgba(255,117,31,0.22); color: var(--text); }

/* ── Gradient Text Utility ── */
.text-gradient {
  background: linear-gradient(135deg, var(--gold), var(--orange), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-blue {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-d);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 28px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  max-width: 320px;
  animation: slideInRight 0.35s cubic-bezier(0.4,0,0.2,1) forwards;
}
.toast.leaving { animation: slideOutRight 0.3s cubic-bezier(0.4,0,0.2,1) forwards; }
.toast-success { border-left: 3px solid var(--green); }
.toast-error   { border-left: 3px solid var(--red); }
.toast-info    { border-left: 3px solid var(--blue); }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ── Skeleton Loaders ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card2) 25%, var(--border2) 50%, var(--bg-card2) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Pill Tabs ── */
.pill-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 40px;
}
.pill-tab {
  padding: 8px 22px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-m);
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}
.pill-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #050a14;
  box-shadow: 0 4px 16px var(--gold-glow);
}

/* ── Availability pulse dot ── */
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.status-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: status-ping 2s ease-in-out infinite;
}
@keyframes status-ping {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

/* ── Dashboard welcome banner ── */
.welcome-banner {
  background: linear-gradient(135deg, rgba(255,117,31,0.06), rgba(0,151,178,0.04));
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.welcome-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

/* ── Course row (dashboard) ── */
.course-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  flex-wrap: wrap;
}
.course-row:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

/* ── Empty state ── */
.empty-state { text-align: center; padding: 56px 24px; }
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p  { font-size: 0.88rem; color: var(--text-m); margin-bottom: 20px; }

/* ── Number input fix ── */
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Light mode: scrollbar ── */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-2); }
[data-theme="light"] ::-webkit-scrollbar-thumb { border-color: var(--bg-2); }

/* ── Print ── */
@media print {
  .navbar, .back-to-top, #scroll-progress, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
}
