/* =============================================
   EUCCDB.EU — European Cabin Crew Database
   Design System & Global Styles
   ============================================= */

/* Google Fonts */
@import url('/css/fonts.css');

/* ─── Design Tokens ─── */
:root {
  /* Colors */
  --bg:           #F5F7FA;
  --bg-2:         #FFFFFF;
  --surface:      #FFFFFF;
  --surface-2:    #F5F7FA;
  --surface-3:    #EEEFF4;
  --surface-glass: rgba(255,255,255,0.85);

  --primary:      #0A2240;
  --primary-light:#1A4DC8;
  --primary-glow: rgba(0,43,128,0.12);

  --gold:         #0099CC;
  --gold-light:   #0099CC;
  --gold-glow:    rgba(255,204,0,0.2);

  --sky:          #0A2240;
  --sky-dim:      #071829;

  --text:         #0A0A14;
  --text-muted:   #4A4A5E;
  --text-faint:   #9A9AB0;

  --border:       rgba(10,10,20,0.09);
  --border-light: rgba(10,10,20,0.15);
  --border-gold:  rgba(255,204,0,0.4);

  --success:      #059669;
  --warning:      #D97706;
  --danger:       #DC2626;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radius — zero everywhere, institutional */
  --r-sm:  0px;
  --r-md:  0px;
  --r-lg:  0px;
  --r-xl:  0px;
  --r-full: 9999px; /* only for badges/avatars when strictly needed */

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.12);
  --shadow-blue: 0 4px 16px rgba(0,43,128,0.15);
  --shadow-gold: 0 4px 16px rgba(255,204,0,0.2);

  /* Typography */
  --font-display: 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background: #F5F7FA;
  color: #0A0A14;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #EEEFF4; }
