@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Mono:wght@400;500;600;700&display=swap');

.progress-header {
  background: var(--gray-200);
  height: 10px;
  border-radius: .5rem;
  overflow: hidden;
}
.progress-header .progress-bar {
  background: var(--primary);
  width: var(--progress);
  height: 100%;
  border: none;
}
/* =============================================
   AIbek School - Minimal Design System
   ============================================= */

:root {
  /* Colors */
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  
  /* Brand */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --primary-bg: #eff6ff;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Radius */
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;
  --info: #60a5fa;
  /* Approximate navbar height used to overlap hero under header */
  --navbar-h: 64px;
}

/* =============================================
   RESET
   ============================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

p {
  color: var(--gray-600);
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: var(--primary-dark);
}
.alert-modern {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.alert-modern .alert-icon i { font-size: 1.25rem; }
.alert-modern .btn-close { margin-left: var(--space-4); filter: none; }

/* Success */
.alert-modern.alert-success {
  background: linear-gradient(180deg, rgba(16,185,129,0.08), rgba(16,185,129,0.06));
  border-color: rgba(16,185,129,0.25);
  color: #065f46;
}
.alert-modern.alert-success .alert-icon i { color: #10b981; }

/* Info */
.alert-modern.alert-info {
  background: linear-gradient(180deg, rgba(59,130,246,0.08), rgba(59,130,246,0.06));
  border-color: rgba(59,130,246,0.25);
  color: #1e3a8a;
}
.alert-modern.alert-info .alert-icon i { color: #2563eb; }

/* Warning */
.alert-modern.alert-warning {
  background: linear-gradient(180deg, rgba(245,158,11,0.1), rgba(245,158,11,0.08));
  border-color: rgba(245,158,11,0.3);
  color: #92400e;
}
.alert-modern.alert-warning .alert-icon i { color: #f59e0b; }

/* Danger */
.alert-modern.alert-danger {
  background: linear-gradient(180deg, rgba(239,68,68,0.1), rgba(239,68,68,0.08));
  border-color: rgba(239,68,68,0.3);
  color: #7f1d1d;
}
.alert-modern.alert-danger .alert-icon i { color: #ef4444; }

.alert-inner { gap: var(--space-2); }

/* =============================================
   LAYOUT
   ============================================= */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

section {
  padding: var(--space-20) 0;
}

@media (max-width: 768px) {
  section {
    padding: var(--space-16) 0;
  }
  
  .container {
    padding: 0 var(--space-4);
  }
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--primary);
  color: var(--white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-base);
  border: 1px solid var(--primary);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--white);
  color: var(--gray-800);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-base);
  border: 1px solid var(--gray-300);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--gray-900);
  border-color: var(--gray-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero-minimal {
  background-color: var(--gray-50);
  padding: var(--space-20) 0;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* =============================================
   AI HERO WRAP: animated gradient-mesh blobs
   ============================================= */
.ai-hero-wrap {
  position: relative;
  isolation: isolate; /* ensure background layers stay under content */
  /* Pull hero up under the sticky navbar, then compensate with padding */
  margin-top: calc(-1 * var(--navbar-h));
  padding-top: var(--navbar-h);
}
.ai-hero-wrap .ai-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1; /* keep behind content */
  background:
    /* Balanced soft accents (top, right, left) */
  radial-gradient(820px 400px at 50% -5%, rgba(59,130,246,0.06), rgba(59,130,246,0) 62%),
  radial-gradient(1200px 650px at 85% 6%, rgba(37,99,235,0.03), rgba(37,99,235,0) 64%),
  radial-gradient(980px 560px at 12% 24%, rgba(96,165,250,0.04), rgba(96,165,250,0) 64%),
  linear-gradient(180deg, rgba(255,255,255,0.84), rgba(248,250,252,0.84));
  pointer-events: none;
}

/* Ensure sections inside the wrap don't paint opaque backgrounds */
.ai-hero-wrap .hero-minimal,
.ai-hero-wrap .features-minimal {
  background: transparent !important;
}

/* Soft blurred blobs that drift slowly */
.ai-hero-wrap .ai-blob {
  position: absolute;
  width: 40vmax;
  height: 40vmax;
  filter: blur(100px);
  opacity: 0.10;
  border-radius: 50%;
  mix-blend-mode: multiply;
  transform: translate3d(0,0,0);
  will-change: transform;
}
.ai-hero-wrap .ai-blob .inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.ai-hero-wrap .ai-blob.b1 .inner {
  background: radial-gradient(circle at 30% 30%, #60a5fa, #2563eb);
  top: -12vmax; left: -10vmax;
  animation: aiBlobDrift1 14s ease-in-out infinite alternate;
}
.ai-hero-wrap .ai-blob.b2 .inner {
  background: radial-gradient(circle at 70% 40%, #3b82f6, #1e40af);
  top: 6vmax; right: -14vmax;
  animation: aiBlobDrift2 18s ease-in-out infinite alternate;
}
.ai-hero-wrap .ai-blob.b3 .inner {
  background: radial-gradient(circle at 50% 50%, #60a5fa, #3b82f6);
  bottom: -18vmax; left: 18%;
  animation: aiBlobDrift3 22s ease-in-out infinite alternate;
}
.ai-hero-wrap .ai-blob.b4 .inner { animation-duration: 30s; }
.ai-hero-wrap .ai-blob.b5 .inner { animation-duration: 34s; }

/* Additional soft blobs to even out composition */
.ai-hero-wrap .ai-blob.b4 { width: 36vmax; height: 36vmax; opacity: 0.08; filter: blur(110px); right: 30%; top: -8vmax; }
.ai-hero-wrap .ai-blob.b4 .inner {
  background: radial-gradient(circle at 40% 60%, #60a5fa, #3b82f6);
  animation: aiBlobDrift2 20s ease-in-out infinite alternate;
}
.ai-hero-wrap .ai-blob.b5 { width: 44vmax; height: 44vmax; opacity: 0.06; filter: blur(120px); left: 55%; bottom: -20vmax; }
.ai-hero-wrap .ai-blob.b5 .inner {
  background: radial-gradient(circle at 60% 40%, #3b82f6, #2563eb);
  animation: aiBlobDrift1 22s ease-in-out infinite alternate;
}

@keyframes aiBlobDrift1 {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(10vmax, 6vmax, 0) scale(1.14); }
  100% { transform: translate3d(4vmax, 9vmax, 0) scale(0.95); }
}
@keyframes aiBlobDrift2 {
  0%   { transform: translate3d(0,0,0) scale(1.05); }
  50%  { transform: translate3d(-9vmax, 6vmax, 0) scale(0.97); }
  100% { transform: translate3d(-12vmax, -4vmax, 0) scale(1.08); }
}
@keyframes aiBlobDrift3 {
  0%   { transform: translate3d(0,0,0) scale(0.98); }
  50%  { transform: translate3d(6vmax, -8vmax, 0) scale(1.14); }
  100% { transform: translate3d(-6vmax, -4vmax, 0) scale(1); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ai-hero-wrap .ai-blob { animation: none !important; }
}

/* Mobile tuning: slightly smaller, softer */
@media (max-width: 768px) {
  .ai-hero-wrap .ai-blob {
  width: 60vmax;
  height: 60vmax;
  filter: blur(110px);
  opacity: 0.08;
  }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.04em;
  color: var(--gray-900);
}

.text-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--gray-600);
  max-width: 650px;
  margin: 0 auto var(--space-10);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   FEATURES SECTION - IMPROVED
   ============================================= */

.features-minimal {
  background: var(--gray-50);
  padding-top: 0;
}

.features-grid-improved {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: 900px;
  margin: 0 auto;
}

.feature-improved {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.feature-improved:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: var(--primary-light);
}

.feature-improved i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--space-5);
  display: block;
}

.feature-improved h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--gray-900);
}

.feature-improved p {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .features-grid-improved {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* =============================================
   COURSES SECTION - IMPROVED
   ============================================= */

.course-link-improved {
  background: var(--primary);
  color: var(--white) !important;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.course-link-improved:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.course-date {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

/* =============================================
   TIMELINE - IMPROVED PROCESS
   ============================================= */

.timeline-container {
  max-width: 600px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding: var(--space-8) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 60px;
  bottom: 60px;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.timeline-content {
  flex: 1;
  padding-top: var(--space-3);
}

.timeline-content h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--gray-900);
}

.timeline-content p {
  color: var(--gray-600);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-dot {
    width: 40px;
    height: 40px;
    font-size: var(--text-base);
  }
  
  .timeline-item {
    gap: var(--space-4);
  }
}

/* =============================================
   ABOUT SECTION - IMPROVED
   ============================================= */

.about-highlight {
  margin-bottom: var(--space-8);
}

.about-highlight h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-200);
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.stat span {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* =============================================
   FAQ ACCORDION - IMPROVED
   ============================================= */

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-accordion-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-accordion-item:hover {
  border-color: var(--primary-light);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-question i {
  transition: transform 0.2s ease;
  color: var(--gray-400);
}

.faq-accordion-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--gray-50);
}

.faq-accordion-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: var(--space-4) var(--space-6) var(--space-5);
  margin: 0;
  color: var(--gray-600);
  line-height: 1.6;
}

/* =============================================
   CTA SECTION - IMPROVED
   ============================================= */

.cta-minimal-improved {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  padding: var(--space-20) 0;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-minimal-improved h3 {
  color: var(--gray-900);
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.cta-minimal-improved p {
  color: var(--gray-600);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.btn-cta-improved {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--primary);
  color: var(--white);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-lg);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
  border: 2px solid var(--primary);
}

.btn-cta-improved:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-cta-improved i {
  font-size: 1.5rem;
}

/* =============================================
   PROCESS SECTION
   ============================================= */

.process-minimal {
  background: var(--white);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-12);
  letter-spacing: -0.03em;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 220px;
  text-align: center;
  flex: 1;
}

.step-number {
  font-size: var(--text-lg);
  font-weight: 700;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  transition: all 0.3s ease;
}

.step:hover .step-number {
    background: var(--primary);
    color: var(--white);
}

.step p {
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: 1.5;
}

.step-arrow {
  font-size: 2rem;
  color: var(--gray-300);
  margin-top: 12px;
}

@media (max-width: 768px) {
  .step-arrow {
    display: none;
  }
  
  .process-steps {
    gap: var(--space-8);
  }
  
  .step {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

/* =============================================
   ABOUT SECTION
   ============================================= */

.about-minimal {
  background: var(--gray-50);
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: var(--text-lg);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.about-text:last-child {
  margin-bottom: 0;
}

/* =============================================
   NAVBAR - IMPROVED GLASS EFFECT
   ============================================= */

.navbar {
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.15));
  border-bottom: 1px solid rgba(229, 231, 235, 0.18);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
}

/* When the navbar has an inline progress bar, remove the bottom border
   so there is no extra 1px line under the animated bar */
.navbar.navbar-with-progress {
  border-bottom: none;
}

/* Thin progress bar attached to the bottom edge of the sticky navbar */
.navbar-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px; /* match underline thickness */
  background: transparent; /* no track background for a minimal look */
  overflow: hidden;
  pointer-events: none;
}
.navbar-progress-fill {
  width: var(--navbar-progress, 0%);
  height: 100%;
  /* Brand gradient with subtle flowing animation */
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #1e40af, #3b82f6);
  background-size: 200% 100%;
  animation: aiFlowBar 6s linear infinite;
  transition: width 300ms ease;
}

@keyframes aiFlowBar {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Respect user preference to reduce motion */
@media (prefers-reduced-motion: reduce) {
  .navbar-progress-fill {
    animation: none;
  }
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-brand {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--gray-900) !important;
  text-decoration: none;
  letter-spacing: 0;
  transition: color 0.2s ease;
  font-family: 'Google Sans Mono', 'JetBrains Mono', monospace;
  position: relative;
}

/* Disable underline pseudo-element for a cleaner, minimalist hover */
.navbar-brand::after { display: none; }

/* Keep the rest of the wordmark black; no global logo hover styles */

.navbar-brand .ai-part {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  font-family: 'Google Sans Mono', 'JetBrains Mono', monospace;
  font-weight: 600;
  background-size: 200% 100%;
  background-position: 0% 0%;
}

/* Animate only the "ai" gradient on hover for a noticeable, refined motion */
.navbar-brand:hover .ai-part { animation: aiTextFlow 2.4s linear infinite; }

@keyframes aiTextFlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Respect user motion preferences for the subtle hover effect */
@media (prefers-reduced-motion: reduce) {
  .navbar-brand:hover .ai-part { animation: none; }
}

.navbar .btn-outline-secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(229, 231, 235, 0.35);
  color: var(--gray-700);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.2s ease;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.navbar .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.navbar .btn-outline-secondary:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.navbar .btn-outline-secondary i {
  font-size: 1.1rem;
}

.navbar-links a {
    color: var(--gray-600);
    text-decoration: none;
    margin-left: var(--space-6);
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-links a:hover {
    color: var(--primary);
}

/* =============================================
   OFFCANVAS MENU - MODERN STYLE (lightened)
   ============================================= */
.offcanvas {
  /* Было: background: rgba(255, 255, 255, 0.4); */
  background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.28) 100%) !important;
  backdrop-filter: blur(46px) saturate(210%) brightness(1.6) contrast(1.05) !important;
  -webkit-backdrop-filter: blur(46px) saturate(210%) brightness(1.6) contrast(1.05) !important;
  border-left: 1px solid rgba(255,255,255,0.55) !important;
  box-shadow: -8px 0 40px rgba(0,0,0,0.03), inset 1px 0 0 rgba(255,255,255,0.4) !important;
}

.offcanvas-header {
  background: rgba(255,255,255,0.38) !important;
  backdrop-filter: blur(42px) saturate(200%) brightness(1.55) !important;
  -webkit-backdrop-filter: blur(42px) saturate(200%) brightness(1.55) !important;
  border-bottom: 1px solid rgba(255,255,255,0.45) !important;
}

.offcanvas-title {
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.offcanvas-body {
  padding: var(--space-6);
}

.offcanvas .btn-close {
  /* Make the close icon clearly visible on light header */
  background-color: rgba(255,255,255,0.8) !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  filter: none !important;
  opacity: .9;
  /* Force a dark (black) close icon to avoid white-on-white */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 1 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 1 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E") !important;
}

.offcanvas .btn-close:hover {
  background-color: rgba(255,255,255,0.95) !important;
  border-color: rgba(0,0,0,0.2) !important;
  opacity: 1;
}

.offcanvas .list-group {
  border: none;
  gap: var(--space-2);
}

.offcanvas .list-group-item {
  background: rgba(255,255,255,0.45) !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  backdrop-filter: blur(36px) saturate(190%) brightness(1.4) !important;
  -webkit-backdrop-filter: blur(36px) saturate(190%) brightness(1.4) !important;
  transition: all 0.2s ease;
}

.offcanvas .list-group-item:hover {
  background: rgba(255,255,255,0.7) !important;
  backdrop-filter: blur(40px) saturate(210%) brightness(1.5) !important;
}

.offcanvas .list-group-item.active {
  /* Minimal left-accent highlight without filled background */
  background: transparent !important;
  color: var(--gray-900) !important;
  border-color: rgba(37,99,235,0.25) !important;
  box-shadow: inset 3px 0 0 var(--primary);
  font-weight: 600;
}

/* Subtle hover/focus for the active item */
.offcanvas .list-group-item.active:hover,
.offcanvas .list-group-item.active:focus {
  background: rgba(37,99,235,0.06) !important;
  color: var(--gray-900) !important;
  border-color: rgba(37,99,235,0.35) !important;
}

.offcanvas h6 {
  font-weight: 700;
  color: var(--gray-800);
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
  margin-top: var(--space-6);
  letter-spacing: -0.01em;
}

.offcanvas .badge {
  background: var(--primary);
  color: var(--white);
  font-size: var(--text-xs);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* =============================================
   PROFILE PAGE - MODERN DESIGN
   ============================================= */

.profile-hero {
  background: var(--gray-50);
  padding: var(--space-12) 0 var(--space-8);
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-6);
}

.profile-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--gray-900);
}

.profile-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.user-name {
  font-size: var(--text-lg);
  color: var(--gray-600);
  font-weight: 500;
}

.badge-demo {
  background: var(--primary-bg);
  color: var(--primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.btn-edit-profile {
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-edit-profile:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  transform: translateY(-1px);
}

.edit-profile {
  background: var(--white);
  padding: var(--space-10) 0;
  border-top: 1px solid var(--gray-200);
}

.edit-form-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--gray-50);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

.edit-form-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--gray-900);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: all 0.2s ease;
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.btn-save {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-save:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-cancel {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.courses-section {
  padding: var(--space-16) 0;
  background: var(--white);
}

.courses-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-6);
}

.course-progress-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all 0.3s ease;
}

.course-progress-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}

