:root {
  --bg: #EEF2F6;
  --surface: #FFFFFF;
  --surface-2: #F7F9FC;
  --ink: #0E2A47;
  --ink-2: #51677E;
  --line: #DEE4EA;
  --line-strong: #B9C6D4;
  --accent: #1476D4;
  --accent-soft: #EAF2FB;
  --accent-hover: #0F5FAE;
  --on-accent: #FFFFFF;
  --accent-warm: #F2B705;
  --focus: #1476D4;
  --good: #1B6F46;
  --good-bg: #E1F2E9;
  --crit: #B42318;
  --crit-bg: #FCE6E3;
  --warn-bg: #FDF6E0;
  --warn-border: #E8C65A;
  --warn-ink: #7A5B00;
  --shadow-card: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
  --shadow-btn: 0 1px 2px rgba(16,24,40,.1);
  --shadow-btn-hover: 0 3px 8px rgba(16,24,40,.14);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--font-body);
}
.wrap { max-width: 880px; margin: 0 auto; padding: 24px 16px 56px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(30px, 6vw, 42px); font-weight: 700; }
h2 { font-size: 20px; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); background: transparent; border: 1px solid var(--line-strong);
  padding: 6px 10px; border-radius: 999px;
}
.lede { color: var(--ink-2); max-width: 60ch; margin-top: 10px; }
.head { margin-bottom: 22px; }

