/* ==========================================================
   HYPERSCHEDULE — GLOBAL DESIGN SYSTEM
   Liquid Glass · Silver & Blue · Luxury Medical SaaS
   ========================================================== */

/* ── CUSTOM PROPERTIES ── */
:root {
  /* Primary: Deep Oceanic Blue */
  --primary-50:  #EBF5FF;
  --primary-100: #D6EBFF;
  --primary-200: #ADD6FF;
  --primary-300: #75B8FF;
  --primary-400: #3D99FF;
  --primary-500: #0A6EF5;
  --primary-600: #0055CC;
  --primary-700: #003D99;
  --primary-800: #002966;
  --primary-900: #001A44;
  --primary-950: #000D22;

  /* Silver: Liquid Precision */
  --silver-50:  #F8FAFB;
  --silver-100: #F1F4F7;
  --silver-200: #E3E8EF;
  --silver-300: #C8D1DC;
  --silver-400: #A0AEBD;
  --silver-500: #7A8A9E;
  --silver-600: #5C6B7E;
  --silver-700: #455364;
  --silver-800: #2E3B4A;
  --silver-900: #1C2530;
  --silver-950: #0F1419;

  /* Accent: Ethereal Cyan */
  --accent-300: #67E8F9;
  --accent-400: #22D3EE;
  --accent-500: #06B6D4;
  --accent-600: #0891B2;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --error:   #EF4444;
  --info:    #3B82F6;

  /* Glass System */
  --glass-bg:      rgba(255, 255, 255, 0.06);
  --glass-bg-md:   rgba(255, 255, 255, 0.10);
  --glass-bg-lg:   rgba(255, 255, 255, 0.14);
  --glass-border:  rgba(255, 255, 255, 0.10);
  --glass-border-strong: rgba(255, 255, 255, 0.18);
  --glass-shadow:  rgba(0, 0, 0, 0.32);

  /* Typography */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', monospace;

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;

  /* Radius */
  --radius-sm: 8px;  --radius-md: 12px; --radius-lg: 16px;
  --radius-xl: 20px; --radius-2xl: 28px; --radius-full: 9999px;
}

/* ══════════════════════════════════════
   THEME TOKENS — DARK (default)
   ══════════════════════════════════════ */

html, html.dark {
  --page-bg:             #0F1419;
  --page-bg-secondary:   #1C2530;
  --sidebar-bg:          rgba(13, 18, 23, 0.92);
  --topbar-bg:           rgba(15, 20, 25, 0.80);
  --glass-bg:            rgba(255, 255, 255, 0.06);
  --glass-bg-md:         rgba(255, 255, 255, 0.10);
  --glass-bg-lg:         rgba(255, 255, 255, 0.14);
  --glass-bg-hover:      rgba(255, 255, 255, 0.10);
  --glass-border:        rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(255, 255, 255, 0.14);
  --glass-border-hover:  rgba(255, 255, 255, 0.14);
  --glass-shadow:        rgba(0, 0, 0, 0.32);
  --text-primary:        #F1F4F7;
  --text-secondary:      #A0AEBD;
  --text-tertiary:       #5C6B7E;
  --text-muted:          #455364;
  --divider:             rgba(255, 255, 255, 0.06);
  --input-bg:            rgba(255, 255, 255, 0.04);
  --input-border:        rgba(255, 255, 255, 0.08);
  --input-focus-border:  #0A6EF5;
  --input-focus-ring:    rgba(10, 110, 245, 0.15);
  --kpi-bg:              rgba(255, 255, 255, 0.06);
  --table-header-bg:     rgba(255, 255, 255, 0.04);
  --table-row-hover:     rgba(255, 255, 255, 0.03);
  --badge-bg:            rgba(255, 255, 255, 0.08);
  --scrollbar-thumb:     rgba(255, 255, 255, 0.14);
  --card-bg:             rgba(255, 255, 255, 0.06);
}

/* ══════════════════════════════════════
   THEME TOKENS — LIGHT
   ══════════════════════════════════════ */

html.light {
  --page-bg:             #F0F4F8;
  --page-bg-secondary:   #E8ECF1;
  --sidebar-bg:          #FFFFFF;
  --topbar-bg:           #FFFFFF;
  --glass-bg:            #FFFFFF;
  --glass-bg-md:         #FFFFFF;
  --glass-bg-lg:         #FFFFFF;
  --glass-bg-hover:      #F8FAFB;
  --glass-border:        rgba(0, 0, 0, 0.08);
  --glass-border-strong: rgba(0, 0, 0, 0.14);
  --glass-border-hover:  rgba(0, 0, 0, 0.14);
  --glass-shadow:        rgba(0, 0, 0, 0.08);
  --text-primary:        #1C2530;
  --text-secondary:      #5C6B7E;
  --text-tertiary:       #7A8A9E;
  --text-muted:          #A0AEBD;
  --divider:             rgba(0, 0, 0, 0.06);
  --input-bg:            #FFFFFF;
  --input-border:        rgba(0, 0, 0, 0.12);
  --input-focus-border:  #0A6EF5;
  --input-focus-ring:    rgba(10, 110, 245, 0.12);
  --kpi-bg:              #FFFFFF;
  --table-header-bg:     #F8FAFB;
  --table-row-hover:     #F4F6F8;
  --badge-bg:            rgba(0, 0, 0, 0.05);
  --scrollbar-thumb:     rgba(0, 0, 0, 0.18);
  --card-bg:             #FFFFFF;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--page-bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
  transition: background 0.18s ease, color 0.14s ease;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
::selection { background: rgba(10, 110, 245, 0.25); color: #fff; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* ── GLASS CARDS ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.12),
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s cubic-bezier(0.34,1.2,0.64,1);
}

.glass-card:hover {
  border-color: var(--glass-border-strong);
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.16),
    0 16px 48px var(--glass-shadow),
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 1px rgba(10,110,245,0.06);
}

