/* =============================================================================
   MobileDC Internal Portal — Complete Design System
   Palette: Navy #254467 · Mist #95B8C5 · Teal #3D7A8A · Dark #1E2F45
   Aesthetic: Refined military-grade command room — confident, classified, precise
   Version: 1.11 — complete (all pages)
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────────────────────────────── */
:root {
  --navy:    #254467;
  --navy2:   #1E2F45;
  --navy3:   #162338;
  --mist:    #95B8C5;
  --mist2:   #C8DDE4;
  --mist3:   #EBF2F5;
  --teal:    #3D7A8A;
  --white:   #F8FAFC;
  --gray:    #94A3B8;
  --gray2:   #64748B;
  --red:     #DC2626;
  --amber:   #D97706;
  --green:   #16A34A;
  --border:  rgba(149,184,197,0.18);
  --border2: rgba(149,184,197,0.35);
  --glass:   rgba(30,47,69,0.55);
  --shadow:  0 8px 40px rgba(22,35,56,0.45);
  --shadow2: 0 2px 12px rgba(22,35,56,0.3);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --radius:  6px;
  --radius2: 12px;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BASE BODY ─────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--navy3);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE ─────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── GRID BACKGROUND ───────────────────────────────────────────────────────── */
.page-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(149,184,197,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149,184,197,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── SIDEBAR ───────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 240px;
  background: linear-gradient(180deg, var(--navy2) 0%, var(--navy3) 100%);
  border-right: 1px solid var(--border2);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: transform var(--transition);
}

.sidebar-logo { padding: 28px 24px 20px; border-bottom: 1px solid var(--border); }
.sidebar-logo .brand { font-family: var(--font-display); font-size: 22px; letter-spacing: 4px; color: var(--white); line-height: 1; }
.sidebar-logo .sub { font-family: var(--font-mono); font-size: 9px; color: var(--mist); letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; opacity: 0.7; }

.sidebar-logo .classification {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.4);
  color: #F87171;
  padding: 3px 8px;
  border-radius: 3px;
}

.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }

.nav-section { padding: 8px 24px 4px; font-family: var(--font-mono); font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: var(--gray2); margin-top: 8px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  color: rgba(248,250,252,0.6);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.nav-link:hover { color: var(--white); background: rgba(149,184,197,0.07); border-left-color: var(--mist); }
.nav-link.active { color: var(--mist); background: rgba(149,184,197,0.1); border-left-color: var(--mist); }
.nav-link .icon { font-size: 14px; width: 18px; text-align: center; opacity: 0.7; flex-shrink: 0; }

.nav-badge { margin-left: auto; font-family: var(--font-mono); font-size: 9px; background: rgba(149,184,197,0.15); color: var(--mist); padding: 2px 6px; border-radius: 10px; }

.sidebar-footer { padding: 16px 24px; border-top: 1px solid var(--border); font-size: 11px; color: var(--gray2); }
.sidebar-footer .user { font-weight: 600; color: var(--gray); margin-bottom: 2px; }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }

.mobile-menu-btn { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-menu-btn span { display: block; width: 20px; height: 2px; background: var(--gray); border-radius: 2px; }

/* ── MAIN CONTENT ──────────────────────────────────────────────────────────── */
.main { margin-left: 240px; min-height: 100vh; position: relative; z-index: 1; }

.topbar {
  height: 56px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(22,35,56,0.6);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); }
.topbar-right { display: flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: 10px; color: var(--gray2); }

.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse-green 2s infinite; }

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.page-content { padding: 36px 40px; max-width: 1200px; }

/* ── PAGE HEADER ───────────────────────────────────────────────────────────── */
.page-header { margin-bottom: 36px; }
.page-header .eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--mist); margin-bottom: 8px; opacity: 0.8; }
.page-header h1 { font-family: var(--font-display); font-size: 48px; letter-spacing: 2px; line-height: 1; color: var(--white); }
.page-header .subtitle { margin-top: 10px; font-size: 15px; font-weight: 300; color: rgba(248,250,252,0.55); max-width: 560px; }

