/* ================================================================
   GLOBAL FLIGHT INSPECTION GROUP (GFIG) — Main Stylesheet
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;600;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Root Variables ─────────────────────────────────────────── */
:root {
  --bg-primary:    #0b1f3a;
  --bg-secondary:  #0d2447;
  --bg-card:       #0e1d33;
  --bg-card-alt:   #122040;
  --bg-hover:      #16274a;
  --border:        #1a2d50;
  --border-light:  #233f6e;

  --blue:          #0077ff;
  --blue-light:    #3399ff;
  --blue-glow:     rgba(0, 119, 255, 0.2);

  --orange:        #ff6a00;
  --orange-light:  #ff8c2a;

  --pass:          #00e676;
  --pass-bg:       rgba(0, 230, 118, 0.09);
  --pass-border:   rgba(0, 230, 118, 0.28);

  --monitor:       #ffab40;
  --monitor-bg:    rgba(255, 171, 64, 0.09);
  --monitor-border:rgba(255, 171, 64, 0.28);

  --fail:          #ff5252;
  --fail-bg:       rgba(255, 82, 82, 0.09);
  --fail-border:   rgba(255, 82, 82, 0.28);

  --active:        #40aaff;
  --active-bg:     rgba(64, 170, 255, 0.09);

  --text:          #ddeeff;
  --text-sub:      #7a9cc8;
  --text-muted:    #3d5680;

  --font:      'Inter', system-ui, sans-serif;
  --font-head: 'Orbitron', monospace;
  --font-mono: 'JetBrains Mono', monospace;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 20px;

  --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  --glow:   0 0 30px rgba(0, 119, 255, 0.14);

  --nav-h: 66px;
  --t: 0.2s ease;
}

/* ── Light Theme ────────────────────────────────────────────── */
:root.light {
  --bg-primary:    #eef2f7;
  --bg-secondary:  #e2e8f0;
  --bg-card:       #ffffff;
  --bg-card-alt:   #f7f9fc;
  --bg-hover:      #dde4ed;
  --border:        #cbd5e1;
  --border-light:  #94a3b8;

  --blue:          #0066dd;
  --blue-light:    #2277ee;
  --blue-glow:     rgba(0, 102, 221, 0.15);

  --text:          #1a2332;
  --text-sub:      #475569;
  --text-muted:    #94a3b8;

  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --glow:   0 0 20px rgba(0, 102, 221, 0.08);
}
:root.light .navbar {
  background: rgba(255, 255, 255, 0.92);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 15px;
}
a { color: var(--blue-light); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--text); }
img { max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
ul { list-style: none; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1300px; margin: 0 auto; padding: 0 28px; }
.page { padding-top: calc(var(--nav-h) + 36px); min-height: 100vh; padding-bottom: 60px; }

.page-header {
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.page-header h1 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}
.page-header p { color: var(--text-sub); font-size: 0.875rem; margin-top: 4px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* ── Navigation ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(6, 13, 26, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.navbar .container { display: flex; align-items: center; width: 100%; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-right: 36px;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  background: #0b1f3a;
  padding: 4px 12px;
  border-radius: var(--r-md);
  display: block;
  object-fit: contain;
  transition: opacity var(--t);
}
.nav-logo:hover .nav-logo-img { opacity: 0.88; }

.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  padding: 8px 13px;
  color: var(--text-sub);
  font-size: 0.83rem;
  font-weight: 500;
  border-radius: var(--r-md);
  transition: all var(--t);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--bg-card); }
.nav-link.active { color: var(--blue-light); background: var(--active-bg); }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-pilot { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 5px 10px; border-radius: var(--r-md); transition: background var(--t); }
.nav-pilot:hover { background: var(--bg-card); }
.nav-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.78rem; color: white;
  border: 2px solid var(--blue);
  flex-shrink: 0;
}
.nav-pilot-info { line-height: 1.25; }
.nav-pilot-name { font-size: 0.83rem; font-weight: 600; color: var(--text); }
.nav-pilot-rank { font-size: 0.68rem; color: var(--blue-light); }
.nav-online { width: 8px; height: 8px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 6px var(--pass); flex-shrink: 0; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-size: 0.85rem; font-weight: 600;
  border: none;
  transition: all var(--t);
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-light); color: white; box-shadow: 0 4px 20px var(--blue-glow); transform: translateY(-1px); }