.glass-panel {
  background: var(--glass-bg-md);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-xl);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.16),
    0 20px 60px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.06);
}

/* ── NAVIGATION ── */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  animation: slideDown 0.5s cubic-bezier(0,0,0.2,1) both;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15,20,25,0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 8px 32px rgba(0,0,0,0.24);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg { width: 18px; height: 18px; color: #fff; }

.logo-text { background: linear-gradient(135deg, #fff, var(--silver-300)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--silver-400);
  transition: color 0.1s ease;
}
.nav-link:hover { color: #fff; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost {
  font-size: 14px;
  font-weight: 500;
  color: var(--silver-300);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: color 0.1s ease, background 0.1s ease;
}
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.06); }

.btn-primary-sm {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  background: var(--primary-500);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.1s ease, transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-primary-sm:hover {
  background: var(--primary-400);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(10,110,245,0.35);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--silver-300);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 16px;
  right: 16px;
  z-index: 99;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.18s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-inner {
  background: rgba(15,20,25,0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.mobile-nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--silver-300);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: background 0.1s ease, color 0.1s ease;
}
.mobile-nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.mobile-nav-divider { height: 1px; background: var(--glass-border); margin: 4px 0; }
.btn-primary-full {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--primary-500);
  text-align: center;
  margin-top: 4px;
  transition: background 0.1s ease;
}
.btn-primary-full:hover { background: var(--primary-400); }

/* ── HERO SECTION ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 140px 40px 80px;
  overflow: hidden;
}

/* Animated orbs */
.orb-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: orbFade 2s ease-out forwards, orbFloat 12s ease-in-out infinite;
}

.orb-blue  { background: radial-gradient(circle, rgba(10,110,245,0.5), transparent 70%); }
.orb-cyan  { background: radial-gradient(circle, rgba(6,182,212,0.4), transparent 70%); }
.orb-silver{ background: radial-gradient(circle, rgba(160,174,189,0.25), transparent 70%); }

.orb-1 { width: 600px; height: 600px; top: 5%;  left: 5%;  animation-delay: 0s, 0s; }
.orb-2 { width: 500px; height: 500px; top: 25%; right: 5%; animation-delay: 0.3s, 2s; animation-duration: 2s, 10s; }
.orb-3 { width: 400px; height: 400px; bottom: 10%; left: 35%; animation-delay: 0.6s, 4s; animation-duration: 2s, 14s; }
.orb-4 { width: 300px; height: 300px; top: 60%; right: 30%; opacity: 0; animation-delay: 0.9s, 6s; animation-duration: 2s, 9s; }

.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,110,245,0.08), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 1.5s ease, top 1.5s ease;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  animation: fadeSlideUp 0.8s cubic-bezier(0,0,0.2,1) 0.2s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--silver-300);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  margin-bottom: 28px;
}
.hero-badge svg { width: 14px; height: 14px; color: var(--accent-400); }

.hero-headline {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.headline-line-1 { display: block; color: #fff; }
.headline-line-2 { display: block; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary-400) 0%, var(--accent-400) 50%, var(--primary-300) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s linear infinite;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--silver-400);
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-600));
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-hero-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-400), var(--accent-500));
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-hero-primary:hover::before { opacity: 1; }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(10,110,245,0.4); }
.btn-hero-primary svg { width: 16px; height: 16px; position: relative; z-index: 1; transition: transform 0.2s; }
.btn-hero-primary:hover svg { transform: translateX(3px); }
.btn-hero-primary span, .btn-hero-primary:not(:has(span)) { position: relative; z-index: 1; }

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-xl);
  font-size: 15px;
  font-weight: 500;
  color: var(--silver-300);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-hero-secondary:hover { background: var(--glass-bg-md); color: #fff; border-color: var(--glass-border-strong); }
.btn-hero-secondary svg { width: 16px; height: 16px; transition: transform 0.2s; }
.btn-hero-secondary:hover svg { transform: translateY(2px); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--silver-400);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 5px 12px;
}

.stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.stat-dot-green  { background: var(--success); box-shadow: 0 0 6px var(--success); }
.stat-dot-blue   { background: var(--primary-400); box-shadow: 0 0 6px var(--primary-400); }
.stat-dot-cyan   { background: var(--accent-400); box-shadow: 0 0 6px var(--accent-400); }

/* Hero Mockup */
.hero-mockup {
  position: relative;
  z-index: 10;
  animation: fadeSlideUp 0.8s cubic-bezier(0,0,0.2,1) 0.4s both;
}

.mockup-card {
  padding: 0;
  overflow: hidden;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.mockup-dots {
  display: flex;
  gap: 5px;
}
.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.mockup-dots span:nth-child(1) { background: #FF5F56; }
.mockup-dots span:nth-child(2) { background: #FFBD2E; }
.mockup-dots span:nth-child(3) { background: #27C93F; }

.mockup-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--silver-300);
  flex: 1;
  text-align: center;
}

.mockup-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.status-published {
  background: rgba(16,185,129,0.15);
  color: #34D399;
  border: 1px solid rgba(16,185,129,0.2);
}
.status-draft {
  background: rgba(160,174,189,0.12);
  color: var(--silver-400);
  border: 1px solid rgba(160,174,189,0.15);
}

.mockup-grid { padding: 12px 16px 16px; }

.mockup-row {
  display: grid;
  grid-template-columns: 130px repeat(5, 1fr) 50px;
  gap: 4px;
  align-items: center;
  padding: 6px 4px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mockup-row:hover { background: rgba(255,255,255,0.03); }

.mockup-row-header {
  margin-bottom: 4px;
  padding: 4px 4px;
}
.mockup-row-header span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver-600);
  text-align: center;
}
.mockup-row-header .mockup-cell-name { text-align: left; }

.mockup-cell-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--silver-300);
}

