/* FastTrack — "green channel" palette: warm paper neutrals, ink, one signal green. */
:root {
  --bg: #f4f3ef;
  --card: #ffffff;
  --ink: #14171c;
  --ink-2: #4c525d;
  --ink-3: #8b909a;
  --line: #e3e1da;
  --soft: #eeece6;
  --brand: #0b7a56;
  --brand-ink: #ffffff;
  --brand-soft: #e2f1ea;
  --brand-text: #0a6b4c;
  --solid: #14171c;         /* selected states, primary buttons */
  --solid-ink: #ffffff;
  --panel: #14171c;         /* dark service card */
  --panel-ink: #f2f3f5;
  --panel-mute: #a3a9b4;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 23, 28, 0.05);
  --head: "Inter Tight", Inter, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1113;
    --card: #171a1e;
    --ink: #eceef1;
    --ink-2: #b0b5be;
    --ink-3: #7c828c;
    --line: #272b31;
    --soft: #1f2328;
    --brand: #2fb985;
    --brand-ink: #06231a;
    --brand-soft: #12301f;
    --brand-text: #5fd3a5;
    --solid: #eceef1;
    --solid-ink: #121417;
    --panel: #1f2328;
    --panel-ink: #eceef1;
    --panel-mute: #9aa0aa;
    --bad: #ff8a80;
    --bad-soft: #3a1714;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  padding-bottom: 96px;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.i { flex: none; display: inline-block; vertical-align: -0.2em; }
.flag { flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); display: inline-block; vertical-align: middle; }