.btn-secondary { background: transparent; color: var(--text-sub); border: 1px solid var(--border-light); }
.btn-secondary:hover { background: var(--bg-card); color: var(--text); border-color: var(--blue); }

.btn-discord { background: #5865F2; color: white; }
.btn-discord:hover { background: #6875f5; color: white; box-shadow: 0 4px 20px rgba(88,101,242,0.3); transform: translateY(-1px); }

.btn-danger { background: var(--fail-bg); color: var(--fail); border: 1px solid var(--fail-border); }
.btn-danger:hover { background: var(--fail); color: white; }

.btn-success { background: var(--pass-bg); color: var(--pass); border: 1px solid var(--pass-border); }
.btn-success:hover { background: var(--pass); color: #000; }

.btn-warn { background: var(--monitor-bg); color: var(--monitor); border: 1px solid var(--monitor-border); }
.btn-warn:hover { background: var(--monitor); color: #000; }

.btn-lg { padding: 13px 26px; font-size: 0.95rem; border-radius: var(--r-lg); }
.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn-xs { padding: 4px 9px; font-size: 0.72rem; }
.btn-icon { padding: 8px; border-radius: var(--r-md); background: var(--bg-card); border: 1px solid var(--border); color: var(--text-sub); }
.btn-icon:hover { border-color: var(--blue); color: var(--blue-light); }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color var(--t);
}
.card:hover { border-color: rgba(35, 63, 110, 0.8); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.card-title { font-size: 0.78rem; font-weight: 700; color: var(--text-sub); letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Metric Cards ────────────────────────────────────────────── */
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: all var(--t);
}
.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.metric-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.metric-icon { font-size: 1.4rem; margin-bottom: 12px; display: block; }
.metric-value { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; }
.metric-label { font-size: 0.78rem; color: var(--text-sub); margin-top: 6px; }
.metric-change { font-size: 0.74rem; margin-top: 8px; font-weight: 500; }
.metric-change.up   { color: var(--pass); }
.metric-change.down { color: var(--fail); }
.metric-change.neutral { color: var(--text-muted); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-pass     { background: var(--pass-bg);    color: var(--pass);    border: 1px solid var(--pass-border); }
.badge-monitor  { background: var(--monitor-bg); color: var(--monitor); border: 1px solid var(--monitor-border); }
.badge-fail     { background: var(--fail-bg);    color: var(--fail);    border: 1px solid var(--fail-border); }
.badge-active   { background: var(--active-bg);  color: var(--active);  border: 1px solid rgba(64,170,255,0.3); }
.badge-available { background: var(--pass-bg);   color: var(--pass);    border: 1px solid var(--pass-border); }
.badge-pending  { background: var(--monitor-bg); color: var(--monitor); border: 1px solid var(--monitor-border); }
.badge-suspended{ background: var(--fail-bg);    color: var(--fail);    border: 1px solid var(--fail-border); }
.badge-routine  { background: rgba(90,120,180,0.1); color: var(--text-sub); border: 1px solid rgba(90,120,180,0.2); }
.badge-priority { background: var(--monitor-bg); color: var(--monitor); border: 1px solid var(--monitor-border); }
.badge-urgent   { background: var(--fail-bg);    color: var(--fail);    border: 1px solid var(--fail-border); }
.badge-training { background: rgba(150,80,255,0.1); color: #bb88ff; border: 1px solid rgba(150,80,255,0.3); }

/* ── Rank Badges ─────────────────────────────────────────────── */
.rank-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--font-head);
}
.rank-trainee  { background: rgba(100,150,200,0.1); color: #7ab0e0; border: 1px solid rgba(100,150,200,0.3); }
.rank-junior   { background: rgba(0,200,150,0.1);   color: #00c896; border: 1px solid rgba(0,200,150,0.3); }
.rank-inspector{ background: rgba(0,119,255,0.1);   color: var(--blue-light); border: 1px solid rgba(0,119,255,0.3); }
.rank-senior   { background: rgba(200,160,0,0.1);   color: #ffc800; border: 1px solid rgba(200,160,0,0.3); }
.rank-chief    { background: rgba(255,107,53,0.12); color: var(--orange-light); border: 1px solid rgba(255,107,53,0.35); }
.rank-director { background: linear-gradient(135deg,rgba(150,0,255,0.12),rgba(255,107,53,0.12)); color: #cc88ff; border: 1px solid rgba(150,0,255,0.35); }

/* ── Branch Badges ───────────────────────────────────────────── */
.branch-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--font-head);
}
.branch-gfig { background: rgba(0,119,255,0.1);   color: var(--blue-light); border: 1px solid rgba(0,119,255,0.3); }
.branch-nag  { background: rgba(224,64,251,0.1);  color: #e040fb;           border: 1px solid rgba(224,64,251,0.3); }

/* Leaderboard branch tabs */
.lb-tab { padding:3px 10px; border-radius:var(--r-full); font-size:0.68rem; font-weight:600; border:1px solid var(--border); background:var(--bg-secondary); color:var(--text-sub); cursor:pointer; font-family:var(--font-body); transition:all 0.15s; }
.lb-tab.active { background:var(--blue); border-color:var(--blue); color:#fff; }
.lb-tab[data-lb-branch="NAG"].active { background:#e040fb; border-color:#e040fb; }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--bg-secondary); }
thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 0.7rem; font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--t); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }
tbody td { padding: 13px 16px; font-size: 0.875rem; color: var(--text); vertical-align: middle; }
.td-mono { font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue-light); }
.td-route { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; }
.td-route-arrow { color: var(--text-muted); font-size: 0.65rem; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 0.76rem; font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 8px;
  letter-spacing: 0.07em; text-transform: uppercase;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
select.form-control option { background: var(--bg-card); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* ── Result Selector ─────────────────────────────────────────── */
.result-selector { display: flex; gap: 14px; }
.result-option { flex: 1; }
.result-option input[type="radio"] { display: none; }
.result-option label {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 12px;
  border-radius: var(--r-lg);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--t);
  font-weight: 700; font-size: 0.83rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-sub);
}
.result-option label .result-icon { font-size: 2rem; }
.result-option.pass    label:hover,
.result-option.pass    input:checked + label { border-color: var(--pass);    background: var(--pass-bg);    color: var(--pass); }
.result-option.monitor label:hover,
.result-option.monitor input:checked + label { border-color: var(--monitor); background: var(--monitor-bg); color: var(--monitor); }
.result-option.fail    label:hover,
.result-option.fail    input:checked + label { border-color: var(--fail);    background: var(--fail-bg);    color: var(--fail); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--bg-primary);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,119,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,119,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,119,255,0.11) 0%, transparent 70%);
  top: -120px; right: -120px; pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.07) 0%, transparent 70%);
  bottom: 60px; left: -50px; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: var(--active-bg);
  border: 1px solid rgba(64,170,255,0.3);
  border-radius: 100px;
  font-size: 0.76rem; font-weight: 700;
  color: var(--active); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--active); animation: pulse 2s infinite; }
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.08;
  color: var(--text); margin-bottom: 10px; letter-spacing: 0.04em;
}
.hero-title span { color: var(--blue-light); }
.hero-abbr {
  font-family: var(--font-head);
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  color: var(--orange); letter-spacing: 0.35em; font-weight: 700;
  margin-bottom: 22px; display: block;
}
.hero-desc { font-size: 1.05rem; color: var(--text-sub); line-height: 1.75; max-width: 580px; margin-bottom: 36px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 44px;
  margin-top: 56px; padding-top: 36px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat-value { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--text); }