.course-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.course-progress-header h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  flex: 1;
}

.progress-percent {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-bg);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.progress-bar-container {
  background: var(--gray-200);
  height: 8px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.btn-continue {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.2s ease;
}

.btn-continue:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.course-status {
  color: var(--gray-500);
  font-size: var(--text-sm);
  font-weight: 500;
}

.no-courses {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

.no-courses i {
  font-size: 3rem;
  color: var(--gray-400);
  margin-bottom: var(--space-4);
}

.no-courses h3 {
  font-size: var(--text-xl);
  color: var(--gray-700);
  margin-bottom: var(--space-3);
}

.no-courses p {
  color: var(--gray-600);
  margin-bottom: var(--space-6);
}

.profile-actions {
  background: var(--gray-50);
  padding: var(--space-8) 0;
  text-align: center;
}

.btn-logout {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: var(--gray-50);
  color: var(--gray-800);
  border-color: var(--gray-400);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .courses-progress-grid {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
}

/*
==============================
COURSE PAGE V2 (minimalist)
==============================*/

/* Hero */
.course-hero{
  padding:var(--space-20) 0 var(--space-16);
  background:var(--gray-50);
  text-align:center;
  display:flex;align-items:center;justify-content:center;
  min-height:60vh;
}
.course-hero .course-hero-title{font-size:clamp(2rem,5vw,3rem);font-weight:700;margin-bottom:var(--space-4);letter-spacing:-.03em;}
.course-hero .course-hero-subtitle{font-size:var(--text-lg);max-width:600px;margin:0 auto var(--space-6);color:var(--gray-600);}
.course-hero .course-badge{display:inline-flex;align-items:center;gap:.5rem;font-size:var(--text-sm);color:var(--gray-500);background:var(--white);padding:var(--space-1) var(--space-3);border-radius:var(--radius-full);border:1px solid var(--gray-200);margin-bottom:var(--space-4);} 
.course-hero-actions{display:flex;gap:var(--space-4);justify-content:center;flex-wrap:wrap;}

/* Summary */
.course-summary{background:var(--white);padding:var(--space-16) 0;}
.course-summary .lead{font-size:var(--text-xl);color:var(--gray-700);line-height:1.4;}

/* Feature grid */
.features-grid-course{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:var(--space-8);} 
.feature-course{text-align:center;padding:var(--space-6);background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius-lg);} 
.feature-course h3{font-size:var(--text-base);margin-top:var(--space-3);margin-bottom:var(--space-2);} 
.feature-course p{font-size:var(--text-sm);color:var(--gray-500);} 

/* Process steps */
.process-steps{display:flex;align-items:center;justify-content:center;gap:var(--space-4);flex-wrap:wrap;} 
.step{display:flex;flex-direction:column;align-items:center;max-width:180px;text-align:center;} 
.step-number{font-size:var(--text-base);font-weight:600;width:32px;height:32px;border-radius:var(--radius-full);background:var(--black);color:var(--white);display:flex;align-items:center;justify-content:center;margin-bottom:var(--space-2);} 
.step-arrow{font-size:1.5rem;color:var(--gray-400);} 

@media(max-width:640px){.step-arrow{display:none;} .step{max-width:100%;flex:1 1 45%;}}

/* Outcomes grid reuse already defined */

/* Audience */
.audience-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:var(--space-6);} 
.audience-card{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius-lg);padding:var(--space-6);text-align:center;transition:transform .2s;} 
.audience-card:hover{transform:translateY(-2px);} 
.audience-icon{width:48px;height:48px;background:var(--gray-100);display:flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);margin:0 auto var(--space-4);} 

