:root {
  /* Enhanced Color System */
  --brand-950: #0a0f24;
  --brand-900: #0f1729;
  --brand-800: #1a2744;
  --brand-700: #1e3a8a;
  --brand-600: #2563eb;
  --brand-500: #3b82f6;
  --brand-400: #60a5fa;
  --brand-300: #93c5fd;
  --brand-200: #dbeafe;
  --brand-100: #eff6ff;
  
  --accent-500: #06b6d4;
  --accent-400: #22d3ee;
  --accent-300: #67e8f9;
  
  --success-500: #10b981;
  --success-400: #34d399;
  --warning-500: #f59e0b;
  --warning-400: #fbbf24;
  --error-500: #ef4444;
  --error-400: #f87171;
  
  --neutral-950: #030712;
  --neutral-900: #0f172a;
  --neutral-800: #1e293b;
  --neutral-700: #334155;
  --neutral-600: #475569;
  --neutral-500: #64748b;
  --neutral-400: #94a3b8;
  --neutral-300: #cbd5e1;
  --neutral-200: #e2e8f0;
  --neutral-100: #f1f5f9;
  --neutral-50: #f8fafc;
  --white: #ffffff;
  
  /* Enhanced Surfaces */
  --surface-primary: rgba(255, 255, 255, 0.95);
  --surface-secondary: rgba(255, 255, 255, 0.85);
  --surface-tertiary: rgba(255, 255, 255, 0.7);
  --surface-blur: rgba(255, 255, 255, 0.5);
  --surface-overlay: rgba(15, 23, 42, 0.05);
  
  /* Elevation System */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 8px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.16), 0 8px 16px rgba(15, 23, 42, 0.1);
  --shadow-2xl: 0 32px 64px rgba(15, 23, 42, 0.2), 0 12px 24px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 0 0 1px rgba(59, 130, 246, 0.1), 0 8px 32px rgba(59, 130, 246, 0.25);
  --shadow-glow-lg: 0 0 0 1px rgba(59, 130, 246, 0.15), 0 16px 48px rgba(59, 130, 246, 0.35);
  
  /* Spacing Scale */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */
  
  /* Border Radius */
  --radius-xs: 0.25rem;  /* 4px */
  --radius-sm: 0.5rem;   /* 8px */
  --radius-md: 0.75rem;  /* 12px */
  --radius-lg: 1rem;     /* 16px */
  --radius-xl: 1.25rem;  /* 20px */
  --radius-2xl: 1.5rem;  /* 24px */
  --radius-3xl: 2rem;    /* 32px */
  --radius-full: 9999px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  --letter-spacing-widest: 0.1em;
  
  /* Transitions */
  --transition-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --motion-duration-base: 0.3s;
  --motion-duration-fast: 0.22s;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  
  /* Z-index Scale */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-fixed: 1200;
  --z-modal-backdrop: 1300;
  --z-modal: 1400;
  --z-popover: 1500;
  --z-tooltip: 1600;
  --z-toast: 1700;
  
  /* Backdrop Filters */
  --blur-sm: blur(4px);
  --blur-md: blur(8px);
  --blur-lg: blur(16px);
  --blur-xl: blur(24px);
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--neutral-900);
  background: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.app-shell {
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 10% 40%, rgba(6, 182, 212, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 90% 60%, rgba(99, 102, 241, 0.08), transparent);
  z-index: -2;
  animation: ambient-shift 20s ease-in-out infinite;
}

@keyframes ambient-shift {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  33% { opacity: 0.8; transform: scale(1.05) rotate(1deg); }
  66% { opacity: 0.9; transform: scale(0.98) rotate(-1deg); }
}

body.home-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/assets/images/7ER9uKtYDFNYr6jhjiSqS.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
  filter: blur(0.5px) saturate(1.2);
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  top: -100vh;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-500);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: top var(--transition);
  z-index: 999;
}

.skip-link:focus {
  top: 16px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.section-heading {
  display: grid;
  gap: var(--space-4);
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
  animation: fade-in-up var(--motion-duration-base) var(--motion-ease) backwards;
}

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

.site-main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: block;
}

.section-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--brand-600);
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading h2,
.section-heading h1 {
  margin: 0;
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--brand-950);
  background: linear-gradient(135deg, var(--brand-950) 0%, var(--brand-800) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading p {
  margin: 0;
  color: var(--neutral-600);
  font-size: var(--text-lg);
  line-height: var(--line-height-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  padding: var(--space-4) 0;
  backdrop-filter: var(--blur-xl) saturate(180%);
  background: rgba(10, 15, 36, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: all var(--transition-base);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    rgba(59, 130, 246, 0.1) 0%,
    transparent 20%,
    transparent 80%,
    rgba(6, 182, 212, 0.08) 100%
  );
  opacity: 0.6;
}

.site-header .container.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--white);
  text-transform: uppercase;
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 44px;
  filter: drop-shadow(0 8px 16px rgba(59, 130, 246, 0.4));
  transition: filter var(--transition-base);
}

.logo:hover img {
  filter: drop-shadow(0 12px 24px rgba(59, 130, 246, 0.6));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}

.main-nav__primary,
.main-nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav__locale {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: var(--space-2) var(--space-1);
  transition: all var(--transition-base);
  letter-spacing: var(--letter-spacing-wide);
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent,
    var(--accent-400) 20%,
    var(--brand-500) 50%,
    var(--accent-400) 80%,
    transparent
  );
  border-radius: var(--radius-full);
  opacity: 0;
  transform: translateY(4px) scaleX(0.8);
  transition: all var(--transition-base);
}

.nav-link:hover::before,
.nav-link:focus-visible::before {
  opacity: 1;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0) scaleX(1);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  transition: var(--transition);
  padding: 10px 22px;
}

.nav-action--ghost {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.nav-action--ghost:hover,
.nav-action--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.nav-action--solid {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500), var(--accent-500));
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.nav-action--solid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.nav-action--solid:hover::before,
.nav-action--solid:focus-visible::before {
  opacity: 1;
}

.nav-action--solid:hover,
.nav-action--solid:focus-visible {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-glow-lg);
  background-position: 100% 0%;
}

.w-100 {
  width: 100%;
}

