/* =========================================================
   911 VIP Israel × MAS Travel — Partner Portal
   Design system modelled on the MAS Travel flight confirmation:
   dark navy header, teal accents, serif display type,
   letter-spaced uppercase labels, hairline borders.
   ========================================================= */

:root {
  /* palette */
  --navy-950: #08131f;
  --navy-900: #0c1a2b;
  --navy-800: #112538;
  --navy-700: #17334c;
  --navy-600: #1f4361;

  --teal-600: #148aa8;
  --teal-500: #1a9ec2;
  --teal-400: #22b8d6;
  --teal-300: #3fe0d0;
  --teal-200: #a9e6ef;
  --teal-100: #d7f0f6;
  --teal-50:  #eef7fa;

  --ink:      #0f172a;
  --ink-2:    #1e293b;
  --ink-3:    #475569;
  --muted:    #64748b;
  --faint:    #94a3b8;
  --line:     #e6eaef;
  --line-2:   #d7dde5;
  --bg:       #f4f6f8;
  --bg-2:     #eef1f4;
  --card:     #ffffff;

  --success:  #15803d;
  --success-bg: #ecfdf3;
  --warn:     #b45309;
  --warn-bg:  #fff7e6;
  --danger:   #b91c1c;
  --danger-bg:#fef2f2;
  --info:     #1a5fb4;
  --info-bg:  #eef4fc;

  --gradient-brand: linear-gradient(135deg, #0c9cc0 0%, #22c4d9 55%, #3fe0d0 100%);

  /* type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* geometry */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px -4px rgba(15, 23, 42, .10), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 48px -16px rgba(12, 26, 43, .28), 0 8px 20px -8px rgba(12, 26, 43, .18);
  --sidebar-w: 256px;
  --topbar-h: 64px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.2; }
p { margin: 0; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--teal-100); }