/* CTA final */
.course-cta-final{background:var(--primary-bg);text-align:center;padding:var(--space-16) 0;} 
.course-cta-final h3{font-size:var(--text-2xl);margin-bottom:var(--space-3);} 
.course-cta-final p{font-size:var(--text-base);color:var(--gray-600);margin-bottom:var(--space-6);} 

/* ABOUT AUTHOR */
.course-author{text-align:center;padding:var(--space-16) 0;background:var(--white);} 
.course-author p{color:var(--gray-600);} 

/* REQUIREMENTS */
.course-requirements{background:var(--gray-50);} 
.course-requirements .outcome-item{justify-content:flex-start;gap:var(--space-2);} 

/* ------------- CONTINUED ------------- */

/* =============================================
   COURSES SECTION
   ============================================= */

.courses-minimal {
  background: var(--white);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
}

.course-card {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.course-card:hover:not(.inactive) {
  border-color: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0,0,0,0.05);
}

.course-card.inactive {
  opacity: 0.7;
  background-color: var(--gray-50);
}

.course-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.course-icon i {
  font-size: 1.6rem;
  color: var(--primary);
}

.course-card h4 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  flex-grow: 1;
}

.course-card p {
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
  color: var(--gray-600);
  flex-grow: 1;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-100);
}

