:root {
  --bg-0: #030712;
  --bg-1: #071121;
  --bg-2: #0a1730;
  --panel: rgba(9, 22, 45, 0.66);
  --panel-strong: rgba(10, 25, 52, 0.88);
  --line: rgba(151, 191, 255, 0.16);
  --line-strong: rgba(151, 191, 255, 0.30);
  --text: #f5f9ff;
  --muted: #93a7c7;
  --muted-2: #7184a4;
  --blue: #4a82ff;
  --blue-2: #76b8ff;
  --cyan: #66e2ff;
  --violet: #9a7cff;
  --green: #4de3a4;
  --amber: #ffc767;
  --red: #ff7f91;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(63, 112, 255, 0.16), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(102, 226, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #050b18 0%, #030712 56%, #02050c 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -5;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 88%);
}

.ambient {
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .18;
  pointer-events: none;
  z-index: -4;
}
.ambient-a { left: -240px; top: 150px; background: #2368ff; }
.ambient-b { right: -280px; top: 860px; background: #22bbff; }
.ambient-c { left: 38%; bottom: -320px; background: #6d4cff; }

button, input, select { font: inherit; }
button { color: inherit; }

.page-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 60px;
  perspective: 1600px;
  perspective-origin: 50% 18%;
  transition: opacity .3s ease, filter .3s ease;
}
.page-shell[aria-hidden="true"] { opacity: .18; filter: blur(10px); pointer-events: none; }

.glass-card,
.glass-bar {
  background:
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.018) 36%),
    linear-gradient(180deg, rgba(10,26,55,.78), rgba(4,12,28,.64));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.glass-bar {
  position: sticky;
  top: 12px;
  z-index: 40;
  min-height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px 13px 18px;
}

.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-orb {
  width: 62px;
  height: 62px;
  border-radius: 21px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.04em;
  color: white;
  background:
    linear-gradient(145deg, rgba(255,255,255,.35), rgba(255,255,255,.02) 34%),
    linear-gradient(145deg, #5d8dff, #2458c9 55%, #102c72);
  border: 1px solid rgba(255,255,255,.26);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.44),
    inset 0 -12px 28px rgba(7,25,73,.52),
    0 16px 35px rgba(28,88,219,.36);
}
.brand-orb.compact { width: 42px; height: 42px; border-radius: 14px; font-size: 18px; }
.brand-title { font-weight: 760; font-size: 15px; letter-spacing: -.01em; }
.brand-subtitle { margin-top: 2px; color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.status-pill,
.release-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #b9c8de;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: .02em;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
}
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 12px var(--blue); }
.status-safe span { background: var(--green); box-shadow: 0 0 12px var(--green); }

