

:root {
  --bg-base:        #f5f6ff;
  --bg-surface:     #ffffff;
  --bg-elevated:    #eef0ff;
  --bg-section:     #f0f2fe;

  --border:         #e4e6f0;
  --border-hover:   #c7cadf;

  --text-primary:   #111827;
  --text-secondary: #374151;
  --text-muted:     #9ca3af;
  --text-light:     #d1d5db;

  --primary:        #6366f1;
  --primary-dark:   #4f46e5;
  --primary-light:  #a5b4fc;
  --primary-bg:     #eef2ff;

  --accent-blue:    #0ea5e9;
  --accent-green:   #10b981;
  --accent-amber:   #f59e0b;
  --accent-pink:    #ec4899;
  --accent-purple:  #7c3aed;

  --footer-bg:                 #ffffff;
  --footer-text:               #4b5563;
  --footer-desc:               #6b7280;
  --footer-heading:            #111827;
  --footer-border:             #e4e6f0;
  --footer-logo-text:          #111827;
  --footer-logo-icon-bg:       #eef2ff;
  --footer-logo-icon-border:   rgba(99,102,241,.2);
  --footer-social-bg:          #f3f4ff;
  --footer-social-border:      #e4e6f0;
  --footer-social-color:       #6366f1;
  --footer-link:               #6b7280;
  --footer-link-hover:         #111827;
  --footer-input-bg:           #ffffff;
  --footer-input-border:       #d7dbea;
  --footer-input-text:         #111827;
  --footer-input-placeholder:  #9ca3af;
  --footer-bottom:             #6b7280;
  --footer-bottom-hover:       #111827;

  --grad-primary:   linear-gradient(135deg, #6366f1, #0ea5e9);
  --grad-warm:      linear-gradient(135deg, #6366f1, #a855f7);
  --grad-surface:   linear-gradient(180deg, #ffffff, #f5f6ff);

  --radius-sm:  .5rem;
  --radius-md:  .75rem;
  --radius-lg:  1.25rem;
  --radius-xl:  2rem;

  --shadow-sm:   0 1px 3px rgba(99,102,241,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(99,102,241,.1),  0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:   0 8px 32px rgba(99,102,241,.14), 0 4px 12px rgba(0,0,0,.06);
  --shadow-card: 0 2px 12px rgba(99,102,241,.08), 0 1px 4px rgba(0,0,0,.04);

  --nav-h: 72px;
  --transition: .2s cubic-bezier(.4,0,.2,1);
  --transition-slow: .4s cubic-bezier(.4,0,.2,1);
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }

.section-dark {
  background: var(--bg-section);
}

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

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px; height: 36px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(99,102,241,.2);
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -.3px;
}

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

.nav-links {
  display: flex;
  gap: .25rem;
  margin-left: auto;
}

.nav-link {
  padding: .45rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.btn-nav-outline {
  padding: .45rem 1rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  background: transparent;
  transition: background var(--transition), color var(--transition);
  display: inline-flex; align-items: center;
}

.btn-nav-outline:hover {
  background: var(--primary-bg);
}

.btn-nav-primary {
  padding: .45rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  display: inline-flex; align-items: center;
}

.btn-nav-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(99,102,241,.35);
  transform: translateY(-1px);
}

.nav-user-area {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color var(--transition);
}

.nav-user-avatar:hover { border-color: var(--primary); }

.nav-user-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.nav-user-caret {
  color: var(--text-muted);
  transition: transform var(--transition);
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + .75rem);
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}

.nav-user-dropdown.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-user-dropdown a,
.nav-user-dropdown .logout-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  width: 100%;
  text-align: left;
}

.nav-user-dropdown a:hover,
.nav-user-dropdown .logout-btn:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: .35rem 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  margin-left: auto;
}

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

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  background: #fff;
  border-top: 1px solid var(--border);
  gap: .25rem;
}

.nav-mobile-link {
  display: block;
  padding: .65rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-mobile.open { display: flex; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .9rem;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(99,102,241,.35);
  transform: translateY(-1px);
}

.btn-primary.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-primary.btn-white:hover {
  background: #f5f5ff;
  box-shadow: 0 6px 20px rgba(255,255,255,.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .9rem;
  border: 1.5px solid var(--border);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  background: transparent;
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .9rem;
  border: 1.5px solid rgba(255,255,255,.5);
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
}

.btn-ghost-white:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}

.btn-lg { padding: .875rem 2rem; font-size: 1rem; }

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 1rem;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(99,102,241,.2);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -.5px;
  margin-bottom: .75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #f0f2ff 50%, #e8ecff 100%);
}

#neuralCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .15;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(99,102,241,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 4rem;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1rem .45rem .75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .825rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16,185,129,.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: .7; }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-avatars {
  display: flex;
}

.hero-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-left: -10px;
  box-shadow: var(--shadow-sm);
}

.hero-avatar:first-child { margin-left: 0; }

.hero-stars {
  display: flex;
  gap: 2px;
  margin-bottom: .2rem;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: .5;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,.18), transparent 70%);
  top: -100px; right: -100px;
}

.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(14,165,233,.15), transparent 70%);
  bottom: 0; left: -50px;
}

.orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(16,185,129,.12), transparent 70%);
  top: 50%; right: 10%;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 46px;
  border: 2px solid var(--border);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px; height: 8px;
  background: var(--primary);
  border-radius: 100px;
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

.stats-bar {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.stat-icon {
  width: 48px; height: 48px;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  border: 1px solid rgba(99,102,241,.15);
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.course-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99,102,241,.2);
}

.course-card-top {
  position: relative;
  padding: 2rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c, #6366f1) 8%, #fff), color-mix(in srgb, var(--c, #6366f1) 15%, #f5f6ff));
  min-height: 130px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.course-icon {
  width: 58px; height: 58px;
  background: #fff;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--c, var(--primary));
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,.8);
}

.course-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: .3rem .75rem;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.course-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .75rem;
}