.hero-stat-label { font-size: 0.76rem; color: var(--text-sub); margin-top: 2px; }

/* ── Steps ───────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + 32px); right: calc(16.66% + 32px);
  height: 1px;
  background: linear-gradient(90deg, var(--blue), rgba(26,45,80,0.5), var(--blue));
  z-index: 0;
}
.step { text-align: center; padding: 32px 24px; position: relative; z-index: 1; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--blue-light);
  box-shadow: 0 0 24px var(--blue-glow);
}
.step-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.step-desc { font-size: 0.85rem; color: var(--text-sub); line-height: 1.65; }

/* ── Feature Cards ───────────────────────────────────────────── */
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  transition: all var(--t);
}
.feature-card:hover { border-color: rgba(0,119,255,0.4); transform: translateY(-3px); box-shadow: var(--glow); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--r-lg);
  background: var(--active-bg); border: 1px solid rgba(64,170,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 0.85rem; color: var(--text-sub); line-height: 1.65; }

/* ── Section ─────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block; padding: 4px 14px;
  background: var(--active-bg); border: 1px solid rgba(64,170,255,0.3);
  border-radius: 100px;
  font-size: 0.7rem; font-weight: 700; color: var(--active);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700; letter-spacing: 0.04em; margin-bottom: 12px;
}
.section-desc { color: var(--text-sub); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* ── Profile ─────────────────────────────────────────────────── */
.profile-hero {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 36px;
  display: flex; align-items: center; gap: 32px;
  position: relative; overflow: hidden; margin-bottom: 28px;
}
.profile-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}
.profile-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: white;
  border: 3px solid var(--blue); flex-shrink: 0;
  box-shadow: 0 0 28px var(--blue-glow);
}
.profile-info { flex: 1; }
.profile-name { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; letter-spacing: 0.04em; }
.profile-callsign { font-family: var(--font-mono); color: var(--blue-light); font-size: 0.95rem; margin: 4px 0 12px; }
.profile-meta { display: flex; gap: 22px; flex-wrap: wrap; }
.profile-meta-item { font-size: 0.8rem; color: var(--text-sub); display: flex; align-items: center; gap: 5px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.profile-stat { text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.profile-stat-value { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--text); }
.profile-stat-label { font-size: 0.75rem; color: var(--text-sub); margin-top: 4px; }

/* ── Certificates ────────────────────────────────────────────── */
.cert-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px;
  display: flex; align-items: center; gap: 14px;
  transition: all var(--t);
}
.cert-card:hover { border-color: var(--border-light); }
.cert-card.earned { border-color: var(--pass-border); }
.cert-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--active-bg); border: 1px solid rgba(64,170,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.cert-card.earned .cert-icon { background: var(--pass-bg); border-color: var(--pass-border); }
.cert-name { font-weight: 600; font-size: 0.88rem; margin-bottom: 2px; }
.cert-desc { font-size: 0.76rem; color: var(--text-sub); }
.cert-status { margin-left: auto; flex-shrink: 0; }

/* ── Training Courses ────────────────────────────────────────── */
.course-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all var(--t);
}
.course-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.course-bar { height: 4px; }
.course-bar.blue   { background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.course-bar.orange { background: linear-gradient(90deg, var(--orange), var(--orange-light)); }
.course-bar.green  { background: linear-gradient(90deg, var(--pass), #00c8a0); }
.course-bar.purple { background: linear-gradient(90deg, #9933ff, #cc66ff); }
.course-body { padding: 22px; }
.course-category { font-size: 0.68rem; font-weight: 700; color: var(--blue-light); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.course-title { font-size: 0.98rem; font-weight: 700; margin-bottom: 8px; margin-top: 2px; }
.course-desc { font-size: 0.82rem; color: var(--text-sub); margin-bottom: 16px; line-height: 1.65; }
.course-meta { display: flex; gap: 16px; font-size: 0.76rem; color: var(--text-muted); flex-wrap: wrap; }
.course-footer {
  padding: 14px 22px;
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.prog-wrap { background: var(--bg-secondary); border-radius: 100px; height: 5px; overflow: hidden; margin-top: 10px; }
.prog-bar { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--blue), var(--blue-light)); transition: width 0.5s ease; }
.prog-bar.orange { background: linear-gradient(90deg, var(--orange), var(--orange-light)); }
.prog-bar.green  { background: linear-gradient(90deg, var(--pass), #00c8a0); }

/* ── Filter Bar ──────────────────────────────────────────────── */
.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 24px;
}
.search-wrap {
  flex: 1; min-width: 200px;
  display: flex; align-items: center;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
}
.search-wrap input {
  flex: 1; padding: 8px 14px;
  background: none; border: none; color: var(--text); font-size: 0.875rem; outline: none;
}
.search-wrap input::placeholder { color: var(--text-muted); }
.search-icon { padding: 0 12px; color: var(--text-muted); font-size: 0.9rem; }
.filter-select {
  padding: 8px 12px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--r-md); color: var(--text); font-size: 0.83rem; cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--blue); }
.filter-select option { background: var(--bg-card); }

/* ── Mission Cards ───────────────────────────────────────────── */
.mission-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px;
  transition: all var(--t); cursor: pointer;
}
.mission-card:hover { border-color: rgba(0,119,255,0.5); box-shadow: var(--glow); transform: translateY(-2px); }
.mission-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.mission-id { font-family: var(--font-mono); font-size: 0.76rem; color: var(--blue-light); }
.mission-route {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
  letter-spacing: 0.08em; margin: 8px 0;
}
.mission-route-arrow { color: var(--text-muted); font-size: 0.85rem; }
.mission-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mission-detail-label { font-size: 0.72rem; color: var(--text-muted); }
.mission-detail-val { font-size: 0.82rem; color: var(--text-sub); font-weight: 500; margin-top: 1px; }
.mission-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
}

/* ── Dashboard ───────────────────────────────────────────────── */
.dash-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }

/* ── Leaderboard ─────────────────────────────────────────────── */
.lb-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.lb-item:last-child { border-bottom: none; }
.lb-rank { font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; color: var(--text-muted); width: 22px; text-align: center; flex-shrink: 0; }
.lb-rank.gold   { color: #ffd700; }
.lb-rank.silver { color: #c0c0c0; }
.lb-rank.bronze { color: #cd7f32; }
.lb-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--orange)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.72rem; color: white; flex-shrink: 0; }
.lb-info { flex: 1; min-width: 0; }
.lb-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-detail { font-size: 0.7rem; color: var(--text-sub); font-family: var(--font-mono); }
.lb-pts { font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; color: var(--blue-light); flex-shrink: 0; }

/* ── Activity ────────────────────────────────────────────────── */
.activity-item { display: flex; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.activity-dot.pass    { background: var(--pass);    box-shadow: 0 0 7px var(--pass); }
.activity-dot.monitor { background: var(--monitor); box-shadow: 0 0 7px var(--monitor); }
.activity-dot.fail    { background: var(--fail);    box-shadow: 0 0 7px var(--fail); }
.activity-dot.active  { background: var(--active);  box-shadow: 0 0 7px var(--active); }
.activity-text { font-size: 0.82rem; color: var(--text-sub); line-height: 1.55; }
.activity-text strong { color: var(--text); }
.activity-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; font-family: var(--font-mono); }

/* ── Quick Actions ───────────────────────────────────────────── */
.quick-action {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--bg-secondary);
  transition: all var(--t); cursor: pointer; margin-bottom: 8px;
  text-decoration: none; color: var(--text);
}
.quick-action:hover { border-color: var(--blue); background: var(--active-bg); color: var(--text); }
.quick-action-icon { font-size: 1.2rem; width: 32px; text-align: center; flex-shrink: 0; }
.quick-action-title { font-size: 0.85rem; font-weight: 600; }
.quick-action-desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }

