/* ==========================================
   MODERN CSS VARIABLES (Design Tokens v2)
   ========================================== */
:root {
  /* Primary palette - refined */
  --bg: #f0f4ff;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #ffffff;
  --muted: #6b7280;
  --text: #0b1120;
  --text-secondary: #374151;

  /* Vibrant gradient colors */
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --primary-glow: rgba(79, 70, 229, 0.25);
  --secondary: #ec4899;
  --secondary-dark: #db2777;
  --secondary-light: #f472b6;
  --secondary-glow: rgba(236, 72, 153, 0.2);
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.2);

  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);

  /* Semantic colors */
  --border-color: rgba(31, 41, 55, 0.06);
  --border-light: rgba(255, 255, 255, 0.15);
  --hover-overlay: rgba(79, 70, 229, 0.06);
  --focus-ring: rgba(79, 70, 229, 0.25);

  /* Spacing & sizing */
  --gap-xs: 0.4rem;
  --gap-sm: 0.8rem;
  --gap: 1.2rem;
  --gap-lg: 1.6rem;
  --gap-xl: 2.4rem;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --card-padding: 1.5rem;

  /* Typography */
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --base-size: 14px;
  --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: 2rem;
  --text-4xl: 2.5rem;
  --line-height: 1.6;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(79, 70, 229, 0.10);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index layers */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 5040;
  --z-popover: 5050;
  --z-tooltip: 5060;
  --z-toast: 5070;
}

/* ==========================================
   BASE STYLES & RESETS
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

html,
body {
  user-select: none;
  overflow-x: auto;
  overflow-y: auto;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: var(--base-size);
  line-height: var(--line-height);
  margin: 0;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 10% 20%, rgba(79, 70, 229, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(236, 72, 153, 0.04) 0%, transparent 50%);
  min-height: 100vh;
}

/* Allow selection where expected */
.content,
.card,
input,
textarea,
select {
  user-select: text;
}

/* Focus states */
*:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================
   LAYOUT & CONTAINERS
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

.content {
  margin-left: 0;
  padding: 2rem;
  transition: var(--transition-slow) ease;
  font-size: var(--text-sm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ==========================================
   GLASSMORPHISM COMPONENTS
   ========================================== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ==========================================
   NAVIGATION COMPONENTS - MODERN
   ========================================== */
.site-header {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-list {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

#nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

/* NAV BUTTON - modern */
#navcontrol {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  cursor: pointer;
}

#navcontrol:hover {
  background: var(--hover-overlay);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
}

/* Nav links - modern */
.nav-list .nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: var(--transition-fast);
  font-size: var(--text-sm);
}

.nav-list .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: var(--transition-base);
  border-radius: 2px;
}

.nav-list .nav-link:hover {
  color: var(--text);
}

.nav-list .nav-link:hover::after {
  width: 100%;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--text-lg);
}

.brand-name {
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-name span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* MOBILE: slide-in */
@media (max-width: 900px) {
  #nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 28px 30px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  #nav[data-state="visible"] {
    transform: translateX(0);
  }

  #navcontrol {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: stretch;
  }

  .nav-list .nav-link {
    font-size: 1.1rem;
    padding: 12px 8px;
    display: block;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
  }

  .nav-list .nav-link:hover {
    background: var(--hover-overlay);
  }

  .nav-list .nav-link::after {
    display: none;
  }
}

/* ==========================================
   BUTTONS - MODERN
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.4;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  box-shadow: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn[disabled],
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary with gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--primary-glow);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  box-shadow: 0 4px 16px var(--secondary-glow);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--secondary-glow);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1f2937;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--hover-overlay);
  color: var(--text);
}

/* Sizes */
.btn-sm {
  padding: 0.3rem 0.8rem;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.8rem 1.8rem;
  font-size: var(--text-lg);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  justify-content: center;
}

/* ==========================================
   HERO SECTION - MODERN
   ========================================== */
.hero {
  display: flex;
  align-items: center;
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
  min-height: 70vh;
}

.hero-image {
  flex: 1;
  max-width: 50%;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero .text {
  flex: 1;
}

.hero .badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  color: var(--primary);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--muted);
  max-width: 500px;
}

.cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding: 2rem 1rem;
  }

  .hero-image {
    max-width: 100%;
    order: -1;
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .hero p {
    max-width: 100%;
  }

  .cta {
    justify-content: center;
  }
}

/* ==========================================
   FEATURES SECTION - MODERN
   ========================================== */
.features {
  padding: 5rem 1rem;
  background: var(--surface-solid);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.section-title {
  text-align: center;
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: var(--text-lg);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition-base);
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature:hover::before {
  opacity: 1;
}

.feature .icon {
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  color: var(--primary);
  font-size: 1.8rem;
  transition: var(--transition-base);
}

.feature:hover .icon {
  transform: scale(1.05) rotate(-3deg);
}

.feature h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.feature p {
  color: var(--muted);
  line-height: 1.7;
  font-size: var(--text-sm);
}

/* ==========================================
   ADMISSIONS SECTION - MODERN
   ========================================== */
.admissions {
  padding: 5rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.admissions::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--secondary-glow), transparent 70%);
  border-radius: 50%;
  opacity: 0.3;
  pointer-events: none;
}