.course-time {
  font-size: var(--text-sm);
  color: var(--gray-500);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.course-link {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.course-link i {
  transition: transform 0.2s;
}

.course-link:hover i {
  transform: translateX(3px);
}

.course-soon {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-500);
    background-color: var(--gray-200);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-100);
}

.course-time {
  font-size: var(--text-sm);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.course-link {
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.course-soon {
  font-size: var(--text-sm);
  color: var(--gray-400);
}

/* ------------- FAQ SECTION ------------- */

.faq-minimal {
  background: var(--gray-50);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  max-width: 900px;
  margin: 0 auto;
}

.faq-item h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.faq-item p {
  font-size: var(--text-sm);
}

/* ------------- CTA MINIMAL ------------- */

.cta-minimal {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: var(--space-12) 0;
}

.cta-minimal h3 {
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.cta-minimal p {
  color: var(--gray-300);
  margin-bottom: var(--space-6);
}

.cta-minimal .btn-primary {
  background: var(--white);
  color: var(--black);
}

.cta-minimal .btn-primary:hover {
  background: var(--gray-100);
}

/* ------------- FOOTER ------------- */

footer {
  background: var(--gray-50);
  padding: var(--space-8) 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--gray-500);
  border-top: 1px solid var(--gray-200);
}

/* ------------- UTILITIES (partial) ------------- */
.mt-5 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-6); }
.text-center { text-align: center !important; }
.text-muted { color: var(--gray-500) !important; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }

/* =============================================
   CARDS AND COMPONENTS
   ============================================= */

.card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--gray-300);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: var(--space-5);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--black);
}

.card-text {
  color: var(--gray-600);
  line-height: 1.5;
}

/* =============================================
   PROGRESS BARS
   ============================================= */

.progress {
  background-color: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  height: 8px;
}

.progress-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 500;
}

.progress[style*="height: 20px"] .progress-bar,
.progress[style*="height:20px"] .progress-bar {
  font-size: var(--text-sm);
}

.progress[style*="height: 24px"] .progress-bar,
.progress[style*="height:24px"] .progress-bar {
  font-size: var(--text-base);
}

/* =============================================
   BADGES
   ============================================= */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.bg-success {
  background-color: #10b981 !important;
  color: var(--white) !important;
}

.bg-warning {
  background-color: #f59e0b !important;
  color: var(--white) !important;
}

.text-dark {
  color: var(--black) !important;
}

/* =============================================
   ALERTS
   ============================================= */

.alert {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  margin-bottom: var(--space-4);
}

.alert-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.alert-danger {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.alert-heading {
  font-weight: 600;
  margin-bottom: var(--space-2);
}

/* =============================================
   FORMS
   ============================================= */

.form-control {
  display: block;
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background-color: var(--white);
  color: var(--black);
  font-size: var(--text-base);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
  outline: none;
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--black);
}