.mockup-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-cell-hrs {
  text-align: right;
}

.hrs-text {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--silver-500);
}

.unavail-cell {
  font-size: 12px;
  color: var(--silver-700);
}

.emp-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  flex-shrink: 0;
}
.emp-av-blue   { background: rgba(10,110,245,0.2);  color: var(--primary-400); }
.emp-av-purple { background: rgba(139,92,246,0.2);  color: #A78BFA; }
.emp-av-teal   { background: rgba(20,184,166,0.2);  color: #2DD4BF; }
.emp-av-cyan   { background: rgba(6,182,212,0.2);   color: var(--accent-400); }
.emp-av-amber  { background: rgba(245,158,11,0.2);  color: #FCD34D; }

.mockup-ai-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 500;
  color: var(--silver-500);
  border-top: 1px solid var(--glass-border);
  padding-top: 12px;
}
.mockup-ai-badge svg { width: 12px; height: 12px; color: var(--accent-400); }

/* ── ROLE BADGES ── */
.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  min-width: 28px;
  letter-spacing: 0.02em;
}

.role-t   { background: rgba(10,110,245,0.15);  color: #75B8FF; }
.role-t1  { background: rgba(10,110,245,0.10);  color: #3D99FF; }
.role-t2  { background: rgba(10,110,245,0.10);  color: #3D99FF; }
.role-trt { background: rgba(6,182,212,0.15);   color: var(--accent-300); }
.role-o   { background: rgba(16,185,129,0.15);  color: #34D399; }
.role-s   { background: rgba(245,158,11,0.15);  color: #FCD34D; }
.role-ttr { background: rgba(14,165,233,0.15);  color: #7DD3FC; }
.role-otr { background: rgba(20,184,166,0.15);  color: #2DD4BF; }
.role-c   { background: rgba(139,92,246,0.15);  color: #C4B5FD; }
/* Flight roles */
.role-ft  { background: rgba(244,63,94,0.15);   color: #FDA4AF; }
.role-fo  { background: rgba(249,115,22,0.15);  color: #FDB07C; }
.role-fa  { background: rgba(245,158,11,0.12);  color: #FCD34D; }
.role-ftt { background: rgba(236,72,153,0.12);  color: #F9A8D4; }
.role-fot { background: rgba(239,68,68,0.10);   color: #FCA5A5; }
/* Legacy FS kept for backward compat */
.role-fs  { background: rgba(244,63,94,0.12);   color: #FDA4AF; }

.role-badge-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  min-width: 52px;
  flex-shrink: 0;
}

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator svg { width: 24px; height: 24px; color: var(--silver-600); }

/* ── SECTIONS ── */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-overline {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-400);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--silver-400);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── FEATURES SECTION ── */
.features-section {
  padding: 120px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover { transform: translateY(-6px); }

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon-wrap svg { width: 22px; height: 22px; }

.icon-blue   { background: rgba(10,110,245,0.18);  color: var(--primary-400); }
.icon-amber  { background: rgba(245,158,11,0.18);  color: #FCD34D; }
.icon-green  { background: rgba(16,185,129,0.18);  color: #34D399; }
.icon-purple { background: rgba(139,92,246,0.18);  color: #C4B5FD; }
.icon-cyan   { background: rgba(6,182,212,0.18);   color: var(--accent-400); }
.icon-rose   { background: rgba(244,63,94,0.18);   color: #FB7185; }
.icon-teal   { background: rgba(20,184,166,0.18);  color: #2DD4BF; }
.icon-sky    { background: rgba(14,165,233,0.18);  color: #7DD3FC; }

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 14px;
  color: var(--silver-400);
  line-height: 1.65;
}

/* ── HOW IT WORKS ── */
.how-section {
  padding: 120px 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(10,110,245,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(6,182,212,0.04) 0%, transparent 50%);
}

.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary-400);
  background: rgba(10,110,245,0.12);
  border: 1px solid rgba(10,110,245,0.18);
  flex-shrink: 0;
}

.step-line {
  width: 2px;
  flex: 1;
  min-height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent);
  margin: 8px 0;
}

.step-content {
  flex: 1;
  padding: 24px;
  margin-bottom: 20px;
}

.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(10,110,245,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step-icon svg { width: 18px; height: 18px; color: var(--primary-400); }

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 14px;
  color: var(--silver-400);
  line-height: 1.65;
}

/* ── SAFETY SECTION ── */
.safety-section {
  padding: 120px 0;
}

.safety-rules-card {
  padding: 40px;
}

.safety-rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 48px;
}

.safety-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--silver-300);
  line-height: 1.4;
}

.rule-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  color: #34D399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.safety-card-footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
}

.safety-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--silver-500);
}
.safety-badge svg { width: 14px; height: 14px; color: var(--success); }

/* ── ROLES SECTION ── */
.roles-section {
  padding: 120px 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(6,182,212,0.05) 0%, transparent 60%);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.role-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.role-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.role-info strong {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.role-info span {
  font-size: 11px;
  color: var(--silver-500);
  line-height: 1.4;
}

/* ── CTA SECTION ── */
.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.cta-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(10,110,245,0.5), transparent);
  top: -100px;
  left: -100px;
  animation: orbFloat 10s ease-in-out infinite;
}
.cta-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.4), transparent);
  bottom: -100px;
  right: -100px;
  animation: orbFloat 12s ease-in-out infinite reverse;
}

.cta-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.cta-headline {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 16px;
  color: var(--silver-400);
  line-height: 1.7;
  margin-bottom: 40px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-600));
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-400), var(--accent-500));
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-cta:hover::before { opacity: 1; }
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(10,110,245,0.45); }
.btn-cta svg { width: 18px; height: 18px; position: relative; z-index: 1; transition: transform 0.2s; }
.btn-cta:hover svg { transform: translateX(3px); }
.btn-cta > *:not(::before) { position: relative; z-index: 1; }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 32px 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--silver-400);
}
.footer-brand .logo-icon { width: 28px; height: 28px; }
.footer-brand .logo-icon svg { width: 14px; height: 14px; }
.footer-copy { font-size: 13px; color: var(--silver-600); }
.footer-copy-2 { font-size: 12px; color: var(--silver-700); }