.card {
  background: var(--surface-primary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  backdrop-filter: var(--blur-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.03), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

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

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-base);
  font-size: 1rem;
  line-height: 1;
  padding: 14px 28px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
}

.primary-btn {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-500) 50%, var(--accent-500) 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: var(--white);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.primary-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.primary-btn:hover::before {
  opacity: 1;
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-glow-lg);
  background-position: 100% 0%;
}

.primary-btn:active {
  transform: translateY(0) scale(0.98);
}

.secondary-btn {
  background: var(--white);
  color: var(--brand-800);
  border: 1.5px solid var(--neutral-300);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.secondary-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(6, 182, 212, 0.05));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.secondary-btn:hover::before {
  opacity: 1;
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
  border-color: var(--brand-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.secondary-btn:active {
  transform: translateY(0);
}

.link {
  color: var(--brand-500);
  font-weight: 600;
  transition: color var(--transition);
}

.link:hover,
.link:focus-visible {
  color: var(--brand-400);
  text-decoration: underline;
}

.link.subtle {
  font-weight: 500;
  color: rgba(37, 99, 235, 0.8);
}

.auth-wrapper {
  padding: clamp(48px, 8vw, 96px) 0;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(560px, 100%);
  display: grid;
  gap: 24px;
}

.auth-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--neutral-500);
}

.auth-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.auth-form {
  display: grid;
  gap: 20px;
}

.form-helper {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  margin: -8px 0 var(--space-3);
}

.form-helper .link {
  color: var(--accent-400);
  font-weight: var(--font-weight-semibold);
}

.legal-link {
  text-align: left;
}

.legal-link .link {
  margin-inline-start: 6px;
}

.form-group {
  display: grid;
  gap: var(--space-3);
  position: relative;
}

.form-group label {
  font-weight: var(--font-weight-semibold);
  color: var(--neutral-800);
  font-size: var(--text-sm);
  letter-spacing: var(--letter-spacing-wide);
  transition: color var(--transition-fast);
}

.form-group input,
.form-group textarea,
.form-group select {
  border-radius: var(--radius-lg);
  border: 2px solid var(--neutral-300);
  padding: var(--space-4);
  font-size: var(--text-base);
  font-family: inherit;
  background: var(--white);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: var(--brand-400);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 
    var(--shadow-md),
    0 0 0 4px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}

.form-group input:focus + label,
.form-group textarea:focus + label {
  color: var(--brand-600);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--neutral-400);
  transition: color var(--transition-fast);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  color: var(--neutral-500);
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.form-label-row .link.subtle {
  font-size: 0.9rem;
  color: var(--brand-500);
}

.form-helpers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--neutral-500);
}

.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-group.checkbox input[type="checkbox"],
.form-group.checkbox input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-600);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.form-group.checkbox input[type="checkbox"]:hover,
.form-group.checkbox input[type="radio"]:hover {
  transform: scale(1.1);
}

.form-group.checkbox input[type="checkbox"]:checked,
.form-group.checkbox input[type="radio"]:checked {
  transform: scale(1.15);
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.alert {
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  line-height: var(--line-height-relaxed);
  display: grid;
  gap: var(--space-2);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  animation: slide-in-right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.alert::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: currentColor;
  opacity: 0.6;
}

.alert--info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--brand-800);
}

.alert--success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #065f46;
}

.alert--warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #78350f;
}

.alert--error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #7f1d1d;
}

.alert ul {
  margin: 0;
  padding-left: 18px;
}

.divider {
  position: relative;
  text-align: center;
  color: var(--neutral-500);
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.divider span {
  padding: 0 12px;
  background: transparent;
}

.auth-alt-actions {
  display: grid;
  gap: 12px;
}

.nav-account {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: var(--blur-md);
  color: var(--white);
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: var(--space-2) var(--space-4);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
}

.account-trigger:hover,
.account-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  color: var(--white);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.account-menu {
  position: absolute;
  top: calc(100% + var(--space-3));
  right: 0;
  min-width: 240px;
  background: rgba(10, 15, 36, 0.96);
  backdrop-filter: var(--blur-xl) saturate(180%);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  box-shadow: 
    var(--shadow-2xl),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: var(--space-3);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px) scale(0.95);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.nav-account[data-open="true"] .account-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.account-menu a,
.account-menu button {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-3) var(--space-4);
  font: inherit;
  cursor: pointer;
  justify-content: flex-start;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  font-weight: var(--font-weight-medium);
}

.account-menu a:hover,
.account-menu button:hover,
.account-menu a:focus-visible,
.account-menu button:focus-visible {
  color: var(--white);
  background: rgba(59, 130, 246, 0.25);
  transform: translateX(4px);
}

.account-menu form {
  margin: 0;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  color: var(--neutral-900);
}

.admin-sidebar {
  background: linear-gradient(180deg, rgba(10, 15, 36, 0.98), rgba(15, 23, 42, 0.96));
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: var(--space-10) var(--space-6);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-xl);
}

.admin-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(6, 182, 212, 0.1), transparent 50%);
  opacity: 0.6;
}

.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-sidebar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--brand-400), var(--brand-500));
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.admin-sidebar__brand strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.admin-sidebar__brand small {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.64);
}

.admin-sidebar__nav {
  display: grid;
  gap: 12px;
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-base);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-base);
  letter-spacing: var(--letter-spacing-wide);
  position: relative;
  overflow: hidden;
}

.admin-sidebar__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-400), var(--accent-500));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.admin-sidebar__link:hover,
.admin-sidebar__link:focus-visible {
  color: var(--white);
  background: rgba(59, 130, 246, 0.2);
  transform: translateX(4px);
}

.admin-sidebar__link:hover::before,
.admin-sidebar__link:focus-visible::before {
  opacity: 1;
}

.admin-sidebar__link.is-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(6, 182, 212, 0.85));
  color: var(--white);
  box-shadow: 
    var(--shadow-lg),
    0 0 24px rgba(59, 130, 246, 0.4);
  transform: translateX(4px);
}

.admin-sidebar__link.is-active::before {
  opacity: 1;
  width: 6px;
}

.admin-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(16px);
}

.admin-toolbar__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.admin-toolbar__toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--neutral-700);
}

.admin-toolbar__info {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.admin-toolbar__avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--brand-400), var(--brand-500));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.3);
}