.ghost-button,
.primary-button {
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.ghost-button {
  min-height: 35px;
  padding: 7px 12px;
  border-radius: 11px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.ghost-button:hover { transform: translateY(-1px); border-color: rgba(118,184,255,.38); }
.primary-button {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5f91ff, #3a68e8 55%, #274ab1);
  box-shadow: 0 15px 34px rgba(55,101,234,.32), inset 0 1px 0 rgba(255,255,255,.35);
  font-weight: 750;
}
.primary-button:hover { transform: translateY(-1px); }

.hero-section {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr);
  align-items: center;
  gap: 60px;
  padding: 78px 26px 56px;
}
.hero-copy { max-width: 820px; }
.eyebrow {
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-copy h1,
.section-heading h2 {
  margin: 12px 0 18px;
  letter-spacing: -.045em;
  line-height: .98;
}
.hero-copy h1 {
  max-width: 850px;
  font-size: clamp(48px, 6vw, 86px);
  font-weight: 790;
  background: linear-gradient(180deg, #fff 18%, #c7d9ff 64%, #7b9ee7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.58;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-meta span {
  padding: 8px 11px;
  border-radius: 10px;
  color: #9fb5d5;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}

.hero-visual {
  min-height: 420px;
  position: relative;
  border-radius: 44px;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 40px 120px rgba(0,0,0,.48), 0 0 90px rgba(55,106,255,.16), inset 0 1px 0 rgba(255,255,255,.12);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,.12), transparent 29%),
    radial-gradient(circle at 50% 50%, rgba(63,119,255,.19), transparent 42%);
}
.radar-ring {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(119,169,255,.17);
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 40px rgba(61,119,255,.06);
}
.ring-1 { width: 190px; height: 190px; }
.ring-2 { width: 292px; height: 292px; }
.ring-3 { width: 390px; height: 390px; }
.radar-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 178px; height: 178px;
  transform: translate(-50%, -50%) translateZ(60px);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(145deg, rgba(92,148,255,.24), rgba(7,25,58,.76));
  border: 1px solid rgba(137,183,255,.28);
  box-shadow: 0 0 65px rgba(56,118,255,.22), inset 0 1px 0 rgba(255,255,255,.16);
}
.radar-value { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.radar-label { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.radar-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 22px var(--cyan); }
.dot-a { left: 21%; top: 31%; }
.dot-b { right: 20%; top: 56%; background: var(--violet); box-shadow: 0 0 22px var(--violet); }
.dot-c { left: 37%; bottom: 13%; background: var(--green); box-shadow: 0 0 22px var(--green); }

.dashboard-section { padding: 46px 0 72px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  margin: 0 6px 26px;
}
.section-number { color: rgba(118,184,255,.22); font-size: 70px; line-height: .72; font-weight: 800; letter-spacing: -.06em; }
.section-heading h2 { font-size: clamp(34px, 4vw, 58px); }
.section-heading p { width: min(520px, 43%); margin: 0 0 6px; color: var(--muted); line-height: 1.55; }

.primary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 14px;
}
.metric-card {
  min-height: 164px;
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  transition: transform .2s ease, border-color .2s ease;
}
.metric-card:hover { transform: translateY(-3px) rotateX(1deg); border-color: rgba(118,184,255,.32); }
.metric-card::after {
  content: "";
  position: absolute;
  width: 130px; height: 130px;
  right: -44px; top: -46px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89,139,255,.22), transparent 66%);
}
.metric-label { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.metric-value { margin-top: 16px; font-size: clamp(30px, 3vw, 46px); font-weight: 790; letter-spacing: -.05em; line-height: 1; }
.metric-detail { margin-top: 14px; color: var(--muted-2); font-size: 11px; line-height: 1.45; }

.two-column-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.panel { border-radius: var(--radius-xl); padding: 22px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel-header h3 { margin: 6px 0 0; font-size: 21px; letter-spacing: -.03em; }
.split-header { align-items: end; }

.funnel { display: grid; gap: 9px; }
.funnel-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 13px 14px;
  min-height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
}
.funnel-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--fill, 0%);
  background: linear-gradient(90deg, rgba(75,128,255,.22), rgba(78,183,255,.07));
  pointer-events: none;
}
.funnel-label, .funnel-count { position: relative; z-index: 1; }
.funnel-label { color: #b8c8e1; font-size: 12px; font-weight: 650; }
.funnel-count { font-size: 20px; font-weight: 790; }

.status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.status-item {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}
.status-item-top { display: flex; align-items: center; gap: 8px; }
.status-light { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.status-light.neutral { background: var(--blue-2); box-shadow: 0 0 14px var(--blue); }
.status-item-label { color: #bdcbe0; font-size: 12px; font-weight: 650; }
.status-item-value { margin-top: 8px; font-size: 25px; font-weight: 780; }

.secondary-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }
.secondary-card {
  min-height: 116px;
  padding: 15px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.07);
}
.secondary-label { color: var(--muted); font-size: 10px; font-weight: 720; letter-spacing: .05em; text-transform: uppercase; }
.secondary-value { margin-top: 12px; font-size: 28px; font-weight: 790; letter-spacing: -.04em; }
.secondary-detail { margin-top: 7px; color: var(--muted-2); font-size: 10px; line-height: 1.35; }

.timeline-panel, .takeaways-panel { margin-top: 14px; }
.timeline { display: grid; grid-template-columns: repeat(9, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding: 3px 2px 11px; }
.timeline-item {
  position: relative;
  min-height: 190px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.033);
  border: 1px solid rgba(255,255,255,.07);
}
.timeline-release { color: var(--blue-2); font-size: 12px; font-weight: 800; }
.timeline-status { margin-top: 8px; display: inline-flex; padding: 5px 7px; border-radius: 8px; background: rgba(77,227,164,.09); color: #91efc6; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.timeline-item.in-progress .timeline-status { background: rgba(118,184,255,.10); color: #9ac6ff; }
.timeline-title { margin-top: 16px; font-weight: 700; line-height: 1.25; }
.timeline-detail { margin-top: 10px; color: var(--muted-2); font-size: 11px; line-height: 1.45; }

.takeaways-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.takeaway {
  min-height: 150px;
  padding: 18px;
  border-radius: 17px;
  position: relative;
  background: linear-gradient(145deg, rgba(64,111,220,.12), rgba(255,255,255,.02));
  border: 1px solid rgba(104,155,255,.11);
  color: #b8c9e2;
  line-height: 1.52;
  font-size: 12px;
}
.takeaway-index { display: block; margin-bottom: 15px; color: rgba(118,184,255,.50); font-size: 26px; font-weight: 800; }

.section-divider { display: flex; align-items: center; gap: 18px; margin: 8px 0 12px; }
.divider-line { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(118,184,255,.22), transparent); }
.divider-orb { width: 56px; height: 56px; border-radius: 19px; display: grid; place-items: center; font-weight: 800; color: #b8d6ff; border: 1px solid rgba(118,184,255,.25); background: linear-gradient(145deg, rgba(84,135,255,.18), rgba(7,17,37,.8)); box-shadow: 0 0 35px rgba(62,116,255,.17); }

.intelligence-heading { margin-bottom: 22px; }
.intelligence-kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
.intel-kpi { min-height: 114px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); }
.intel-kpi-label { color: var(--muted); font-size: 10px; font-weight: 730; text-transform: uppercase; letter-spacing: .06em; }
.intel-kpi-value { margin-top: 12px; font-size: 28px; font-weight: 790; letter-spacing: -.04em; }

.controls-panel { border-radius: 22px; padding: 15px; margin-bottom: 14px; }
.control-row { display: grid; grid-template-columns: minmax(280px, 1fr) 220px 160px; gap: 9px; }
.search-wrap { position: relative; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-wrap input, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: rgba(3,10,24,.72);
}
.search-wrap input { padding: 0 14px 0 37px; }
select { padding: 0 12px; }
.search-wrap input:focus, select:focus { border-color: rgba(118,184,255,.42); box-shadow: 0 0 0 3px rgba(64,115,255,.10); }
.size-selector-label { margin: 14px 0 8px; color: var(--muted); font-size: 10px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.size-selector { display: flex; flex-wrap: wrap; gap: 7px; }
.size-chip {
  min-width: 62px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.035);
  color: #9db0cc;
  font-size: 11px;
  font-weight: 700;
}
.size-chip.active { color: white; border-color: rgba(118,184,255,.38); background: linear-gradient(135deg, rgba(73,125,255,.34), rgba(44,83,180,.18)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }

.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.route-card {
  position: relative;
  overflow: hidden;
  min-height: 314px;
  border-radius: 20px;
  padding: 17px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.062), transparent 34%),
    linear-gradient(180deg, rgba(12,31,62,.72), rgba(5,15,32,.76));
  border: 1px solid rgba(255,255,255,.08);
  transform-style: preserve-3d;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.route-card:hover { transform: translateY(-4px); border-color: rgba(106,165,255,.32); box-shadow: 0 22px 55px rgba(0,0,0,.30), 0 0 40px rgba(64,111,255,.08); }
.route-card::before { content: ""; position: absolute; right: -54px; top: -58px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(85,135,255,.15), transparent 70%); }
.route-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.route-asset { font-size: 28px; font-weight: 810; letter-spacing: -.045em; }
.route-path { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.grade-badge { min-width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(77,132,255,.13); border: 1px solid rgba(115,169,255,.20); }
.grade-letter { font-size: 19px; font-weight: 830; }
.grade-score { display: block; margin-top: -4px; color: var(--muted); font-size: 8px; text-align: center; }
.route-profit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 19px;
}
.profit-box { padding: 13px; border-radius: 14px; background: rgba(255,255,255,.034); border: 1px solid rgba(255,255,255,.06); }
.profit-label { color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.profit-value { margin-top: 7px; font-size: 20px; font-weight: 790; }
.profit-value.positive { color: #7ff0bd; }
.profit-sub { margin-top: 4px; color: var(--muted); font-size: 9px; }
.route-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.meta-chip { padding: 5px 7px; border-radius: 8px; font-size: 9px; font-weight: 720; color: #a7b9d3; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.meta-chip.good { color: #8fe9c3; border-color: rgba(77,227,164,.14); background: rgba(77,227,164,.06); }
.meta-chip.warn { color: #ffd693; border-color: rgba(255,199,103,.14); background: rgba(255,199,103,.06); }
.route-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.decision-text { color: var(--muted-2); font-size: 9px; line-height: 1.35; }
.details-button { border: 1px solid rgba(118,184,255,.16); background: rgba(75,123,240,.10); border-radius: 10px; padding: 8px 10px; cursor: pointer; font-size: 10px; font-weight: 720; }
.details-button:hover { border-color: rgba(118,184,255,.40); }

.intelligence-lower-grid { align-items: start; }
.bar-list { display: grid; gap: 10px; }
.bar-row { position: relative; padding: 12px 13px; border-radius: 13px; background: rgba(255,255,255,.03); overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; width: var(--fill); background: linear-gradient(90deg, rgba(84,132,255,.16), rgba(84,132,255,.03)); }
.bar-content { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.bar-label { color: #b4c4dc; font-size: 10px; overflow-wrap: anywhere; }
.bar-count { font-weight: 800; font-size: 15px; }
.event-list { display: grid; gap: 8px; max-height: 590px; overflow: auto; padding-right: 4px; }
.event-row { display: grid; grid-template-columns: 8px 1fr; gap: 10px; align-items: start; padding: 11px; border-radius: 12px; background: rgba(255,255,255,.028); }
.event-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 10px rgba(118,184,255,.6); }
.event-title { color: #bccbe0; font-size: 10px; font-weight: 720; }
.event-detail { margin-top: 4px; color: var(--muted-2); font-size: 9px; line-height: 1.35; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 5px 10px; color: #5f7393; font-size: 10px; border-top: 1px solid rgba(255,255,255,.05); }

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1,5,13,.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity .25s ease, visibility .25s ease;
}
.access-gate[aria-hidden="true"] { opacity: 0; visibility: hidden; pointer-events: none; }
.access-card { width: min(470px, 100%); padding: 32px; border-radius: 30px; text-align: center; }
.access-card .brand-orb { margin: 0 auto 20px; }
.access-card h1 { margin: 8px 0 10px; font-size: 34px; letter-spacing: -.04em; }
.access-card p { color: var(--muted); line-height: 1.55; font-size: 13px; }
.access-card form { margin-top: 22px; text-align: left; }
.access-card label { display: block; margin: 0 0 7px; color: #a9bad2; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.access-card input { width: 100%; height: 48px; margin-bottom: 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.10); outline: none; color: white; padding: 0 14px; background: rgba(1,7,18,.72); }
.access-card input:focus { border-color: rgba(118,184,255,.42); box-shadow: 0 0 0 3px rgba(64,115,255,.10); }
.access-message { min-height: 22px; margin-top: 11px; color: var(--red); font-size: 11px; }
.safety-note { margin-top: 16px; color: #617896; font-size: 9px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(1,5,13,.76); backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease; }
.modal-backdrop[aria-hidden="false"] { opacity: 1; visibility: visible; }
.modal { position: relative; width: min(1120px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 30px; padding: 28px; }
.modal-close { position: sticky; float: right; top: 0; z-index: 2; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.09); background: rgba(0,0,0,.25); cursor: pointer; font-size: 22px; }
.modal-title { margin: 2px 0 5px; font-size: 40px; letter-spacing: -.045em; }
.modal-route { color: var(--muted); font-size: 12px; }
.modal-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; margin-top: 20px; }
.detail-panel { padding: 17px; border-radius: 17px; background: rgba(255,255,255,.032); border: 1px solid rgba(255,255,255,.07); }
.detail-panel h4 { margin: 0 0 13px; font-size: 13px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.size-table th, .size-table td { padding: 9px 8px; text-align: right; border-bottom: 1px solid rgba(255,255,255,.055); }
.size-table th:first-child, .size-table td:first-child { text-align: left; }
.size-table th { color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.pending { color: #687d9b; }
.positive { color: #7ff0bd; }
.negative { color: #ff9cab; }
.reason-list, .lifecycle-list { display: grid; gap: 7px; }
.reason-item, .lifecycle-item { padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.034); color: #aebed4; font-size: 9px; line-height: 1.4; overflow-wrap: anywhere; }
.lifecycle-item strong { color: #dce8fa; }

.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }

@media (max-width: 1180px) {
  .primary-grid { grid-template-columns: repeat(3, 1fr); }
  .secondary-grid { grid-template-columns: repeat(3, 1fr); }
  .intelligence-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .route-grid { grid-template-columns: repeat(2, 1fr); }
  .takeaways-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .page-shell { width: min(100% - 22px, 1480px); }
  .glass-bar { position: relative; top: 0; align-items: flex-start; }
  .topbar-actions .status-pill { display: none; }
  .hero-section { grid-template-columns: 1fr; padding: 58px 8px 40px; gap: 25px; }
  .hero-visual { min-height: 330px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-heading p { width: 100%; }
  .primary-grid, .secondary-grid, .intelligence-kpi-grid, .route-grid, .takeaways-grid, .two-column-grid { grid-template-columns: 1fr 1fr; }
  .control-row { grid-template-columns: 1fr 1fr; }
  .search-wrap { grid-column: 1 / -1; }
  .modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .page-shell { width: calc(100% - 14px); }
  .glass-bar { border-radius: 16px; padding: 11px; }
  .brand-subtitle { display: none; }
  .hero-copy h1 { font-size: 48px; }
  .hero-section { min-height: 0; }
  .hero-visual { min-height: 290px; border-radius: 28px; }
  .primary-grid, .secondary-grid, .intelligence-kpi-grid, .route-grid, .takeaways-grid, .two-column-grid, .status-grid { grid-template-columns: 1fr; }
  .panel { padding: 16px; border-radius: 20px; }
  .control-row { grid-template-columns: 1fr; }
  .search-wrap { grid-column: auto; }
  .route-profit { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(9, 190px); }
  footer { flex-direction: column; }
  .access-card { padding: 24px 18px; }
  .modal { padding: 18px; border-radius: 22px; }
  .modal-title { font-size: 30px; }
}