.course-meta-top {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.course-cat {
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  padding: .2rem .65rem;
  border-radius: 100px;
  border: 1px solid rgba(99,102,241,.2);
}

.course-level {
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 100px;
}

.level-beginner     { background: #ecfdf5; color: #059669; border: 1px solid rgba(5,150,105,.2); }
.level-intermediate { background: #fffbeb; color: #d97706; border: 1px solid rgba(217,119,6,.2); }
.level-advanced     { background: #fef2f2; color: #dc2626; border: 1px solid rgba(220,38,38,.2); }

.course-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.course-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.course-tag {
  font-size: .72rem;
  padding: .2rem .6rem;
  background: var(--bg-section);
  color: var(--text-secondary);
  border-radius: 100px;
  font-weight: 500;
  border: 1px solid var(--border);
}

.course-instructor {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.instructor-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}

.course-stats-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.course-stats-row span {
  display: flex;
  align-items: center;
  gap: .3rem;
}

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

.course-rating {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  color: var(--text-muted);
}

.course-rating strong { color: var(--text-primary); }

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

.price-old {
  font-size: .8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-new {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.course-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--course-color, #6366f1) 16%, transparent) 0%, transparent 36%),
    linear-gradient(160deg, #ffffff 0%, #f3f6ff 52%, #eef2ff 100%);
}

.course-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--course-color, #6366f1) 24%, #ffffff) 0%, transparent 24%),
    radial-gradient(circle at 88% 74%, rgba(14, 165, 233, .16) 0%, transparent 18%);
  pointer-events: none;
}

.course-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .95fr);
  gap: 2rem;
  align-items: start;
}

.course-hero-main {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: .88rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.course-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.35rem, 4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 12ch;
  margin-bottom: .85rem;
}

.course-hero-subtitle {
  max-width: 60ch;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.course-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.5rem;
}

.chs-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, .12);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-secondary);
  font-size: .9rem;
  box-shadow: var(--shadow-sm);
}

.chs-item strong {
  color: var(--text-primary);
}

.course-instructor-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.7rem;
}

.instructor-avatar-lg,
.instructor-avatar-xl {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
}

.instructor-avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1rem;
}

.instructor-avatar-xl {
  width: 88px;
  height: 88px;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.course-purchase-card {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(15, 23, 42, .12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.purchase-preview {
  position: relative;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(99, 102, 241, .08), rgba(14, 165, 233, .04));
}

.preview-icon {
  min-height: 180px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c, var(--primary));
  background: linear-gradient(135deg, color-mix(in srgb, var(--c, #6366f1) 10%, #fff), color-mix(in srgb, var(--c, #6366f1) 18%, #eef2ff));
  border: 1px solid rgba(255, 255, 255, .75);
}

.preview-label {
  position: absolute;
  left: 1.6rem;
  bottom: 1.6rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, .78);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.purchase-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem;
}

.purchase-pricing {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.purchase-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.purchase-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 1rem;
}

.purchase-discount {
  padding: .28rem .65rem;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, .2);
  color: #047857;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.purchase-timer,
.purchase-guarantee {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--text-secondary);
  font-size: .9rem;
}

.purchase-timer {
  padding: .8rem .95rem;
  border-radius: 1rem;
  background: var(--bg-section);
  border: 1px solid var(--border);
}

.purchase-includes {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.pi-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .7rem;
}

.pi-list {
  display: grid;
  gap: .75rem;
}

.pi-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.55;
}

.pi-list li svg {
  flex-shrink: 0;
  margin-top: .15rem;
  color: var(--primary);
}

.course-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr);
  gap: 2rem;
  align-items: start;
}

.course-content-main {
  min-width: 0;
  display: grid;
  gap: 1.5rem;
}

.content-block,
.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  box-shadow: var(--shadow-card);
}

.content-block {
  padding: 1.6rem;
}

.content-block-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 1.1rem;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .95rem 1rem;
  border-radius: 1rem;
  background: var(--bg-section);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.outcome-item svg {
  flex-shrink: 0;
  margin-top: .15rem;
}

.curriculum {
  display: grid;
  gap: .9rem;
}

.curriculum-module {
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(245, 247, 255, .9));
}

.cm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
}

.cm-left,
.cm-right {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.cm-left {
  min-width: 0;
}

.cm-num {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: .8rem;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cm-title {
  color: var(--text-primary);
  font-weight: 600;
}

.cm-count {
  color: var(--text-muted);
  font-size: .85rem;
}

.cm-chevron {
  color: var(--text-muted);
  transition: transform var(--transition);
}

.cm-body {
  display: none;
  padding: 0 1.1rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, .72);
}

.curriculum-module.open .cm-body {
  display: grid;
  gap: .7rem;
  padding-top: .9rem;
}

.curriculum-module.open .cm-chevron {
  transform: rotate(180deg);
}

.cm-lesson {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: var(--text-secondary);
  font-size: .92rem;
}

.cm-lesson svg {
  flex-shrink: 0;
  margin-top: .12rem;
  color: var(--primary);
}

.instructor-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(99, 102, 241, .05), rgba(14, 165, 233, .02));
  border: 1px solid rgba(99, 102, 241, .1);
}

.instructor-info {
  min-width: 0;
}

.instructor-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  color: var(--text-secondary);
  font-size: .88rem;
}

.instructor-stats span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.course-sidebar-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  display: grid;
  gap: 1rem;
}

.sidebar-card {
  padding: 1.35rem;
}

.sidebar-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  margin-bottom: .8rem;
}

.sidebar-list {
  display: grid;
  gap: .75rem;
}

.sidebar-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-secondary);
  font-size: .92rem;
}