.hero-band { background: var(--ink); }
.hero-inner { max-width: 880px; margin: 0 auto; padding: 40px 16px 60px; }
.hero-band .eyebrow { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.26); color: #fff; }
.hero-band h1 { color: #fff; }
.hero-band .lede { color: rgba(255,255,255,.72); }
.hero-band .lede a { color: #fff; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; box-shadow: var(--shadow-card); }
.card + .card { margin-top: 18px; }

.section { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.section h2 { margin-bottom: 4px; }
.section .sub { color: var(--ink-2); font-size: 13px; margin-bottom: 14px; }

.linkbtn { background: none; border: 0; padding: 0; color: var(--focus); cursor: pointer; text-decoration: underline; font-size: 14px; }

.feature-head { max-width: 60ch; }
.feature-head .sub { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.feature-card { padding: 22px; }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature-card h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .01em; font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.feature-card p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--ink-2); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 6px; padding: 9px 10px; min-height: 42px;
}
textarea { resize: vertical; min-height: 64px; }

.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row .field { flex: 1 1 220px; min-width: 200px; }

.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 4px; top: 4px; bottom: 4px; width: 38px;
  border: 0; background: none; cursor: pointer; color: var(--ink-2); font-size: 12px; font-weight: 600;
}
.password-toggle:hover { color: var(--ink); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px;
  padding: 8px 14px; min-height: 38px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.slots { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.slot {
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2);
  padding: 12px 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.slot-main { flex: 1 1 220px; min-width: 0; }
.slot-label { font-weight: 600; font-size: 14px; }
.slot-label .req { color: var(--crit); margin-left: 4px; }
.slot-file { font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; margin-top: 2px; }
.slot-actions { display: flex; align-items: center; gap: 8px; }
.slot input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.slot-btn {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 6px;
  padding: 7px 12px; min-height: 36px; cursor: pointer; font-size: 13px; font-weight: 500;
}
.slot-btn:hover { border-color: var(--ink); }
.slot.filled { border-color: var(--good); background: var(--good-bg); }
.slot.error { border-color: var(--crit); }
.slot-err { width: 100%; color: var(--crit); font-size: 12px; }

.airport-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.airport-chips:empty { margin-bottom: 0; }
.airport-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 5px 6px 5px 12px; font-size: 13px; font-weight: 500;
}
.airport-chip-remove {
  border: 0; background: none; cursor: pointer; color: var(--ink-2); font-size: 15px;
  line-height: 1; padding: 2px 6px; border-radius: 999px;
}
.airport-chip-remove:hover { color: var(--crit); background: var(--crit-bg); }

/* ---------- shared autocomplete (airport picker + country/city combobox) ---------- */
.ac-wrap { position: relative; }
.ac-search {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 6px; padding: 9px 10px; min-height: 42px;
}
.ac-suggest {
  position: relative; margin-top: 4px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); max-height: 220px; overflow-y: auto;
}
.ac-suggest-item { padding: 9px 12px; font-size: 13px; cursor: pointer; }
.ac-suggest-item:hover { background: var(--surface-2); }
.ac-suggest-item + .ac-suggest-item { border-top: 1px solid var(--line); }
.ac-suggest-city { color: var(--ink-2); }
.ac-suggest-empty { padding: 9px 12px; font-size: 13px; color: var(--ink-2); }

.btn {
  border: 0; border-radius: 6px; padding: 12px 18px; min-height: 46px; cursor: pointer;
  font-weight: 600; background: var(--accent); color: var(--on-accent); width: 100%;
  box-shadow: var(--shadow-btn); transition: background .12s ease, box-shadow .12s ease;
}
.btn:hover:not(:disabled) { background: var(--accent-hover); box-shadow: var(--shadow-btn-hover); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

.status { font-size: 14px; min-height: 20px; margin-top: 10px; }
.status.err { color: var(--crit); }
.status.ok { color: var(--good); }

.progress { font-size: 13px; color: var(--ink-2); margin-top: 8px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font: 600 11px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px; white-space: nowrap;
}
.badge-pending, .badge-offered { background: #FDF0CC; color: #7A5B00; }
.badge-approved, .badge-accepted, .badge-completed, .badge-active { background: var(--good-bg); color: var(--good); }
.badge-rejected, .badge-declined, .badge-cancelled, .badge-blocked { background: var(--crit-bg); color: var(--crit); }
.badge-no_show { background: #ECE7FB; color: #5B3FB0; }
.badge-not_started { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-strong); }
.badge-ending { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-border); }
.badge-ended { background: var(--crit-bg); color: var(--crit); }

/* ---------- trial-period counter (shared by admin + partner dashboards) ---------- */
.trial-bar-track { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.trial-bar-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.trial-bar-fill.ending { background: #D8B23C; }
.trial-bar-fill.ended { background: var(--crit); }
.trial-dates { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-2); margin-top: 6px; }
.trial-pill { display: inline-block; }
.trial-pill-badge { font-size: 11.5px; padding: 3px 8px; }

/* ---------- data table (shared by admin + partner dashboards) ---------- */
.table-card { padding: 4px 0 2px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.data-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); font-weight: 600; padding: 0 14px 10px; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { padding-left: 18px; }
.data-table td { padding: 13px 14px; font-size: 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.data-row { cursor: pointer; }
.data-row:hover td { background: var(--surface-2); }
.col-main { font-weight: 600; }
.col-chev { color: var(--line-strong); text-align: right; padding-right: 18px !important; width: 20px; }
.empty-cell { padding: 18px; color: var(--ink-2); border-top: 1px solid var(--line); }

/* ---------- order detail / create-order: dotted route, icon rows, meet & greet, copy buttons (shared by admin + partner) ---------- */
.route-line { display: flex; align-items: center; gap: 6px; }
.route-track { display: flex; flex-direction: column; align-items: center; flex: none; }
.route-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.route-dot.end { border-radius: 2px; background: var(--accent-warm); }
.route-dotted { flex: 1; width: 2px; min-height: 40px; margin: 3px 0; background-image: linear-gradient(to bottom, var(--line-strong) 50%, transparent 0%); background-size: 2px 8px; background-repeat: repeat-y; background-position: center; }
.icon-dot { width: 24px; height: 24px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; color: var(--ink-2); }
.icon-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.icon-row:first-of-type { border-top: 0; }
.meetgreet-box { margin-top: 12px; background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 10px; padding: 11px 13px; }
.meetgreet-box .route-line + .route-line { margin-top: 3px; }
.meetgreet-box .mg-instruction { font-size: 12px; color: var(--warn-ink); }
.meetgreet-box .mg-sign { font-size: 13px; font-weight: 700; }
.copy-btn { border: 0; background: transparent; padding: 4px; margin-left: auto; cursor: pointer; color: var(--line-strong); border-radius: 6px; display: flex; flex: none; transition: background .12s ease, color .12s ease; }
.copy-btn:hover { background: var(--surface-2); color: var(--ink-2); }
.copy-btn.copied { color: var(--good); }

.navbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 18px; font-size: 14px; flex-wrap: wrap;
}
.navbar .who { color: var(--ink-2); }
.navbar .who b { color: var(--ink); }

[hidden] { display: none !important; }

@media (max-width: 480px) {
  .slot { flex-direction: column; align-items: stretch; }
  .slot-actions { width: 100%; justify-content: space-between; }
}
