/* ============ GETNAMA · Flight Intelligence ============ */
:root {
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --mute-2: #94A3B8;
  --line: #EEF2F7;
  --line-2: #E2E8F0;
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --surface-2: #F1F5F9;
  --brand: #2563EB;
  --brand-ink: #1D4ED8;
  --brand-soft: #EFF4FF;
  --success: #10B981;
  --success-soft: #ECFDF5;
  --amber: #F59E0B;
  --amber-soft: #FFFBEB;
  --rose: #E11D48;
  --rose-soft: #FFF1F2;
  --r-card: 20px;
  --r-card-lg: 24px;
  --r-btn: 12px;
  --r-pill: 999px;
  --shadow-1: 0 1px 0 rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-2: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-3: 0 12px 40px rgba(15, 23, 42, 0.10);
  --t-fast: 140ms cubic-bezier(.4, 0, .2, 1);
  --t-med: 260ms cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: #FBFCFE;
  letter-spacing: -0.005em;
}
.mono { font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace; font-feature-settings: "ss01"; }

button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input { font-family: inherit; outline: none; border: none; background: none; color: inherit; }
input::placeholder { color: var(--mute-2); }
a { color: inherit; text-decoration: none; }

/* ===== Layout ===== */
.app { min-height: 100vh; }
.container { max-width: 1360px; margin: 0 auto; padding: 0 32px; }

/* ===== Top Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-left { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: linear-gradient(140deg, #0F172A 0%, #1E293B 100%);
  position: relative;
  display: grid; place-items: center;
  color: white;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: 6px;
  background: linear-gradient(135deg, transparent 49%, rgba(255,255,255,0.18) 50%, transparent 51%);
}
.brand-sep { width: 1px; height: 18px; background: var(--line-2); }
.brand-sub { color: var(--muted); font-weight: 500; font-size: 13px; }

.nav-summary {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--ink-2);
}
.nav-summary .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.nav-summary .route { font-weight: 600; }
.nav-summary .arrow { color: var(--mute-2); }

.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 10px;
  transition: background var(--t-fast);
}
.nav-btn:hover { background: var(--surface); }
.nav-btn.primary {
  background: var(--ink);
  color: white;
  padding: 9px 14px;
}
.nav-btn.primary:hover { background: #1E293B; }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDA4AF, #F472B6, #818CF8);
  margin-left: 8px;
  display: grid; place-items: center;
  color: white; font-size: 12px; font-weight: 600;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(15,23,42,0.12);
}

/* ===== Layout grid ===== */
.layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 28px 0 120px;
  align-items: start;
}