/* ── Member Forms ────────────────────────────────────────────── */
.mform-tab {
  padding: 7px 16px;
  font-size: 0.78rem;
  font-family: var(--font-head);
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t, 0.2s);
  margin-bottom: -1px;
}
.mform-tab:hover { color: var(--text); }
.mform-tab.active { background: var(--bg-card); border-color: var(--border); color: var(--blue-light); }
.mform-body { padding: 20px 20px 24px; }
.mform-body.hidden { display: none; }

/* ── Discord Banner ──────────────────────────────────────────── */
.discord-banner {
  background: linear-gradient(135deg, rgba(88,101,242,0.14), rgba(88,101,242,0.04));
  border: 1px solid rgba(88,101,242,0.3);
  border-radius: var(--r-xl); padding: 48px; text-align: center;
}
.discord-banner h2 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 10px; }
.discord-banner p { color: var(--text-sub); margin-bottom: 26px; line-height: 1.7; }

/* ── Footer ──────────────────────────────────────────────────── */
footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 52px 0 28px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo-img { height: 54px; width: auto; background: #0b1f3a; padding: 5px 14px; border-radius: var(--r-md); display: block; object-fit: contain; margin-bottom: 14px; }
.footer-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; max-width: 280px; }
.footer-col-title { font-size: 0.72rem; font-weight: 700; color: var(--text-sub); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-link { display: block; font-size: 0.82rem; color: var(--text-muted); padding: 4px 0; transition: color var(--t); }
.footer-link:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.76rem; color: var(--text-muted); }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert { padding: 13px 16px; border-radius: var(--r-md); font-size: 0.85rem; display: flex; align-items: flex-start; gap: 11px; margin-bottom: 20px; }
.alert-info  { background: var(--active-bg);  border: 1px solid rgba(64,170,255,0.3); color: var(--active); }
.alert-success { background: var(--pass-bg);  border: 1px solid var(--pass-border);    color: var(--pass); }
.alert-warn  { background: var(--monitor-bg); border: 1px solid var(--monitor-border); color: var(--monitor); }
.alert-error { background: var(--fail-bg);    border: 1px solid var(--fail-border);    color: var(--fail); }

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab { padding: 10px 18px; font-size: 0.85rem; font-weight: 500; color: var(--text-sub); cursor: pointer; border-bottom: 2px solid transparent; transition: all var(--t); margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--blue-light); border-bottom-color: var(--blue-light); }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity var(--t); }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--r-xl); padding: 32px; max-width: 540px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.6); transform: translateY(20px); transition: transform var(--t); }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-family: var(--font-head); font-size: 1.1rem; letter-spacing: 0.06em; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; transition: color var(--t); padding: 2px; }
.modal-close:hover { color: var(--text); }