::-webkit-scrollbar-thumb { background: #0A2240; border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: #1A4DC8; }

/* ─── Typography Scale ─── */
.display-1 { font-family: var(--font-display); font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.display-2 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.heading-1 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.heading-2 { font-family: var(--font-display); font-size: clamp(1.25rem, 2.5vw, 1.9rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.heading-3 { font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 600; line-height: 1.4; }
.body-lg { font-size: 1.125rem; line-height: 1.7; }
.body-md { font-size: 1rem; line-height: 1.65; }
.body-sm { font-size: 0.875rem; line-height: 1.6; }
.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* ─── Layout Utilities ─── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.container-sm {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.text-sky { color: var(--sky); }
.text-success { color: var(--success); }

/* ─── Color & Background Utilities ─── */
.bg-surface { background: var(--surface); }
.bg-surface-2 { background: var(--surface-2); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 11px 24px;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: #0A2240;
  color: #fff;
}
.btn-primary:hover { background: #1A4DC8; }

.btn-gold {
  background: #0099CC;
  color: #fff;
}
.btn-gold:hover { background: #007AA3; }

.btn-ghost {
  background: transparent;
  color: #4A4A5E;
  border: 1px solid rgba(10,10,20,0.15);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(10,10,20,0.25);
  background: var(--surface-2);
}

.btn-outline {
  background: transparent;
  color: #0A2240;
  border: 1px solid #0A2240;
}
.btn-outline:hover {
  background: rgba(0,43,128,0.06);
  border-color: #0A2240;
  color: #0A2240;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--r-md);
}

/* ─── Cards ─── */
.card {
  background: #FFFFFF;
  border: 1px solid rgba(10,10,20,0.09);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: rgba(10,10,20,0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-glass {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(10,10,20,0.09);
  border-radius: var(--r-xl);
}

/* ─── Badge ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-blue  { background: rgba(0,43,128,0.08);   color: #0A2240; border: 1px solid rgba(0,43,128,0.2); }
.badge-gold  { background: rgba(255,204,0,0.15);   color: #7A5F00; border: 1px solid rgba(255,204,0,0.4); }
.badge-green { background: rgba(5,150,105,0.10);   color: #059669; border: 1px solid rgba(5,150,105,0.25); }
.badge-red   { background: rgba(220,38,38,0.08);   color: #DC2626; border: 1px solid rgba(220,38,38,0.2); }
.badge-gray  { background: var(--surface-3);       color: var(--text-muted); border: 1px solid var(--border); }

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-lg) 0;
}

.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ─── Section spacing ─── */
.section { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-2xl) 0; }

/* ─── Section headers ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7A5F00;
  margin-bottom: var(--space-md);
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ─── Stars/particle canvas ─── */
#stars-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--space-xl);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--md-glass-bg, rgba(255,255,255,0.72));
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--md-glass-hairline, rgba(10,12,30,0.08));
}

.nav.scrolled {
  background: var(--md-glass-bg-strong, rgba(255,255,255,0.85));
  border-bottom: 1px solid var(--md-glass-hairline, rgba(10,12,30,0.08));
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-blue);
}

.nav-logo .logo-text { color: var(--text); }
.nav-logo .logo-text span { color: #7A5F00; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface-2);
}

/* ─── HERO SECTION ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,43,128,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 50%, rgba(255,204,0,0.06) 0%, transparent 60%),
              var(--bg);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,10,20,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,20,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,204,0,0.1);
  border: 1px solid rgba(255,204,0,0.4);
  border-radius: var(--r-full);
  padding: 6px 16px;
  margin-bottom: var(--space-xl);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7A5F00;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
}

.hero-title .accent-blue {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .accent-gold {
  background: linear-gradient(135deg, #B8940A, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: var(--space-xl);
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-portal-cards {
  display: flex;
  gap: 12px;
  margin-top: var(--space-2xl);
}

.hero-portal-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.hero-portal-chip:hover {
  border-color: var(--border-light);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-portal-chip .chip-icon {
  font-size: 1rem;
}

.hero-image-side {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 80%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-visual-card {
  width: 340px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(10,10,20,0.09);
  border-radius: var(--r-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.hero-visual-card-2 {
  position: absolute;
  bottom: 5%;
  right: 5%;
  width: 240px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,204,0,0.4);
  border-radius: var(--r-xl);
  padding: var(--space-md);
  box-shadow: var(--shadow-gold);
  animation: float 6s ease-in-out infinite 2s;
}

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

/* ─── STATS BAR ─── */
.stats-bar {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #FFFFFF;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.stat-number.blue  { color: var(--primary); }
.stat-number.gold  { color: #7A5F00; }
.stat-number.green { color: var(--success); }
.stat-number.white { color: var(--text); }

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

/* ─── PORTALS SECTION ─── */
.portals-section {
  padding: var(--space-3xl) 0;
}

.portal-card {
  background: #FFFFFF;
  border: 1px solid rgba(10,10,20,0.09);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

.portal-card:hover::before { opacity: 1; }
.portal-card:hover {
  border-color: rgba(10,10,20,0.15);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portal-crew::before   { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.portal-school::before { background: linear-gradient(90deg, var(--gold), #007AA3); }
.portal-airline::before { background: linear-gradient(90deg, var(--success), #34D399); }

.portal-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.icon-blue  { background: rgba(0,43,128,0.08); border: 1px solid rgba(0,43,128,0.2); }
.icon-gold  { background: rgba(255,204,0,0.15); border: 1px solid rgba(255,204,0,0.4); }
.icon-green { background: rgba(5,150,105,0.10); border: 1px solid rgba(5,150,105,0.2); }

.portal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.portal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: var(--space-lg);
  flex: 1;
}

.portal-features {
  margin-bottom: var(--space-lg);
}

.portal-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 5px 0;
}

.portal-feature-item::before {
  content: '✓';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(5,150,105,0.12);
  color: var(--success);
}

/* ─── HOW IT WORKS ─── */
.how-it-works {
  background: #FFFFFF;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.step-item {
  position: relative;
  padding: var(--space-xl);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── FEATURES SECTION ─── */
.features-section {
  padding: var(--space-3xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.feature-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: #FFFFFF;
  border: 1px solid rgba(10,10,20,0.09);
  border-radius: var(--r-lg);
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}

.feature-item:hover {
  border-color: rgba(10,10,20,0.15);
  background: var(--surface-2);
}

.feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--surface-3);
}

.feature-text .feature-title {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-text .feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── EU COMPLIANCE BANNER ─── */
.compliance-banner {
  background: linear-gradient(135deg, rgba(0,43,128,0.06), rgba(255,204,0,0.06));
  border: 1px solid rgba(0,43,128,0.15);
  border-radius: var(--r-xl);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.compliance-flag {
  font-size: 3rem;
  flex-shrink: 0;
}

.compliance-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.compliance-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.compliance-badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-left: auto;
}

/* ─── TESTIMONIALS / TRUST ─── */
.trust-section {
  background: #FFFFFF;
  padding: var(--space-2xl) 0;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0.4;
  filter: grayscale(100%);
}

.trust-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

/* ─── CTA SECTION ─── */
.cta-section {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, rgba(0,43,128,0.06), rgba(26,77,200,0.04));
  border: 1px solid rgba(0,43,128,0.2);
  border-radius: 6px;
  padding: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,43,128,0.04), transparent 70%);
  pointer-events: none;
}

.cta-btn-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

/* ─── FOOTER ─── */
.footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-flags {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

/* ─── DASHBOARD LAYOUT ─── */
.app-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  width: 260px;
  min-width: 260px;
  background: #FFFFFF;
  border-right: 1px solid rgba(10,10,20,0.09);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  transition: transform 0.3s var(--ease);
}

.sidebar-header {
  padding: var(--space-md) var(--space-lg);
  background: #ffffff;
  border-bottom: 3px solid #0A2240;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-md);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: var(--space-sm) 10px 4px;
  margin-top: 8px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.sidebar-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.sidebar-item.active {
  background: rgba(0,43,128,0.08);
  color: #0A2240;
  border-left: 3px solid #0099CC;
}

.sidebar-item .item-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-item .item-badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
}

.sidebar-footer {
  padding: var(--space-md);
  border-top: 1px solid var(--border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 0.2s;
}
.sidebar-user:hover { background: var(--surface-2); }

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.user-info .user-name {
  font-size: 0.85rem;
  font-weight: 600;
}
.user-info .user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ─── MAIN CONTENT AREA ─── */
.main-content {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: 72px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}

.topbar-left h1 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.topbar-left p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.topbar-notif {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
}

.topbar-notif .notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid #FFFFFF;
}

.page-content {
  padding: var(--space-xl);
  flex: 1;
}

/* ─── PROFILE HEADER (dashboard) ─── */
.profile-hero {
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(circle at right center, rgba(0,43,128,0.06), transparent 70%);
}

.profile-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  border: 3px solid rgba(0,43,128,0.2);
  flex-shrink: 0;
}

.profile-info .name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-info .role {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 4px 0;
}

.profile-info .meta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.profile-info .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-completeness {
  margin-left: auto;
  text-align: center;
  flex-shrink: 0;
}

.completeness-ring {
  width: 80px;
  height: 80px;
  position: relative;
}

.completeness-ring svg {
  transform: rotate(-90deg);
}

.completeness-ring .ring-track {
  fill: none;
  stroke: var(--surface-3);
  stroke-width: 6;
}

.completeness-ring .ring-fill {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 55;
  transition: stroke-dashoffset 1s var(--ease);
}

.completeness-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

/* ─── Dashboard Cards ─── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.metric-card {
  background: #FFFFFF;
  border: 1px solid rgba(10,10,20,0.09);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.metric-card .metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.metric-card .metric-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.metric-card .metric-trend {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.metric-trend.up { color: var(--success); }
.metric-trend.down { color: var(--danger); }

/* ─── Document Cards ─── */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}

.doc-card {
  background: #FFFFFF;
  border: 1px solid rgba(10,10,20,0.09);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.doc-card:hover {
  border-color: rgba(10,10,20,0.15);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.doc-card.expired {
  border-color: rgba(220,38,38,0.25);
}

.doc-card.expiring-soon {
  border-color: rgba(217,119,6,0.25);
}

.doc-icon {
  font-size: 2rem;
  margin-bottom: 4px;
}

.doc-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}

.doc-number {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.doc-expiry {
  font-size: 0.75rem;
  margin-top: auto;
}

.doc-status-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ─── Aircraft Type Tags ─── */
.aircraft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.aircraft-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.aircraft-tag.selected {
  background: rgba(0,43,128,0.08);
  border-color: rgba(0,43,128,0.25);
  color: var(--primary);
}

.aircraft-tag:hover { border-color: var(--border-light); }

/* ─── Availability Toggle ─── */
.availability-card {
  background: #FFFFFF;
  border: 1px solid rgba(10,10,20,0.09);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.toggle-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.toggle-option {
  flex: 1;
  min-width: 140px;
  padding: 12px var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  background: var(--surface-2);
}

.toggle-option.selected {
  background: rgba(5,150,105,0.08);
  border-color: rgba(5,150,105,0.35);
  color: var(--success);
}

.toggle-option:hover { border-color: var(--border-light); }

.toggle-option .toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 6px;
}

/* ─── SEARCH & FILTER (Airlines Portal) ─── */
.search-hero {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--border);
  padding: var(--space-xl);
}

.search-bar-large {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: #FFFFFF;
  border: 1px solid rgba(10,10,20,0.15);
  border-radius: var(--r-xl);
  padding: var(--space-sm);
  margin-top: var(--space-md);
  transition: border-color 0.2s;
  box-shadow: var(--shadow-sm);
}

.search-bar-large:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
  padding: 0 var(--space-sm) 0 var(--space-md);
  font-size: 1.1rem;
  color: var(--text-muted);
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  padding: 8px 0;
}

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

.filter-sidebar {
  width: 260px;
  min-width: 260px;
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  padding: var(--space-lg);
  overflow-y: auto;
}

.filter-section {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

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

.filter-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.filter-option:hover { color: var(--text); }

.filter-checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  transition: all 0.2s;
}

.filter-checkbox.checked {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.filter-count {
  margin-left: auto;
  font-size: 0.7rem;
  background: var(--surface-3);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: var(--r-full);
}

/* ─── Crew Profile Cards (search results) ─── */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.crew-card {
  background: #FFFFFF;
  border: 1px solid rgba(10,10,20,0.09);
  border-radius: var(--r-xl);
  padding: var(--space-lg);
  transition: all 0.25s var(--ease);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.crew-card:hover {
  border-color: rgba(10,10,20,0.15);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.crew-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.crew-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
}

.crew-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.crew-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.crew-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.crew-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.crew-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-md);
}

.crew-stat .label { font-size: 0.65rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.crew-stat .value { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; margin-top: 2px; }

/* ─── SCHOOLS PORTAL ─── */
.school-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.school-stat-card {
  background: #FFFFFF;
  border: 1px solid rgba(10,10,20,0.09);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

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

.candidate-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.candidate-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.candidate-table tr:last-child td { border-bottom: none; }

.candidate-table tbody tr:hover { background: var(--surface-2); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 600;
}

/* ─── Upload Zone ─── */
.upload-zone {
  border: 2px dashed rgba(10,10,20,0.15);
  border-radius: var(--r-xl);
  padding: var(--space-2xl);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  background: var(--surface-2);
}

.upload-zone:hover {
  border-color: var(--primary-light);
  background: rgba(0,43,128,0.03);
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

/* ─── FORM ELEMENTS ─── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.form-input {
  background: #FFFFFF;
  border: 1px solid rgba(10,10,20,0.15);
  border-radius: var(--r-md);
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

.form-select {
  background: #FFFFFF;
  border: 1px solid rgba(10,10,20,0.15);
  border-radius: var(--r-md);
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  width: 100%;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ─── Toggle Switch ─── */
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
  cursor: pointer;
  flex-shrink: 0;
}

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

.switch-track {
  position: absolute;
  inset: 0;
  background: var(--surface-3);
  border-radius: 4px;
  transition: background 0.25s;
  border: 1px solid var(--border);
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--text-faint);
  border-radius: 50%;
  transition: transform 0.25s var(--ease-spring), background 0.25s;
}

.switch input:checked + .switch-track { background: var(--primary); border-color: var(--primary); }
.switch input:checked ~ .switch-thumb { transform: translateX(20px); background: white; }

/* ─── Progress Bar ─── */
.progress-bar {
  height: 6px;
  background: var(--surface-3);
  border-radius: var(--r-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.6s var(--ease);
}

.progress-fill.gold {
  background: linear-gradient(90deg, #B8940A, var(--gold));
}

.progress-fill.green {
  background: linear-gradient(90deg, var(--success), #34D399);
}

/* ─── Range slider ─── */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: var(--shadow-sm);
}

/* ─── Notification Toast ─── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 300px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s var(--ease);
  font-size: 0.875rem;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.toast.success { border-left: 3px solid var(--success); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--primary); }

/* ─── Tabs ─── */
.tabs {
  display: flex;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 4px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.tab {
  padding: 8px 20px;
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.tab:hover:not(.active) { color: var(--text); }

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}

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

.modal {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s var(--ease-spring);
  box-shadow: var(--shadow-lg);
}

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

.modal-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body { padding: var(--space-xl); }
.modal-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

/* ─── Section content block ─── */
.content-block {
  background: #FFFFFF;
  border: 1px solid rgba(10,10,20,0.09);
  border-radius: var(--r-xl);
  margin-bottom: var(--space-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.block-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.block-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.block-body { padding: var(--space-xl); }

/* ─── EU Stars animation ─── */
.eu-stars {
  display: flex;
  gap: 4px;
  align-items: center;
}

.eu-star {
  font-size: 0.65rem;
  color: #7A5F00;
  animation: twinkle 3s ease-in-out infinite;
}

.eu-star:nth-child(1) { animation-delay: 0s; }
.eu-star:nth-child(2) { animation-delay: 0.2s; }
.eu-star:nth-child(3) { animation-delay: 0.4s; }
.eu-star:nth-child(4) { animation-delay: 0.6s; }
.eu-star:nth-child(5) { animation-delay: 0.8s; }
.eu-star:nth-child(6) { animation-delay: 1.0s; }
.eu-star:nth-child(7) { animation-delay: 1.2s; }
.eu-star:nth-child(8) { animation-delay: 1.4s; }
.eu-star:nth-child(9) { animation-delay: 1.6s; }
.eu-star:nth-child(10) { animation-delay: 1.8s; }
.eu-star:nth-child(11) { animation-delay: 2.0s; }
.eu-star:nth-child(12) { animation-delay: 2.2s; }

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

/* ─── Animations & Utilities ─── */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

.hidden { display: none !important; }
.visible { display: block; }
.opacity-0 { opacity: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .container { padding: 0 var(--space-lg); }
  .hero-image-side { display: none; }
  .hero-content { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .school-stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-actions .btn-ghost { display: none; }

  .hero { padding-top: 80px; }
  .hero-title { font-size: clamp(2rem, 8vw, 3.5rem); }
  .hero-cta-group { flex-direction: column; align-items: flex-start; }
  .hero-portal-cards { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .compliance-banner { flex-direction: column; gap: var(--space-lg); text-align: center; }
  .compliance-badges { margin-left: 0; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }

  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }

  .profile-hero { flex-direction: column; align-items: flex-start; }
  .profile-completeness { margin-left: 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cta-btn-group { flex-direction: column; }
  .crew-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .tabs { width: 100%; }
  .tab { flex: 1; text-align: center; }
}