.admin-toolbar__user {
  display: grid;
  gap: 4px;
}

.admin-toolbar__user strong {
  font-size: 1rem;
  margin: 0;
}

.admin-toolbar__user small {
  font-size: 0.85rem;
  color: var(--neutral-500);
}

.admin-toolbar__logout {
  padding: 10px 20px;
}

.admin-main {
  padding: 36px;
  flex: 1 1 auto;
  display: grid;
  gap: 32px;
}

.admin-section__header {
  display: grid;
  gap: 12px;
}

.admin-section__header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--brand-900);
}

.admin-section__header p {
  margin: 0;
  color: var(--neutral-500);
  max-width: 620px;
}

.admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-filter-bar {
  display: inline-flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-filter-bar label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--neutral-500);
}

.admin-filter-bar input[type="search"] {
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 12px 16px;
  min-width: 240px;
  background: var(--white);
  font-size: 1rem;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.admin-metric-card {
  background: var(--surface-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-3);
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(59, 130, 246, 0.12);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.admin-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.admin-metric-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px) scale(1.02);
}

.admin-metric-card:hover::before {
  opacity: 1;
}

.admin-metric-card__label {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
}

.admin-metric-card__value {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: var(--line-height-tight);
}

.admin-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.admin-panel {
  background: var(--surface-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-6) var(--space-6);
  display: grid;
  gap: var(--space-5);
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(59, 130, 246, 0.1);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.admin-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.admin-panel:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.admin-panel:hover::before {
  opacity: 1;
}

.admin-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-panel__header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--brand-900);
}

.admin-panel__empty {
  margin: 0;
  color: var(--neutral-500);
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.admin-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.98rem;
  color: var(--brand-900);
}

.admin-list span {
  color: var(--neutral-500);
  font-size: 0.9rem;
}

.admin-list__meta {
  font-size: 0.85rem;
  color: var(--neutral-500);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-badge--draft {
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
}

.admin-badge--scheduled {
  background: rgba(250, 204, 21, 0.22);
  color: #92400e;
}

.admin-badge--published {
  background: rgba(34, 197, 94, 0.18);
  color: #166534;
}

.admin-badge--outline {
  border: 1px solid rgba(37, 99, 235, 0.32);
  color: var(--brand-500);
  background: rgba(37, 99, 235, 0.08);
}

.admin-badge--success {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.admin-badge--muted {
  background: rgba(148, 163, 184, 0.16);
  color: #475569;
}

.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  background: var(--surface-primary);
  border: 2px solid rgba(59, 130, 246, 0.12);
  margin-bottom: var(--space-6);
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.admin-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-table th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-widest);
  color: var(--brand-800);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(6, 182, 212, 0.08));
  font-weight: var(--font-weight-bold);
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.admin-table tbody tr {
  transition: all var(--transition-fast);
}

.admin-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.06);
}

.admin-table__empty {
  text-align: center;
  color: var(--neutral-500);
  padding: 36px 0;
}

.admin-table__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.admin-table__actions form {
  margin: 0;
}

.admin-table__actions .danger {
  color: #dc2626;
}