/* ── CARDS ─────────────────────────────────────────────────────────────────── */
.card { background: rgba(30,47,69,0.6); border: 1px solid var(--border2); border-radius: var(--radius2); padding: 24px; backdrop-filter: blur(8px); transition: border-color var(--transition), transform var(--transition); }
.card:hover { border-color: rgba(149,184,197,0.5); }
.card-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--mist); margin-bottom: 8px; opacity: 0.8; }
.card-value { font-family: var(--font-display); font-size: 36px; letter-spacing: 1px; color: var(--white); line-height: 1; }
.card-sub { margin-top: 6px; font-size: 12px; color: var(--gray); }
.card-trend { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 10px; margin-top: 8px; padding: 3px 8px; border-radius: 20px; }
.card-trend.up   { background: rgba(22,163,74,0.15);   color: #4ADE80; }
.card-trend.down { background: rgba(220,38,38,0.15);   color: #F87171; }
.card-trend.flat { background: rgba(148,163,184,0.15); color: var(--gray); }

/* ── METRIC GRID ───────────────────────────────────────────────────────────── */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }

.metric-card { background: rgba(37,68,103,0.35); border: 1px solid var(--border2); border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden; transition: all var(--transition); }
.metric-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--navy), var(--mist), var(--navy)); }
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow2); }
.metric-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--mist); opacity: 0.8; margin-bottom: 10px; }
.metric-value { font-family: var(--font-display); font-size: 32px; letter-spacing: 1px; color: var(--white); line-height: 1; }
.metric-unit { font-family: var(--font-display); font-size: 18px; color: var(--mist); margin-right: 2px; }
.metric-sub { font-size: 11px; color: var(--gray); margin-top: 6px; }

/* ── SECTION DIVIDER ───────────────────────────────────────────────────────── */
.section-divider { display: flex; align-items: center; gap: 16px; margin: 32px 0 20px; }
.section-divider .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--mist); white-space: nowrap; opacity: 0.8; }
.section-divider .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border2), transparent); }

/* ── TABLE ─────────────────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--mist); padding: 10px 16px; border-bottom: 1px solid var(--border2); text-align: left; font-weight: 500; opacity: 0.8; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: rgba(248,250,252,0.8); transition: background var(--transition); }
.data-table tr:hover td { background: rgba(149,184,197,0.05); }
.data-table tr:last-child td { border-bottom: none; }
.data-table .num { font-family: var(--font-mono); font-size: 12px; text-align: right; color: var(--white); }
.data-table .positive { color: #4ADE80; }
.data-table .negative { color: #F87171; }
.data-table .highlight { background: rgba(149,184,197,0.08); font-weight: 600; }

/* ── PROGRESS BAR ──────────────────────────────────────────────────────────── */
.progress-bar { height: 4px; background: rgba(149,184,197,0.12); border-radius: 2px; overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--mist)); transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }

/* ── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius); font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--transition); text-decoration: none; border: none; }
.btn-primary { background: var(--mist); color: var(--navy3); }
.btn-primary:hover { background: var(--mist2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(149,184,197,0.3); }
.btn-ghost { background: transparent; color: var(--mist); border: 1px solid var(--border2); }
.btn-ghost:hover { background: rgba(149,184,197,0.08); border-color: var(--mist); }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ── FILE CARDS ────────────────────────────────────────────────────────────── */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.file-card { background: rgba(30,47,69,0.5); border: 1px solid var(--border2); border-radius: var(--radius); padding: 20px; display: flex; align-items: flex-start; gap: 16px; text-decoration: none; color: inherit; transition: all var(--transition); cursor: pointer; }
.file-card:hover { border-color: var(--mist); background: rgba(37,68,103,0.5); transform: translateY(-2px); box-shadow: var(--shadow2); }
.file-icon { width: 42px; height: 42px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.file-icon.docx { background: rgba(37,99,235,0.2);  border: 1px solid rgba(37,99,235,0.3); }
.file-icon.xlsx { background: rgba(22,163,74,0.2);   border: 1px solid rgba(22,163,74,0.3); }
.file-icon.pptx { background: rgba(234,88,12,0.2);   border: 1px solid rgba(234,88,12,0.3); }
.file-icon.html { background: rgba(149,184,197,0.2); border: 1px solid rgba(149,184,197,0.3); }
.file-icon.pdf  { background: rgba(220,38,38,0.2);   border: 1px solid rgba(220,38,38,0.3); }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-family: var(--font-mono); font-size: 10px; color: var(--gray); }
.file-version { display: inline-block; font-family: var(--font-mono); font-size: 9px; background: rgba(149,184,197,0.12); color: var(--mist); padding: 2px 6px; border-radius: 3px; margin-top: 6px; }