/* ── Live Indicator ──────────────────────────────────────────── */
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; color: var(--pass); letter-spacing: 0.1em; text-transform: uppercase; }
.live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--pass); animation: pulse 1.8s infinite; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.8)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideIn { from{opacity:0;transform:translateX(-14px)} to{opacity:1;transform:translateX(0)} }
.animate-in { animation: fadeInUp 0.45s ease forwards; }
.animate-stagger > * { opacity: 0; animation: fadeInUp 0.4s ease forwards; }
.animate-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.2s; }

/* ── Dividers & Utils ────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.text-blue    { color: var(--blue-light); }
.text-orange  { color: var(--orange); }
.text-pass    { color: var(--pass); }
.text-monitor { color: var(--monitor); }
.text-fail    { color: var(--fail); }
.text-muted   { color: var(--text-muted); }
.text-sub     { color: var(--text-sub); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-sm  { font-size: 0.83rem; }
.text-xs  { font-size: 0.72rem; }
.font-bold { font-weight: 700; }
.font-mono { font-family: var(--font-mono); }
.font-head { font-family: var(--font-head); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* ── Hamburger ──────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  cursor: pointer;
  padding: 7px 9px;
  margin-left: auto;
  transition: background var(--t);
}
.hamburger:hover { background: var(--bg-card); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .hero-stats { gap: 24px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .result-selector { flex-direction: column; }
  .profile-hero { flex-direction: column; text-align: center; }
  .profile-meta { justify-content: center; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-header { flex-direction: column; align-items: flex-start; }

  .hamburger { display: flex; }
  .nav-actions { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(11, 31, 58, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    flex-direction: column;
    gap: 2px;
    z-index: 998;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links .nav-link {
    font-size: 0.95rem;
    padding: 12px 14px;
    border-radius: var(--r-md);
    border-bottom: 1px solid var(--border);
  }
  .nav-links .nav-link:last-child { border-bottom: none; }
}

/* ================================================================
   FLEET SECTION
   ================================================================ */

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.fleet-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.fleet-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,119,255,0.12);
}