/* ---------- typography helpers ---------- */
.serif { font-family: var(--font-serif); }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: .02em; }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-500);
}
.eyebrow.muted { color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.strong { font-weight: 600; }
.teal { color: var(--teal-500); }
.danger-text { color: var(--danger); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }

/* ---------- layout: app shell ---------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow: hidden;
}
.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at -10% -10%, rgba(34, 196, 217, .18), transparent 60%),
    radial-gradient(400px 260px at 110% 110%, rgba(63, 224, 208, .10), transparent 60%);
  pointer-events: none;
}
.sidebar > * { position: relative; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 18px;
}
.brand img { width: 38px; height: auto; }
.brand-name { font-family: var(--font-serif); font-size: 17px; letter-spacing: .04em; line-height: 1.1; }
.brand-sub { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 3px; }
.partner {
  margin: 0 20px 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  display: flex;
  align-items: center;
  gap: 10px;
}
.partner img { width: 22px; }
.partner-label { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.partner-name { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #fff; font-weight: 500; }

.nav { padding: 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-section { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.35); padding: 14px 10px 6px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.72);
  font-weight: 500;
  font-size: 13.5px;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
  position: relative;
}
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav a.active { background: rgba(34,184,214,.14); color: #fff; }
.nav a.active::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--gradient-brand);
}
.nav a svg { width: 18px; height: 18px; opacity: .85; flex-shrink: 0; }
.nav a.active svg { color: var(--teal-300); opacity: 1; }
.nav .count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,.1);
  color: #fff;
  border-radius: 99px;
  padding: 1px 8px;
}
.sidebar-foot { padding: 14px 16px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10px; }
.user-chip .name { font-size: 13px; font-weight: 600; color: #fff; }
.user-chip .role { font-size: 11px; color: rgba(255,255,255,.5); }
.icon-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.sidebar .icon-btn { color: rgba(255,255,255,.6); margin-left: auto; }
.sidebar .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 32px;
  background: rgba(244,246,248,.82);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-title { font-family: var(--font-serif); font-size: 20px; }
.topbar-crumb { color: var(--faint); margin: 0 6px; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; }

.content {
  padding: 28px 32px 48px;
  width: 100%;
  max-width: 1320px;
}

/* ---------- page header ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.page-head h1 { font-family: var(--font-serif); font-size: 30px; letter-spacing: -.01em; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.page-head .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rule { height: 2px; width: 56px; background: var(--teal-500); margin: 14px 0 4px; border-radius: 2px; }

/* ---------- cards ---------- */
.card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.card-head h3 { font-family: var(--font-serif); font-size: 17px; }
.card-body { padding: 20px; }
.card-body.flush { padding: 0; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: #fafbfc; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card.hover { transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s; }
.card.hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }

/* ---------- grid helpers ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.gap-6 { gap: 6px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }

/* ---------- KPI tiles ---------- */
.kpi {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
}
.kpi .eyebrow { margin-bottom: 10px; }
.kpi-value { font-family: var(--font-serif); font-size: 34px; letter-spacing: -.02em; line-height: 1; }
.kpi-value small { font-size: 16px; color: var(--muted); margin-left: 4px; font-family: var(--font-sans); }
.kpi-foot { margin-top: 10px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .kpi-icon {
  position: absolute; right: 18px; top: 18px;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--teal-50);
  color: var(--teal-500);
  display: grid; place-items: center;
}
.kpi .kpi-icon svg { width: 19px; height: 19px; }
.kpi.accent { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.kpi.accent .eyebrow { color: var(--teal-300); }
.kpi.accent .kpi-foot { color: rgba(255,255,255,.6); }
.kpi.accent .kpi-icon { background: rgba(255,255,255,.08); color: var(--teal-300); }
.kpi.accent::after {
  content: '';
  position: absolute; right: -60px; bottom: -80px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63,224,208,.25), transparent 65%);
}
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .15s, border-color .15s, color .15s;
  user-select: none;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-primary { background: var(--navy-900); color: #fff; box-shadow: 0 1px 2px rgba(12,26,43,.2); }
.btn-primary:hover { background: var(--navy-800); box-shadow: 0 6px 16px -6px rgba(12,26,43,.45); transform: translateY(-1px); }
.btn-teal { background: var(--gradient-brand); color: #fff; box-shadow: 0 1px 2px rgba(26,158,194,.3); }
.btn-teal:hover { box-shadow: 0 8px 18px -6px rgba(26,158,194,.6); transform: translateY(-1px); }
.btn-secondary { background: #fff; border-color: var(--line-2); color: var(--ink-2); }
.btn-secondary:hover { border-color: var(--faint); background: #fafbfc; }
.btn-ghost { color: var(--ink-3); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: #fee2e2; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------- badges / chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.no-dot::before { display: none; }
.badge-requested { background: var(--info-bg); color: var(--info); }
.badge-confirmed { background: var(--teal-50); color: var(--teal-600); }
.badge-in_progress { background: #f3e8ff; color: #6d28d9; }
.badge-completed { background: var(--success-bg); color: var(--success); }
.badge-cancelled { background: var(--bg-2); color: var(--muted); }
.badge-unbilled { background: var(--warn-bg); color: var(--warn); }
.badge-invoiced { background: var(--info-bg); color: var(--info); }
.badge-paid { background: var(--success-bg); color: var(--success); }
.badge-neutral { background: var(--bg-2); color: var(--ink-3); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-2);
  color: var(--ink-3);
  border: 1px solid transparent;
}
.chip svg { width: 13px; height: 13px; }
.chip.teal { background: var(--teal-50); color: var(--teal-600); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-chip {
  height: 32px;
  padding: 0 14px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s var(--ease);
}
.filter-chip:hover { border-color: var(--faint); color: var(--ink); }
.filter-chip.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filter-chip .n { font-size: 11px; opacity: .7; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(26,158,194,.16); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input.mono { font-family: var(--font-mono); }
.select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.input-wrap .input { padding-left: 38px; }
.input-wrap .suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--faint); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.check {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, background .15s;
  font-weight: 500;
  font-size: 13px;
}
.check:hover { border-color: var(--faint); }
.check input { accent-color: var(--teal-500); width: 16px; height: 16px; margin: 0; }
.check.on { border-color: var(--teal-400); background: var(--teal-50); }
.check .sub { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }
.seg {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-2);
  border-radius: 9px;
  gap: 2px;
}
.seg button {
  height: 32px;
  padding: 0 14px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s var(--ease);
}
.seg button svg { width: 14px; height: 14px; }
.seg button.active { background: #fff; color: var(--navy-900); box-shadow: var(--shadow-sm); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; height: 40px; }
.stepper button { width: 36px; height: 100%; font-size: 18px; color: var(--ink-3); background: #fafbfc; }
.stepper button:hover { background: var(--bg-2); color: var(--ink); }
.stepper input { width: 52px; height: 100%; border: 0; text-align: center; font-weight: 600; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.form-section { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.form-section-title .num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy-900); color: #fff;
  font-size: 12px; font-weight: 600; display: grid; place-items: center;
}
.form-section-title h3 { font-family: var(--font-serif); font-size: 18px; }
.error-text { color: var(--danger); font-size: 12px; }
.input.invalid { border-color: var(--danger); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table th {
  background: var(--navy-900);
  color: #fff;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}
.table th:first-child { border-top-left-radius: var(--radius-lg); }
.table th:last-child { border-top-right-radius: var(--radius-lg); }
.table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tbody tr { transition: background .12s; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover { background: var(--teal-50); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .th-right, .table .td-right { text-align: right; }
.table.compact td { padding: 10px 14px; }
.table .primary-cell { font-weight: 600; color: var(--ink); }
.table .sub-cell { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card .table th:first-child { border-top-left-radius: 0; }
.card .table th:last-child { border-top-right-radius: 0; }
.card > .table-wrap:first-child .table th:first-child { border-top-left-radius: var(--radius-lg); }
.card > .table-wrap:first-child .table th:last-child { border-top-right-radius: var(--radius-lg); }

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
.empty svg { width: 40px; height: 40px; color: var(--faint); margin: 0 auto 12px; }
.empty h4 { font-family: var(--font-serif); font-size: 18px; color: var(--ink-2); margin-bottom: 6px; }

/* ---------- service segment (mirrors the flight card on the confirmation) ---------- */
.segment {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.segment-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.segment-top > div { padding: 18px 22px; }
.segment-top .mid {
  background: #f6f8fa;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.segment .code { font-family: var(--font-serif); font-size: 30px; letter-spacing: .02em; line-height: 1; }
.segment .code-sub { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.segment .time { font-weight: 600; font-size: 16px; margin-top: 12px; }
.segment .time-sub { font-size: 12px; color: var(--muted); }
.segment .mid .flight { font-weight: 700; font-size: 13.5px; }
.segment .mid .dur { font-family: var(--font-mono); font-size: 12px; color: var(--teal-500); font-weight: 600; }
.segment .mid svg { width: 22px; height: 22px; color: var(--teal-500); }
.segment-foot {
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
}
.segment-foot .strong { color: var(--ink); }
.segment-foot .dot { color: var(--faint); }
.segment-connector {
  background: #f6f8fa;
  border-top: 1px solid var(--line);
  padding: 10px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
}
.segment-lines { border-top: 1px solid var(--line); padding: 10px 22px 14px; }
.line-item { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; }
.line-item .l { color: var(--ink-3); }
.line-item .l small { color: var(--faint); margin-left: 6px; }
.line-item .r { font-variant-numeric: tabular-nums; font-weight: 500; }
.line-item.total { border-top: 1px dashed var(--line-2); margin-top: 6px; padding-top: 10px; font-weight: 600; }
.line-item.total .l { color: var(--ink); }
.line-item.grand { font-size: 16px; font-family: var(--font-serif); }
.line-item.grand .r { font-family: var(--font-serif); font-size: 20px; }

/* ---------- callout (mirrors the ETA-IL notice) ---------- */
.callout {
  border-left: 3px solid var(--teal-500);
  background: var(--teal-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  display: flex; gap: 12px;
  color: var(--ink-2);
  font-size: 13px;
}
.callout svg { width: 18px; height: 18px; color: var(--teal-500); flex-shrink: 0; margin-top: 1px; }
.callout strong { font-weight: 600; }
.callout.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.callout.warn svg { color: var(--warn); }
.callout.danger { border-left-color: var(--danger); background: var(--danger-bg); }
.callout.danger svg { color: var(--danger); }
.callout .title { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.list-item:last-child { border-bottom: 0; }
.list-item.clickable { cursor: pointer; }
.list-item.clickable:hover { background: var(--teal-50); }
.list-item .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--teal-50); color: var(--teal-500);
  display: grid; place-items: center; flex-shrink: 0;
}
.list-item .ico svg { width: 18px; height: 18px; }
.list-item .ico.navy { background: var(--navy-900); color: var(--teal-300); }
.list-item .ico.warn { background: var(--warn-bg); color: var(--warn); }
.list-item .ico.grey { background: var(--bg-2); color: var(--muted); }
.list-item .body { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; }
.list-item .sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.list-item .end { text-align: right; flex-shrink: 0; }
.day-head {
  padding: 10px 20px;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.day-head.today { color: var(--teal-600); }
.day-head .pill { background: var(--teal-500); color: #fff; padding: 1px 8px; border-radius: 99px; font-size: 10px; }

/* ---------- timeline / activity ---------- */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.tl-item { position: relative; padding: 0 0 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -20px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--teal-500);
}
.tl-item .t { font-size: 13px; }
.tl-item .m { font-size: 11.5px; color: var(--faint); margin-top: 2px; }

/* ---------- billing stepper ---------- */
.bstep { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bstep div {
  padding: 10px 8px;
  text-align: center;
  border-radius: 8px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--faint);
  background: var(--bg-2);
  position: relative;
}
.bstep div.done { background: var(--success-bg); color: var(--success); }
.bstep div.cur { background: var(--navy-900); color: #fff; }

/* ---------- progress bars ---------- */
.bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; display: flex; }
.bar span { height: 100%; transition: width .8s var(--ease-out); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- dropdown menu ---------- */
.menu { position: relative; }
.menu-panel {
  position: absolute;
  right: 0; top: calc(100% + 6px);
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 50;
  animation: popIn .16s var(--ease-out);
  transform-origin: top right;
}
.menu-panel button, .menu-panel a {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: left;
}
.menu-panel button:hover, .menu-panel a:hover { background: var(--bg-2); text-decoration: none; }
.menu-panel button svg { width: 15px; height: 15px; color: var(--muted); }
.menu-panel .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-panel .danger { color: var(--danger); }
.menu-panel .danger svg { color: var(--danger); }
.menu-panel .head { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding: 8px 10px 4px; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8,19,31,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn .18s var(--ease-out);
}
.modal-backdrop.closing { animation: fadeOut .16s var(--ease) forwards; }
.modal {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  animation: modalIn .28s var(--ease-out);
}
.modal.lg { max-width: 760px; }
.modal.sm { max-width: 420px; }
.modal-backdrop.closing .modal { animation: modalOut .16s var(--ease) forwards; }
.modal-head { padding: 22px 24px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head h3 { font-family: var(--font-serif); font-size: 21px; }
.modal-head .sub { color: var(--muted); margin-top: 4px; font-size: 13px; }
.modal-body { padding: 20px 24px; }
.modal-foot { padding: 0 24px 22px; display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- toasts ---------- */
.toasts {
  position: fixed;
  right: 20px; bottom: 20px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 200;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: 500;
  min-width: 240px;
  max-width: 380px;
  animation: toastIn .3s var(--ease-out);
}
.toast.leaving { animation: toastOut .25s var(--ease) forwards; }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast.success svg { color: var(--teal-300); }
.toast.error { background: var(--danger); }
.toast.warn svg { color: #fbbf24; }

/* ---------- login ---------- */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.login-hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 44px 56px;
}
.login-hero .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
  animation: drift1 26s ease-in-out infinite alternate;
}
.login-hero .b1 { width: 560px; height: 560px; background: #1a9ec2; top: -180px; right: -140px; }
.login-hero .b2 { width: 460px; height: 460px; background: #3fe0d0; bottom: -200px; left: -140px; opacity: .38; animation: drift2 32s ease-in-out infinite alternate; animation-delay: -9s; }
.login-hero .b3 { width: 340px; height: 340px; background: #2a7fb0; top: 38%; left: 28%; opacity: .5; animation: drift3 21s ease-in-out infinite alternate; animation-delay: -14s; }
.login-hero .aurora {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(34,184,214,.16) 70deg, transparent 140deg, rgba(63,224,208,.12) 230deg, transparent 300deg);
  filter: blur(60px);
  opacity: .5;
  animation: spinSlow 60s linear infinite;
  will-change: transform;
}
.login-hero .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.login-hero > * { position: relative; }
.login-logos { display: flex; align-items: center; gap: 22px; }
.login-logos img { height: 56px; width: auto; }
.login-logos .x { font-family: var(--font-serif); font-size: 26px; color: rgba(255,255,255,.4); }
.login-logos .mas { display: flex; align-items: center; gap: 12px; }
.login-logos .mas img { height: 40px; }
.login-logos .mas span { font-size: 15px; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; }
.login-hero-body { margin: auto 0; padding: 40px 0; max-width: 520px; }
.login-hero h1 { font-family: var(--font-serif); font-size: 52px; line-height: 1.05; letter-spacing: -.01em; margin: 18px 0 18px; }
.login-hero h1 em { font-style: italic; color: var(--teal-300); }
.login-hero p { color: rgba(255,255,255,.65); font-size: 15.5px; line-height: 1.6; max-width: 440px; }
.login-hero .eyebrow { color: var(--teal-300); }
.login-hero-foot { display: flex; gap: 28px; color: rgba(255,255,255,.45); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.login-hero-foot span { display: flex; align-items: center; gap: 8px; }
.login-hero-foot svg { width: 14px; height: 14px; color: var(--teal-300); }
.login-side {
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: var(--bg);
}
.login-card { width: 100%; max-width: 400px; }
.login-card .eyebrow { margin-bottom: 8px; }
.login-card h2 { font-family: var(--font-serif); font-size: 30px; margin-bottom: 6px; }
.login-card .sub { color: var(--muted); margin-bottom: 28px; }
.login-card form { display: flex; flex-direction: column; gap: 16px; }
.login-card .input { height: 46px; border-radius: 11px; font-size: 15px; }
.login-card .input-wrap .input { padding-left: 42px; }
.login-card .foot { margin-top: 22px; text-align: center; color: var(--faint); font-size: 12px; line-height: 1.6; }
.login-card .foot b { color: var(--ink-3); font-weight: 600; }
.login-card .shake { animation: shake .4s var(--ease); }
.login-card .demo-hint { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--teal-50); border: 1px dashed var(--teal-200); font-size: 12.5px; color: var(--ink-3); }
.login-card .demo-hint b { font-family: var(--font-mono); color: var(--teal-600); }

/* ---------- skeleton ---------- */
.skel { background: linear-gradient(90deg, var(--bg-2) 25%, #f7f8fa 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }

/* ---------- animations ---------- */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeOut { from { opacity: 1 } to { opacity: 0 } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(-4px) } to { opacity: 1; transform: none } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98) } to { opacity: 1; transform: none } }
@keyframes modalOut { to { opacity: 0; transform: translateY(10px) scale(.98) } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96) } to { opacity: 1; transform: none } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.97) } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes shimmer { to { background-position: -200% 0 } }
@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1) }
  35%  { transform: translate(-42vw, 28vh) scale(1.15) }
  70%  { transform: translate(-18vw, 62vh) scale(.9) }
  100% { transform: translate(-55vw, 10vh) scale(1.05) }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1) }
  30%  { transform: translate(38vw, -30vh) scale(1.2) }
  65%  { transform: translate(60vw, -8vh) scale(.95) }
  100% { transform: translate(12vw, -55vh) scale(1.1) }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(1) }
  50%  { transform: translate(30vw, -25vh) scale(1.3) }
  100% { transform: translate(-16vw, 22vh) scale(.85) }
}
@keyframes spinSlow { to { transform: rotate(360deg) } }
@keyframes shake { 0%,100% { transform: translateX(0) } 20%,60% { transform: translateX(-6px) } 40%,80% { transform: translateX(6px) } }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .45 } }

.page-enter { animation: fadeUp .38s var(--ease-out) both; }
.stagger > * { animation: fadeUp .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
.pulse { animation: pulse 1.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- mobile ---------- */
.bottom-nav { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .form-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    width: min(300px, 84vw);
    transform: translateX(-100%);
    transition: transform .3s var(--ease-out);
    box-shadow: none;
  }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .sidebar-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(8,19,31,.5);
    z-index: 39;
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
  }
  .sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
  .topbar { padding: 0 16px; height: 58px; }
  .menu-btn { display: grid; }
  .topbar-title { font-size: 18px; }
  .content { padding: 18px 16px 96px; }
  .page-head h1 { font-size: 26px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .form-grid, .form-grid-3, .form-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: auto; }
  .form-section { padding: 18px 16px; }
  .segment-top { grid-template-columns: 1fr; }
  .segment-top .mid { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-direction: row; justify-content: center; gap: 14px; padding: 10px; }
  .segment .code { font-size: 24px; }
  .segment-top > div { padding: 14px 16px; }
  .segment-foot, .segment-lines { padding-left: 16px; padding-right: 16px; }
  .card-head, .card-body { padding-left: 16px; padding-right: 16px; }
  .list-item { padding: 12px 16px; }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; }
  .toasts { left: 16px; right: 16px; bottom: 84px; }
  .toast { max-width: none; }

  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    z-index: 38;
  }
  .bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
    color: var(--muted);
  }
  .bottom-nav a:hover { text-decoration: none; }
  .bottom-nav a svg { width: 20px; height: 20px; }
  .bottom-nav a.active { color: var(--teal-500); }
  .bottom-nav a.fab-link { position: relative; }
  .bottom-nav a.fab-link .fab {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--gradient-brand); color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 8px 18px -6px rgba(26,158,194,.7);
    margin-top: -20px;
  }
  .bottom-nav a.fab-link .fab svg { width: 22px; height: 22px; }

  .login { grid-template-columns: 1fr; }
  .login-hero { padding: 28px 24px 32px; min-height: 40vh; }
  .login-hero h1 { font-size: 34px; }
  .login-hero-body { padding: 24px 0 0; }
  .login-hero-foot { display: none; }
  .login-logos img { height: 44px; }
  .login-logos .mas img { height: 32px; }
  .login-logos .mas span { font-size: 12px; }
  .login-side { padding: 28px 20px 40px; }

  .hide-mobile { display: none !important; }
}
@media (min-width: 901px) {
  .hide-desktop { display: none !important; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .kpi { padding: 16px; }
  .kpi-value { font-size: 26px; }
  .kpi .kpi-icon { display: none; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
}

/* mobile booking cards */
.bcard { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.bcard .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bcard .svc { display: flex; flex-wrap: wrap; gap: 6px; }
.bcard .foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }

/* misc */
.divider { height: 1px; background: var(--line); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.pax-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pax-list .pax {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13px; font-weight: 500;
  background: #fff;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.status-select { height: 34px; border-radius: 99px; padding: 0 32px 0 14px; font-weight: 600; font-size: 12.5px; width: auto; }
.price-panel { position: sticky; top: calc(var(--topbar-h) + 20px); }
.price-panel .total { font-family: var(--font-serif); font-size: 32px; letter-spacing: -.02em; }
.svc-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.svc-card-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fafbfc; border-bottom: 1px solid var(--line); }
.svc-card-head .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--navy-900); color: var(--teal-300); display: grid; place-items: center; }
.svc-card-head .ico svg { width: 17px; height: 17px; }
.svc-card-head .t { font-weight: 600; }
.svc-card-head .s { font-size: 12px; color: var(--muted); }
.svc-card-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.svc-price { font-family: var(--font-serif); font-size: 18px; margin-left: auto; white-space: nowrap; }
.addon-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (max-width: 560px) { .addon-grid { grid-template-columns: 1fr; } }
.add-service {
  border: 1.5px dashed var(--line-2);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
@media (max-width: 900px) { .add-service { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.add-service button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  transition: all .18s var(--ease);
}
.add-service button:hover { border-color: var(--teal-400); background: var(--teal-50); transform: translateY(-2px); box-shadow: var(--shadow); }
.add-service button svg { width: 20px; height: 20px; color: var(--teal-500); }
.add-service button b { font-size: 13px; }
.add-service button span { font-size: 11.5px; color: var(--muted); }
.rate-row-new { animation: fadeUp .4s var(--ease-out); }
.spin { animation: spin .8s linear infinite; }
kbd { font-family: var(--font-mono); font-size: 11px; padding: 2px 6px; border-radius: 5px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-3); }