.admin-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--neutral-300);
  background: var(--white);
  color: var(--neutral-700);
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.admin-pagination__link:hover,
.admin-pagination__link:focus-visible {
  border-color: var(--brand-500);
  color: var(--brand-600);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.admin-pagination__link.is-active {
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

.admin-form {
  display: grid;
  gap: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.admin-form__group {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--neutral-500);
}

.admin-form__group input,
.admin-form__group select {
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 12px 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.admin-form__group input:focus,
.admin-form__group select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--neutral-600);
}

.admin-switch input[type="checkbox"] {
  width: 48px;
  height: 24px;
  accent-color: var(--brand-500);
}

.admin-form__actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.admin-status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-status-list li:last-child {
  border-bottom: none;
}

.admin-status-list strong {
  font-size: 1.05rem;
  color: var(--brand-900);
}

@media (max-width: 1200px) {
  .admin-metrics {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 1024px) {
  .admin-panels {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-110%);
    transition: transform var(--transition);
    width: min(80vw, 280px);
    box-shadow: 0 24px 48px rgba(12, 22, 51, 0.4);
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-toolbar__toggle {
    display: inline-flex;
  }

  .admin-main {
    padding: 24px;
  }
}

@media (max-width: 720px) {
  .admin-toolbar__info {
    gap: 12px;
  }

  .admin-toolbar__logout {
    padding: 8px 16px;
  }

  .admin-metrics {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .admin-filter-bar {
    align-items: stretch;
  }

  .admin-form {
    padding: 24px 20px;
  }
}

@media (max-width: 600px) {
  .admin-panel,
  .admin-form,
  .admin-metric-card {
    padding: var(--space-4);
  }

  .admin-toolbar__avatar {
    width: 36px;
    height: 36px;
  }

  .admin-toolbar__user strong {
    font-size: var(--text-sm);
  }

  .admin-table {
    font-size: 0.85rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 8px;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

.account-email {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  padding: 0 var(--space-4);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: var(--letter-spacing-wide);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: var(--blur-md);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  border: 1.2px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-base);
  min-height: 38px;
  flex-wrap: nowrap;
}

.language-switcher:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.language-switcher__label {
  font-size: var(--text-xs);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--font-weight-medium);
}

.language-switcher__options {
  display: inline-flex;
  gap: var(--space-2);
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.lang-btn {
  border: 1.2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
  font-size: 0.72rem;
  letter-spacing: var(--letter-spacing-wide);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.lang-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(6, 182, 212, 0.3));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.lang-btn:hover::before {
  opacity: 1;
}

.lang-btn[data-active="true"],
.lang-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.lang-btn:hover,
.lang-btn:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--blur-md);
  cursor: pointer;
  position: relative;
  padding: 0;
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  transition: all var(--transition-base);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle__icon {
  display: block;
  font-size: 20px;
  line-height: 1;
  transition: transform var(--transition-base);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
  transform: rotate(90deg);
}

.menu-toggle__bar {
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 4px 0;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.hero {
  padding: clamp(80px, 15vh, 140px) 0 clamp(60px, 10vh, 100px);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -50% -30%;
  background: 
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(59, 130, 246, 0.15), transparent 50%),
    radial-gradient(ellipse 80% 40% at 20% 50%, rgba(6, 182, 212, 0.1), transparent 60%),
    radial-gradient(ellipse 80% 40% at 80% 50%, rgba(99, 102, 241, 0.08), transparent 60%);
  pointer-events: none;
  animation: hero-ambient 15s ease-in-out infinite;
}

@keyframes hero-ambient {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  50% { transform: translate(-2%, 2%) scale(1.03); opacity: 0.85; }
}

.hero .container {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--space-8);
  z-index: 1;
}

.hero .section-heading {
  animation-delay: 0.1s;
}

.hero h1 {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  max-width: 900px;
  margin: 0;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  background: linear-gradient(135deg, var(--brand-950) 0%, var(--brand-700) 50%, var(--brand-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.hero p {
  font-size: var(--text-xl);
  color: var(--neutral-600);
  max-width: 700px;
  margin: 0;
  line-height: var(--line-height-relaxed);
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}

.cta.primary-btn {
  padding: 14px 32px;
}

.cta.secondary-btn {
  border-width: 2px;
  padding: 13px 28px;
  color: var(--brand-900);
  border-color: rgba(17, 31, 69, 0.12);
  background: var(--surface);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards;
}

.feature-card {
  position: relative;
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  background: var(--surface-primary);
  backdrop-filter: var(--blur-lg);
  box-shadow: var(--shadow-lg);
  border: 1.5px solid rgba(59, 130, 246, 0.1);
  display: grid;
  gap: var(--space-4);
  transition: all var(--transition-base);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(6, 182, 212, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover::before,
.feature-card:hover::after {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: rgba(59, 130, 246, 0.25);
}

.feature-card h3 {
  margin: 0;
  color: var(--brand-900);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-tight);
}

.feature-card p {
  margin: 0;
  color: var(--neutral-600);
  line-height: var(--line-height-relaxed);
  font-size: var(--text-base);
}

.tests-section {
  padding: clamp(60px, 10vh, 100px) 0;
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-8);
}

.test-box {
  position: relative;
  min-height: 320px;
  padding: var(--space-8);
  border-radius: var(--radius-3xl);
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: grid;
  align-content: flex-end;
  gap: var(--space-4);
  box-shadow: var(--shadow-2xl);
  transition: all var(--transition-base);
  cursor: pointer;
}

.test-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(10, 15, 36, 0.92) 0%,
    rgba(15, 23, 42, 0.7) 40%,
    rgba(59, 130, 246, 0.5) 100%
  );
  transition: all var(--transition-base);
  opacity: 0.95;
}

.test-box::after {
  content: '';
  position: absolute;
  inset: var(--space-4);
  border-radius: var(--radius-2xl);
  border: 2px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: all var(--transition-base);
}

.test-box > * {
  position: relative;
  z-index: 1;
}

.test-box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    var(--shadow-2xl),
    0 0 0 1px rgba(59, 130, 246, 0.3),
    0 0 40px rgba(59, 130, 246, 0.2);
}

.test-box:hover::before {
  opacity: 0.85;
  background: linear-gradient(
    165deg,
    rgba(10, 15, 36, 0.88) 0%,
    rgba(15, 23, 42, 0.6) 40%,
    rgba(59, 130, 246, 0.6) 100%
  );
}

.test-box:hover::after {
  opacity: 1;
  inset: var(--space-3);
}

.test-box .icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.test-box h2 {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-tight);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.test-box p {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.test-box .meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  font-weight: var(--font-weight-medium);
}

.test-box .meta::before {
  content: '';
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
}

.test-box .cta-link {
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--transition-base);
}

.test-box .cta-link::after {
  content: '→';
  transition: transform var(--transition-base);
}

.test-box:hover .cta-link {
  gap: var(--space-3);
}

.test-box:hover .cta-link::after {
  transform: translateX(4px);
}

.test1 { background-image: url('../images/tests/Test1.jpg'); }
.test2 { background-image: url('../images/tests/Test2.png'); }
.test3 { background-image: url('../images/tests/test3.jpg'); }
.test4 { background-image: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1920&q=80'); }
.test5 { background-image: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1920&q=80'); }
.test6 { background-image: url('https://images.unsplash.com/photo-1496307653780-42ee777d4833?auto=format&fit=crop&w=1920&q=80'); }
.test7 { background-image: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1920&q=80'); }
.test8 { background-image: url('https://images.unsplash.com/photo-1489515217757-5fd1be406fef?auto=format&fit=crop&w=1920&q=80'); }
.test9 { background-image: url('https://images.unsplash.com/photo-1489659639091-8b687bc4386e?auto=format&fit=crop&w=1920&q=80'); }
.test10 { background-image: url('https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?auto=format&fit=crop&w=1920&q=80'); }
.test11 { background-image: url('https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&w=1920&q=80'); }
.test12 { background-image: url('https://images.unsplash.com/photo-1487014679447-9f8336841d58?auto=format&fit=crop&w=1920&q=80'); }
.test13 { background-image: url('https://images.unsplash.com/photo-1472289065668-ce650ac443d2?auto=format&fit=crop&w=1920&q=80'); }
.test14 { background-image: url('https://images.unsplash.com/photo-1544161515-4ab6ce6db874?auto=format&fit=crop&w=1920&q=80'); }
.test15 { background-image: url('https://images.unsplash.com/photo-1485988412941-77a35537dae4?auto=format&fit=crop&w=1920&q=80'); }

.page-hero.test1,
.page-hero.test2,
.page-hero.test3,
.page-hero.test4,
.page-hero.test5,
.page-hero.test6,
.page-hero.test7,
.page-hero.test8,
.page-hero.test9,
.page-hero.test10,
.page-hero.test11,
.page-hero.test12,
.page-hero.test13,
.page-hero.test14,
.page-hero.test15 {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0 48px;
  color: white;
}

.page-hero.test1::before,
.page-hero.test2::before,
.page-hero.test3::before,
.page-hero.test4::before,
.page-hero.test5::before,
.page-hero.test6::before,
.page-hero.test7::before,
.page-hero.test8::before,
.page-hero.test9::before,
.page-hero.test10::before,
.page-hero.test11::before,
.page-hero.test12::before,
.page-hero.test13::before,
.page-hero.test14::before,
.page-hero.test15::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 31, 69, 0.75), rgba(56, 189, 248, 0.4));
  z-index: 0;
}

.page-hero.test1 .section-heading,
.page-hero.test2 .section-heading,
.page-hero.test3 .section-heading,
.page-hero.test4 .section-heading,
.page-hero.test5 .section-heading,
.page-hero.test6 .section-heading,
.page-hero.test7 .section-heading,
.page-hero.test8 .section-heading,
.page-hero.test9 .section-heading,
.page-hero.test10 .section-heading,
.page-hero.test11 .section-heading,
.page-hero.test12 .section-heading,
.page-hero.test13 .section-heading,
.page-hero.test14 .section-heading,
.page-hero.test15 .section-heading {
  position: relative;
  z-index: 1;
}

.page-hero.test1 h1,
.page-hero.test2 h1,
.page-hero.test3 h1,
.page-hero.test4 h1,
.page-hero.test5 h1,
.page-hero.test6 h1,
.page-hero.test7 h1,
.page-hero.test8 h1,
.page-hero.test9 h1,
.page-hero.test10 h1,
.page-hero.test11 h1,
.page-hero.test12 h1,
.page-hero.test13 h1,
.page-hero.test14 h1,
.page-hero.test15 h1 {
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-hero.test1 p,
.page-hero.test2 p,
.page-hero.test3 p,
.page-hero.test4 p,
.page-hero.test5 p,
.page-hero.test6 p,
.page-hero.test7 p,
.page-hero.test8 p,
.page-hero.test9 p,
.page-hero.test10 p,
.page-hero.test11 p,
.page-hero.test12 p,
.page-hero.test13 p,
.page-hero.test14 p,
.page-hero.test15 p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.page-hero {
  padding: clamp(80px, 12vh, 120px) 0 clamp(40px, 6vh, 60px);
  text-align: center;
  display: grid;
  gap: var(--space-5);
  position: relative;
}

.page-hero h1 {
  margin: 0;
  color: var(--brand-950);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  background: linear-gradient(135deg, var(--brand-950), var(--brand-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  margin: 0 auto;
  max-width: 700px;
  color: var(--neutral-600);
  font-size: var(--text-lg);
  line-height: var(--line-height-relaxed);
}

.page-section {
  padding: var(--space-8) 0 clamp(80px, 12vh, 120px);
}

.legal-hero .section-heading {
  gap: var(--space-3);
}

.legal-hero .legal-updated {
  color: var(--neutral-500);
  font-size: var(--text-sm);
  margin-top: -8px;
}

.legal-wrapper {
  display: grid;
  gap: var(--space-8);
  padding-bottom: var(--space-16);
}

.legal-highlights {
  background: rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-md);
}

.legal-highlights h2 {
  margin: 0;
  color: var(--brand-900);
}

.legal-highlights ul {
  margin: var(--space-4) 0 0;
  padding-left: 20px;
  color: var(--neutral-700);
  line-height: 1.7;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.legal-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.legal-card h3 {
  margin: 0;
  font-size: var(--text-xl);
  color: var(--brand-900);
}

.legal-card p {
  margin: 0;
  color: var(--neutral-600);
}

.legal-card ul {
  margin: 0;
  padding-left: var(--space-5);
  color: var(--neutral-700);
  line-height: 1.7;
}

.legal-cta {
  background: linear-gradient(120deg, var(--brand-900), var(--brand-700));
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  color: var(--white);
  box-shadow: var(--shadow-xl);
}

.legal-cta p {
  margin: 0;
  max-width: 520px;
}

.legal-cta .primary-btn {
  width: auto;
  background: var(--white);
  color: var(--brand-800);
}

@media (max-width: 640px) {
  .legal-highlights,
  .legal-card {
    padding: var(--space-4);
  }

  .legal-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-cta .primary-btn {
    width: 100%;
  }
}

.two-column {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.two-column article {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.two-column h2 {
  margin-top: 0;
  color: var(--brand-900);
  font-size: 1.5rem;
}

.two-column p,
.two-column ul {
  margin: 0;
  color: var(--neutral-500);
  line-height: 1.75;
}

.two-column ul {
  padding-inline-start: 20px;
  display: grid;
  gap: 12px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
}

.contact-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.contact-details .contact-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 12px;
  color: var(--neutral-500);
}

.contact-details .contact-list a {
  color: inherit;
}

.contact-divider {
  height: 1px;
  background: rgba(37, 99, 235, 0.18);
  margin: 24px 0;
}

.contact-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand-900);
  font-size: 0.9rem;
  font-weight: 600;
}

.test-runner {
  display: grid;
  gap: var(--space-8);
}

.test-form {
  display: grid;
  gap: var(--space-6);
  max-width: 820px;
  margin: 0 auto;
}

.question-card {
  border-radius: var(--radius-2xl);
  border: 2px solid rgba(59, 130, 246, 0.15);
  background: var(--surface-primary);
  padding: var(--space-8);
  display: grid;
  gap: var(--space-5);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.question-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.question-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

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

.question-card.has-error {
  border-color: var(--error-500);
  box-shadow: 
    var(--shadow-lg),
    0 0 0 4px rgba(239, 68, 68, 0.15);
  animation: shake 0.4s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.question-card legend {
  font-weight: var(--font-weight-bold);
  padding: 0;
  margin: 0;
  color: var(--brand-950);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-lg);
  line-height: var(--line-height-snug);
  position: relative;
  z-index: 1;
}

.question-index {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: var(--white);
  font-weight: var(--font-weight-bold);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-glow);
}

.question-image img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  max-height: 260px;
}

.question-options {
  display: grid;
  gap: var(--space-3);
}

.option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-xl);
  border: 2px solid var(--neutral-300);
  transition: all var(--transition-base);
  background: var(--white);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 56px;
}