.sidebar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.share-buttons {
  display: grid;
  gap: .65rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: .95rem;
  background: var(--bg-section);
  color: var(--text-secondary);
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.share-btn:hover {
  background: var(--primary-bg);
  border-color: rgba(99, 102, 241, .24);
  color: var(--primary);
  transform: translateY(-1px);
}

@media (max-width: 1080px) {
  .course-hero-layout,
  .course-content-layout {
    grid-template-columns: 1fr;
  }

  .course-purchase-card,
  .course-sidebar-sticky {
    position: static;
  }
}

@media (max-width: 760px) {
  .course-hero {
    padding-top: calc(var(--nav-h) + 2.75rem);
  }

  .course-hero-layout,
  .course-content-layout {
    gap: 1.25rem;
  }

  .content-block,
  .sidebar-card,
  .purchase-body {
    padding: 1.15rem;
  }

  .course-hero-title {
    max-width: none;
  }

  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .instructor-card,
  .cm-header,
  .course-instructor-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cm-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .course-hero-stats,
  .instructor-stats,
  .purchase-pricing {
    gap: .6rem;
  }

  .chs-item {
    width: 100%;
    justify-content: flex-start;
  }

  .purchase-price {
    font-size: 1.75rem;
  }
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.step-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c, #6366f1) 12%, #fff), color-mix(in srgb, var(--c, #6366f1) 20%, #f5f6ff));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--c, var(--primary));
  margin: 0 auto 1.25rem;
  border: 1px solid color-mix(in srgb, var(--c, #6366f1) 20%, transparent);
}

.step-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .6rem;
}

.step-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
  color: var(--text-light);
}

.step-connector::before {
  content: '';
  display: block;
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--border), var(--primary-light));
  border-radius: 2px;
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-check {
  width: 32px; height: 32px;
  background: color-mix(in srgb, #10b981 12%, var(--bg-surface));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #059669;
  flex-shrink: 0;
  border: 1px solid rgba(5,150,105,.2);
  margin-top: .1rem;
}

.feature-item strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .3rem;
}

.feature-item p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-visual {
  position: relative;
  padding: 1rem;
}

.visual-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.visual-card-1 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.visual-card-2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.visual-card-3 { }

.vc-icon {
  width: 38px; height: 38px;
  background: color-mix(in srgb, var(--c, #6366f1) 12%, #fff);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--c, var(--primary));
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--c, #6366f1) 20%, transparent);
}

.vc-value {
  margin-left: auto;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.progress-bars { display: flex; flex-direction: column; gap: .85rem; }

.pb-track {
  height: 6px;
  background: var(--bg-section);
  border-radius: 100px;
  overflow: hidden;
}

.pb-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s ease;
}

.visual-bg-glow,
.visual-bg-glow-2 {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .08;
  pointer-events: none;
  z-index: 0;
}

.visual-bg-glow   { bottom: -50px; right: 0; }
.visual-bg-glow-2 { top: -30px;    left: 0; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  margin-bottom: .75rem;
}

.testimonial-text {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: .8rem;
  color: var(--text-muted);
}

.cta-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #7c3aed 50%, var(--accent-blue) 100%);
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-inner {
  position: relative;
  text-align: center;
  z-index: 1;
}

.cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -.5px;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2.25rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.auth-page-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #f0f2ff 0%, #e8ecff 50%, #f5f0ff 100%);
  z-index: -1;
}

.auth-page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem;
}

.auth-page-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2.25rem;
  animation: card-enter .4s cubic-bezier(.34,1.56,.64,1) both;
}

.auth-verify-card {
  display: none;
  text-align: center;
}

.auth-verify-card.show { display: block; }

.auth-page-card.show {
  animation: card-enter .4s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.auth-page-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.75rem;
  text-decoration: none;
}

.auth-page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .4rem;
  letter-spacing: -.3px;
}

.auth-page-subtitle {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.btn-google-page {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: 100%;
  padding: .8rem 1.25rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  margin-bottom: 1.25rem;
}

.btn-google-page:hover {
  border-color: var(--primary-light);
  background: #fafbff;
  box-shadow: var(--shadow-sm);
}

.auth-divider-page {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 500;
}

.auth-divider-page::before,
.auth-divider-page::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-page-error {
  display: none;
  padding: .75rem 1rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 500;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid rgba(220,38,38,.2);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.auth-page-error.show { display: block; }

.auth-page-forgot {
  text-align: right;
  margin-top: -.5rem;
  margin-bottom: 1.25rem;
}

.auth-page-forgot a {
  font-size: .825rem;
  color: var(--primary);
  font-weight: 500;
  transition: opacity var(--transition);
}

.auth-page-forgot a:hover { opacity: .75; }

.auth-page-switch {
  text-align: center;
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.auth-page-switch a {
  color: var(--primary);
  font-weight: 600;
}

.auth-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  position: absolute;
  right: 1.25rem;
}

.auth-btn-loading .auth-spinner { display: block; }
.auth-btn-loading .auth-btn-text { opacity: .6; }

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

.verify-icon {
  width: 72px; height: 72px;
  background: #ecfdf5;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(16,185,129,.2);
}

.auth-verify-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .75rem;
}

.auth-verify-card p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: .6rem;
  line-height: 1.6;
}

.auth-verify-card strong {
  color: var(--text-primary);
}

.verify-note {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.verify-note a {
  color: var(--primary);
  font-weight: 600;
}

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, var(--bg-section) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(99,102,241,.07), transparent 70%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: .75rem 0 1rem;
  letter-spacing: -.5px;
}

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

.about-hero {
  position: relative;
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(99,102,241,.13), transparent 46%),
    radial-gradient(circle at 88% 20%, rgba(14,165,233,.1), transparent 44%),
    linear-gradient(160deg, #ffffff 0%, var(--bg-section) 100%);
  border-bottom: 1px solid var(--border);
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 96%, rgba(99,102,241,.08) 100%),
    linear-gradient(90deg, transparent 96%, rgba(99,102,241,.08) 100%);
  background-size: 30px 30px;
  opacity: .25;
  pointer-events: none;
}

.about-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: stretch;
}