/* ===== Hero search ===== */
.hero {
  grid-column: 1 / -1;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  box-shadow: var(--shadow-2);
  padding: 24px;
}
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.trip-types {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}
.trip-types button {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 9px;
  transition: all var(--t-fast);
}
.trip-types button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15,23,42,0.06), 0 1px 0 rgba(15,23,42,0.04);
}
.hero-controls { display: flex; align-items: center; gap: 10px; }
.pill-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  transition: all var(--t-fast);
}
.pill-toggle:hover { background: var(--surface-2); }
.pill-toggle.on { background: var(--brand-soft); border-color: rgba(37, 99, 235, 0.18); color: var(--brand-ink); }
.pill-toggle .check { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.pill-toggle.on .check { background: var(--brand); border-color: var(--brand); color: white; }

.search-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr 0.9fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.field {
  background: white;
  padding: 14px 18px;
  position: relative;
  transition: background var(--t-fast);
  cursor: text;
}
.field:hover { background: var(--surface); }
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute-2);
  margin-bottom: 6px;
}
.field-value { font-size: 16px; font-weight: 600; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.field-value .code { color: var(--mute-2); font-weight: 500; font-size: 13px; }
.field-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.field-icon { position: absolute; top: 18px; right: 14px; color: var(--mute-2); }

.swap-btn {
  position: absolute;
  left: calc(2 * (100% / 5) - 16px);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--ink-2);
  z-index: 2;
  transition: transform var(--t-med);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.swap-btn:hover { transform: translate(-50%, -50%) rotate(180deg); color: var(--brand); border-color: var(--brand); }

.hero-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 16px; }
.advanced { display: flex; flex-wrap: wrap; gap: 8px; }
.cta-group { display: flex; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--t-fast);
}
.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 1px 2px rgba(37,99,235,0.18), 0 4px 12px rgba(37,99,235,0.18);
}
.btn-primary:hover { background: var(--brand-ink); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37,99,235,0.25); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-2); }
.btn-ghost .ai-glyph {
  width: 16px; height: 16px;
  background: linear-gradient(135deg, var(--brand), #9333EA);
  border-radius: 4px;
  display: grid; place-items: center;
  color: white;
}

/* ===== Insight cards ===== */
.insights { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.insight {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px 20px;
  transition: all var(--t-fast);
  position: relative;
  overflow: hidden;
}
.insight:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.insight-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.insight-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.tag-green { background: var(--success-soft); color: #047857; }
.tag-blue { background: var(--brand-soft); color: var(--brand-ink); }
.tag-amber { background: var(--amber-soft); color: #B45309; }
.tag-rose { background: var(--rose-soft); color: var(--rose); }
.tag-slate { background: var(--surface-2); color: var(--ink-2); }
.insight-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); background: var(--surface); }
.insight-price { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.insight-price .cur { font-size: 14px; color: var(--muted); font-weight: 500; margin-right: 4px; }
.insight-meta { margin-top: 8px; font-size: 13px; color: var(--muted); }
.insight-meta strong { color: var(--ink); font-weight: 500; }
.insight-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.trend-up { color: var(--rose); }
.trend-down { color: var(--success); }

/* mini trend line */
.spark { width: 100%; height: 36px; margin-top: 10px; }

/* ===== Price calendar ===== */
.calendar {
  grid-column: 1 / -1;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px 20px;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.cal-title .lbl { font-weight: 500; color: var(--muted); font-size: 13px; }
.cal-legend { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.legend-swatch { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch .sq { width: 10px; height: 10px; border-radius: 3px; }
.cal-nav { display: flex; align-items: center; gap: 4px; }
.cal-nav button { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); transition: background var(--t-fast); }
.cal-nav button:hover { background: var(--surface); }

.cal-grid { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; }
.cal-cell {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast);
  background: white;
}
.cal-cell:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.cal-cell.selected { border-color: var(--ink); background: var(--ink); color: white; }
.cal-cell.selected .price { color: white; }
.cal-cell.cheapest { background: var(--success-soft); border-color: rgba(16,185,129,0.3); }
.cal-cell.cheapest .price { color: #047857; }
.cal-cell .dow { font-size: 10px; font-weight: 600; color: var(--mute-2); letter-spacing: 0.06em; text-transform: uppercase; }
.cal-cell.selected .dow { color: rgba(255,255,255,0.6); }
.cal-cell .day { font-size: 16px; font-weight: 600; margin: 2px 0 6px; }
.cal-cell .price { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cal-cell .price.low { color: var(--success); }
.cal-cell .price.mid { color: var(--ink-2); }
.cal-cell .price.high { color: var(--rose); }

/* ===== Filters sidebar ===== */
.filters {
  position: sticky;
  top: 92px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 8px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px; }
.filters-title { font-size: 14px; font-weight: 600; }
.filter-reset { font-size: 12px; color: var(--brand); font-weight: 500; }
.filter-reset:hover { text-decoration: underline; }

.filter-group { padding: 8px 12px; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; }
.filter-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  cursor: pointer;
  user-select: none;
}
.filter-head .label { font-size: 13px; font-weight: 600; color: var(--ink); }
.filter-head .meta { font-size: 11px; color: var(--mute-2); }
.filter-body { padding: 6px 0 10px; display: flex; flex-direction: column; gap: 8px; }

.checkrow { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-2); cursor: pointer; padding: 4px 0; }
.checkrow:hover { color: var(--ink); }
.checkbox {
  width: 16px; height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--line-2);
  display: inline-grid; place-items: center;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.checkbox.on { background: var(--brand); border-color: var(--brand); color: white; }
.checkrow .right { color: var(--muted); font-size: 12px; }
.checkrow .left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.checkrow .left .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.slider-wrap { padding: 12px 4px 6px; }
.slider-track {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  position: relative;
}
.slider-fill {
  position: absolute;
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
}
.slider-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--brand);
  box-shadow: 0 1px 4px rgba(15,23,42,0.12);
}
.slider-vals { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--muted); }
.slider-vals strong { color: var(--ink); font-weight: 600; }

.time-pills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.time-pill {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  color: var(--ink-2);
  text-align: left;
  transition: all var(--t-fast);
  cursor: pointer;
}
.time-pill .ic { display: block; color: var(--mute-2); margin-bottom: 4px; }
.time-pill.on { background: var(--brand-soft); border-color: rgba(37,99,235,0.25); color: var(--brand-ink); }
.time-pill .rng { font-weight: 600; }

/* ===== Results column ===== */
.results-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.results-meta { font-size: 13px; color: var(--muted); }
.results-meta strong { color: var(--ink); font-weight: 600; }
.results-meta .live { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; color: var(--success); font-weight: 500; font-size: 12px; }
.results-meta .live .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--success); position: relative; }
.results-meta .live .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--success); opacity: 0.3; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.4; } 100% { transform: scale(1.4); opacity: 0; } }