.option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(6, 182, 212, 0.05));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.option:hover {
  border-color: var(--brand-400);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.option:hover::before {
  opacity: 1;
}

.option:has(input:checked) {
  border-color: var(--brand-600);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(6, 182, 212, 0.08));
  box-shadow: 
    var(--shadow-md),
    0 0 0 1px var(--brand-500) inset;
  transform: translateX(8px) scale(1.02);
}

.option:has(input:checked)::before {
  opacity: 1;
}

.option input {
  width: 22px;
  height: 22px;
  accent-color: var(--brand-600);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-fast);
}

.option input:checked {
  transform: scale(1.2);
}

.option span {
  position: relative;
  z-index: 1;
  font-weight: var(--font-weight-medium);
  color: var(--neutral-800);
  transition: color var(--transition-fast);
}

.option:has(input:checked) span {
  color: var(--brand-900);
  font-weight: var(--font-weight-semibold);
}

.form-error {
  margin: 0;
  color: #dc2626;
  font-weight: 600;
}

.test-result {
  display: grid;
  gap: var(--space-8);
  animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.test-result__header {
  display: grid;
  gap: var(--space-4);
  text-align: center;
  padding: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 2px solid rgba(59, 130, 246, 0.15);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(6, 182, 212, 0.03));
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  position: relative;
  overflow: hidden;
}