.about-hero-copy { padding-right: 1rem; }

.about-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -.8px;
  margin: .9rem 0 1rem;
  color: var(--text-primary);
}

.about-hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 660px;
}

.about-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.4rem;
}

.about-hero-chips span {
  display: inline-flex;
  align-items: center;
  padding: .45rem .85rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: color-mix(in srgb, var(--primary) 11%, var(--bg-surface));
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
}

.about-hero-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
}

.about-hero-panel h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.about-hero-panel ul {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.about-hero-panel li {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: .8rem .9rem;
}

.about-hero-panel strong {
  display: block;
  font-size: .9rem;
  color: var(--text-primary);
  margin-bottom: .2rem;
}

.about-hero-panel span {
  color: var(--text-muted);
  font-size: .84rem;
}

.about-story-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: start;
}

.about-left {
  text-align: left;
  margin-bottom: 1rem;
}

.about-story-copy p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.about-timeline {
  border-left: 2px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.about-milestone {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.about-milestone::before {
  content: '';
  position: absolute;
  left: -1.72rem;
  top: 1.1rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent);
}

.about-year {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .35rem;
}

.about-milestone h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: .3rem;
}

.about-milestone p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.about-value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.about-value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
}

.about-value-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
  color: var(--c, var(--primary));
  background: color-mix(in srgb, var(--c, var(--primary)) 14%, var(--bg-surface));
  border: 1px solid color-mix(in srgb, var(--c, var(--primary)) 28%, transparent);
}

.about-value-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.03rem;
  color: var(--text-primary);
  margin-bottom: .45rem;
}

.about-value-card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
}

.about-team-section { padding-top: 4rem; }

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.about-team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
}

.about-team-avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--member, var(--primary)) 20%, var(--bg-surface)), color-mix(in srgb, var(--member, var(--primary)) 30%, var(--bg-surface)));
  border: 1px solid color-mix(in srgb, var(--member, var(--primary)) 35%, transparent);
  color: var(--member, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: .8rem;
}

.about-team-card h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: .25rem;
}

.about-team-role {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 700;
  color: var(--member, var(--primary));
  background: color-mix(in srgb, var(--member, var(--primary)) 12%, var(--bg-surface));
  border: 1px solid color-mix(in srgb, var(--member, var(--primary)) 24%, transparent);
  border-radius: 100px;
  padding: .25rem .65rem;
  margin-bottom: .65rem;
}

.about-team-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-team-hiring {
  background: linear-gradient(165deg, color-mix(in srgb, var(--primary) 14%, #fff) 0%, var(--bg-surface) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .75rem;
}

[data-theme="dark"] .about-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(99,102,241,.24), transparent 46%),
    radial-gradient(circle at 88% 20%, rgba(14,165,233,.16), transparent 44%),
    linear-gradient(160deg, #0c0d18 0%, #111329 100%);
}

[data-theme="dark"] .about-hero-bg { opacity: .17; }
[data-theme="dark"] .about-hero-chips span { color: #c7ccff; }
[data-theme="dark"] .about-team-hiring {
  background: linear-gradient(165deg, rgba(99,102,241,.18) 0%, var(--bg-surface) 100%);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex: 1;
  min-width: 200px;
  padding: .6rem 1rem;
  background: var(--bg-base);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: border-color var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: .875rem;
  color: var(--text-primary);
  flex: 1;
}

.search-input::placeholder { color: var(--text-muted); }

.filter-group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.filter-group label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.filter-select {
  padding: .5rem .85rem;
  background: var(--bg-base);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}

.filter-select:focus { border-color: var(--primary); }

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.category-pill {
  padding: .45rem 1rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: .825rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
}

.category-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.category-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.result-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.clear-filters {
  color: var(--primary);
  font-weight: 600;
  font-size: .825rem;
  transition: opacity var(--transition);
}

.clear-filters:hover { opacity: .7; }

.no-results {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}

.no-results h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem;
}

.no-results p { font-size: .9rem; }

.no-results a {
  color: var(--primary);
  font-weight: 600;
}

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(99,102,241,.15), transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .9fr) minmax(0, 1.35fr);
  gap: 4rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--footer-border);
}

.footer-brand .logo-text { color: var(--footer-logo-text); }
.footer-brand .logo-icon { background: var(--footer-logo-icon-bg); border-color: var(--footer-logo-icon-border); }

.footer-desc {
  font-size: .875rem;
  color: var(--footer-desc);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 380px;
}

.footer-socials {
  display: flex;
  gap: .75rem;
}

.social-icon {
  width: 38px; height: 38px;
  background: var(--footer-social-bg);
  border: 1px solid var(--footer-social-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--footer-social-color);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.social-icon:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--footer-heading);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-links a {
  font-size: .875rem;
  color: var(--footer-link);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--footer-link-hover); }

.footer-form {
  display: flex;
  gap: .5rem;
  margin-bottom: .75rem;
  max-width: 420px;
}

.footer-input {
  flex: 1;
  padding: .65rem .9rem;
  background: var(--footer-input-bg);
  border: 1px solid var(--footer-input-border);
  border-radius: var(--radius-md);
  color: var(--footer-input-text);
  font-size: .875rem;
  outline: none;
  transition: border-color var(--transition);
}

.footer-input::placeholder { color: var(--footer-input-placeholder); }

.footer-input:focus { border-color: var(--primary-light); }

.footer-submit {
  padding: .65rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition);
  white-space: nowrap;
}

.footer-submit:hover { background: var(--primary-dark); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: var(--footer-bottom);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--footer-bottom);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--footer-bottom-hover); }

.my-courses-hero {
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  background: linear-gradient(160deg, #ffffff 0%, var(--bg-section) 100%);
  border-bottom: 1px solid var(--border);
}

.my-courses-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.my-courses-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.4px;
}

.my-courses-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: .5rem;
}

.enrolled-count {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.enrolled-count span {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
}

.enrolled-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}