.fleet-card-division { height: 5px; background: linear-gradient(90deg, var(--orange) 0%, var(--blue) 100%); }

.fleet-card-body { padding: 20px; }

.fleet-role-tag {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
  background: rgba(255,106,0,0.08);
  color: var(--orange);
  border: 1px solid rgba(255,106,0,0.2);
}

/* ── OVP fleet tag ── */
.fleet-ovp-tag {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
  background: rgba(88,101,242,0.08);
  color: #8891f5;
  border: 1px solid rgba(88,101,242,0.25);
}

.fleet-card-division.ovp { background: linear-gradient(90deg, #5865F2 0%, var(--blue) 100%); }

/* ── Fleet section divider (inspection vs OVP) ── */
.fleet-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 44px 0 20px;
}
.fleet-divider::before, .fleet-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.fleet-divider-label {
  font-family: var(--font-head);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: #8891f5;
  white-space: nowrap;
}
.fleet-ovp-note {
  background: rgba(88,101,242,0.04);
  border: 1px solid rgba(88,101,242,0.2);
  border-radius: var(--r);
  padding: 12px 18px;
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 28px;
}
.fleet-ovp-note strong { color: var(--text); }

/* ── Mission class badges ── */
.mission-class {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}
.mission-class.class-a { background: rgba(0,230,118,0.08);  color: var(--pass);    border: 1px solid rgba(0,230,118,0.2);  }
.mission-class.class-b { background: rgba(0,119,255,0.08);  color: var(--blue);    border: 1px solid rgba(0,119,255,0.2);  }
.mission-class.class-c { background: rgba(255,171,64,0.08); color: var(--monitor); border: 1px solid rgba(255,171,64,0.2); }
.mission-class.class-d { background: rgba(255,82,82,0.08);  color: var(--danger);  border: 1px solid rgba(255,82,82,0.2);  }
.mission-class.class-e { background: rgba(88,101,242,0.08); color: #8891f5;        border: 1px solid rgba(88,101,242,0.2); }
.mission-class.class-f { background: rgba(244,196,48,0.08); color: #f4c430;        border: 1px solid rgba(244,196,48,0.2); }
.mission-class.class-g { background: rgba(38,198,218,0.08); color: #26c6da;        border: 1px solid rgba(38,198,218,0.2); }
.mission-class.class-h { background: rgba(102,187,106,0.08);color: #66bb6a;        border: 1px solid rgba(102,187,106,0.2);}

/* ── Specialist fleet tags (Spylander / Helicopter / UAS) ── */
.fleet-spy-tag {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
  background: rgba(244,196,48,0.08);
  color: #f4c430;
  border: 1px solid rgba(244,196,48,0.25);
}
.fleet-heli-tag {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
  background: rgba(38,198,218,0.08);
  color: #26c6da;
  border: 1px solid rgba(38,198,218,0.25);
}
.fleet-uas-tag {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
  background: rgba(102,187,106,0.08);
  color: #66bb6a;
  border: 1px solid rgba(102,187,106,0.25);
}
.fleet-card-division.spy  { background: linear-gradient(90deg, #f4c430 0%, var(--orange) 100%); }
.fleet-card-division.heli { background: linear-gradient(90deg, #26c6da 0%, var(--blue) 100%); }
.fleet-card-division.uas  { background: linear-gradient(90deg, #66bb6a 0%, #26c6da 100%); }

/* ── Global capability cards ── */
.global-cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  transition: border-color var(--t), transform var(--t);
}
.global-cap-card:hover { transform: translateY(-2px); border-color: var(--orange); }
.global-cap-icon { font-size: 2.2rem; margin-bottom: 12px; }
.global-cap-name {
  font-family: var(--font-head);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.global-cap-desc {
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.6;
}

.fleet-aircraft-name {
  font-family: var(--font-head);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.fleet-aircraft-role {
  font-size: 0.76rem;
  color: var(--text-sub);
  margin-bottom: 14px;
  line-height: 1.4;
}

.fleet-callsign {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--orange);
  background: rgba(255,106,0,0.08);
  border: 1px solid rgba(255,106,0,0.2);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  display: inline-block;
  margin-bottom: 14px;
}

.fleet-specs { display: flex; flex-direction: column; gap: 0; }
.fleet-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.fleet-spec-row:last-child { border-bottom: none; }
.fleet-spec-label { color: var(--text-sub); }
.fleet-spec-val   { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text); }

/* -- Division overview cards -- */
.division-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  text-align: center;
  transition: border-color var(--t), transform var(--t);
}
.division-card:hover { transform: translateY(-2px); }
.division-card-uk:hover { border-color: #012169; }
.division-card-us:hover { border-color: #3C3B6E; }
.division-card-ca:hover { border-color: #FF4444; }

.division-card-flag { font-size: 2rem; margin-bottom: 10px; }
.division-card-name {
  font-family: var(--font-head);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.division-card-operator {
  font-size: 0.76rem;
  color: var(--text-sub);
  margin-bottom: 12px;
  line-height: 1.4;
}
.division-card-cs {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 4px;
}
.division-card-base {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ================================================================
   ADMIN PANEL � rank badge overrides for admin table
   ================================================================ */

.rank-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: var(--font-head);
}
.rank-director  { background: rgba(255,106,0,0.12); color: var(--orange); border: 1px solid rgba(255,106,0,0.3); }
.rank-senior    { background: rgba(0,119,255,0.1);  color: var(--blue);   border: 1px solid rgba(0,119,255,0.25); }
.rank-inspector { background: rgba(0,230,118,0.08); color: var(--pass);   border: 1px solid rgba(0,230,118,0.2); }
.rank-junior    { background: rgba(255,255,255,0.05); color: var(--text-sub); border: 1px solid var(--border); }

/* NOTAM type tags in admin table */
.notam-type {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: var(--font-head);
}
.notam-ops   { background: rgba(0,119,255,0.1);  color: var(--blue);    border: 1px solid rgba(0,119,255,0.2); }
.notam-maint { background: rgba(255,171,64,0.1); color: var(--monitor); border: 1px solid rgba(255,171,64,0.2); }
.notam-trng  { background: rgba(0,230,118,0.08); color: var(--pass);    border: 1px solid rgba(0,230,118,0.15); }

/* ================================================================
   RESPONSIVE � fleet on small screens
   ================================================================ */

@media (max-width: 600px) {
  .fleet-grid { grid-template-columns: 1fr; }
  .admin-main { padding: 18px 16px; }
}