/* =============================================
   RESPONSIVE GRID SYSTEM
   ============================================= */

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(-1 * var(--space-3));
}

.col-md-6 {
  flex: 0 0 auto;
  width: 100%;
  padding: 0 var(--space-3);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .col-md-6 {
    width: 50%;
  }
}

.g-3 > * {
  margin-bottom: var(--space-3);
}

/* =============================================
   ADDITIONAL UTILITIES
   ============================================= */

.lead {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-700);
}

.opacity-50 {
  opacity: 0.5;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.gap-3 {
  gap: var(--space-3);
}

.h-100 {
  height: 100%;
}

.flex-grow-1 {
  flex-grow: 1;
}

.mt-auto {
  margin-top: auto;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.rounded {
  border-radius: var(--radius-md);
}

.border-top {
  border-top: 1px solid var(--gray-200);
}

.pt-4 {
  padding-top: var(--space-8);
}

.ms-2 {
  margin-left: var(--space-2);
}

/* =============================================
   CHECKLIST (visual, completed)
   ============================================= */
.checklist-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}
.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.checklist-title {
  font-weight: 700;
  color: var(--gray-900);
}
.checklist-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: var(--gray-700);
}
.checklist-item i {
  color: #10b981; /* green */
}

/* =============================================
   MODULE INTRO (what to expect)
   ============================================= */
.module-intro-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}
.module-intro-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.module-intro-title {
  font-weight: 700;
  color: var(--gray-900);
}
.module-intro-list {
  margin: 0;
  padding-left: var(--space-5);
  color: var(--gray-700);
}
.module-intro-list li { margin-bottom: var(--space-2); }

/* =============================================
   COURSE PAGE STYLES
   ============================================= */

.course-hero {
  background-color: var(--white);
  padding: var(--space-16) 0;
  text-align: center;
}

.course-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.course-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--primary-bg);
  color: var(--primary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-5);
}

.course-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

/* =============================================
   COURSE OVERVIEW PAGE
   ============================================= */

.overview-header {
  padding: var(--space-12) 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
}

.overview-header h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

.overview-header .lead {
  font-size: var(--text-lg);
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto var(--space-8);
}

.overview-progress {
  max-width: 500px;
  margin: 0 auto;
}

.overview-progress .progress-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
  text-align: left;
}

.overview-progress .progress {
  height: 12px;
}

.overview-actions {
    margin-top: var(--space-6);
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    align-items: center;
}

.btn-reset-progress {
    font-size: var(--text-sm);
    color: var(--gray-500);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-reset-progress:hover {
    color: var(--gray-800);
}

.overview-modules-section {
    padding: var(--space-16) 0;
    background: var(--gray-50);
}

.overview-modules-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

/* Re-using module-item from course page for consistency */
.overview-modules-list .module-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.overview-modules-list .module-item {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    margin-bottom: var(--space-4);
    padding: var(--space-5) var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-5);
    transition: all 0.2s ease;
}