.enrolled-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.enrolled-card-top {
  position: relative;
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.enrolled-course-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.enrolled-card-info { flex: 1; }

.enrolled-card-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .3rem;
  line-height: 1.3;
}

.enrolled-card-info .course-cat {
  font-size: .75rem;
}

.enrolled-card-body {
  padding: 1.25rem 1.75rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-section {}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.progress-label span:last-child {
  color: var(--primary);
  font-weight: 700;
}

.progress-bar-wrap {
  height: 7px;
  background: var(--bg-section);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 100px;
  transition: width 1s ease;
}

.enrolled-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  flex-wrap: wrap;
}

.enrolled-meta span {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.enrolled-card-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.purchased-on {
  font-size: .78rem;
  color: var(--text-muted);
}

.empty-courses {
  text-align: center;
  padding: 5rem 2rem;
  grid-column: 1 / -1;
}

.empty-icon {
  width: 80px; height: 80px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  border: 2px solid rgba(99,102,241,.15);
}

.empty-courses h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .6rem;
}

.empty-courses p {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
  max-width: 400px;
  margin-left: auto; margin-right: auto;
}

.auth-required-overlay {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.auth-required-box {
  max-width: 420px;
}

.auth-required-box .empty-icon {
  background: #fff7ed;
  color: #f59e0b;
  border-color: rgba(245,158,11,.2);
}

.auth-required-box h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .6rem;
}

.auth-required-box p {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fade-up .65s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem;
  color: var(--text-muted);
  gap: 1rem;
  font-size: .9rem;
  font-weight: 500;
}

.spinner-ring {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

@media (max-width: 1100px) {
  .courses-grid      { grid-template-columns: repeat(2, 1fr); }
  .steps-grid        { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .step-connector    { display: none; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .features-layout   { gap: 3rem; }
  .about-hero-layout { grid-template-columns: 1fr; }
  .about-story-layout { grid-template-columns: 1fr; }
  .about-team-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .features-layout   { grid-template-columns: 1fr; }
  .features-right    { display: none; }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle              { display: flex; }
  .courses-grid            { grid-template-columns: 1fr; }
  .steps-grid              { grid-template-columns: 1fr; }
  .footer-grid             { grid-template-columns: 1fr; gap: 2rem; }
  .section-title           { font-size: 1.85rem; }
  .hero-title              { font-size: 2.2rem; }
  .cta-title               { font-size: 1.85rem; }
  .page-title              { font-size: 2rem; }
  .filter-bar              { flex-direction: column; align-items: stretch; }
  .search-box              { min-width: auto; }
  .my-courses-header       { flex-direction: column; align-items: flex-start; }
  .nav-user-area           { display: flex !important; margin-left: auto; }
  .nav-user-name           { display: none; }
  .nav-toggle              { margin-left: .5rem; }
  .about-values-grid       { grid-template-columns: 1fr; }
  .about-team-grid         { grid-template-columns: 1fr; }
  .about-hero-title        { font-size: 2.2rem; }
  .about-hero-subtitle     { font-size: .98rem; }
}

@media (max-width: 480px) {
  .container           { padding: 0 1rem; }
  .auth-page-card      { padding: 2rem 1.25rem; border-radius: var(--radius-lg); }
  .hero-actions        { flex-direction: column; align-items: flex-start; }
  .cta-actions         { flex-direction: column; }
  .stats-grid          { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

.contact-hero {
  position: relative;
  padding: calc(var(--nav-h) + 4.5rem) 0 4rem;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #f0f2ff 60%, #e8ecff 100%);
  border-bottom: 1px solid var(--border);
}

.contact-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(99,102,241,.07), transparent 70%);
  pointer-events: none;
}

.contact-hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

.contact-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: .75rem 0 1.1rem;
}

.contact-hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 1.75rem;
}

.contact-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.contact-trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--text-secondary);
}

.contact-trust-item svg { color: var(--primary); flex-shrink: 0; }
.contact-trust-item strong { color: var(--text-primary); }

.contact-visual-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 220px;
}

.cvc-avatar-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.cvc-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-left: -10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.cvc-avatar:first-child { margin-left: 0; }

.cvc-avatar-more {
  background: var(--bg-section);
  color: var(--text-muted);
  font-size: .72rem;
  border-color: var(--border);
}

.cvc-label {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem;
}

.cvc-dot-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-muted);
}

.cvc-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16,185,129,.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

.contact-main-section {
  padding: 3.5rem 0 5rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-form-card-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
}

.contact-form-card-head svg { color: var(--primary); }

.contact-form-card-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-form-card form {
  padding: 1.75rem;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.form-input.has-icon { padding-left: 2.5rem; }

.subject-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}

.subject-pill {
  padding: .45rem 1rem;
  background: var(--bg-section);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.subject-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.subject-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}

.char-count {
  text-align: right;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .4rem;
  font-weight: 500;
  transition: color var(--transition);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}

.checkmark {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
  transition: background var(--transition), border-color var(--transition);
}

.checkbox-label input:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
  display: block;
  margin-top: -2px;
}

.required { color: #ef4444; margin-left: .15rem; }

.contact-submit-btn { margin-top: .75rem; }

.form-privacy {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--text-muted);
  justify-content: center;
  margin-top: .85rem;
}

.form-errors {
  background: #fef2f2;
  border: 1px solid rgba(220,38,38,.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: #dc2626;
  font-size: .875rem;
  margin: 0 1.75rem 1.25rem;
}

.form-error-item {
  font-size: .85rem;
  margin-top: .3rem;
  color: #dc2626;
}

.form-success {
  text-align: center;
  padding: 3.5rem 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.success-icon {
  width: 72px; height: 72px;
  background: #ecfdf5;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(16,185,129,.2);
}

.form-success h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .65rem;
}

.form-success p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.65;
  max-width: 360px;
  margin: 0 auto;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-sidebar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}