.test-result__header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-600), var(--accent-500), var(--brand-600));
  background-size: 200% 100%;
  animation: gradient-shift 3s linear infinite;
}

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

.test-result__header h2 {
  margin: 0;
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: var(--font-weight-bold);
  color: var(--brand-950);
  animation: scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.test-result__percentage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s backwards;
}

.percentage-value {
  font-size: clamp(var(--text-5xl), 8vw, 4.5rem);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500), var(--accent-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: var(--letter-spacing-tight);
}

.percentage-label {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-widest);
  font-weight: var(--font-weight-semibold);
}

.test-result .result-band {
  color: var(--brand-600);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  font-size: var(--text-lg);
  margin: 0;
  padding: var(--space-2) var(--space-6);
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-full);
  display: inline-block;
  animation: scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s backwards;
}

.test-result__main {
  display: grid;
  gap: var(--space-5);
}

.test-result__main h3 {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--brand-900);
}

.test-result__text {
  font-size: var(--text-lg);
  line-height: var(--line-height-loose);
  color: var(--neutral-700);
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(6, 182, 212, 0.04));
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--brand-600);
  box-shadow: var(--shadow-sm);
}

.test-result__section {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--surface-primary);
  border-radius: var(--radius-2xl);
  border: 2px solid rgba(59, 130, 246, 0.12);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.test-result__section:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.test-result__section h3 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--brand-900);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.test-result__section h3::before {
  content: '';
  width: 6px;
  height: 24px;
  background: linear-gradient(180deg, var(--brand-600), var(--accent-500));
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.test-result__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.test-result__list li {
  padding: var(--space-4);
  background: rgba(59, 130, 246, 0.08);
  border-radius: var(--radius-lg);
  color: var(--neutral-800);
  line-height: var(--line-height-relaxed);
  position: relative;
  padding-left: var(--space-10);
  transition: all var(--transition-fast);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.test-result__list li:hover {
  background: rgba(59, 130, 246, 0.12);
  transform: translateX(4px);
}

.test-result__list li::before {
  content: '✓';
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-600);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-lg);
}

.test-result__actions {
  display: flex;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
}

form .form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

form label {
  font-weight: 600;
  color: var(--brand-900);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  border: 1px solid rgba(71, 85, 105, 0.22);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  background: rgba(255, 255, 255, 0.92);
}

input:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.55);
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-feedback {
  min-height: 24px;
  font-weight: 600;
  color: var(--neutral-500);
}

.btn,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.primary-btn {
  background: linear-gradient(120deg, var(--brand-400), var(--brand-500));
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  box-shadow: var(--shadow-glow);
}

.secondary-btn {
  background: var(--surface);
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  color: var(--brand-900);
  padding: 12px 26px;
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
  background: rgba(37, 99, 235, 0.08);
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand-400), var(--brand-500));
  color: var(--white);
  border-radius: 12px;
  padding: 10px 18px;
  border: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 35px rgba(37, 99, 235, 0.3);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.articles-grid .card {
  min-height: 220px;
}

.article-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
  color: var(--neutral-500);
}

.article-points li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.article-points li::before {
  content: '•';
  color: var(--brand-500);
  font-size: 1.2rem;
  line-height: 1;
}

.auth-wrapper {
  display: grid;
  place-items: center;
  padding: 96px 0 120px;
}

.auth-card {
  width: min(420px, 92vw);
  text-align: center;
  display: grid;
  gap: 16px;
}

.auth-card .section-heading {
  margin-bottom: 0;
}

.auth-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--neutral-500);
  text-align: left;
}

.auth-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-benefits li::before {
  content: '✔';
  color: var(--brand-500);
  font-size: 0.9rem;
}

.auth-card h1 {
  margin: 0;
  color: var(--brand-900);
}

.form-helpers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neutral-500);
}

.link {
  color: var(--brand-500);
  text-decoration: underline;
}

.checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neutral-500);
}

.auth-switch {
  margin-top: 12px;
  color: var(--neutral-500);
}

.tests-grid .page-header {
  margin-bottom: 24px;
}

.tests-grid .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.test-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  transition: transform var(--transition), box-shadow var(--transition);
}

.test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.test-card header h2 {
  margin: 0;
  color: var(--brand-900);
}

.test-card .desc {
  margin: 0;
  color: var(--neutral-500);
  line-height: 1.7;
}

.test-card .meta-lines {
  display: grid;
  gap: 6px;
}

.test-card .meta-line {
  margin: 0;
  color: var(--neutral-500);
}

.test-card footer {
  display: flex;
  justify-content: flex-end;
}

.empty {
  color: var(--neutral-500);
}

.site-footer {
  margin-top: var(--space-24);
  background: 
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.2), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15), transparent 50%),
    linear-gradient(135deg, #0a0f24 0%, #0f1729 50%, #1a2744 100%);
  color: rgba(255, 255, 255, 0.95);
  padding: clamp(60px, 8vh, 80px) 0 var(--space-6);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%),
    url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
  opacity: 0.5;
}

.site-footer .container {
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  align-items: start;
}

.footer-content .logo {
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}

.footer-content .logo img {
  height: 36px;
}

