/* ─── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --bg:           #080B14;
  --surface:      #0D1117;
  --card:         #111827;
  --card-hover:   #1A2235;
  --border:       rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --accent:       #6366F1;
  --accent-lt:    #818CF8;
  --accent-glow:  rgba(99,102,241,0.25);
  --text:         #E6EDF3;
  --muted:        #7D8590;
  --subtle:       #3D444E;
  --success:      #3FB950;
  --warn:         #D4A017;
  --danger:       #F85149;

  --c-flight:     #6366F1;
  --c-hotel:      #EC4899;
  --c-car:        #F59E0B;
  --c-heli:       #8B5CF6;
  --c-transfer:   #14B8A6;
  --c-other:      #6B7280;

  --sidebar-w:    240px;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    16px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-card:  0 2px 12px rgba(0,0,0,0.3);
  --transition:   0.15s ease;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
#app { height: 100%; display: flex; flex-direction: column; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea { font: inherit; color: inherit; background: none; border: none; outline: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex-shrink: 0; }

/* ─── Boot screen ────────────────────────────────────────────────────────── */
.boot-screen {
  flex: 1; display: flex; align-items: center; justify-content: center;
}
.boot-logo { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.4;transform:scale(1)} 50%{opacity:1;transform:scale(1.05)} }

/* ─── Notifications ──────────────────────────────────────────────────────── */
.notification-host {
  position: fixed; top: 20px; right: 20px; z-index: 999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  backdrop-filter: blur(20px); border: 1px solid var(--border);
  background: rgba(17,24,39,0.95);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow); pointer-events: all;
  animation: slideIn 0.2s ease;
  max-width: 360px;
}
.toast.success { border-color: rgba(63,185,80,0.3); }
.toast.error   { border-color: rgba(248,81,73,0.3); color: var(--danger); }
.toast.info    { border-color: rgba(99,102,241,0.3); }
.toast-icon    { font-size: 16px; flex-shrink: 0; }
.toast-close   { margin-left: auto; opacity: .5; padding: 2px; }
.toast-close:hover { opacity: 1; }
@keyframes slideIn { from{transform:translateX(20px);opacity:0} to{transform:none;opacity:1} }

/* ─── Lock / Setup screens ───────────────────────────────────────────────── */
.lock-screen {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(99,102,241,0.08) 0%, transparent 70%), var(--bg);
  padding: 20px;
}
.lock-card {
  width: 100%; max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 0 60px rgba(99,102,241,0.1), var(--shadow);
}
.lock-logo {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 8px;
}
.lock-logo svg { width: 40px; height: 40px; }
.lock-app-name {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #818CF8, #C084FC);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.lock-tagline {
  text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 32px;
}
.lock-form { display: flex; flex-direction: column; gap: 16px; }
.lock-form h2 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.field-input-wrap { position: relative; }
.field-input-wrap input {
  width: 100%; padding: 12px 40px 12px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field-input-wrap input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.field-input-wrap input::placeholder { color: var(--subtle); }
.field-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); padding: 4px;
}
.field-eye:hover { color: var(--text); }
.btn-primary {
  width: 100%; padding: 13px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #7C3AED);
  font-weight: 600; font-size: 15px;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.4); }