.contact-channels {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.contact-channel-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition), transform var(--transition);
  margin-bottom: .3rem;
}

.contact-channel-card:last-child { margin-bottom: 0; }

.contact-channel-card:hover {
  background: var(--bg-section);
  transform: translateX(3px);
}

.cc-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.cc-icon--indigo { background: #eef2ff; color: #6366f1; }
.cc-icon--green  { background: #ecfdf5; color: #059669; }
.cc-icon--violet { background: #f5f3ff; color: #7c3aed; }
.cc-icon--amber  { background: #fff7ed; color: #d97706; }

.cc-text { flex: 1; }
.cc-text strong { display: block; font-size: .875rem; font-weight: 700; color: var(--text-primary); }
.cc-text span   { font-size: .8rem; color: var(--text-muted); margin-top: .1rem; display: block; }

.cc-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}

.contact-channel-card:hover .cc-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.response-promise {
  background: var(--primary-bg);
  border: 1px solid rgba(99,102,241,.18);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.contact-faq {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-primary);
  gap: .75rem;
  user-select: none;
}

.faq-q svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.faq-a {
  font-size: .845rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: .85rem;
}

.faq-item.open .faq-q svg {
  transform: rotate(180deg);
  color: var(--primary);
}

[data-theme="dark"] .contact-hero          { background: linear-gradient(160deg, #0c0d18 0%, #0f1025 60%, #0c1030 100%); }
[data-theme="dark"] .contact-visual-card   { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .contact-form-card     { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .contact-form-card-head{ background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .contact-channels      { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .contact-channel-card:hover { background: var(--bg-elevated); }
[data-theme="dark"] .contact-faq          { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .faq-item             { border-color: var(--border); }
[data-theme="dark"] .response-promise     { background: rgba(99,102,241,.12); border-color: rgba(99,102,241,.2); }
[data-theme="dark"] .subject-pill         { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .form-errors          { background: rgba(220,38,38,.08); }
[data-theme="dark"] .form-success         { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .cc-icon--indigo,
[data-theme="dark"] .cc-icon--green,
[data-theme="dark"] .cc-icon--violet,
[data-theme="dark"] .cc-icon--amber { background: var(--bg-elevated); color: var(--primary); }

@media (max-width: 960px) {
  .contact-layout      { grid-template-columns: 1fr; }
  .contact-hero-inner  { grid-template-columns: 1fr; }
  .contact-hero-visual { display: none; }
}

@media (max-width: 560px) {
  .form-row-two     { grid-template-columns: 1fr; }
  .contact-trust-row{ flex-direction: column; gap: .75rem; }
}

[data-theme="dark"] {
  --bg-base:        #0c0d18;
  --bg-surface:     #13141f;
  --bg-elevated:    #1a1b2e;
  --bg-section:     #0f1020;

  --border:         rgba(255,255,255,.08);
  --border-hover:   rgba(255,255,255,.14);

  --text-primary:   #f0f0ff;
  --text-secondary: #bcc0dc;
  --text-muted:     #9499ba;
  --text-light:     #5f6487;

  --primary-bg:     rgba(99,102,241,.14);

  --footer-bg:                 #09090f;
  --footer-text:               rgba(255,255,255,.7);
  --footer-desc:               rgba(255,255,255,.5);
  --footer-heading:            #ffffff;
  --footer-border:             rgba(255,255,255,.08);
  --footer-logo-text:          #ffffff;
  --footer-logo-icon-bg:       rgba(255,255,255,.08);
  --footer-logo-icon-border:   rgba(255,255,255,.12);
  --footer-social-bg:          rgba(255,255,255,.07);
  --footer-social-border:      rgba(255,255,255,.1);
  --footer-social-color:       rgba(255,255,255,.5);
  --footer-link:               rgba(255,255,255,.5);
  --footer-link-hover:         #ffffff;
  --footer-input-bg:           rgba(255,255,255,.07);
  --footer-input-border:       rgba(255,255,255,.12);
  --footer-input-text:         #ffffff;
  --footer-input-placeholder:  rgba(255,255,255,.3);
  --footer-bottom:             rgba(255,255,255,.35);
  --footer-bottom-hover:       rgba(255,255,255,.7);

  --shadow-sm:   0 1px 3px rgba(0,0,0,.4);
  --shadow-md:   0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.6);
  --shadow-card: 0 2px 12px rgba(0,0,0,.4);
}

[data-theme="dark"] body            { background: var(--bg-base); }
[data-theme="dark"] .navbar         { background: rgba(13,14,24,.92); border-color: var(--border); }
[data-theme="dark"] .hero           { background: linear-gradient(160deg, #0c0d18 0%, #0f1025 50%, #0c1030 100%); }
[data-theme="dark"] .stats-bar      { background: var(--bg-surface); }
[data-theme="dark"] .course-card    { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .course-card-top { background: linear-gradient(135deg, color-mix(in srgb, var(--c,#6366f1) 18%, #13141f), color-mix(in srgb, var(--c,#6366f1) 10%, #0f1020)); border-bottom-color: var(--border); }
[data-theme="dark"] .course-icon    { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .course-tag     { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .course-footer  { border-top-color: var(--border); }
[data-theme="dark"] .step-card      { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .testimonial-card { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .testimonial-author { border-top-color: var(--border); }
[data-theme="dark"] .visual-card    { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .nav-user-dropdown { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .auth-page-bg   { background: linear-gradient(135deg, #0c0d18 0%, #13141f 100%); }
[data-theme="dark"] .auth-page-card { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .form-input     { background: var(--bg-elevated); border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .form-input:focus { border-color: var(--primary); }
[data-theme="dark"] .btn-google-page { background: var(--bg-elevated); border-color: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .filter-bar     { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .search-box     { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .search-input   { color: var(--text-primary); }
[data-theme="dark"] .filter-select  { background: var(--bg-elevated); border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .category-pill  { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .page-hero      { background: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-section) 100%); }
[data-theme="dark"] .enrolled-card  { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .enrolled-card-top { border-bottom-color: var(--border); }
[data-theme="dark"] .enrolled-card-footer { border-top-color: var(--border); }
[data-theme="dark"] .my-courses-hero { background: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-section) 100%); }
[data-theme="dark"] .course-hero { background:
  radial-gradient(circle at top left, color-mix(in srgb, var(--course-color, #6366f1) 16%, transparent) 0%, transparent 36%),
  linear-gradient(160deg, #101221 0%, #0f1224 52%, #0c1020 100%); }
[data-theme="dark"] .breadcrumb a { color: var(--text-secondary); }
[data-theme="dark"] .chs-item,
[data-theme="dark"] .course-purchase-card { background: rgba(19, 20, 31, .92); border-color: var(--border); }
[data-theme="dark"] .purchase-preview,
[data-theme="dark"] .curriculum-module,
[data-theme="dark"] .instructor-card,
[data-theme="dark"] .share-btn { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .preview-icon,
[data-theme="dark"] .outcome-item,
[data-theme="dark"] .purchase-timer,
[data-theme="dark"] .content-block,
[data-theme="dark"] .sidebar-card { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .cm-body { background: rgba(255, 255, 255, .02); border-top-color: var(--border); }
[data-theme="dark"] .purchase-discount { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .24); color: #6ee7b7; }
[data-theme="dark"] .preview-label { background: rgba(255, 255, 255, .12); color: var(--text-primary); }
[data-theme="dark"] .enrolled-count { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .hero-badge {
  background: rgba(19, 20, 31, .88);
  border-color: rgba(255,255,255,.12);
  color: var(--text-primary);
}
[data-theme="dark"] .badge-status {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
[data-theme="dark"] .level-beginner,
[data-theme="dark"] .badge-active {
  background: rgba(16,185,129,.14);
  color: #6ee7b7;
}
[data-theme="dark"] .level-intermediate,
[data-theme="dark"] .badge-pending {
  background: rgba(245,158,11,.14);
  color: #fcd34d;
}
[data-theme="dark"] .level-advanced,
[data-theme="dark"] .badge-suspended {
  background: rgba(239,68,68,.14);
  color: #fca5a5;
}
[data-theme="dark"] .badge-admin {
  background: rgba(99,102,241,.14);
  color: #c7ccff;
}
[data-theme="dark"] .footer         { background: var(--footer-bg); }

.theme-toggle {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-section);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: rgba(99,102,241,.3);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { transition: opacity .2s, transform .3s; }

[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"]  .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"]  .theme-toggle .icon-moon { display: block; }

.settings-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 5rem;
}

.settings-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.settings-section-head {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .75rem;
}

.settings-section-head svg { color: var(--primary); }

.settings-section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-section-body { padding: 1.75rem; }

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.settings-row:last-child { border-bottom: none; }

.settings-row-label { font-size: .9rem; font-weight: 600; color: var(--text-primary); }
.settings-row-desc  { font-size: .8rem; color: var(--text-muted); margin-top: .15rem; }

.toggle-switch {
  position: relative;
  width: 44px; height: 24px;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

.settings-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.settings-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--primary-bg);
  flex-shrink: 0;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.admin-nav-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  padding: .75rem .75rem .3rem;
  margin-top: .5rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .85rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.admin-nav-item:hover { background: var(--primary-bg); color: var(--primary); }
.admin-nav-item.active { background: var(--primary-bg); color: var(--primary); }
.admin-nav-item svg { flex-shrink: 0; }

.admin-main {
  flex: 1;
  padding: 2rem 2.5rem;
  overflow: hidden;
  min-width: 0;
}

.admin-view { display: none; }
.admin-view.active { display: block; }

.admin-page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: .35rem;
  letter-spacing: -.3px;
}

.admin-page-sub {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.admin-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.admin-stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

.admin-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: .3rem;
}

.admin-stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.admin-stat-delta {
  font-size: .78rem;
  font-weight: 600;
  margin-top: .5rem;
  display: flex; align-items: center; gap: .3rem;
}

.delta-up   { color: #059669; }
.delta-down { color: #dc2626; }

.admin-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.admin-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-table-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-search {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .9rem;
  background: var(--bg-base);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: border-color var(--transition);
  min-width: 220px;
}

.admin-search:focus-within { border-color: var(--primary); }

.admin-search input {
  background: none; border: none; outline: none;
  font-size: .875rem; color: var(--text-primary);
  width: 100%;
}

.admin-search input::placeholder { color: var(--text-muted); }

table { width: 100%; border-collapse: collapse; }

thead th {
  padding: .85rem 1.25rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--bg-base);
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--primary-bg); }

tbody td {
  padding: 1rem 1.25rem;
  font-size: .875rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

.user-cell {
  display: flex; align-items: center; gap: .85rem;
}

.user-cell-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.user-cell-name { font-weight: 600; color: var(--text-primary); font-size: .875rem; }
.user-cell-email { font-size: .78rem; color: var(--text-muted); }

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .65rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
}

.badge-active    { background: #ecfdf5; color: #059669; }
.badge-pending   { background: #fffbeb; color: #d97706; }
.badge-suspended { background: #fef2f2; color: #dc2626; }
.badge-admin     { background: var(--primary-bg); color: var(--primary); }

.action-btn {
  padding: .35rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.action-btn:hover      { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.action-btn.danger     { color: #dc2626; border-color: rgba(220,38,38,.2); }
.action-btn.danger:hover { background: #fef2f2; border-color: #dc2626; }

.admin-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s;
}

.admin-modal-overlay.open { opacity: 1; visibility: visible; }

.admin-modal {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95) translateY(10px);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}

.admin-modal-overlay.open .admin-modal { transform: scale(1) translateY(0); }

.admin-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--bg-surface);
  z-index: 1;
}

.admin-modal-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
  color: var(--text-muted);
  transition: all var(--transition);
}

.modal-close:hover { background: var(--primary-bg); color: var(--primary); border-color: rgba(99,102,241,.3); }

.admin-modal-body { padding: 1.75rem; }

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-form-grid .full-width { grid-column: 1 / -1; }

.admin-modal-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: .75rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border);
}

.admin-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.admin-course-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.admin-course-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.admin-course-card-top {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-course-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.admin-course-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  flex: 1;
}

.admin-course-card-body {
  padding: 1rem 1.25rem;
}

.admin-course-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-bottom: .85rem;
}

.admin-course-actions {
  display: flex;
  gap: .5rem;
}

.agent-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.agent-input-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.agent-input-panel h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .4rem;
}

.agent-input-panel p {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.agent-result-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  min-height: 400px;
}

.agent-idle {
  height: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .75rem;
}

.agent-idle svg { color: var(--text-muted); opacity: .4; }
.agent-idle p   { font-size: .875rem; color: var(--text-muted); max-width: 220px; line-height: 1.6; }

.agent-thinking {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  gap: 1rem;
}

.agent-thinking.show { display: flex; }
.agent-idle.hide { display: none; }

.thinking-dots {
  display: flex; gap: .4rem;
}

.thinking-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: thinking-bounce 1.2s ease-in-out infinite;
}

.thinking-dots span:nth-child(2) { animation-delay: .2s; }
.thinking-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes thinking-bounce {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40%           { transform: scale(1.1); opacity: 1; }
}

.agent-result { display: none; }
.agent-result.show { display: block; }

.result-section {
  padding: .9rem 0;
  border-bottom: 1px solid var(--border);
}

.result-section:last-child { border-bottom: none; }

.result-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin-bottom: .4rem;
}

.result-value {
  font-size: .9rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.result-tag {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  margin: .2rem .2rem 0 0;
  border: 1px solid rgba(99,102,241,.2);
}

.result-module {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem .7rem;
  background: var(--bg-section);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  color: var(--text-secondary);
  margin-bottom: .4rem;
  border: 1px solid var(--border);
}

.result-module strong { color: var(--primary); font-weight: 700; }

.agent-error {
  padding: .85rem 1rem;
  background: #fef2f2;
  border: 1px solid rgba(220,38,38,.2);
  border-radius: var(--radius-md);
  color: #dc2626;
  font-size: .875rem;
  margin-top: 1rem;
  display: none;
}

.agent-error.show { display: block; }

.api-key-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fffbeb;
  border: 1px solid rgba(245,158,11,.3);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: .875rem;
  color: #92400e;
  flex-wrap: wrap;
}

.api-key-banner a { color: var(--primary); font-weight: 600; text-decoration: underline; }

[data-theme="dark"] .admin-sidebar     { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .admin-stat-card   { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .admin-table-wrap  { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] thead th           { background: var(--bg-elevated); }
[data-theme="dark"] .admin-modal       { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .admin-modal-head  { background: var(--bg-surface); }
[data-theme="dark"] .admin-course-card { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .agent-input-panel,
[data-theme="dark"] .agent-result-panel { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .result-module     { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .settings-section  { background: var(--bg-surface); border-color: var(--border); }
[data-theme="dark"] .settings-section-head { border-bottom-color: var(--border); }
[data-theme="dark"] .settings-row      { border-bottom-color: var(--border); }
[data-theme="dark"] .settings-avatar-wrap { border-bottom-color: var(--border); }

@media (max-width: 1024px) {
  .admin-stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .admin-courses-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-wrap        { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .admin-sidebar     { display: none; }
  .admin-main        { padding: 1.5rem 1rem; }
  .admin-courses-grid { grid-template-columns: 1fr; }
  .modal-form-grid   { grid-template-columns: 1fr; }
}

.policy-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

.policy-toc {
  position: sticky;
  top: 5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.policy-toc h3 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.policy-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.policy-toc a {
  font-size: .875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
  line-height: 1.4;
}

.policy-toc a:hover { color: var(--primary); }

.policy-body {
  max-width: 760px;
}

.policy-intro {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  margin-bottom: 2.5rem;
}

.policy-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-top: .5rem;
  color: var(--text-primary);
  scroll-margin-top: 6rem;
}

.policy-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 .5rem;
  color: var(--text-primary);
}

.policy-body p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.policy-body ul,
.policy-body ol {
  color: var(--text-secondary);
  line-height: 1.75;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.policy-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(16,185,129,.08) 0%, rgba(16,185,129,.03) 100%);
  border: 1px solid rgba(16,185,129,.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  color: #065f46;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .policy-highlight {
  color: #6ee7b7;
  background: rgba(16,185,129,.1);
  border-color: rgba(16,185,129,.25);
}

.policy-highlight svg { flex-shrink: 0; color: #10b981; }

.policy-highlight strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.policy-highlight span {
  font-size: .875rem;
}

.policy-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.policy-table th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .75rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.policy-table td {
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

.policy-table code {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .1em .4em;
  font-size: .8125rem;
  font-family: 'Menlo', 'Consolas', monospace;
}

.cookie-badge {
  display: inline-block;
  padding: .2em .65em;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cookie-essential  { background: rgba(239,68,68,.12);  color: #b91c1c; }
.cookie-functional { background: rgba(14,165,233,.12); color: #0369a1; }
.cookie-analytics  { background: rgba(124,58,237,.12); color: #6d28d9; }

[data-theme="dark"] .cookie-essential  { color: #fca5a5; }
[data-theme="dark"] .cookie-functional { color: #7dd3fc; }
[data-theme="dark"] .cookie-analytics  { color: #c4b5fd; }

.policy-callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: .875rem 1.25rem;
  font-size: .875rem;
  color: var(--text-muted);
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.policy-callout a {
  color: var(--primary);
}

@media (max-width: 900px) {
  .policy-layout {
    grid-template-columns: 1fr;
  }
  .policy-toc {
    position: static;
  }
}