/* header */
.top { padding-top: 16px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo-word { font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: -0.6px; }
.logo-word b { color: var(--brand); font-weight: 800; }
.top-actions { display: flex; gap: 6px; align-items: center; }
.select-chip { position: relative; display: inline-flex; align-items: center; }
.select-chip select, .ghost-btn {
  appearance: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.with-ic select { padding-left: 30px; }
.chip-ic { position: absolute; left: 10px; color: var(--ink-2); pointer-events: none; display: flex; }
.ghost-btn:hover, .select-chip select:hover { border-color: var(--ink-3); }
.tagline { color: var(--ink-3); font-size: 13px; margin-top: 6px; }
@media (max-width: 480px) { .hide-sm { display: none; } .select-chip select, .ghost-btn { padding: 6px 10px; } .with-ic select { padding-left: 28px; } }

/* hero */
.hero { margin: 22px 0 6px; }
.hero h1 { font-family: var(--head); font-size: 30px; line-height: 1.12; margin: 0 0 8px; letter-spacing: -0.9px; font-weight: 800; }
.hero p { margin: 0; color: var(--ink-2); }
.stats { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.stats li { font-size: 13px; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.stats li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* progress */
.progress { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 22px 0 20px; }
.progress span { display: block; height: 3px; border-radius: 3px; background: var(--line); transition: background .3s; }
.progress em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress .done span { background: var(--brand); }
.progress .on span { background: var(--solid); }
.progress .on em { color: var(--ink); font-weight: 600; }

h2 { font-family: var(--head); font-size: 24px; margin: 0 0 6px; letter-spacing: -0.5px; font-weight: 700; }
.hint { color: var(--ink-2); font-size: 13.5px; margin: 0 0 16px; }
.label { display: block; font-weight: 600; font-size: 13.5px; margin: 18px 0 8px; }
.back { background: none; border: 0; padding: 0; color: var(--ink-2); cursor: pointer; margin-bottom: 12px; font-size: 14px; display: inline-flex; align-items: center; gap: 2px; margin-left: -4px; }
.back:hover { color: var(--ink); }

/* inputs */
.field, select.field {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
select.field { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%238b909a' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field.invalid { border-color: var(--bad); }
.field:disabled { opacity: .6; }
.field-lbl { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .grid2 { grid-template-columns: 1fr; } }

/* segmented control */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--soft); border-radius: 11px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; padding: 9px 8px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 23, 28, 0.12); font-weight: 600; }
@media (prefers-color-scheme: dark) { .seg button.on { background: #2b3036; } }

.countries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.countries button {
  border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 6px 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; transition: border-color .15s;
}
.countries button small { color: var(--ink-3); font-weight: 500; font-size: 11.5px; display: inline-flex; align-items: center; gap: 3px; }
.countries button:hover { border-color: var(--ink-3); }
.countries button.on { border-color: var(--solid); box-shadow: inset 0 0 0 1px var(--solid); }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 12px; box-shadow: var(--shadow); }
.card h3 { font-size: 15px; margin: 0 0 4px; font-weight: 600; }
.card .hint { margin-bottom: 12px; }
.svc { background: var(--panel); color: var(--panel-ink); border-color: var(--panel); }
.svc .muted { color: var(--panel-mute); }
.svc .row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }
.svc .row b { font-family: var(--head); font-size: 18px; }
.svc .incl { font-size: 13px; color: var(--panel-mute); margin-top: 10px; }
.svc .incl b { color: var(--panel-ink); font-weight: 600; }
.incl-ic, .row-ic { display: flex; gap: 8px; align-items: flex-start; }
.incl-ic .i { margin-top: 1px; color: #5fd3a5; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.note { display: flex; gap: 12px; align-items: flex-start; }
.note .ic { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; margin-top: 1px; }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; margin-top: 8px; color: var(--ink); }

.counter { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.counter .ctl { display: flex; align-items: center; gap: 12px; font-weight: 700; min-width: 100px; justify-content: space-between; }
.round { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 17px; line-height: 1; }
.round.dark { background: var(--solid); color: var(--solid-ink); border-color: var(--solid); }
.round:disabled { opacity: .35; cursor: default; }
.total-pax { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

.good { background: var(--brand-soft); border-color: transparent; }
.good h3 { color: var(--brand-text); }
.good .row-ic { color: var(--ink); margin-bottom: 4px; }
.sum-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; color: var(--ink-2); }
.sum-line span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.sum-total { display: flex; justify-content: space-between; font-family: var(--head); font-weight: 800; font-size: 22px; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); letter-spacing: -0.3px; }
.sum-total small { font-family: Inter, sans-serif; font-weight: 500; font-size: 12px; color: var(--ink-3); display: block; text-align: right; letter-spacing: 0; }

/* slots */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 6px; cursor: pointer; text-align: center; transition: border-color .15s; }
.slot:hover:not(:disabled) { border-color: var(--ink-3); }
.slot b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.slot small { color: var(--brand-text); font-size: 11.5px; }
.slot:disabled { opacity: .4; cursor: not-allowed; }
.slot:disabled small { color: var(--ink-3); }
.slot.on { background: var(--solid); color: var(--solid-ink); border-color: var(--solid); }
.slot.on small { color: inherit; opacity: .75; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin-top: 12px; cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); }
.demo-badge { display: inline-block; vertical-align: 2px; background: var(--soft); color: var(--ink-2); border-radius: 5px; padding: 1px 7px; font-size: 11px; font-weight: 600; letter-spacing: .4px; }
.err { color: var(--bad); font-size: 13.5px; margin-top: 10px; min-height: 1px; }

/* confirmation */
.ticket { text-align: center; padding-top: 22px; }
.ticket .qr { width: 210px; height: 210px; margin: 8px auto 10px; background: #fff; padding: 12px; border-radius: 12px; border: 1px solid var(--line); }
.ticket .qr svg { width: 100%; height: 100%; display: block; }
.ticket .ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.ok-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; margin: 0 auto 12px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; text-align: left; font-size: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.kv .wrap-dd { font-weight: 500; font-size: 13px; color: var(--ink-2); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.badge.ok { background: var(--brand-soft); color: var(--brand-text); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.is-cancelled .ok-ic { background: var(--bad-soft); color: var(--bad); }
.is-cancelled .ref { text-decoration: line-through; opacity: .6; }
.activates { margin-top: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.activates.live { color: var(--brand-text); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: center; }
.cancel summary { cursor: pointer; font-weight: 600; color: var(--bad); }
.cancel .hint { margin-top: 10px; }

/* landing sections */
.why { display: grid; gap: 10px; margin-top: 36px; }
.why h3 { margin: 0 0 4px; font-family: var(--head); font-size: 20px; letter-spacing: -0.3px; }
.why-item { display: flex; gap: 12px; align-items: flex-start; }
.why-item .dot { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; }
.why-item b { display: block; font-size: 14.5px; }
.why-item span { color: var(--ink-2); font-size: 13.5px; }

.how { list-style: none; counter-reset: how; padding: 0; margin: 0; display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.how li { counter-increment: how; position: relative; padding: 14px 16px 14px 56px; }
.how li + li { border-top: 1px solid var(--line); }
.how li::before { content: counter(how, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font-family: var(--head); font-weight: 800; font-size: 15px; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.how b { display: block; font-size: 14.5px; }
.how span { color: var(--ink-2); font-size: 13.5px; }

.ap-group + .ap-group { margin-top: 14px; }
.ap-country { font-weight: 600; font-size: 13.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ap { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: grid; gap: 1px; transition: border-color .15s; }
.ap:hover { border-color: var(--brand); }
.ap b { font-family: var(--head); font-size: 17px; letter-spacing: .5px; }
.ap span { font-size: 13px; color: var(--ink-2); }
.ap small { font-size: 12px; color: var(--brand-text); font-weight: 600; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-size: 18px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }

.airline { display: block; font-size: 12px; color: var(--brand-text); margin-top: 4px; min-height: 18px; }

/* extras */
.extra { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.extra + .extra { margin-top: 8px; }
.extra.on { border-color: var(--brand); background: var(--brand-soft); }
.extra input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.ex-ic { color: var(--ink-2); display: flex; }
.extra.on .ex-ic { color: var(--brand-text); }
.ex-body b { display: block; font-size: 14px; font-weight: 600; }
.ex-body small, .ex-price small { color: var(--ink-2); font-size: 12px; display: block; }
.ex-price { text-align: right; white-space: nowrap; }
.ex-price b { font-weight: 600; }
.ex-price .free { color: var(--brand-text); }

/* bottom bar */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.bottom-bar.hidden { display: none; }
.primary { width: 100%; border: 0; border-radius: 12px; padding: 14px; background: var(--solid); color: var(--solid-ink); font-weight: 600; font-size: 15.5px; cursor: pointer; transition: opacity .15s, background .15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.primary:hover:not(:disabled) { opacity: .92; }
.primary:disabled { background: var(--line); color: var(--ink-3); cursor: not-allowed; }
.primary.accent { background: var(--brand); color: var(--brand-ink); }
.primary.danger { background: var(--bad); color: #fff; }

.foot { color: var(--ink-3); font-size: 12.5px; padding-top: 40px; padding-bottom: 16px; text-align: center; }
.spinner { color: var(--ink-3); font-size: 14px; padding: 18px 0; text-align: center; }

@media print {
  body { background: #fff; padding: 0; }
  .top-actions, .bottom-bar, .no-print, .foot { display: none !important; }
  .card { box-shadow: none; border-color: #ccc; }
}