.overview-modules-list .module-item-link:hover .module-item:not(.locked) {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.overview-modules-list .module-item.locked {
    background: var(--gray-50);
    opacity: 0.9;
}

.overview-modules-list .module-item.locked .module-number {
    background: var(--gray-200);
    color: var(--gray-500);
}

.overview-modules-list .module-item.locked .module-content h4 {
    color: var(--gray-600);
}

.overview-modules-list .module-item-link.disabled {
    pointer-events: none;
    cursor: default;
}

.overview-modules-list .module-status {
    margin-left: auto;
    padding-left: var(--space-4);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
}

.overview-modules-list .status-completed {
    color: #10b981; /* green-600 */
}

.overview-modules-list .status-locked i {
    font-size: 1.2rem;
}

.overview-modules-list .status-locked {
    color: var(--gray-500);
}

.overview-modules-list .status-next {
    color: var(--primary);
}

.course-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.course-progress-section {
  max-width: 400px;
  margin: 0 auto var(--space-8);
}

.progress-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.progress-bar-container {
  height: 8px;
  background-color: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-2);
  position: relative;
}

.progress-bar-container:last-child {
  margin-bottom: 0;
}

.progress-bar-container.secondary {
  height: 4px;
  opacity: 0.7;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.progress-bar.secondary {
  background: var(--info);
}

.progress-label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: var(--space-1);
}

.progress-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.detailed-progress {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.progress-bars {
  margin-top: var(--space-3);
}

.course-hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.course-summary {
  background: var(--gray-50);
  padding: var(--space-16) 0;
}

.course-summary .lead {
    font-size: var(--text-xl);
    line-height: 1.7;
    color: var(--gray-700);
}

.course-features {
  background: var(--white);
}

.features-grid-course {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.feature-course {
  text-align: left;
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.feature-course:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.07);
  border-color: var(--primary-light);
}

.feature-icon-course {
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.feature-icon-course i {
  font-size: 1.5rem;
  color: var(--primary);
}

.feature-course h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.feature-course p {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.6;
}

.course-modules {
  background: var(--gray-50);
}

.modules-container {
  max-width: 800px;
  margin: 0 auto;
}

.section-subtitle {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--gray-600);
  margin-top: calc(-1 * var(--space-8));
  margin-bottom: var(--space-10);
}

.modules-list {
  list-style: none;
  padding: 0;
}

.module-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.module-item {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  margin-bottom: var(--space-4);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  transition: all 0.2s ease;
}

.module-item-link:hover .module-item {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.module-number {
  font-size: var(--text-base);
  font-weight: 600;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-content {
    flex-grow: 1;
}

.module-content h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--gray-900);
}

.module-content p {
  color: var(--gray-600);
  font-size: var(--text-base);
  margin: 0;
}

.module-duration {
  margin-left: auto;
  font-size: var(--text-sm);
  color: var(--gray-500);
  font-weight: 500;
  white-space: nowrap;
  padding-left: var(--space-4);
}

.course-outcomes, .course-requirements {
  background: var(--white);
}

.course-requirements {
    background: var(--gray-50);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4) var(--space-6);
  max-width: 900px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.outcome-item i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 4px;
}

.outcome-item span {
  color: var(--gray-700);
  line-height: 1.6;
  font-size: var(--text-base);
}

.course-audience {
  background: var(--white);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  max-width: 1000px;
  margin: 0 auto;
}

.audience-card {
  background: var(--gray-50);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-5px);
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}

.audience-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-bg);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.audience-icon i {
  font-size: 1.8rem;
  color: var(--primary);
}

.audience-card h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.audience-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

.course-author {
  background: var(--gray-50);
}

.course-author p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--gray-700);
    text-align: center;
}

.course-cta-final {
  background: var(--gray-900);
  padding: var(--space-16) 0;
  text-align: center;
  color: var(--white);
  border-radius: 24px;
  margin: var(--space-10) auto;
  max-width: 1200px;
}

.cta-final-content h3 {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--white);
}

.cta-final-content p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  color: var(--gray-300);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.course-cta-final .btn-primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.course-cta-final .btn-primary:hover {
    background: var(--gray-200);
    color: var(--primary-dark);
    border-color: var(--gray-200);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
  .course-hero {
    padding: var(--space-12) 0;
  }
  
  .course-hero-title {
    font-size: 2.2rem;
  }
  
  .course-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }
  
  .features-grid-course,
  .audience-grid,
  .outcomes-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom minimal progress bar */
.progress-custom {
  background: var(--gray-200);
  height: 8px;
  border-radius: .25rem;
  overflow: hidden;
}
.progress-custom .progress-bar {
  background: var(--primary);
  width: var(--progress);
  height: 100%;
  border: none;
}

/* Welcome Panel Styles */
.welcome-panel {



  background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
  position: relative;
  overflow: hidden;
}

.welcome-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #8b5cf6, #06b6d4);
  border-radius: 16px 16px 0 0;
}

.welcome-content {
  max-width: none;
  position: relative;
}

.welcome-title {
  color: var(--gray-900);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
}

.welcome-subtitle {
  color: var(--gray-600);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.welcome-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  transition: all 0.2s ease;
  position: relative;
}