.sort-tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.sort-tabs button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 7px;
}
.sort-tabs button.active { background: white; color: var(--ink); box-shadow: 0 1px 2px rgba(15,23,42,0.06); }
.sort-tabs button .b { font-size: 11px; color: var(--success); margin-left: 4px; font-weight: 600; }

/* Flight card */
.flight {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px 22px;
  transition: all var(--t-fast);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 24px;
  align-items: stretch;
  cursor: pointer;
}
.flight:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.flight.selected { border-color: var(--ink); box-shadow: var(--shadow-2); }
.flight-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.flight-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.airline {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.airline-logo {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  font-family: 'Geist Mono', monospace;
}
.airline .num { color: var(--muted); font-weight: 500; font-family: 'Geist Mono', monospace; font-size: 12px; }
.airline .num::before { content: "·"; margin: 0 6px; color: var(--mute-2); }
.cabin {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  background: var(--surface);
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.badges { display: inline-flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.badge.cheapest { background: var(--success-soft); color: #047857; }
.badge.best { background: var(--brand-soft); color: var(--brand-ink); }
.badge.fast { background: var(--amber-soft); color: #B45309; }
.badge.ref { background: var(--surface-2); color: var(--ink-2); }
.badge.bag { background: var(--surface-2); color: var(--ink-2); }

.timeline {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  align-items: center;
}
.station .t { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; }
.station .ap { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.station .ap .code { font-weight: 700; color: var(--ink-2); font-family: 'Geist Mono', monospace; }
.station.right { text-align: right; }
.station.right .ap { justify-content: flex-end; }

.route-line { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.route-dur { font-size: 12px; color: var(--muted); font-weight: 500; }
.route-bar { position: relative; width: 100%; height: 2px; background: var(--line-2); border-radius: 1px; }
.route-bar .dot { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); }
.route-bar .dot.start { left: 0; }
.route-bar .dot.end { left: 100%; }
.route-bar .stop { background: white; border: 1.5px solid var(--amber); width: 7px; height: 7px; }
.route-stops { font-size: 11px; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.route-stops.direct { color: var(--success); }
.route-stops .lay { color: var(--muted); font-weight: 500; }

.flight-meta-row { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.flight-meta-row .pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  background: var(--surface);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-weight: 500;
}
.flight-meta-row .pill svg { color: var(--mute-2); }
.flight-meta-row a { color: var(--brand); font-weight: 500; }
.flight-meta-row a:hover { text-decoration: underline; }

.flight-side {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  text-align: right;
}
.fare-price { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.fare-price .cur { font-size: 13px; color: var(--muted); font-weight: 500; margin-right: 3px; }
.fare-per { font-size: 11px; color: var(--muted); margin-top: 4px; }
.provider {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted);
  margin-top: 6px;
}
.provider .src {
  padding: 2px 7px;
  background: var(--surface);
  border-radius: 4px;
  color: var(--ink-2);
  font-weight: 600;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
}
.select-btn {
  margin-top: 14px;
  width: 100%;
  padding: 11px 14px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all var(--t-fast);
}
.select-btn:hover { background: var(--brand); }
.flight.selected .select-btn { background: var(--brand); }
.expand-btn {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 4px;
}
.expand-btn:hover { color: var(--ink); }

/* expanded panel */
.expand {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.expand-block .et { font-size: 11px; font-weight: 600; color: var(--mute-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.expand-block .ev { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.expand-block .ev strong { color: var(--ink); font-weight: 600; }
.expand-ai {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #EFF4FF 0%, #F5F3FF 100%);
  border-radius: 14px;
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.expand-ai .ai-ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #9333EA);
  display: grid; place-items: center;
  color: white;
  flex-shrink: 0;
}
.expand-ai strong { color: var(--ink); font-weight: 600; }

/* ===== AI Panel ===== */
.ai-col { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 92px; }
.ai-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.ai-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.ai-orb {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563EB 0%, #9333EA 50%, #DB2777 100%);
  display: grid; place-items: center;
  color: white;
  position: relative;
  box-shadow: 0 0 0 4px white, 0 0 0 5px rgba(147, 51, 234, 0.1);
}
.ai-title { font-size: 14px; font-weight: 600; }
.ai-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }

.ai-prompts { padding: 14px 14px 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.ai-prompt {
  font-size: 12px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  transition: all var(--t-fast);
}
.ai-prompt:hover { background: white; border-color: var(--brand); color: var(--brand); }

.ai-recs { padding: 8px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-rec {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: all var(--t-fast);
  cursor: pointer;
}
.ai-rec:hover { border-color: var(--brand); background: var(--brand-soft); }
.ai-rec-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ai-rec-tag { font-size: 11px; font-weight: 600; padding: 3px 8px; background: var(--surface); border-radius: var(--r-pill); color: var(--ink-2); }
.ai-rec-price { font-size: 13px; font-weight: 600; }
.ai-rec-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ai-rec-reason { font-size: 12px; color: var(--muted); line-height: 1.5; }
.ai-rec-foot { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.ai-input {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
}
.ai-input input {
  flex: 1;
  font-size: 13px;
  padding: 8px 0;
}
.ai-input button {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  display: grid; place-items: center;
}
.ai-input button:hover { background: var(--brand); }

/* ===== Watch / alerts side card ===== */
.alert-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: white;
  border-radius: var(--r-card);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.alert-card::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.4), transparent 70%);
}
.alert-head { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.alert-title { font-size: 18px; font-weight: 600; margin-top: 8px; letter-spacing: -0.01em; line-height: 1.3; }
.alert-meta { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 6px; }
.alert-btn {
  margin-top: 14px;
  padding: 9px 14px;
  background: white;
  color: var(--ink);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--t-fast);
}
.alert-btn:hover { background: var(--brand); color: white; }

/* ===== Bottom action bar ===== */
.action-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 8px 8px 18px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.14), 0 2px 6px rgba(15,23,42,0.06);
  animation: slideUp 320ms cubic-bezier(.4,0,.2,1);
}
@keyframes slideUp {
  from { transform: translate(-50%, 80px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.action-bar .sel { display: flex; align-items: center; gap: 12px; padding-right: 16px; border-right: 1px solid var(--line); }
.action-bar .sel-route { font-size: 13px; font-weight: 600; }
.action-bar .sel-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.action-bar .sel-price { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.action-bar-actions { display: flex; gap: 4px; }
.action-icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: all var(--t-fast);
  position: relative;
}
.action-icon-btn:hover { background: var(--surface); color: var(--ink); }
.action-icon-btn .tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
  font-weight: 500;
}
.action-icon-btn:hover .tip { opacity: 1; }
.book-now {
  padding: 10px 20px;
  background: var(--brand);
  color: white;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--t-fast);
}
.book-now:hover { background: var(--brand-ink); }

/* ===== Skeleton ===== */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Section heading */
.section-h { display: flex; align-items: center; justify-content: space-between; margin: 8px 2px 0; }
.section-t { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.section-t .count { color: var(--muted); font-weight: 500; }

/* Responsive trims */
@media (max-width: 1200px) {
  .layout { grid-template-columns: 244px minmax(0, 1fr); }
  .ai-col { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; position: static; }
  .ai-panel, .alert-card { flex: 1; min-width: 320px; }
}
@media (max-width: 900px) {
  .container { padding: 0 16px; }
  .layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .insights { grid-template-columns: repeat(2, 1fr); }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .swap-btn { display: none; }
  .flight { grid-template-columns: 1fr; }
  .flight-side { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 14px; align-items: stretch; }
}

/* scrollbar */
.filters::-webkit-scrollbar { width: 6px; }
.filters::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.filters::-webkit-scrollbar-track { background: transparent; }

/* ===== Skeleton shimmer (loading states) ===== */
.skel {
  display: block;
  background: linear-gradient(90deg, #F1F5F9 0%, #E2E8F0 50%, #F1F5F9 100%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s linear infinite;
}
@keyframes skel-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ===== Date input overlay for nice typography ===== */
.field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
}

/* ===== Modals (Fare alert + Booking flow) ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  animation: m-fade 200ms ease-out;
}
.modal-card {
  background: #FFFFFF;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 24px 80px -20px rgba(15,23,42,0.5), 0 0 0 1px var(--line-2);
  overflow: hidden;
  animation: m-pop 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-pop  { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line);
}
.modal-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-icon.brand   { background: var(--brand-soft); color: var(--brand); }
.modal-icon.success { background: var(--success-soft); color: var(--success); }
.modal-title { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
.modal-sub   { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.modal-x {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  border: 1px solid var(--line-2);
  background: var(--surface);
  transform: rotate(45deg);
  transition: all 140ms var(--t-fast);
}
.modal-x:hover { color: var(--ink); border-color: var(--mute-2); }

.modal-body { padding: 18px 20px 6px; display: flex; flex-direction: column; gap: 12px; }
.modal-foot {
  padding: 14px 20px 18px;
  display: flex; justify-content: flex-end; gap: 8px;
}
.modal-note {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  align-self: flex-start;
}

.m-stat {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.m-stat-k { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.m-stat-v { font-size: 16px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.m-stat-v.small { font-size: 13px; font-weight: 500; }

.m-field { display: flex; flex-direction: column; gap: 6px; }
.m-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.m-input {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--ink);
  background: white;
  transition: border-color 140ms var(--t-fast), box-shadow 140ms var(--t-fast);
  width: 100%;
}
.m-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.m-input-row {
  display: flex; align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0 10px;
  background: white;
  transition: border-color 140ms var(--t-fast), box-shadow 140ms var(--t-fast);
}
.m-input-row:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.m-prefix { color: var(--muted); font-weight: 500; padding-right: 6px; border-right: 1px solid var(--line); margin-right: 8px; }
.m-input-row .m-input { border: 0; padding: 11px 0; flex: 1; box-shadow: none; }
.m-input-row .m-input:focus { box-shadow: none; }

.m-error {
  padding: 10px 12px;
  background: var(--rose-soft);
  color: #9F1239;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid rgba(225,29,72,0.25);
}
.m-note { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; line-height: 1.5; }

.m-btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-2);
  background: white;
  color: var(--ink);
  transition: all 140ms var(--t-fast);
  cursor: pointer;
}
.m-btn:hover { border-color: var(--mute-2); }
.m-btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  box-shadow: 0 4px 12px -2px rgba(37,99,235,0.35);
}
.m-btn.primary:hover { background: var(--brand-ink); }
.m-btn.primary:disabled { opacity: 0.6; cursor: progress; }
.m-btn.ghost { background: transparent; }

/* Booking stages */
.booking-stages { list-style: none; margin: 4px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bstage {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all 220ms var(--t-fast);
}
.bstage.active { color: var(--ink); border-color: var(--brand); background: var(--brand-soft); }
.bstage.done { color: var(--ink); border-color: rgba(16,185,129,0.3); background: var(--success-soft); }
.bstage-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bstage.active .bstage-dot { border-color: var(--brand); }
.bstage.done .bstage-dot { background: var(--success); border-color: var(--success); color: white; }
.bstage-spin {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  border-top-color: transparent;
  animation: bspin 800ms linear infinite;
}
@keyframes bspin { to { transform: rotate(360deg); } }
.bstage-label { flex: 1; }
.bstage-meta { font-size: 12.5px; color: var(--brand-ink); font-weight: 600; }

/* Payment options */
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 4px; }
.pay-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 12px;
  background: white;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 160ms var(--t-fast);
  text-align: left;
}
.pay-card:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.pay-logo {
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}
.pay-logo.razorpay { color: #0C2E92; }
.pay-logo.stripe   { color: #635BFF; }
.pay-logo.invoice  { color: var(--ink-2); }
.pay-meta { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* Confirmation summary */
.booking-confirmed {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.bc-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; }
.bc-row + .bc-row { border-top: 1px dashed var(--line); }
.bc-k { color: var(--muted); }
.bc-v { color: var(--ink); font-weight: 500; }
.bc-v.strong { font-weight: 700; }
.bc-v.mono { font-family: var(--mono); font-size: 12.5px; }
.bc-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--success);
  font-weight: 500;
  line-height: 1.5;
}

/* Action-bar tooltips already in styles.css use class .tip — keep. */

@media (max-width: 560px) {
  .modal-card { max-width: 100% !important; border-radius: 14px; }
  .pay-grid { grid-template-columns: 1fr; }
}

/* ===== Connect-GDS modal ===== */
.gds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gds-card {
  text-align: left;
  padding: 12px 14px;
  background: white;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 160ms var(--t-fast);
  display: flex; flex-direction: column; gap: 6px;
}
.gds-card:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.gds-card.active { border-color: var(--brand); background: var(--brand-soft); }
.gds-card:disabled { opacity: 0.6; cursor: not-allowed; }
.gds-card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gds-card-meta { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.gds-logo { font-weight: 700; font-size: 14px; letter-spacing: -0.005em; }
.gds-logo.duffel  { color: #1F2937; }
.gds-logo.amadeus { color: #03234B; }

.connect-steps {
  margin: 4px 0 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.connect-steps li b { color: var(--brand); margin-right: 4px; }

/* ===== Live-GDS chip in nav ===== */
.gds-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--success-soft);
  color: #047857;
  border: 1px solid rgba(16,185,129,0.3);
}
.gds-chip .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
  animation: gpulse 1.6s ease-out infinite;
}
@keyframes gpulse {
  0%   { box-shadow: 0 0 0 0   rgba(16,185,129,0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0   rgba(16,185,129,0); }
}

.gds-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: white;
  border: 0;
  box-shadow: 0 4px 12px -3px rgba(37,99,235,0.35);
  cursor: pointer;
  transition: all 140ms var(--t-fast);
}
.gds-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ===== Fare calendar — selected + cheapest must always be legible ===== */
.cal-cell.selected {
  background: var(--brand-soft) !important;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 1px var(--brand);
}
.cal-cell.selected .dow,
.cal-cell.selected .day,
.cal-cell.selected .price {
  color: var(--brand-ink) !important;
}
.cal-cell.cheapest:not(.selected) .price.low { color: #047857 !important; font-weight: 700; }
.cal-cell.cheapest:not(.selected) {
  background: #ECFDF5;
  border-color: rgba(16,185,129,0.4);
}
.cal-cell .price.low  { color: #047857; }
.cal-cell .price.mid  { color: var(--ink-2); }
.cal-cell .price.high { color: var(--rose); }
/* Make sure the selected-cell ring renders above neighbors */
.cal-cell.selected { z-index: 1; position: relative; }

/* ===== Data-source provenance tags (GDS-confirmed / typical / fare rules) ===== */
.src-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.src-tag.ok {
  background: var(--success-soft);
  color: #047857;
  border: 1px solid rgba(16,185,129,0.3);
}
.src-tag.warn {
  background: var(--amber-soft);
  color: #B45309;
  border: 1px solid rgba(245,158,11,0.3);
}
.src-tag.est {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line-2);
}
.expand-block .et {
  display: flex;
  align-items: center;
  font-weight: 600;
}
.flight-side .provider .src-tag {
  margin-left: 6px;
  padding: 1px 5px;
  font-size: 9px;
}

/* ===== Pricing-signal banner (anomaly detection) ===== */
.ps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 11px 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
}
.ps-ico { display: inline-flex; align-items: center; }
.ps-headline { font-weight: 600; }
.ps-meta { color: var(--muted); font-weight: 400; margin-left: 6px; }
.ps.deal {
  background: linear-gradient(90deg, rgba(16,185,129,0.10) 0%, rgba(16,185,129,0.04) 100%);
  border-color: rgba(16,185,129,0.4);
  color: #047857;
}
.ps.deal .ps-ico { color: var(--success); }
.ps.below {
  background: var(--success-soft);
  border-color: rgba(16,185,129,0.25);
  color: #047857;
}
.ps.fair {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink-2);
}
.ps.above {
  background: var(--rose-soft);
  border-color: rgba(225,29,72,0.3);
  color: #9F1239;
}
.ps.neutral {
  background: var(--brand-soft);
  border-color: rgba(37,99,235,0.25);
  color: var(--brand-ink);
}

/* ===== WhatsApp share button on flight cards ===== */
.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  margin-top: 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: #25D366;
  color: white;
  border: 0;
  text-decoration: none;
  transition: all 140ms var(--t-fast);
  cursor: pointer;
}
.wa-btn:hover { background: #1FB955; transform: translateY(-1px); box-shadow: 0 4px 12px -3px rgba(37, 211, 102, 0.4); }

/* ===== Quote Builder (multi-flight WhatsApp itinerary) ===== */
.flight.in-quote {
  border-color: var(--brand) !important;
  background: linear-gradient(0deg, rgba(37,99,235,0.04), rgba(37,99,235,0.04)), white;
  box-shadow: 0 0 0 1px var(--brand), 0 8px 20px -6px rgba(37,99,235,0.18);
}
.flight.in-quote::before {
  content: "✓ In quote";
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--brand);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 6px 14px -4px rgba(37,99,235,0.4);
}

.select-btn.in-quote {
  background: var(--brand) !important;
  color: white !important;
  border-color: var(--brand) !important;
}

.book-now-btn {
  width: 100%;
  margin-top: 6px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--ink);
  color: white;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 140ms var(--t-fast);
}
.book-now-btn:hover { background: var(--ink-2); transform: translateY(-1px); }

/* Floating bottom bar */
.quote-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  max-width: 1300px;
  z-index: 80;
  animation: qb-rise 280ms cubic-bezier(.22,.61,.36,1);
}
@keyframes qb-rise {
  from { opacity: 0; transform: translate(-50%, 18px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.quote-bar-inner {
  background: var(--ink);
  color: white;
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 24px 60px -16px rgba(15,23,42,0.55), 0 0 0 1px rgba(255,255,255,0.05);
}
.qb-summary { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.qb-count { display: flex; flex-direction: column; align-items: flex-start; padding-right: 16px; border-right: 1px solid rgba(255,255,255,0.12); }
.qb-num { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: white; }
.qb-lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); margin-top: 4px; }
.qb-route { display: flex; flex-direction: column; gap: 2px; padding-right: 14px; }
.qb-route-codes { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.qb-route-price { font-size: 12px; color: rgba(255,255,255,0.6); font-family: var(--mono); }

.qb-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  scrollbar-width: none;
}
.qb-chips::-webkit-scrollbar { display: none; }
.qb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.qb-chip-x {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  border-radius: 50%;
  transition: color 140ms var(--t-fast);
}
.qb-chip-x:hover { color: var(--rose); }

.qb-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.qb-icon-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  padding: 7px 11px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 140ms var(--t-fast);
}
.qb-icon-btn:hover { color: white; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }
.qb-icon-btn span { font-weight: 500; }

.qb-cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  margin-left: 8px;
  border-radius: 12px;
  background: #25D366;
  color: white;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: all 140ms var(--t-fast);
  box-shadow: 0 6px 16px -4px rgba(37,211,102,0.45);
}
.qb-cta-wa:hover { background: #1FB955; transform: translateY(-1px); }

@media (max-width: 900px) {
  .quote-bar { width: calc(100% - 24px); bottom: 12px; }
  .quote-bar-inner { flex-direction: column; align-items: stretch; padding: 12px; }
  .qb-summary { flex-direction: column; align-items: stretch; gap: 10px; }
  .qb-count, .qb-route { border: 0; padding: 0; }
  .qb-actions { justify-content: flex-end; flex-wrap: wrap; }
}

/* ===== Nav badge (Deals button) ===== */
.nav-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  margin-left: 6px;
  padding: 0 5px;
}

/* ===== Right-side drawers (Today's Deals + Clients) ===== */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  z-index: 90;
  animation: m-fade 180ms ease-out;
}
.drawer.right {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 440px;
  max-width: 92vw;
  background: white;
  box-shadow: -28px 0 80px -16px rgba(15,23,42,0.4);
  display: flex;
  flex-direction: column;
  animation: drawer-in 280ms cubic-bezier(.22,.61,.36,1);
}
.drawer.right.wide { width: 640px; max-width: 95vw; }
@keyframes drawer-in {
  from { transform: translateX(40px); opacity: 0.4; }
  to   { transform: translateX(0); opacity: 1; }
}
.drawer-head {
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.drawer-head h2 { margin: 4px 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.drawer-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.drawer-sub { color: var(--muted); font-size: 12.5px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px 32px; display: flex; flex-direction: column; gap: 14px; }
.drawer-empty { color: var(--muted); text-align: center; padding: 36px 16px; }
.empty-illo { font-size: 36px; margin-bottom: 12px; }

/* ===== Deal cards ===== */
.deal-card {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 16px 16px 14px;
  background: white;
  transition: all 160ms var(--t-fast);
}
.deal-card:hover { border-color: var(--brand); box-shadow: 0 8px 24px -10px rgba(37,99,235,0.18); }
.deal-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dc-route-codes { font-family: var(--mono); font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); }
.dc-route-cities { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.dc-savings {
  background: var(--success);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.dc-title { margin: 10px 0 6px; font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
.dc-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.dc-price { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.dc-baseline { color: var(--muted); font-size: 13px; text-decoration: line-through; }
.dc-chips { display: flex; gap: 4px; flex-wrap: wrap; margin: 10px 0 8px; }
.dc-chip {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.dc-chip.brand { background: var(--brand-soft); border-color: rgba(37,99,235,0.3); color: var(--brand-ink); }
.dc-chip.own { background: var(--amber-soft); border-color: rgba(245,158,11,0.4); color: #B45309; }
.dc-chip.ok { color: var(--success); }
.dc-chip.muted { color: var(--muted); }
.dc-why {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 4px 0 12px;
  font-style: italic;
}
.dc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed var(--line); }
.dc-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.dc-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.dc-blast {
  background: #25D366;
  color: white;
  border: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  padding: 8px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 140ms var(--t-fast);
}
.dc-blast:hover { background: #1FB955; transform: translateY(-1px); }

/* ===== Clients panel ===== */
.cp-tabs {
  padding: 8px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 4px;
}
.cp-tabs button {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.cp-tabs button:hover { color: var(--ink); }
.cp-tabs button.active { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.cp-search {
  margin-left: auto;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-size: 12.5px;
  width: 240px;
}
.cp-table { width: 100%; border-collapse: collapse; }
.cp-table th, .cp-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.cp-table th { font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.cp-name { font-weight: 600; }
.cp-email { font-size: 11px; color: var(--muted); }
.cp-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  margin-right: 4px;
}
.num { font-family: var(--mono); font-size: 12.5px; text-align: center; color: var(--muted); }
.cp-del {
  background: transparent;
  border: 1px solid var(--line-2);
  width: 24px; height: 24px;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.cp-del:hover { background: var(--rose-soft); border-color: rgba(225,29,72,0.3); color: var(--rose); }
.cp-form { padding-top: 4px; display: flex; flex-direction: column; gap: 12px; }

/* ===== Blast launcher ===== */
.bl-list { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.bl-list-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}
.bl-list-head label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.bl-count { font-weight: 600; color: var(--brand); }
.bl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 140ms var(--t-fast);
}
.bl-row:last-child { border-bottom: 0; }
.bl-row:hover { background: var(--surface); }
.bl-info { flex: 1; }
.bl-name { font-weight: 600; font-size: 13.5px; }
.bl-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.bl-current {
  background: var(--brand-soft);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}
.bl-current-step { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.bl-current-name { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 6px 0 2px; }
.bl-current-phone { font-size: 13px; color: var(--muted); }

.bl-progress { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bl-progress li { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 10px; border-radius: 8px; }
.bl-progress li.done { color: var(--success); }
.bl-progress li.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.bl-progress li.pending { color: var(--muted); }
.bl-progress-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}
.bl-progress li.done .bl-progress-dot { background: var(--success); color: white; border-color: var(--success); }
.bl-progress li.active .bl-progress-dot { background: var(--brand); color: white; border-color: var(--brand); }

/* ===== Drawer countdown (auto-close indicator) ===== */
.drawer-countdown {
  position: relative;
  padding: 8px 22px 10px;
  background: linear-gradient(180deg, var(--brand-soft) 0%, transparent 100%);
  border-bottom: 1px solid var(--line);
}
.dc-bar {
  height: 3px;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
  margin-bottom: 8px;
}
.dc-bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, #06b6d4 100%);
  transform-origin: left center;
  animation-name: dc-fill;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes dc-fill {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}
.dc-text {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 2px;
}
.dc-link {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--brand);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dc-link:hover { color: var(--brand-ink); }