.footer-highlights {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links ul,
.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover,
.contact-info a:hover {
  color: rgba(56, 189, 248, 0.9);
}

.subscribe {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(8, 12, 28, 0.75);
  box-shadow: var(--shadow-xl);
  min-width: 0;
}

.subscribe__controls {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.subscribe__controls input {
  margin: 0;
  flex: 1;
}

.subscribe__controls button {
  width: auto;
  min-width: 140px;
}

.subscribe h3,
.contact-info h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1.05rem;
}

.subscribe p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.contact-info ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-info ul li a {
  color: inherit;
}

.support-hours {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1.15rem;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(12, 22, 51, 0.72);
  color: var(--white);
  margin: 0;
}

.site-footer button {
  width: 100%;
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  position: relative;
  z-index: 1;
}

body.rtl {
  direction: rtl;
  text-align: right;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Arial, sans-serif;
}

body.rtl .site-header .container,
body.rtl .hero-actions,
body.rtl .feature-cards,
body.rtl .tests-grid,
body.rtl .two-column {
  direction: rtl;
}

body.rtl .logo,
body.rtl .main-nav,
body.rtl .language-switcher,
body.rtl .form-actions {
  flex-direction: row-reverse;
}

body.rtl .lang-btn {
  letter-spacing: 0;
}

body.rtl .option,
body.rtl .question-card legend {
  direction: rtl;
}

body.rtl input,
body.rtl textarea {
  text-align: right;
}

body.rtl input[type="email"],
body.rtl input[type="password"],
body.rtl input[type="text"][dir="ltr"] {
  direction: ltr;
  text-align: left;
}

@media (max-width: 1080px) {
  .hero {
    padding: 100px 0 72px;
  }

  .site-header .container {
    gap: 18px;
  }
}

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 82px;
    background: rgba(12, 22, 51, 0.92);
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-md);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .main-nav[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

.main-nav[data-open="true"] .main-nav__primary,
.main-nav[data-open="true"] .main-nav__actions,
.main-nav[data-open="true"] .main-nav__locale {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

.site-header__brand {
  flex: 1;
}

.main-nav__primary,
.main-nav__actions {
    flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  }

.nav-link,
.nav-action {
  width: 100%;
  justify-content: flex-start;
}

.main-nav__actions {
    width: 100%;
  }

.main-nav__locale {
  align-self: stretch;
  justify-content: space-between;
  }

  body.rtl .language-switcher {
    margin-right: auto;
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 90px 0 60px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta.primary-btn,
  .cta.secondary-btn {
    width: 100%;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .two-column article {
    padding: 24px;
  }

  .page-hero {
    padding-top: 80px;
  }
}

@media (max-width: 540px) {
  .site-header .container {
    flex-wrap: wrap;
    gap: 12px;
}

  .language-switcher {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding: 0.3rem 0.6rem;
    gap: var(--space-2);
  }

  .language-switcher__label {
    display: none;
  }

  .language-switcher__options {
    width: 100%;
    justify-content: center;
    gap: var(--space-1);
  }

  .lang-btn {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.68rem;
    padding: 0.22rem 0.5rem;
  }

  .feature-card,
  .card,
  .question-card {
    padding: 24px;
  }

  .subscribe__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe__controls button {
    width: 100%;
  }

  .test-box {
    min-height: 240px;
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Test Form User Info */
.test-form__user-info {
  margin-top: 32px;
  padding: 24px;
  background: rgba(37, 99, 235, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.test-form__user-info h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: var(--brand-900);
}

.test-form__user-info-note {
  margin: 0 0 20px 0;
  font-size: 0.95rem;
  color: var(--neutral-500);
}

.test-form__user-info .form-group {
  margin-bottom: 16px;
}

.test-form__user-info label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--brand-900);
  font-size: 0.95rem;
}

.test-form__user-info .required {
  color: #dc2626;
}

.test-form__user-info .form-control {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: all var(--transition-base);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.test-form__user-info .form-control:hover {
  border-color: var(--brand-400);
}

.test-form__user-info .form-control:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 
    var(--shadow-md),
    0 0 0 4px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}

/* Consultation Form */
.test-result__consultation {
  margin-top: var(--space-10);
  padding: var(--space-8);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(6, 182, 212, 0.05));
  border-radius: var(--radius-2xl);
  border: 2px solid rgba(59, 130, 246, 0.2);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.test-result__consultation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--accent-500));
}

.test-result__consultation h3 {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--brand-900);
}

.test-result__consultation > p {
  margin: 0 0 var(--space-6) 0;
  color: var(--neutral-700);
  line-height: var(--line-height-relaxed);
  font-size: var(--text-base);
}

.consultation-form .form-group {
  margin-bottom: var(--space-5);
}

.consultation-form label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-semibold);
  color: var(--brand-900);
  font-size: var(--text-sm);
  letter-spacing: var(--letter-spacing-wide);
}

.consultation-form .form-control {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: all var(--transition-base);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.consultation-form .form-control:hover {
  border-color: var(--brand-400);
}

.consultation-form .form-control:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 
    var(--shadow-md),
    0 0 0 4px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}

/* Admin Archive Styles */
.admin-filters {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.admin-filter-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.admin-filter-form .form-group {
  flex: 1;
  min-width: 200px;
}

.admin-filter-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--brand-900);
  font-size: 0.9rem;
}

.admin-filter-form .form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.admin-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.admin-stat strong {
  font-size: 0.85rem;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-stat span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-900);
}

.admin-table-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.admin-table thead {
  background: rgba(37, 99, 235, 0.08);
}

.admin-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table td {
  padding: 14px 16px;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
  color: var(--neutral-700);
}

.admin-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

.admin-table .btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.admin-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.admin-pagination span {
  color: var(--neutral-500);
  font-size: 0.95rem;
}

.admin-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--neutral-500);
}

.admin-answers {
  display: grid;
  gap: 12px;
}

.admin-answer-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(37, 99, 235, 0.04);
  border-radius: var(--radius-sm);
}

.admin-answer-item strong {
  color: var(--brand-900);
  min-width: 120px;
}

.admin-answer-item span {
  color: var(--neutral-700);
}

.admin-analysis h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: var(--brand-900);
}

.admin-analysis ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: grid;
  gap: 8px;
}

.admin-analysis li {
  padding: 10px 14px;
  background: rgba(37, 99, 235, 0.06);
  border-radius: var(--radius-sm);
  color: var(--neutral-700);
  line-height: 1.6;
}