.admissions::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  border-radius: 50%;
  opacity: 0.2;
  pointer-events: none;
}

.admissions .section-title {
  position: relative;
  z-index: 1;
}

.admissions p {
  font-size: var(--text-lg);
  margin-bottom: 2rem;
  color: var(--muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.admissions .btn {
  position: relative;
  z-index: 1;
}

.wave {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 2rem;
}

/* ==========================================
   ABOUT SECTION - MODERN
   ========================================== */
.about {
  padding: 5rem 1rem;
  text-align: center;
  background: var(--surface-solid);
}

.about .section-title {
  margin-bottom: 0.5rem;
}

.about p {
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--muted);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   SIGNUP SECTION - MODERN
   ========================================== */
.signup {
  padding: 5rem 1rem;
  background: var(--bg);
}

.signup-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.signup-card {
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition-bounce);
  border: 1px solid var(--border-color);
  position: relative;
}

.signup-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.signup-card .price {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text);
  margin: 1rem 0 0.5rem;
}

.signup-card .price span {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--muted);
}

.signup-card .feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.signup-card .feature-list li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
}

.signup-card .feature-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

.signup-card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.signup-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: var(--text-sm);
}

/* ==========================================
   CTA SECTION - MODERN
   ========================================== */
.cta-section {
  padding: 5rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: var(--text-lg);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.cta-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   FOOTER - MODERN
   ========================================== */
footer {
  background: #0b1120;
  color: #f9fafb;
  padding: 60px 0 20px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.footer-column h3 {
  font-size: var(--text-lg);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
  color: #fff;
  font-weight: 600;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

.footer-column p {
  margin-bottom: 16px;
  opacity: 0.7;
  font-size: var(--text-sm);
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: var(--accent-light);
  transform: translateX(5px);
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #9ca3af;
  font-size: var(--text-sm);
}

.contact-info i {
  color: var(--accent);
  margin-top: 4px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: #f9fafb;
  transition: var(--transition-base);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: translateY(-3px);
  border-color: transparent;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: var(--text-sm);
  color: #6b7280;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================
   LOGIN OVERLAY - MODERN
   ========================================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.overlay-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.92) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.overlay.show .overlay-panel {
  transform: scale(1) translateY(0);
}

.overlay-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.overlay-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.overlay-content {
  text-align: center;
}

.overlay-logo {
  margin-bottom: 1rem;
  display: inline-block;
}

.overlay-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.overlay-sub {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 2rem;
}

.overlay-form {
  text-align: left;
}

.field {
  display: block;
  margin-bottom: 1.25rem;
}

.label-text {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--text);
  font-size: var(--text-sm);
}

.field input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: var(--text-base);
  transition: all var(--transition-base);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
  outline: none;
  background: white;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 68%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.forgot {
  color: var(--primary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}

.forgot:hover {
  text-decoration: underline;
}

.divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.divider span {
  background: rgba(255, 255, 255, 0.9);
  padding: 0 1rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

.signup-row {
  text-align: center;
  margin-bottom: 1.5rem;
}

.muted {
  color: var(--muted);
}

.muted-center {
  text-align: center;
  color: var(--muted);
  font-size: var(--text-sm);
}

.small {
  font-size: var(--text-sm);
}

.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.d-none {
  display: none !important;
}

.overlay-open {
  overflow: hidden;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ==========================================
   UTILITY CLASSES - MODERN
   ========================================== */
.shadow {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.text-dark {
  color: var(--text) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.bg-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
}

.bg-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)) !important;
}

.bg-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
}

.bg-warning-subtle {
  background: rgba(245, 158, 11, 0.08) !important;
}

.bg-danger-subtle {
  background: rgba(239, 68, 68, 0.08) !important;
}

.bg-success-subtle {
  background: rgba(16, 185, 129, 0.08) !important;
}

.d-flex {
  display: flex !important;
}

.align-items-center {
  align-items: center !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.h5 {
  font-size: var(--text-xl) !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.m-0 {
  margin: 0 !important;
}

.p-2 {
  padding: 0.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.px-3 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.pt-5 {
  padding-top: 3rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.ps-5 {
  padding-left: 3rem !important;
}

.w-100 {
  width: 100% !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.text-center {
  text-align: center !important;
}

.rounded-full {
  border-radius: 9999px !important;
}

.display-6 {
  font-size: var(--text-2xl) !important;
}

.fw-light {
  font-weight: 300 !important;
}

.container-fluid {
  width: 100%;
  padding-right: var(--gap-lg);
  padding-left: var(--gap-lg);
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--gap) * -0.5);
  margin-left: calc(var(--gap) * -0.5);
}

.col-sm-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.col-sm-10 {
  flex: 0 0 83.333333%;
  max-width: 83.333333%;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (max-width: 576px) {
  .col-sm-4,
  .col-sm-10 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}