:root {
  --navy: #14284b;
  --amber: #e09f26;
  --bg: #f4f6f9;
  --card: #ffffff;
  --border: #dce2ec;
  --text: #1c2430;
  --muted: #5d6b82;
  --danger: #b42318;
  --success: #067647;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
.topbar {
  background: var(--navy);
  color: #fff;
  padding: 0.9rem 1.25rem;
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.85rem; }
.badge {
  background: var(--amber);
  color: var(--navy);
  font-weight: 800;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  letter-spacing: 0.04em;
}
.brand h1 { margin: 0; font-size: 1.15rem; }
.subtitle { margin: 0; font-size: 0.85rem; opacity: 0.85; }
.user-bar { display: flex; align-items: center; gap: 0.75rem; }
.user-pill { font-size: 0.85rem; background: rgba(255,255,255,0.14); padding: 0.35rem 0.7rem; border-radius: 999px; }

.container { max-width: 1120px; margin: 1.5rem auto; padding: 0 1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(20,40,75,0.05);
}
.auth-card { max-width: 440px; margin: 2rem auto; }
.card-inset {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
  margin-bottom: 1rem;
}
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 0.92rem; }
.stack { display: flex; flex-direction: column; gap: 0.9rem; }
.stack-sm { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.6rem; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.row-gap { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; }
input, select, textarea {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.checkbox-row" { flex-direction: row; align-items: flex-start; gap: 0.6rem; font-weight: 400; font-size: 0.88rem; }
.checkbox-row input { width: auto; margin-top: 0.2rem; }

.btn {
  border: 0;
  border-radius: 8px;
  padding: 0.6rem 1rm;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-secondary { background: #e6ebf2; color: var(--text); }
.btn-danger { background: #fee4e2; color: var(--danger); }
.btn-sm { padding: 0.38rem 0.7rem; font-size: 0.84rem; }

.tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tab {
  background: #e6ebf2;
  color: var(--text);
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.tab.active { background: var(--navy); color: #fff; }

.passenger-box {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  background: #fafbfd;
}
.passenger-row { display: flex; gap: 0.5rem; align-items: center; }
.passenger-row input { flex: 1; }

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 500;
}
.alert.error { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; }
.alert.success { background: #ecfdf3; color: var(--success); border: 1px solid #abefc6; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}
.kpi {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
}
.kpi .label { font-size: 0.8rem; color: var(--muted); }
.kpi .value { font-size: 1.35rem; font-weight: 700; color: var(--navy); }

.table-wrap { overflow-x: auto; margin-top: 0.75rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
th { background: #f8fafc; font-weight: 700; color: var(--navy); }
.pill { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.pill-active { background: #ecfdf3; color: var(--success); }
.pill-inactive { background: #fef3f2; color: var(--danger); }