/* ── CHART WRAP ────────────────────────────────────────────────────────────── */
.chart-wrap { background: rgba(22,35,56,0.4); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.chart-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--mist); margin-bottom: 20px; opacity: 0.8; }

/* ── TIMELINE ──────────────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--mist), transparent); }
.timeline-item { position: relative; padding: 0 0 28px 20px; }
.timeline-item::before { content: ''; position: absolute; left: -24px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--mist); border: 2px solid var(--navy3); box-shadow: 0 0 0 3px rgba(149,184,197,0.2); }
.timeline-item.future::before { background: var(--navy2); border-color: var(--border2); }
.timeline-date { font-family: var(--font-mono); font-size: 10px; color: var(--mist); letter-spacing: 1px; margin-bottom: 4px; }
.timeline-title { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.timeline-desc { font-size: 13px; color: var(--gray); line-height: 1.5; }

/* ── TAGS ──────────────────────────────────────────────────────────────────── */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5px; }
.tag-navy  { background: rgba(37,68,103,0.6);  color: var(--mist2); border: 1px solid var(--border2); }
.tag-green { background: rgba(22,163,74,0.15); color: #4ADE80;      border: 1px solid rgba(22,163,74,0.3); }
.tag-amber { background: rgba(217,119,6,0.15); color: #FCD34D;      border: 1px solid rgba(217,119,6,0.3); }
.tag-red   { background: rgba(220,38,38,0.15); color: #F87171;      border: 1px solid rgba(220,38,38,0.3); }

/* ── INFO BOX ──────────────────────────────────────────────────────────────── */
.info-box { padding: 16px 20px; border-radius: var(--radius); border-left: 3px solid var(--mist); background: rgba(149,184,197,0.07); font-size: 13px; color: rgba(248,250,252,0.75); line-height: 1.6; margin: 16px 0; }

/* ── LAYOUT GRIDS ──────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.col-span-2 { grid-column: span 2; }

/* ── ANIMATIONS ────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up   { animation: fadeUp 0.5s ease forwards; }
.fade-up-1 { animation: fadeUp 0.5s 0.1s ease both; }
.fade-up-2 { animation: fadeUp 0.5s 0.2s ease both; }
.fade-up-3 { animation: fadeUp 0.5s 0.3s ease both; }
.fade-up-4 { animation: fadeUp 0.5s 0.4s ease both; }

/* ── LOGIN PAGE ────────────────────────────────────────────────────────────── */
.login-wrap { position: relative; z-index: 10; width: 100%; max-width: 420px; padding: 20px; }
.login-logo { text-align: center; margin-bottom: 40px; }
.login-logo .brand { font-family: var(--font-display); font-size: 42px; letter-spacing: 8px; color: var(--white); line-height: 1; }
.login-logo .sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px; color: var(--mist); opacity: 0.7; margin-top: 6px; }

.classification-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.35); color: #F87171; font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; padding: 5px 12px; border-radius: 3px; margin-top: 12px; }

.login-card { background: rgba(30,47,69,0.75); border: 1px solid var(--border2); border-radius: var(--radius2); padding: 36px; backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.login-card h2 { font-family: var(--font-display); font-size: 22px; letter-spacing: 3px; color: var(--white); margin-bottom: 6px; }
.login-card .tagline { font-size: 13px; color: var(--gray); margin-bottom: 28px; font-weight: 300; }
.login-error { padding: 10px 16px; background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.3); border-radius: var(--radius); color: #F87171; font-size: 12px; margin-bottom: 16px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--mist); margin-bottom: 7px; opacity: 0.8; }
.form-group input { width: 100%; background: rgba(22,35,56,0.7); border: 1px solid var(--border2); border-radius: var(--radius); padding: 11px 16px; color: var(--white); font-family: var(--font-body); font-size: 14px; outline: none; transition: border-color var(--transition); }
.form-group input:focus { border-color: var(--mist); background: rgba(22,35,56,0.9); }
.form-group input::placeholder { color: var(--gray2); }

.login-btn { width: 100%; background: var(--mist); color: var(--navy3); border: none; border-radius: var(--radius); padding: 13px; font-family: var(--font-body); font-size: 14px; font-weight: 700; cursor: pointer; letter-spacing: 1px; transition: all var(--transition); margin-top: 8px; }
.login-btn:hover { background: var(--mist2); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(149,184,197,0.35); }

/* ── FLEET PAGE ────────────────────────────────────────────────────────────── */
.fleet-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: rgba(37,68,103,0.35); border: 1px solid var(--border2); border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.fleet-stat { padding: 20px 24px; border-right: 1px solid var(--border); text-align: center; }
.fleet-stat:last-child { border-right: none; }
.fleet-stat .val { font-family: var(--font-display); font-size: 28px; color: var(--white); letter-spacing: 1px; }
.fleet-stat .lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--mist); opacity: 0.8; margin-top: 4px; text-transform: uppercase; }

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