.question-image-preview img {
  max-width: 240px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  border: 1px solid var(--neutral-200);
}

.danger-btn {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.danger-btn:hover {
  background: #b91c1c;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--low {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.badge--medium {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
}

.badge--high {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.text-muted {
  color: var(--neutral-500);
  font-style: italic;
}

/* Enhanced Admin Panel Styles */
.admin-flash {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

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

.admin-flash--success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #16a34a;
}

.admin-flash--error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #dc2626;
}

.admin-form {
  display: grid;
  gap: 20px;
}

.admin-form .form-group {
  display: grid;
  gap: 8px;
}

.admin-form label {
  font-weight: 600;
  color: var(--brand-900);
  font-size: 0.95rem;
}

.admin-form .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.admin-form .form-control:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
  display: grid;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.checkbox-label:hover {
  background: rgba(37, 99, 235, 0.04);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--brand-500);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.admin-system-info {
  display: grid;
  gap: 16px;
}

.system-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(37, 99, 235, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.system-info-item strong {
  color: var(--brand-900);
  font-weight: 600;
}

.system-info-item span {
  color: var(--neutral-700);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.admin-metric-card__subtitle {
  display: block;
  font-size: 0.85rem;
  color: var(--neutral-500);
  margin-top: 4px;
  font-weight: 400;
}

.admin-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-panel__header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--brand-900);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Enhanced Test Cards */
.test-card {
  background: var(--surface-primary);
  border-radius: var(--radius-3xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(59, 130, 246, 0.12);
  display: grid;
  gap: var(--space-5);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.test-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.test-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(59, 130, 246, 0.3);
}

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

.test-card header {
  position: relative;
  z-index: 1;
}

.test-card header h2 {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--brand-950);
  line-height: var(--line-height-tight);
}

.test-card .desc {
  margin: 0;
  color: var(--neutral-600);
  line-height: var(--line-height-relaxed);
  font-size: var(--text-base);
}

.test-card .meta-lines {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-top: var(--space-4);
  border-top: 2px solid rgba(59, 130, 246, 0.1);
  position: relative;
  z-index: 1;
}

.test-card .meta-line {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--neutral-500);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-weight-medium);
}

.test-card .meta-line::before {
  content: '●';
  color: var(--brand-600);
  font-size: var(--text-base);
}

.test-card footer {
  position: relative;
  z-index: 1;
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

/* Enhanced Forms */
.test-form__user-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(6, 182, 212, 0.04));
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  border: 2px solid rgba(59, 130, 246, 0.15);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.test-form__user-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--accent-500), var(--brand-600));
  background-size: 200% 100%;
  animation: gradient-shift 3s linear infinite;
}

.test-form__user-info h3 {
  margin: 0 0 var(--space-5) 0;
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--brand-900);
}

.test-form__user-info-note {
  margin: 0 0 var(--space-6) 0;
  color: var(--neutral-600);
  font-size: var(--text-sm);
}

.test-result__consultation {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(56, 189, 248, 0.04));
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

/* Loading States */
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes skeleton-loading {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  border-top-color: var(--white);
  animation: spin 0.6s linear infinite;
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: currentColor;
  animation: pulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

.skeleton {
  background: linear-gradient(90deg, #e2e8f0 0px, #f1f5f9 40px, #e2e8f0 80px);
  background-size: 200px 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* Button States */
button:disabled,
.primary-btn:disabled,
.secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Focus Visible */
*:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
}

/* Smooth Animations */
.card,
.admin-panel,
.admin-metric-card {
  transition: all var(--transition-base);
}

/* Responsive Design - Mobile First */
@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: calc(100% + var(--space-2));
    right: var(--space-4);
    left: auto;
    width: min(320px, calc(100vw - var(--space-6)));
    background: linear-gradient(135deg, rgba(10, 15, 36, 0.98), rgba(15, 23, 42, 0.98));
    backdrop-filter: var(--blur-xl) saturate(180%);
    border-radius: var(--radius-2xl);
    padding: var(--space-4);
    box-shadow: var(--shadow-2xl);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: slide-in-down 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes slide-in-down {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .main-nav[data-open="true"] {
    display: flex;
  }

  .main-nav__primary {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }

  .main-nav__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    margin-top: var(--space-2);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .main-nav__locale {
    width: 100%;
    margin-top: var(--space-2);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav-link {
    width: 100%;
    text-align: left;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
  }

  .nav-link::after {
    bottom: 0;
    left: var(--space-4);
    right: var(--space-4);
    height: 3px;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.12);
  }

  .nav-action {
    width: 100%;
    text-align: center;
    padding: var(--space-3) var(--space-5);
  }
  
  /* Better spacing on mobile */
  .hero {
    padding: clamp(60px, 12vh, 100px) 0 clamp(40px, 8vh, 60px);
  }
  
  .section-heading {
    margin-bottom: var(--space-8);
  }
  
  .feature-cards {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  
  .tests-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* Tablet & Mobile Responsive */
@media (max-width: 768px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  
  .admin-sidebar {
    display: none;
  }
  
  .admin-main {
    padding: var(--space-5);
  }
  
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }

  .admin-toolbar__info {
    width: 100%;
    justify-content: space-between;
  }

  .admin-toolbar__logout {
    width: 100%;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .admin-panels {
    grid-template-columns: 1fr;
  }
  
  .admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-xl);
  }
  
  .admin-filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .admin-filter-form .form-group {
    min-width: 100%;
  }
  
  .test-form {
    max-width: 100%;
  }
  
  .question-card {
    padding: var(--space-5);
  }
  
  .question-options {
    gap: var(--space-2);
  }
  
  .option {
    padding: var(--space-3) var(--space-4);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    width: 94vw;
  }
  
  .hero h1 {
    font-size: var(--text-3xl);
  }
  
  .section-heading h1,
  .section-heading h2 {
    font-size: var(--text-2xl);
  }
  
  .admin-metrics {
    grid-template-columns: 1fr;
  }
  
  .admin-metric-card__value {
    font-size: var(--text-3xl);
  }
  
  .test-result__header h2 {
    font-size: var(--text-2xl);
  }
  
  .percentage-value {
    font-size: var(--text-4xl);
  }
}