.btn-primary:active { transform: none; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.lock-switch {
  text-align: center; font-size: 13px; color: var(--muted); margin-top: 4px;
}
.lock-switch a { color: var(--accent-lt); cursor: pointer; }
.lock-switch a:hover { text-decoration: underline; }
.lock-error {
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(248,81,73,0.1); border: 1px solid rgba(248,81,73,0.2);
  color: var(--danger); font-size: 13px;
}
.strength-bar { height: 3px; border-radius: 2px; background: var(--border); overflow: hidden; }
.strength-fill { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; }

/* ─── Main layout ────────────────────────────────────────────────────────── */
.layout {
  flex: 1; display: flex; overflow: hidden;
}
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.sidebar-header {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo svg { width: 28px; height: 28px; }
.sidebar-title { font-size: 15px; font-weight: 700; }
.sidebar-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 13px; font-weight: 500;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.nav-item:hover { background: var(--card); color: var(--text); }
.nav-item.active { background: var(--accent-glow); color: var(--accent-lt); }
.nav-item .nav-icon { font-size: 16px; width: 20px; text-align: center; }
.nav-badge {
  margin-left: auto; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 10px;
}
.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--border);
}
.sync-status {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 12px;
}
.sync-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.sync-dot.syncing { background: var(--warn); animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ─── Main content ───────────────────────────────────────────────────────── */
.main-content {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column;
}
.main-content::-webkit-scrollbar { width: 6px; }
.main-content::-webkit-scrollbar-track { background: transparent; }
.main-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.view { flex: 1; padding: 32px; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

/* ─── Page headers ───────────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.page-subtitle { color: var(--muted); font-size: 13px; margin-top: 4px; }
.header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.btn-accent:hover { background: var(--accent-lt); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); background: var(--card); }
.btn-danger { background: rgba(248,81,73,0.1); border: 1px solid rgba(248,81,73,0.2); color: var(--danger); }
.btn-danger:hover { background: rgba(248,81,73,0.2); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }
.btn-icon:hover { background: var(--card); }

/* ─── Trip cards grid ────────────────────────────────────────────────────── */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.trip-card {
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-card);
  aspect-ratio: 3/2;
  min-height: 200px;
}
.trip-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 16px 48px rgba(0,0,0,0.5); }
.trip-card-inner {
  position: absolute; inset: 0;
  padding: 24px;
  display: flex; flex-direction: column;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.8) 100%);
}
.trip-card-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.9);
  width: fit-content;
}
.trip-card-tag.today { background: rgba(63,185,80,0.3); color: #6EE7B7; }
.trip-card-tag.past  { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
.trip-card-destination {
  margin-top: auto;
  font-size: 28px; font-weight: 900; letter-spacing: -0.5px;
  color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  line-height: 1.1;
}
.trip-card-dates {
  font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; font-weight: 500;
}
.trip-card-stats {
  display: flex; gap: 10px; margin-top: 10px;
}
.trip-card-stat {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: rgba(255,255,255,0.7);
}
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 80px 20px; text-align: center; gap: 16px; color: var(--muted);
}
.empty-icon { font-size: 48px; opacity: .4; }
.empty-title { font-size: 18px; font-weight: 600; color: var(--text); }

/* ─── Trip detail ────────────────────────────────────────────────────────── */
.trip-hero {
  border-radius: var(--radius-lg); overflow: hidden;
  padding: 40px; margin-bottom: 32px; position: relative;
  min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end;
}
.trip-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.trip-hero-content { position: relative; z-index: 1; }
.trip-hero-back {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; color: rgba(255,255,255,0.8);
  cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.trip-hero-back:hover { background: rgba(0,0,0,0.5); color: #fff; }
.trip-hero-meta { color: rgba(255,255,255,0.65); font-size: 13px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.trip-hero-name { font-size: 36px; font-weight: 900; color: #fff; letter-spacing: -1px; line-height: 1.1; }
.trip-hero-sub  { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 6px; }
.trip-hero-actions {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  display: flex; gap: 8px;
}
.trip-hero-btn {
  background: rgba(0,0,0,0.3); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 7px 14px; border-radius: 20px;
  font-size: 12px; color: rgba(255,255,255,0.8); cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: all var(--transition);
}
.trip-hero-btn:hover { background: rgba(0,0,0,0.5); color: #fff; }

/* ─── Timeline ───────────────────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-day { margin-bottom: 32px; }
.timeline-day-header {
  font-size: 11px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  display: flex; align-items: center; gap: 8px;
}
.timeline-day-header::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.timeline-items { display: flex; flex-direction: column; }
.timeline-item {
  display: flex; gap: 20px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-time {
  width: 56px; flex-shrink: 0; padding-top: 3px;
  font-size: 12px; color: var(--muted); font-weight: 500; text-align: right; line-height: 1.4;
}
.timeline-icon-col {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  width: 32px; flex-shrink: 0;
}
.timeline-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.timeline-line {
  width: 2px; flex: 1; min-height: 20px;
  background: var(--border); margin-top: 4px;
}
.timeline-card {
  flex: 1; min-width: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  transition: border-color var(--transition);
}
.timeline-card:hover { border-color: var(--border-hover); }
.booking-delete-btn {
  position: absolute; top: 8px; right: 8px;
  display: none;
  background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444; border-radius: 4px;
  width: 22px; height: 22px; font-size: 10px; font-weight: 700;
  cursor: pointer; line-height: 1; padding: 0;
  transition: background var(--transition);
}
.booking-delete-btn:hover { background: rgba(239,68,68,0.3); }
.timeline-card:hover .booking-delete-btn { display: flex; align-items: center; justify-content: center; }

/* Flight live status */
.delay-badge {
  background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.4);
  color: #ef4444; border-radius: 4px; padding: 1px 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.3px;
}
.flight-refresh-btn {
  background: none; border: 1px solid var(--border); border-radius: 4px;
  color: var(--muted); font-size: 11px; cursor: pointer;
  padding: 2px 8px; transition: all var(--transition); line-height: 1.5;
  white-space: nowrap;
}
.flight-refresh-btn:hover { border-color: var(--border-hover); color: var(--text); }
.flight-refresh-btn:disabled { opacity: .4; cursor: default; }
.flight-progress {
  width: 100%; height: 2px; background: var(--border); border-radius: 1px; margin-top: 4px;
}
.flight-progress-fill {
  height: 100%; background: var(--c-flight); border-radius: 1px;
  transition: width 0.5s ease;
}
.tc-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; margin-bottom: 10px;
}
.tc-type { font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; }
.tc-status {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
  white-space: nowrap;
}
.tc-status.on-time  { background: rgba(63,185,80,0.15); color: var(--success); }
.tc-status.delayed  { background: rgba(212,160,23,0.15); color: var(--warn); }
.tc-status.cancelled{ background: rgba(248,81,73,0.15); color: var(--danger); }
.tc-status.scheduled{ background: rgba(99,102,241,0.1); color: var(--accent-lt); }

/* Flight card */
.flight-route {
  display: flex; align-items: center; gap: 12px; margin: 8px 0;
}
.route-point { text-align: center; }
.route-code { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.route-name { font-size: 12px; color: var(--muted); margin-top: 2px; }
.route-arrow {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.route-line {
  width: 100%; height: 1px; background: var(--border); position: relative;
}
.route-line::after {
  content: '✈'; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: var(--muted);
}
.route-duration { font-size: 12px; color: var(--muted); }
.flight-details {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.detail-chip {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.detail-chip strong { color: var(--text); }

/* Hotel card */
.hotel-name { font-size: 17px; font-weight: 700; }
.hotel-sub  { color: var(--muted); font-size: 13px; margin-top: 4px; }
.hotel-dates {
  display: flex; gap: 24px; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.date-block label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); display: block; }
.date-block span  { font-size: 14px; font-weight: 600; display: block; margin-top: 2px; }

/* ─── Upload view ────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 60px 40px; text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent); background: var(--accent-glow);
}
.upload-zone-icon { font-size: 48px; margin-bottom: 16px; }
.upload-zone h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.upload-zone p  { color: var(--muted); font-size: 14px; }
.upload-zone input[type=file] { display: none; }
.upload-processing {
  text-align: center; padding: 60px 40px;
}
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Parsed data preview */
.parsed-preview {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.parsed-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.parsed-summary { font-size: 16px; font-weight: 700; }
.parsed-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.parsed-group h4 {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--muted); margin-bottom: 8px;
}
.parsed-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px;
  font-size: 13px;
}
.parsed-item-row { display: flex; gap: 16px; flex-wrap: wrap; }
.parsed-item-row span { color: var(--muted); }
.parsed-item-row strong { color: var(--text); }
.parsed-actions {
  padding: 16px 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* ─── Query view ─────────────────────────────────────────────────────────── */
.query-wrap { max-width: 760px; margin: 0 auto; }
.query-bar {
  display: flex; gap: 10px; margin-bottom: 24px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 6px 6px 6px 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.query-bar:focus-within {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.query-input {
  flex: 1; font-size: 15px; background: transparent; padding: 8px 0;
}
.query-input::placeholder { color: var(--subtle); }
.query-submit {
  background: var(--accent); color: #fff;
  padding: 10px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  transition: all var(--transition);
}
.query-submit:hover { background: var(--accent-lt); }
.query-submit:disabled { opacity: .4; cursor: not-allowed; }
.query-examples {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px;
}
.query-example {
  padding: 6px 14px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--border);
  font-size: 12px; color: var(--muted); cursor: pointer;
  transition: all var(--transition);
}
.query-example:hover { border-color: var(--accent); color: var(--accent-lt); background: var(--accent-glow); }
.query-answer-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  animation: fadeIn 0.3s ease;
}
.query-answer-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--accent-lt); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.query-answer-text { line-height: 1.7; color: var(--text); white-space: pre-wrap; }
.query-loading { text-align: center; padding: 40px; }

/* ─── Settings ───────────────────────────────────────────────────────────── */
.settings-section {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 20px; overflow: hidden;
}
.settings-section-title {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--muted);
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 16px;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-row-label { font-size: 14px; font-weight: 500; }
.settings-row-desc  { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ─── Pending import banner ──────────────────────────────────────────────── */
.pending-banner {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--radius); padding: 14px 20px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.pending-banner-icon { font-size: 20px; }
.pending-banner-text { flex: 1; }
.pending-banner-title { font-size: 14px; font-weight: 600; }
.pending-banner-sub   { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeOverlay 0.2s ease;
}
@keyframes fadeOverlay { from{opacity:0} }
.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: modalIn 0.25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn { from{transform:scale(0.95) translateY(10px);opacity:0} }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close { color: var(--muted); padding: 4px; font-size: 20px; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 16px 24px; border-top: 1px solid var(--border);
}

/* ─── Miscellaneous ──────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600;
}
.badge-flight    { background: rgba(99,102,241,0.15); color: var(--c-flight); }
.badge-hotel     { background: rgba(236,72,153,0.15); color: var(--c-hotel); }
.badge-car       { background: rgba(245,158,11,0.15); color: var(--c-car); }
.badge-heli      { background: rgba(139,92,246,0.15); color: var(--c-heli); }
.badge-transfer  { background: rgba(20,184,166,0.15); color: var(--c-transfer); }
.badge-other     { background: rgba(107,114,128,0.15); color: var(--c-other); }

.conf-code {
  font-family: 'Courier New', monospace; font-size: 13px;
  background: var(--surface); padding: 2px 8px; border-radius: 4px;
  border: 1px solid var(--border); letter-spacing: 1px;
}

/* ─── Mobile / responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .layout { flex-direction: column-reverse; }
  .sidebar {
    width: 100%; height: auto; border-right: none;
    border-top: 1px solid var(--border);
  }
  .sidebar-header { display: none; }
  .sidebar-nav {
    flex-direction: row; overflow-x: auto;
    padding: 8px; gap: 4px;
    scrollbar-width: none;
  }
  .sidebar-nav::-webkit-scrollbar { display: none; }
  .nav-item { flex-direction: column; gap: 2px; padding: 8px; min-width: 60px; text-align: center; }
  .nav-item .nav-label { font-size: 10px; }
  .nav-item .nav-icon { font-size: 20px; width: auto; }
  .sidebar-footer { display: none; }

  .view { padding: 16px; }
  .trips-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 22px; }
  .trip-hero { padding: 24px; min-height: 180px; }
  .trip-hero-name { font-size: 28px; }
  .route-code { font-size: 20px; }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .trips-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Scrollable blobs of text ───────────────────────────────────────────── */
pre {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px;
  overflow-x: auto; font-size: 12px; line-height: 1.6;
  color: var(--muted);
}

/* ─── Trip stat pills ────────────────────────────────────────────────────── */
.stat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.stat-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--border);
  font-size: 13px;
}
.stat-pill-icon { font-size: 14px; }
.stat-pill-val  { font-weight: 600; }
.stat-pill-lbl  { color: var(--muted); }