.vehicle-card { border-radius: var(--radius2); overflow: hidden; border: 1px solid var(--border2); transition: all var(--transition); }
.vehicle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(149,184,197,0.5); }

.vehicle-header { padding: 24px; position: relative; overflow: hidden; }
.vehicle-unit { font-family: var(--font-mono); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; opacity: 0.8; margin-bottom: 6px; }
.vehicle-name { font-family: var(--font-display); font-size: 28px; letter-spacing: 2px; color: var(--white); line-height: 1; margin-bottom: 6px; }
.vehicle-base { font-size: 12px; opacity: 0.6; font-style: italic; }
.vehicle-tagline { font-size: 12px; font-style: italic; opacity: 0.75; margin-top: 8px; border-left: 2px solid rgba(255,255,255,0.3); padding-left: 10px; }

.vehicle-body { padding: 20px; background: rgba(22,35,56,0.5); }
.vehicle-role { font-size: 12px; color: var(--gray); line-height: 1.6; margin-bottom: 16px; }

.spec-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.spec-row:last-child { border-bottom: none; }
.spec-row .sk { color: var(--gray); font-family: var(--font-mono); font-size: 10px; }
.spec-row .sv { color: var(--white); text-align: right; }

.vehicle-footer { padding: 12px 20px; background: rgba(37,68,103,0.3); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); }
.capex-badge { font-family: var(--font-display); font-size: 18px; letter-spacing: 1px; }
.capex-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; opacity: 0.6; margin-top: 1px; }