.step-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -6px rgb(0 0 0 / 0.1);
  border-color: var(--primary-light);
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  color: var(--white);
  border-radius: 12px;
  flex-shrink: 0;
  font-size: 1.125rem;
  box-shadow: 0 4px 8px -2px rgb(var(--primary-rgb) / 0.3);
  transition: all 0.2s ease;
}

.step-item:hover .step-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 12px -2px rgb(var(--primary-rgb) / 0.4);
}

.step-content {
  flex: 1;
  padding-top: 0.25rem;
}

.step-content strong {
  display: block;
  color: var(--gray-900);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
  line-height: 1.4;
}

.step-content small {
  color: var(--gray-600);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.welcome-note {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.note-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: var(--white);
  border-radius: 10px;
  flex-shrink: 0;
  font-size: 0.9375rem;
  box-shadow: 0 2px 4px -1px rgb(14 165 233 / 0.3);
}

.note-content {
  flex: 1;
}

.note-content strong {
  display: block;
  color: var(--gray-900);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
  line-height: 1.4;
}

.note-content p {
  color: var(--gray-700);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}

@media (min-width: 768px) {
  .welcome-steps {
    flex-direction: row;
    gap: 1rem;
  }
  
  .step-item {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
  }
  
  .step-icon {
    margin-bottom: 0.25rem;
  }
  
  .step-content {
    padding-top: 0;
  }
}

/* =============================================
   WELCOME PANEL - VERSION 1: CARD GRADIENT
   ============================================= */
.welcome-panel-v1 {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 25px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
}

.welcome-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.welcome-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  opacity: 0.3;
}

.welcome-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.welcome-hero-content {
  position: relative;
  z-index: 2;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

.welcome-main-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  color: var(--white);
  filter: brightness(1.1);
}

.welcome-main-subtitle {
  font-size: 1rem;
  opacity: 0.95;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
  color: var(--white);
  font-weight: 400;
}

.welcome-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 2rem;
}

.welcome-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-100);
  position: relative;
}

.welcome-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -4px rgb(0 0 0 / 0.15);
  border-color: var(--primary-light);
}

.welcome-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #374151;
  font-size: 2rem;
  background: transparent;
}

.welcome-card-icon::before {
  display: none;
}

.minimal-purple {
  color: #374151;
}

.minimal-blue {
  color: #374151;
}

.minimal-green {
  color: #374151;
}

.gradient-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-blue {
  background: linear-gradient(135deg, #2196F3 0%, #21CBF3 100%);
}

.gradient-green {
  background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
}

.welcome-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.welcome-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.welcome-footer {
  background: var(--gray-50);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--gray-100);
}

.welcome-footer-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.welcome-footer-text {
  flex: 1;
}

.welcome-footer-text strong {
  display: block;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.welcome-footer-text span {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .welcome-cards-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  
  .welcome-hero {
    padding: 2rem 1.5rem;
  }
  
  .welcome-main-title {
    font-size: 1.5rem;
  }
  
  .welcome-footer {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* =============================================
   AI HINTS AND PROMPTS
   ============================================= */
.ai-hint {
  border-bottom: 1px dashed var(--primary);
  cursor: help;
  color: inherit;
}

.ai-prompt-card {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.02));
  border: 1px solid var(--primary-bg);
  border-radius: 16px;
  padding: 1rem;
}
.ai-prompt-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}
.ai-prompt-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-prompt-title {
  font-weight: 700;
  color: var(--gray-900);
  flex: 1;
}
.ai-prompt-text {
  background: #0b1020;
  color: #e6edf3;
  border-radius: 12px;
  padding: .75rem .875rem;
  margin: 0 0 .5rem 0;
  font-family: 'Google Sans Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .9rem;
  white-space: pre-wrap;
}
.ai-prompt-note {
  background: var(--primary-bg);
  color: var(--gray-700);
  border: 1px dashed var(--primary-light);
  border-radius: 10px;
  padding: .5rem .75rem;
  font-size: .9rem;
  margin-bottom: .5rem;
}
.ai-prompt-tags { display: flex; gap: .5rem; flex-wrap: wrap; }

/* =============================================
   AUTH BUTTONS STYLES
   ============================================= */
.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--white);
  color: var(--gray-800);
  border: 2px solid var(--gray-200);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--text-lg);
  transition: all 0.2s ease;
  min-width: 240px;
  justify-content: center;
}

.btn-cta-secondary:hover {
  color: var(--gray-900);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

.btn-register-link {
  color: var(--gray-600);
  text-decoration: none;
  font-size: var(--text-sm);
  margin-top: 0.5rem;
}

.btn-register-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .auth-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
  .btn-register-link { margin-top: 0; }
}