/* ── REVEAL ANIMATIONS ── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0,0,0.2,1), transform 0.6s cubic-bezier(0,0,0.2,1);
  transition-delay: var(--delay, 0s);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── APP STYLES (shared by all app pages) ── */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--page-bg);
  transition: background 0.14s ease;
}

/* Sidebar */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--glass-border);
  transition: width 0.18s cubic-bezier(0.25,0.1,0.25,1), background 0.14s ease;
  z-index: 20;
  overflow-x: hidden;  /* preserve collapse animation, allow dropdown to overflow-y */
  overflow-y: visible;
}

.sidebar.collapsed {
  width: 72px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--glass-border);
  min-height: 72px;
  overflow: hidden;
}

.sidebar-logo-text {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-primary);
  transition: opacity 0.14s ease;
}
.sidebar.collapsed .sidebar-logo-text { opacity: 0; pointer-events: none; }

.sidebar-location {
  padding: 12px 14px;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}

.location-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: background 0.1s ease;
  width: 100%;
  color: var(--silver-300);
}
.location-picker:hover { background: var(--glass-bg-md); }
.location-picker svg { width: 14px; height: 14px; color: var(--primary-400); flex-shrink: 0; }
.location-picker span { font-size: 13px; font-weight: 500; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.14s ease; }
.sidebar.collapsed .location-picker span, .sidebar.collapsed .location-picker .loc-chevron { opacity: 0; width: 0; }

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--silver-500);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.1s ease, background 0.1s ease;
  position: relative;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { color: var(--text-primary); background: rgba(128,128,128,0.08); }
.nav-item.active { color: var(--primary-300); background: rgba(10,110,245,0.10); }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--primary-500);
}
.nav-item-label { transition: opacity 0.14s ease; }
.sidebar.collapsed .nav-item-label { opacity: 0; width: 0; }

.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--glass-border);
}

.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px;
  border-radius: var(--radius-md);
  color: var(--silver-600);
  transition: color 0.1s ease, background 0.1s ease;
}
.sidebar-collapse-btn:hover { color: var(--text-secondary); background: var(--glass-bg); }
.sidebar-collapse-btn svg { width: 18px; height: 18px; }

/* Main Area */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 64px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--topbar-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-shrink: 0;
  transition: background 0.14s ease, box-shadow 0.14s ease;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-sidebar-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--silver-400);
  transition: color 0.1s ease, background 0.1s ease;
}
.mobile-sidebar-btn:hover { color: var(--text-primary); background: rgba(128,128,128,0.10); }
.mobile-sidebar-btn svg { width: 20px; height: 20px; }

.topbar-page-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--silver-400);
  position: relative;
  transition: color 0.1s ease, background 0.1s ease;
}
.topbar-btn:hover { color: var(--text-primary); background: rgba(128,128,128,0.10); }
.topbar-btn svg { width: 18px; height: 18px; }

.notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--error);
  border: 1.5px solid var(--topbar-bg);
}

.user-avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.12s ease;
}
.user-avatar-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(10,110,245,0.3); }

.page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px;
}

/* ── FORM ELEMENTS ── */
.glass-input {
  background: var(--input-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: background 0.1s ease, border-color 0.1s ease, box-shadow 0.12s ease;
  width: 100%;
}
.glass-input::placeholder { color: var(--silver-600); }
.glass-input:focus {
  background: rgba(255,255,255,0.10);
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(10,110,245,0.15);
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--silver-500);
  margin-bottom: 8px;
}