/* ── FINANCIALS PAGE ───────────────────────────────────────────────────────── */
.scenario-card { border: 1px solid var(--border2); border-radius: var(--radius); padding: 20px; transition: all var(--transition); }
.scenario-card.worst { border-top: 3px solid #F87171; background: rgba(220,38,38,0.04); }
.scenario-card.base  { border-top: 3px solid var(--mist); background: rgba(149,184,197,0.06); }
.scenario-card.best  { border-top: 3px solid #4ADE80; background: rgba(22,163,74,0.04); }
.scenario-card:hover { transform: translateY(-3px); box-shadow: var(--shadow2); }

.scenario-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.scenario-card.worst .scenario-label { color: #F87171; }
.scenario-card.base  .scenario-label { color: var(--mist); }
.scenario-card.best  .scenario-label { color: #4ADE80; }

.scenario-val { font-family: var(--font-display); font-size: 26px; letter-spacing: 1px; color: var(--white); margin-bottom: 4px; }
.scenario-sub { font-size: 11px; color: var(--gray); margin-bottom: 12px; }
.scenario-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.scenario-row:last-child { border-bottom: none; }
.scenario-row .k { color: var(--gray); }
.scenario-row .v { font-family: var(--font-mono); color: var(--white); }

.funding-scenario { padding: 16px; border: 1px solid var(--border2); border-radius: var(--radius); margin-bottom: 10px; transition: all var(--transition); }
.funding-scenario:hover { border-color: var(--mist); background: rgba(149,184,197,0.04); }
.funding-scenario .title { font-weight: 600; font-size: 13px; color: var(--white); margin-bottom: 4px; }
.funding-scenario .detail { font-size: 12px; color: var(--gray); line-height: 1.5; }

.rec-badge { display: inline-block; background: rgba(22,163,74,0.15); color: #4ADE80; border: 1px solid rgba(22,163,74,0.3); font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; padding: 2px 8px; border-radius: 3px; margin-left: 8px; }

.belgian-stat { background: rgba(37,68,103,0.4); border: 1px solid var(--border2); border-radius: var(--radius); padding: 14px 18px; text-align: center; }
.belgian-stat .val { font-family: var(--font-display); font-size: 22px; color: var(--mist); letter-spacing: 1px; }
.belgian-stat .lbl { font-size: 11px; color: var(--gray); margin-top: 2px; }

/* ── MARKET PAGE ───────────────────────────────────────────────────────────── */
.segment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 28px; }

.segment-card { background: rgba(30,47,69,0.5); border: 1px solid var(--border2); border-radius: var(--radius); padding: 18px; transition: all var(--transition); position: relative; overflow: hidden; }
.segment-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.segment-card.nis2-essential::before { background: #F87171; }
.segment-card.nis2-important::before { background: #FCD34D; }
.segment-card.nis2-new::before       { background: #4ADE80; }
.segment-card:hover { transform: translateY(-2px); box-shadow: var(--shadow2); border-color: rgba(149,184,197,0.4); }

.segment-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.segment-name { font-size: 14px; font-weight: 600; color: var(--white); }

.segment-nis2 { font-family: var(--font-mono); font-size: 8px; padding: 2px 7px; border-radius: 3px; letter-spacing: 1px; flex-shrink: 0; margin-left: 8px; }
.nis2-essential .segment-nis2 { background: rgba(220,38,38,0.15); color: #F87171; border: 1px solid rgba(220,38,38,0.3); }
.nis2-important .segment-nis2 { background: rgba(217,119,6,0.15);  color: #FCD34D; border: 1px solid rgba(217,119,6,0.3); }
.nis2-new       .segment-nis2 { background: rgba(22,163,74,0.15);  color: #4ADE80; border: 1px solid rgba(22,163,74,0.3); }

.segment-desc { font-size: 12px; color: var(--gray); line-height: 1.5; margin-bottom: 12px; }
.segment-numbers { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.seg-num { text-align: center; background: rgba(22,35,56,0.5); border-radius: 4px; padding: 6px 4px; }
.seg-num .v { font-family: var(--font-display); font-size: 14px; color: var(--mist); letter-spacing: 0.5px; }
.seg-num .l { font-family: var(--font-mono); font-size: 8px; color: var(--gray2); letter-spacing: 1px; text-transform: uppercase; margin-top: 1px; }

.tam-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.tam-row:last-child { border-bottom: none; }
.tam-name { font-size: 13px; color: var(--white); width: 180px; flex-shrink: 0; }
.tam-bar-wrap { flex: 1; height: 6px; background: rgba(149,184,197,0.1); border-radius: 3px; overflow: hidden; }
.tam-bar { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--mist)); }
.tam-val { font-family: var(--font-mono); font-size: 11px; color: var(--mist); width: 60px; text-align: right; }

.penalty-box { background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.2); border-radius: var(--radius); padding: 14px; text-align: center; }
.penalty-box .val { font-family: var(--font-display); font-size: 20px; color: #F87171; letter-spacing: 1px; margin-bottom: 4px; }
.penalty-box .lbl { font-size: 11px; color: var(--gray); line-height: 1.4; }

/* ── STORY PAGE ────────────────────────────────────────────────────────────── */
.story-hero { background: linear-gradient(135deg, var(--navy3) 0%, var(--navy2) 50%, rgba(61,122,138,0.2) 100%); border: 1px solid var(--border2); border-radius: var(--radius2); padding: 48px; margin-bottom: 32px; position: relative; overflow: hidden; }
.story-hero::before { content: 'MOBILEDC'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-size: 120px; color: rgba(149,184,197,0.04); white-space: nowrap; pointer-events: none; letter-spacing: 8px; }
.story-hero h2 { font-family: var(--font-display); font-size: 52px; letter-spacing: 3px; line-height: 1; color: var(--white); margin-bottom: 16px; position: relative; z-index: 1; }
.story-hero p  { font-size: 16px; font-weight: 300; color: rgba(248,250,252,0.7); max-width: 580px; line-height: 1.7; position: relative; z-index: 1; }

.story-chapter { margin-bottom: 40px; }
.chapter-num { font-family: var(--font-mono); font-size: 60px; color: rgba(149,184,197,0.08); line-height: 1; margin-bottom: -10px; font-weight: 500; }
.chapter-title { font-family: var(--font-display); font-size: 28px; letter-spacing: 2px; color: var(--white); margin-bottom: 12px; border-left: 3px solid var(--mist); padding-left: 16px; }
.chapter-body { font-size: 14px; font-weight: 300; color: rgba(248,250,252,0.7); line-height: 1.8; max-width: 700px; padding-left: 19px; }
.chapter-body strong { color: var(--white); font-weight: 600; }
.chapter-body p { margin-top: 14px; }
.chapter-body p:first-child { margin-top: 0; }

.stat-callout { display: inline-block; background: rgba(37,68,103,0.5); border: 1px solid var(--border2); border-radius: var(--radius); padding: 16px 24px; margin: 12px 8px 12px 0; text-align: center; }
.stat-callout .val { font-family: var(--font-display); font-size: 28px; color: var(--mist); letter-spacing: 1px; line-height: 1; }
.stat-callout .lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin-top: 4px; }

.quote-block { border-left: 3px solid var(--teal); padding: 16px 24px; margin: 24px 0; background: rgba(61,122,138,0.08); border-radius: 0 var(--radius) var(--radius) 0; font-size: 15px; font-style: italic; color: rgba(248,250,252,0.8); line-height: 1.7; }

/* ── CONTACT PAGE ──────────────────────────────────────────────────────────── */
.contact-card { background: linear-gradient(135deg, rgba(37,68,103,0.5), rgba(61,122,138,0.15)); border: 1px solid var(--border2); border-radius: var(--radius2); padding: 40px; text-align: center; margin-bottom: 24px; }

.contact-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--teal)); border: 2px solid var(--border2); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 28px; color: var(--mist); margin: 0 auto 16px; }

.contact-name { font-family: var(--font-display); font-size: 28px; letter-spacing: 2px; color: var(--white); margin-bottom: 4px; }
.contact-role { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--mist); text-transform: uppercase; opacity: 0.8; margin-bottom: 24px; }
.contact-details { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact-detail { display: flex; align-items: center; gap: 8px; background: rgba(22,35,56,0.6); border: 1px solid var(--border2); border-radius: var(--radius); padding: 10px 18px; font-size: 13px; color: var(--white); text-decoration: none; transition: all var(--transition); }
.contact-detail:hover { border-color: var(--mist); background: rgba(37,68,103,0.5); }

.step-card { display: flex; gap: 20px; align-items: flex-start; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.step-card:last-child { border-bottom: none; }
.step-num { font-family: var(--font-display); font-size: 36px; letter-spacing: 1px; color: rgba(149,184,197,0.25); line-height: 1; flex-shrink: 0; width: 48px; text-align: center; }
.step-title { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.step-desc { font-size: 13px; color: var(--gray); line-height: 1.6; font-weight: 300; }

/* ── MOBILE RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .col-span-2 { grid-column: span 1; }
  .fleet-summary { grid-template-columns: repeat(2, 1fr); }
  .fleet-grid { grid-template-columns: 1fr; }
  .segment-grid { grid-template-columns: 1fr; }
  .mobile-menu-btn { display: flex; }
  footer { margin-left: 0 !important; }
}

@media (max-width: 600px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 20px; }
  .page-header h1 { font-size: 32px; }
  .story-hero { padding: 28px; }
  .story-hero h2 { font-size: 36px; }
  .fleet-summary { grid-template-columns: 1fr 1fr; }
  .contact-details { flex-direction: column; align-items: center; }
  .topbar { padding: 0 16px; }
}