.form-group {
  margin-bottom: 20px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--primary-500);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.1s ease, transform 0.1s ease, box-shadow 0.1s ease;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary:hover { background: var(--primary-400); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(10,110,245,0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { width: 16px; height: 16px; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--silver-300);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: background 0.1s ease, color 0.1s ease, border-color 0.1s ease;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-secondary:hover { background: var(--glass-bg-md); color: #fff; border-color: var(--glass-border-strong); }
.btn-secondary svg { width: 16px; height: 16px; }

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(239,68,68,0.2);
  border: 1px solid rgba(239,68,68,0.3);
  transition: background 0.1s ease;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-danger:hover { background: rgba(239,68,68,0.35); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  color: var(--silver-400);
  transition: color 0.1s ease, background 0.1s ease;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-icon:hover { color: var(--text-primary); background: var(--glass-bg-md); }
.btn-icon svg { width: 16px; height: 16px; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: rgba(15,20,25,0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-title { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  color: var(--silver-400);
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.1s ease, background 0.1s ease;
}
.modal-close:hover { color: #fff; background: var(--glass-bg-md); }
.modal-close svg { width: 16px; height: 16px; }

/* ── TABS ── */
.tabs-bar {
  display: flex;
  gap: 4px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 4px;
  width: fit-content;
  margin-bottom: 24px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--silver-500);
  transition: background 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
  cursor: pointer;
  font-family: var(--font-body);
}
.tab-btn:hover { color: var(--silver-300); }
.tab-btn.active {
  background: var(--glass-bg-md);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tab-btn svg { width: 15px; height: 15px; }

/* ── BADGE / PILL ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-blue    { background: rgba(10,110,245,0.15); color: var(--primary-300); border: 1px solid rgba(10,110,245,0.2); }
.badge-green   { background: rgba(16,185,129,0.15); color: #34D399; border: 1px solid rgba(16,185,129,0.2); }
.badge-amber   { background: rgba(245,158,11,0.15); color: #FCD34D; border: 1px solid rgba(245,158,11,0.2); }
.badge-red     { background: rgba(239,68,68,0.15);  color: #FCA5A5; border: 1px solid rgba(239,68,68,0.2); }
.badge-silver  { background: rgba(160,174,189,0.12); color: var(--silver-400); border: 1px solid rgba(160,174,189,0.15); }
.badge-cyan    { background: rgba(6,182,212,0.15);  color: var(--accent-300); border: 1px solid rgba(6,182,212,0.2); }
.badge-purple  { background: rgba(139,92,246,0.15); color: #C4B5FD; border: 1px solid rgba(139,92,246,0.2); }

/* ── TOAST NOTIFICATIONS ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: rgba(15,20,25,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border-strong);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  max-width: 360px;
  pointer-events: auto;
  transform: translateX(100px);
  opacity: 0;
  transition: transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.14s ease;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.hide { transform: translateX(100px); opacity: 0; }

.toast-icon { width: 20px; height: 20px; flex-shrink: 0; }
.toast-success .toast-icon { color: var(--success); }
.toast-error   .toast-icon { color: var(--error); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info    .toast-icon { color: var(--info); }

/* ── EMPTY STATES ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  text-align: center;
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.empty-state-icon svg { width: 28px; height: 28px; color: var(--silver-600); }
.empty-state-title { font-size: 17px; font-weight: 700; color: var(--silver-300); margin-bottom: 8px; }
.empty-state-desc { font-size: 14px; color: var(--silver-600); max-width: 360px; line-height: 1.6; }

/* ── LOADING SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--glass-border);
  margin: 20px 0;
}

/* ── SECTION HEADER (app pages) ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.page-subtitle {
  font-size: 14px;
  color: var(--silver-500);
  margin-top: 4px;
}

/* ── GRID UTILITIES ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }

/* ── ANIMATIONS ── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes orbFade {
  from { opacity: 0; }
  to   { opacity: 0.4; }
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  25%  { transform: translate(20px, -30px); }
  50%  { transform: translate(-15px, 20px); }
  75%  { transform: translate(30px, 15px); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes textShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
  }
  .hero-content { max-width: 600px; margin: 0 auto; }
  .hero-sub { max-width: none; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-mockup { max-width: 560px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .roles-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .mobile-menu-btn { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .safety-rules-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr 1fr; }
  .section-container { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-sidebar-btn { display: flex !important; }
  .topbar { padding: 0 16px; }
  .page-content { padding: 16px; }
}

@media (max-width: 480px) {
  .roles-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 36px; }
  .section-title { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══════════════════════════════════════════════════════
   LIGHT THEME — APP SHELL OVERRIDES
   ═══════════════════════════════════════════════════════ */

/* Page background — light: #F0F4F8 tint, everything inside white */
html.light .app-layout        { background: var(--page-bg); }
html.light .main-area         { background: var(--page-bg); }
html.light .page-content      { background: var(--page-bg); }
html.light body               { background: var(--page-bg); }

/* Sidebar light */
html.light .sidebar-collapse-btn:hover { background: rgba(0,0,0,0.05); color: var(--silver-700); }

/* Sidebar */
html.light .sidebar {
  background: var(--sidebar-bg);
  border-right-color: rgba(0,0,0,0.08);
  box-shadow: 2px 0 16px rgba(0,0,0,0.06);
}
html.light .sidebar-logo-text {
  color: var(--silver-900);
  -webkit-text-fill-color: var(--silver-900);
}
html.light .nav-item           { color: var(--silver-700); }
html.light .nav-item:hover     { background: rgba(10,110,245,0.06); color: var(--primary-600); }
html.light .nav-item.active    { background: rgba(10,110,245,0.10); color: var(--primary-500); }
html.light .nav-item.active svg{ color: var(--primary-500); }
html.light .nav-badge          { background: var(--primary-500); color: #fff; }
html.light .sidebar-user-name  { color: var(--silver-800); }
html.light .sidebar-user-role  { color: var(--silver-500); }
html.light .sidebar-collapse-btn { color: var(--silver-600); }
html.light .sidebar-collapse-btn:hover { background: rgba(0,0,0,0.05); }
html.light .location-picker    { color: var(--silver-700); background: rgba(0,0,0,0.04); }
html.light .location-picker:hover { background: rgba(0,0,0,0.07); }
html.light .location-menu-inner{ background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.10); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
html.light .location-menu-item { color: var(--silver-700); }
html.light .location-menu-item:hover { background: rgba(10,110,245,0.06); color: var(--primary-600); }

/* Topbar */
html.light .topbar             { background: var(--topbar-bg); border-bottom-color: rgba(0,0,0,0.07); }
html.light .topbar-page-title  { color: var(--silver-900); }
html.light .topbar-date        { color: var(--silver-600); }
html.light .topbar-btn         { color: var(--silver-600); }
html.light .topbar-btn:hover   { background: rgba(0,0,0,0.06); color: var(--silver-800); }
html.light .user-avatar-btn    { background: linear-gradient(135deg, var(--primary-500), var(--accent-600)); color: #fff; }

/* Glass cards in light mode — fully white, clearly visible */
html.light .glass-card {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
}
html.light .glass-card:hover {
  border-color: rgba(0,0,0,0.13);
  box-shadow: 0 2px 8px rgba(0,0,0,0.09), 0 8px 24px rgba(0,0,0,0.07);
}
html.light .glass-panel {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.09);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07), 0 12px 32px rgba(0,0,0,0.05);
}

/* Page titles and text */
html.light .page-title         { color: var(--silver-900); }
html.light .page-subtitle      { color: var(--silver-600); }

/* Topbar additional overrides */
html.light .topbar-page-title  { color: var(--silver-900); }
html.light .topbar-btn         { color: var(--silver-600); }
html.light .topbar-btn:hover   { background: rgba(0,0,0,0.07); color: var(--silver-900); }
html.light .mobile-sidebar-btn:hover { background: rgba(0,0,0,0.07); color: var(--silver-900); }

/* Nav items */
html.light .nav-item           { color: var(--silver-700); }
html.light .nav-item:hover     { background: rgba(10,110,245,0.07); color: var(--primary-600); }
html.light .nav-item.active    { background: rgba(10,110,245,0.10); color: var(--primary-600); }

/* Buttons */
html.light .btn-secondary {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
  color: var(--silver-800);
}
html.light .btn-secondary:hover {
  background: rgba(0,0,0,0.09);
  color: var(--silver-900);
}

/* Inputs / selects */
html.light input, html.light select, html.light textarea {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.14);
  color: var(--silver-900);
}
html.light input::placeholder, html.light textarea::placeholder { color: var(--silver-500); }
html.light .glass-input { background: #FFFFFF; border-color: rgba(0,0,0,0.14); color: var(--silver-900); }
html.light .glass-input::placeholder { color: var(--silver-500); }
html.light .glass-input:focus { background: #FFFFFF; border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(10,110,245,0.12); }

/* Toast in light mode */
html.light .toast {
  background: rgba(255,255,255,0.97);
  color: var(--silver-900);
  border-color: rgba(0,0,0,0.10);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Skeleton loading */
html.light .skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
}

/* Table & grid cells in schedule */
html.light .schedule-table th  { color: var(--silver-600); border-color: rgba(0,0,0,0.06); background: rgba(0,0,0,0.02); }
html.light .schedule-table td  { border-color: rgba(0,0,0,0.05); color: var(--silver-800); }
html.light .sched-cell         { background: rgba(255,255,255,0.70); border-color: rgba(0,0,0,0.07); }
html.light .sched-cell:hover   { background: rgba(255,255,255,0.95); }
html.light .sched-cell.has-assignment { background: rgba(10,110,245,0.04); }

/* Violation / warning panel */
html.light .violation-panel    { background: rgba(255,255,255,0.80); border-color: rgba(0,0,0,0.08); }
html.light .violation-item     { border-color: rgba(0,0,0,0.06); color: var(--silver-700); }

/* KPI stat cards */
html.light .stat-label         { color: var(--silver-600); }
html.light .stat-value         { color: var(--silver-900); }

/* Form labels */
html.light .form-label         { color: var(--silver-700); }

/* Scrollbar in light */
html.light ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); }
html.light ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.30); }

/* ─── THEME TOGGLE BUTTON ─── */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--silver-400);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.theme-toggle-btn:hover {
  background: var(--glass-bg-md);
  border-color: var(--glass-border-strong);
  color: var(--silver-200);
  transform: scale(1.07);
}
.theme-toggle-btn:active { transform: scale(0.95); }
.theme-toggle-btn svg { width: 16px; height: 16px; transition: opacity 0.2s, transform 0.35s; }

/* In light mode, show moon icon; in dark mode, show sun icon */
.theme-toggle-btn .icon-sun   { display: none; }
.theme-toggle-btn .icon-moon  { display: block; }
html.light .theme-toggle-btn .icon-sun  { display: block; }
html.light .theme-toggle-btn .icon-moon { display: none; }

html.light .theme-toggle-btn {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
  color: var(--silver-700);
}
html.light .theme-toggle-btn:hover {
  background: rgba(0,0,0,0.09);
  color: var(--silver-900);
}

/* ══════════════════════════════════════
   LIGHT MODE — STRUCTURAL OVERRIDES
   These kill the dark glass effects that
   make light mode look grey/washed out
   ══════════════════════════════════════ */

html.light body,
html.light .app-layout,
html.light .main-area,
html.light .page-content {
  background: #F0F4F8 !important;
  color: #1C2530;
}

html.light .sidebar {
  background: #FFFFFF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

html.light .topbar {
  background: #FFFFFF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

html.light .glass-card,
html.light .glass-panel {
  background: #FFFFFF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

html.light .glass-card:hover,
html.light .glass-panel:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

html.light .glass-input,
html.light input,
html.light select,
html.light textarea {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.12);
  color: #1C2530;
}

html.light .glass-input:focus,
html.light input:focus,
html.light select:focus,
html.light textarea:focus {
  border-color: #0A6EF5;
  box-shadow: 0 0 0 3px rgba(10, 110, 245, 0.12);
}

html.light .kpi-bar,
html.light .kpi-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

html.light .schedule-table th,
html.light .table-header {
  background: #F8FAFB !important;
  color: #5C6B7E;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html.light .schedule-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

html.light .schedule-table tr:hover td {
  background: #F4F6F8;
}

html.light .table-emp-cell {
  background: #FFFFFF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.light .today-dive-header {
  background: #F8FAFB !important;
}

html.light .nav-item {
  color: #5C6B7E;
}

html.light .nav-item:hover {
  background: #F4F6F8;
  color: #1C2530;
}

html.light .nav-item.active {
  background: rgba(10, 110, 245, 0.08);
  color: #0A6EF5;
}

html.light .sidebar .logo-text,
html.light .sidebar .location-name {
  color: #1C2530;
}

html.light .topbar .page-title {
  color: #1C2530;
}

html.light .stat-value,
html.light .kpi-value {
  color: #1C2530;
}

html.light .stat-label,
html.light .kpi-label {
  color: #5C6B7E;
}

html.light .cert-alert-item {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

html.light .activity-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

html.light .badge,
html.light .role-badge {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

html.light .divider,
html.light hr {
  border-color: rgba(0, 0, 0, 0.06);
}

html.light .dropdown-menu,
html.light .popover,
html.light .modal-content {
  background: #FFFFFF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 12px 40px rgba(0, 0, 0, 0.06);
}

html.light .auth-logo-text {
  background: linear-gradient(135deg, #1C2530, #455364) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html.light ::placeholder {
  color: #A0AEBD !important;
}

html.light ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

html.light ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════
   REFINEMENT #3 — FLIGHT COLUMN STYLES
   Amber/gold highlight, badges, slot headers, cell shimmer
   ═══════════════════════════════════════════════════════════════════ */

/* ── Flight column header (amber accent) ── */
.flight-col-header {
  background: rgba(245, 158, 11, 0.06) !important;
  border-left: 2px solid rgba(245, 158, 11, 0.30) !important;
  position: relative;
}
.flight-col-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245,158,11,0.08) 0%, transparent 100%);
  pointer-events: none;
}

/* ── Flight role cell (body rows) ── */
.flight-role-cell {
  background: rgba(245, 158, 11, 0.04) !important;
  border-left: 2px solid rgba(245, 158, 11, 0.18) !important;
  transition: background 0.1s ease;
}
.flight-role-cell:hover {
  background: rgba(245, 158, 11, 0.10) !important;
}
.flight-role-cell:active {
  background: rgba(245, 158, 11, 0.16) !important;
}

/* ── Flight toggle button ── */
.flight-toggle-btn {
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.08s ease, border-color 0.08s ease, color 0.08s ease, transform 0.08s ease;
}
.flight-toggle-btn:hover {
  transform: scale(1.06);
}
.flight-toggle-btn:active {
  transform: scale(0.97);
}

/* ── Flight role badges (amber variants) ── */
.role-badge.role-ft  { background: rgba(245,158,11,0.18); color: #FCD34D; border: 1px solid rgba(245,158,11,0.30); }
.role-badge.role-fo  { background: rgba(245,158,11,0.14); color: #FDE68A; border: 1px solid rgba(245,158,11,0.25); }
.role-badge.role-fa  { background: rgba(245,158,11,0.12); color: #FEF3C7; border: 1px solid rgba(245,158,11,0.20); }
.role-badge.role-ftt { background: rgba(245,158,11,0.08); color: #D97706; border: 1px solid rgba(245,158,11,0.15); font-style: italic; }
.role-badge.role-fot { background: rgba(245,158,11,0.08); color: #D97706; border: 1px solid rgba(245,158,11,0.15); font-style: italic; }

/* ── Slot-time header (sub-row) ── */
/* Single source of truth — merged from app.css (padding/gap) */
.slot-time-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
}
.today-slot-header {
  background: rgba(10, 110, 245, 0.05);
}

/* ── Role select buttons in assignment modal ── */
.role-select-btn {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 10px 6px 8px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: background 0.08s ease, border-color 0.08s ease, transform 0.08s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.08s ease;
  font-family: var(--font-body);
}
.role-select-btn:hover {
  background: var(--glass-bg-md);
  border-color: var(--glass-border-strong);
  transform: translateY(-1px);
}
.role-select-btn.selected {
  background: rgba(10,110,245,0.12);
  border-color: rgba(10,110,245,0.35);
  box-shadow: 0 0 0 1px rgba(10,110,245,0.20), 0 2px 8px rgba(10,110,245,0.15);
}
.role-select-btn:active {
  transform: scale(0.97);
}

/* ── Light mode overrides for flight column ── */
html.light .flight-col-header {
  background: rgba(245, 158, 11, 0.07) !important;
  border-left-color: rgba(245, 158, 11, 0.35) !important;
}
html.light .flight-role-cell {
  background: rgba(245, 158, 11, 0.05) !important;
  border-left-color: rgba(245, 158, 11, 0.25) !important;
}
html.light .flight-role-cell:hover {
  background: rgba(245, 158, 11, 0.11) !important;
}

/* ─────────────────────────────────────────────────────────────────────
   PERFORMANCE & LUXURY UX — Ultra-fast interactions, zero jank
   ─────────────────────────────────────────────────────────────────────
   All interactive elements share a single fast easing curve.
   No interaction should ever feel sluggish or mechanical.
   ──────────────────────────────────────────────────────────────────── */

/* Global interactive baseline */
button, a, [role="button"], [tabindex] {
  transition-duration: 90ms;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Nav items — instant feel */
.nav-item {
  transition: background 80ms ease, color 80ms ease, border-color 80ms ease !important;
  will-change: background, color;
}

/* Sidebar collapse — smooth */
.sidebar {
  transition: width 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: width;
}

/* Topbar buttons */
.topbar-btn {
  transition: background 80ms ease, color 80ms ease, transform 80ms ease !important;
}
.topbar-btn:hover { transform: scale(1.06); }
.topbar-btn:active { transform: scale(0.95) !important; transition-duration: 50ms !important; }

/* Primary + secondary buttons — feel snappy */
.btn-primary {
  transition: background 90ms ease, transform 90ms cubic-bezier(0.34,1.4,0.64,1), box-shadow 90ms ease, filter 90ms ease !important;
}
.btn-primary:hover { transform: translateY(-1px) scale(1.01); }
.btn-primary:active { transform: translateY(0) scale(0.97) !important; transition-duration: 50ms !important; }

.btn-secondary {
  transition: background 90ms ease, border-color 90ms ease, color 90ms ease, transform 90ms cubic-bezier(0.34,1.4,0.64,1) !important;
}
.btn-secondary:hover { transform: translateY(-1px); }
.btn-secondary:active { transform: scale(0.97) !important; transition-duration: 50ms !important; }

.btn-icon {
  transition: background 80ms ease, color 80ms ease, transform 80ms cubic-bezier(0.34,1.4,0.64,1) !important;
}
.btn-icon:hover { transform: scale(1.10); }
.btn-icon:active { transform: scale(0.94) !important; transition-duration: 50ms !important; }

/* Glass cards hover */
.glass-card {
  transition: border-color 100ms ease, box-shadow 100ms ease, transform 100ms cubic-bezier(0.34,1.2,0.64,1) !important;
}
.glass-card:hover { transform: translateY(-2px); }

/* Modal open/close — feel instant */
.modal-overlay {
  transition: opacity 120ms ease !important;
}
.modal-box {
  transition: transform 140ms cubic-bezier(0.34, 1.4, 0.64, 1), opacity 120ms ease !important;
}

/* Assignment cells in schedule grid */
.assignment-cell {
  transition: background 80ms ease, box-shadow 80ms ease !important;
  cursor: pointer;
}
.assignment-cell:hover {
  background: rgba(255,255,255,0.07) !important;
}
html.light .assignment-cell:hover {
  background: rgba(10,110,245,0.05) !important;
}

/* Week nav buttons */
.week-nav-btn {
  transition: background 80ms ease, color 80ms ease, transform 80ms cubic-bezier(0.34,1.4,0.64,1) !important;
}
.week-nav-btn:hover { transform: scale(1.12); }
.week-nav-btn:active { transform: scale(0.92) !important; transition-duration: 50ms !important; }

/* Tabs (API keys, etc.) */
.tab-btn {
  transition: background 80ms ease, color 80ms ease, box-shadow 80ms ease !important;
}

/* Location picker */
.location-picker {
  transition: background 80ms ease, color 80ms ease !important;
}

/* Staff cards */
.staff-card {
  transition: transform 120ms cubic-bezier(0.34,1.2,0.64,1), border-color 100ms ease, box-shadow 120ms ease !important;
}

/* Toggle (settings) */
.toggle-slider {
  transition: background-color 120ms ease !important;
}
.toggle-slider::before {
  transition: transform 130ms cubic-bezier(0.34,1.4,0.64,1) !important;
}

/* Dive type select dropdown */
.dive-type-select {
  transition: color 80ms ease !important;
}

/* ─────────────────────────────────────────────────────────────────────
   LIQUID GLASS — Cursor Glow, Border Reflections, Magnetic feel
   ─────────────────────────────────────────────────────────────────────
   Handled via luxury-interactions.js; CSS provides the visual layer.
   ──────────────────────────────────────────────────────────────────── */

/* Cursor glow orb (injected by JS) */
#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(10, 110, 245, 0.10) 0%,
    rgba(10, 110, 245, 0.04) 40%,
    transparent 70%
  );
  transition: opacity 200ms ease;
  mix-blend-mode: screen;
}
html.light #cursor-glow {
  background: radial-gradient(
    circle at center,
    rgba(10, 110, 245, 0.06) 0%,
    rgba(10, 110, 245, 0.02) 40%,
    transparent 70%
  );
  mix-blend-mode: multiply;
}

/* Magnetic border shimmer on interactive elements */
.glass-card::after,
.glass-panel::after,
.modal-box::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(
    var(--shimmer-angle, 135deg),
    rgba(255,255,255,0.0) 0%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.0) 100%
  ) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;  /* never intercept clicks */
  z-index: 0;            /* sit behind all child content */
  opacity: 0;
  transition: opacity 200ms ease;
}
.glass-card:hover::after,
.glass-panel:hover::after,
.modal-box:hover::after {
  opacity: 1;
}
/* Ensure all direct children sit above the ::after shimmer layer */
.glass-card > *,
.glass-panel > * {
  position: relative;
  z-index: 1;
}

/* Ripple on click (injected by JS) */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transform: scale(0);
  animation: rippleExpand 480ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  pointer-events: none;
  z-index: 0;
}
html.light .ripple-effect {
  background: rgba(10, 110, 245, 0.12);
}
@keyframes rippleExpand {
  to { transform: scale(4); opacity: 0; }
}

/* Ripple containers — position: relative needed, but overflow must stay visible.
   Table cells (<td>) and nav-items must NEVER be overflow:hidden.
   Sticky positioning breaks inside overflow:hidden ancestors.
   Ripple clipping is handled by .ripple-container child span instead. */
.btn-primary, .btn-secondary, .btn-icon {
  position: relative;
  overflow: hidden; /* buttons can clip ripples directly */
}

.nav-item {
  position: relative;
  overflow: visible; /* must stay visible — clips active-bar and labels otherwise */
}

.glass-card {
  position: relative;
  overflow: visible; /* must stay visible — overflow:hidden breaks sticky child cells */
}

.assignment-cell {
  position: relative;
  overflow: visible; /* must stay visible — <td> overflow:hidden breaks cell rendering */
}

/* Ripple clipping container for nav-items and glass-cards */
.nav-item .ripple-container,
.glass-card .ripple-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

/* ── Schedule table sticky optimisations ── */
/* contain: layout style (NOT strict — strict adds size containment which
   collapses the element to 0 height when no explicit height is set) */
.schedule-table-wrap {
  contain: layout style;
  will-change: scroll-position;
}
.name-header, td:first-child {
  will-change: transform;
}

/* ── Page-content entry animation (instant feel) ── */
/* Exclude .schedule-grid-wrap — renderGrid() rebuilds innerHTML frequently,
   re-triggering the animation causes a visible flash on every grid update. */
.page-content > *:not(.schedule-grid-wrap) {
  animation: fadeSlideIn 140ms cubic-bezier(0.25,0.46,0.45,0.94) both;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

html.light ::-webkit-scrollbar-track {
  background: #F0F4F8;
}

html.light ::selection {
  background: rgba(10, 110, 245, 0.15);
  color: #1C2530;
}
