/* =========================================================
   MATKA MV – customer website v1
   Mobile-first. Breakpoints: 640px (tablet), 960px (desktop)
   ========================================================= */
:root {
  --p-900: #3b0a7a;
  --p-700: #6d28d9;
  --p-600: #7c3aed;
  --p-500: #8b5cf6;
  --p-400: #a78bfa;
  --p-200: #ddd6fe;
  --p-100: #ede9fe;
  --p-50: #f5f3ff;
  --ink: #1e1b3a;
  --ink-2: #4b4870;
  --muted: #7a7799;
  --line: #e7e3f6;
  --green: #16a34a;
  --green-bg: #dcfce7;
  --red: #dc2626;
  --card: rgba(255, 255, 255, 0.82);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px -12px rgba(76, 29, 149, 0.25), 0 2px 6px rgba(76, 29, 149, 0.06);
  --grad: linear-gradient(135deg, #a855f7 0%, #7c3aed 55%, #6d28d9 100%);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #f3eefe 0%, #fbf8ff 40%, #eef0ff 100%);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--p-600); }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

/* soft background blobs */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.bg-blobs span:nth-child(1) { width: 60vw; height: 60vw; background: #e9d5ff; top: -20vw; left: -15vw; }
.bg-blobs span:nth-child(2) { width: 55vw; height: 55vw; background: #fbcfe8; bottom: -25vw; right: -20vw; opacity: .45; }
.bg-blobs span:nth-child(3) { width: 45vw; height: 45vw; background: #c7d2fe; top: 30%; right: -15vw; opacity: .4; }

.view { display: none; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px calc(24px + var(--safe-b)); }
.view.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15px; transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -6px rgba(124, 58, 237, .6); }
.btn-primary:disabled { opacity: .55; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13px; color: var(--ink);
}
.btn-pill svg { width: 16px; height: 16px; }
.btn-pill.sm { padding: 6px 12px; font-size: 12px; }
.btn-pill svg path[d^="M12 12a4"] { fill: currentColor; stroke: none; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 0; background: transparent; color: var(--ink);
}
.icon-btn:hover { background: rgba(124, 58, 237, .08); }
.icon-btn.danger { color: var(--muted); }
.icon-btn.danger:hover { color: var(--red); background: #fee2e2; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: .3px; font-size: 18px; }
.logo { width: 40px; height: 28px; stroke: none; }
.nav { display: none; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.nav a.active, .nav a:hover { color: var(--p-700); }

/* ---------- hero ---------- */
.hero { display: grid; gap: 20px; padding-top: 8px; }
.hero h1 { font-size: clamp(30px, 8.5vw, 48px); line-height: 1.12; margin: 6px 0 10px; font-weight: 800; letter-spacing: -.5px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { margin: 0; color: var(--ink-2); font-weight: 600; }
.tagline i { color: var(--p-400); font-style: normal; margin: 0 6px; }

.search-card { padding: 16px; display: grid; gap: 12px; }
.toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--p-50); border-radius: 999px; padding: 4px; }
.toggle button {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px;
  border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 14px; color: var(--ink-2);
}
.toggle button svg { width: 18px; height: 18px; }
.toggle button.active { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(124, 58, 237, .7); }

.grid-2 { display: grid; gap: 12px; }
.field {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 58px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: var(--p-400); box-shadow: 0 0 0 4px rgba(167, 139, 250, .2); }
.field > svg { color: var(--p-600); }
.field-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.field small { font-size: 12px; font-weight: 700; color: var(--ink); }
.field select, .field input {
  border: 0; outline: 0; background: transparent; padding: 2px 0 0; width: 100%;
  font-size: 16px; /* 16px stops iOS zoom-on-focus */ color: var(--ink-2); min-height: 26px;
  -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7799' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 18px no-repeat; padding-right: 22px; }
.lbl-strong { font-size: 14px !important; }
.stepper-field.soft { background: var(--p-50); border-color: transparent; }
.counter { display: flex; align-items: center; gap: 4px; }
.counter button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 20px; line-height: 1; display: grid; place-items: center; color: var(--ink);
}
.counter button:disabled { opacity: .4; }
.counter output { min-width: 32px; text-align: center; font-weight: 700; font-size: 17px; }

.form-error { margin: 0; color: var(--red); font-size: 13px; font-weight: 600; min-height: 0; }
.form-error:empty { display: none; }

.features {
  list-style: none; padding: 18px 8px; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: rgba(255, 255, 255, .55); border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .8);
}
.features li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ficon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--p-100); color: var(--p-600); }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 0 8px; }

/* ---------- flow ---------- */
#view-flow { max-width: 760px; }
.flow-head { display: flex; align-items: center; gap: 6px; padding: 12px 16px 8px; margin: 0 -16px; position: sticky; top: 0; z-index: 5; background: rgba(246, 242, 255, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.flow-head h2 { font-size: 17px; margin: 0; }

.progress { align-items: start; list-style: none; margin: 6px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.progress li { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.progress li::before {
  content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 3px; background: var(--p-200); z-index: 0; border-radius: 3px;
}
.progress li:first-child::before { display: none; }
.progress li.done::before, .progress li.current::before { background: var(--p-500); }
.dot {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.progress li.current .dot { background: var(--grad); color: #fff; border: 0; box-shadow: 0 0 0 5px rgba(167, 139, 250, .3); }
.dot { position: relative; z-index: 1; }
.progress li.done .dot { background: var(--p-500); color: transparent; border: 0; }
.progress li.done .dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 6px; width: 11px; height: 6px; margin: -5px 0 0 -6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.progress em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; }
.progress li.current em, .progress li.done em { color: var(--ink); }

.flow-card { padding: 18px 16px; }
.step { display: none; }
.step.active { display: grid; gap: 14px; animation: fade .3s ease; }
.step-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.step-title h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -.2px; }
.step-title p { margin: 0; color: var(--muted); font-size: 13.5px; }
.art { flex: none; }
.art svg { width: 64px; height: 48px; stroke: none; }

.input-group { display: grid; gap: 6px; }
.input-group label { font-size: 13px; font-weight: 700; }
.input-group b, .lbl-strong b { color: var(--red); }
.input-group label small { color: var(--muted); font-weight: 600; }
.input select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7799' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 18px no-repeat; font-size: 16px; padding: 12px 22px 12px 0; -webkit-appearance: none; appearance: none; }

/* "More details (optional)" – folds open like Operations */
.more { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.more summary { list-style: none; cursor: pointer; padding: 14px; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: space-between; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.more[open] summary::after { transform: rotate(-135deg); }
.more-body { display: grid; gap: 12px; padding: 0 14px 14px; }

/* "Who is travelling" */
.band { display: grid; gap: 8px; }
.band-label { margin: 0; font-size: 13px; font-weight: 700; }
.band-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.band-chip { position: relative; cursor: pointer; }
.band-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.band-chip span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--ink-2); transition: all .2s; }
.band-chip input:checked + span { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 14px -6px rgba(124, 58, 237, .7); }
.band-chip input:focus-visible + span { outline: 2px solid var(--p-500); outline-offset: 2px; }
.input {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.input:focus-within { border-color: var(--p-400); box-shadow: 0 0 0 4px rgba(167, 139, 250, .2); }
.input.invalid { border-color: #fca5a5; box-shadow: 0 0 0 4px rgba(252, 165, 165, .25); }
.input svg { color: var(--muted); width: 18px; height: 18px; }
.input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 12px 0; }
.input.phone { padding-left: 0; overflow: hidden; }
.cc { display: flex; align-items: center; gap: 6px; padding: 0 12px; align-self: stretch; border-right: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.flag { width: 20px; height: 14px; border-radius: 2px; background: #d21034; position: relative; }
.flag::before { content: ""; position: absolute; inset: 3px 4px; background: #007e3a; border-radius: 1px; }
.flag::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; left: 8px; top: 5px; box-shadow: -1px 0 0 1px #fff; }

/* route + date summary */
.route-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.route-chip, .date-chip {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line);
}
.route-chip .arrow-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--p-100); color: var(--p-600); display: grid; place-items: center; flex: none; }
.route-chip .r-text { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.route-chip .r-text small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.route-chip .r-text b { font-size: 14px; }
.route-chip .to-ic { color: var(--ink); width: 18px; height: 18px; }
.date-chip svg { color: var(--p-600); }
.date-chip small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.date-chip b { font-size: 14px; }

/* trip time list */
.trips { display: grid; gap: 8px; }
.trip {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm); background: #fff; border: 1.5px solid var(--line);
  cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s;
}
.trip { position: relative; }
.trip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.trip:hover { border-color: var(--p-200); }
.trip.selected { border-color: var(--p-500); background: var(--p-50); box-shadow: 0 0 0 3px rgba(167, 139, 250, .18); }
.trip.full { opacity: .5; cursor: not-allowed; }
.boat { width: 26px; height: 26px; color: var(--p-600); }
.trip-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trip-time { font-weight: 800; font-size: 17px; }
.seats { font-size: 12px; font-weight: 600; color: var(--green); }
.seats.low { color: #d97706; }
.trip.full .seats { color: var(--red); }
.price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cfc9e6; display: grid; place-items: center; flex: none; transition: all .2s; }
.selected .radio, .option.selected .radio { background: var(--grad); border-color: transparent; }
.selected .radio::after, .option.selected .radio::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }

/* payment options */
.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-sm);
  background: #fff; border: 1.5px solid var(--line); cursor: pointer; transition: all .2s; position: relative;
}
.option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.option.selected { border-color: var(--p-500); background: var(--p-50); box-shadow: 0 0 0 3px rgba(167, 139, 250, .18); }
.option:has(input:focus-visible) { outline: 2px solid var(--p-500); outline-offset: 2px; }
.opt-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--p-100); color: var(--p-700); display: grid; place-items: center; flex: none; }
.opt-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt-text b { font-size: 15px; }
.opt-text small { color: var(--muted); font-size: 12.5px; }

/* bank */
.bank-box { padding: 16px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); display: grid; gap: 14px; }
.bank-head { display: flex; align-items: center; gap: 12px; }
.bank-head > div { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bml-tag { background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 4px; letter-spacing: .5px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.kv dd.mono { font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.kv dd.strong { color: var(--p-700); font-weight: 800; }
.notice { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--p-100); }
.notice .i { width: 22px; height: 22px; border-radius: 50%; background: var(--p-600); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; font-style: italic; font-family: Georgia, serif; }
.notice b { font-size: 14px; color: var(--p-700); }
.notice p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }

/* upload */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 28px 16px; border-radius: var(--radius-sm); border: 2px dashed var(--p-400);
  background: rgba(245, 243, 255, .7); cursor: pointer; transition: background .2s, border-color .2s;
}
.dropzone.drag { background: var(--p-100); border-color: var(--p-600); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone svg { width: 52px; height: 40px; color: var(--p-600); stroke: none; }
.dropzone b { font-size: 15px; }
.dropzone span { font-size: 14px; color: var(--ink-2); }
.dropzone u { color: var(--p-600); font-weight: 700; text-decoration: none; }
.dropzone small { color: var(--muted); font-size: 12px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.file-ic { width: 40px; height: 44px; border-radius: 8px; background: #dbeafe; color: #2563eb; display: grid; place-items: center; flex: none; }
.file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-meta b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta small { color: var(--muted); font-size: 12px; }
.ok { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.ok svg { width: 14px; height: 14px; stroke-width: 3; }

/* review */
.review-grid { display: grid; gap: 12px; }
.panel { padding: 14px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.panel h4 { margin: 0 0 10px; font-size: 14px; }
.leg { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.leg:first-of-type { border-top: 0; padding-top: 0; }
.leg .arrow-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--p-100); color: var(--p-600); display: grid; place-items: center; }
.leg small { color: var(--muted); font-size: 12px; font-weight: 600; display: block; }
.leg b { font-size: 14px; }
.leg .when { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.meta-row { display: flex; align-items: center; gap: 10px; padding: 10px 0 0; border-top: 1px solid var(--line); margin-top: 6px; font-size: 13.5px; }
.meta-row svg { color: var(--p-600); width: 18px; height: 18px; }
.meta-row span { flex: 1; color: var(--ink-2); font-weight: 600; }
.meta-row b { font-weight: 700; }
.fare .line { display: flex; justify-content: space-between; font-size: 13.5px; padding: 6px 0; color: var(--ink-2); }
.fare .total { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 12px; border-radius: 10px; background: var(--p-50); }
.fare .total b { font-size: 20px; color: var(--p-700); }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; padding: 4px 2px; }
.agree { position: relative; }
.agree input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.agree .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #cfc9e6; flex: none; display: grid; place-items: center; transition: all .2s; margin-top: 1px; }
.agree input:checked + .box { background: var(--grad); border-color: transparent; }
.agree input:checked + .box::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.agree input:focus-visible + .box { outline: 2px solid var(--p-500); outline-offset: 2px; }

/* bottom actions – sticky on phones */
.actions {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 18px;
  position: sticky; bottom: 0; padding: 12px 0 calc(4px + var(--safe-b));
  background: linear-gradient(to top, #fff 75%, rgba(255, 255, 255, 0));
  margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; border-radius: 0 0 var(--radius) var(--radius);
}
.actions .btn-primary { flex: 1; max-width: 280px; margin-left: auto; }
.actions .btn-ghost { padding: 0 18px; }

/* ---------- confirmed ---------- */
#view-done { max-width: 760px; }
.done-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 40px; position: relative; }
.check-badge { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, #4ade80, #16a34a); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(22, 163, 74, .55), 0 0 0 10px rgba(74, 222, 128, .15); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.check-badge svg { width: 40px; height: 40px; color: #fff; stroke-width: 3; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.done-wrap h2 { font-size: 28px; margin: 22px 0 6px; font-weight: 800; }
.muted { color: var(--muted); margin: 0; }
.confetti { position: absolute; inset: 0 0 auto; height: 200px; pointer-events: none; }
.confetti i { position: absolute; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: fall 1.6s ease-out forwards; }
@keyframes fall { 0% { opacity: 1; transform: translateY(-10px) rotate(0); } 100% { opacity: 0; transform: translateY(120px) rotate(320deg); } }
.ref-box { display: flex; align-items: center; gap: 16px; margin: 20px 0; padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ref-box small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-align: left; }
.ref-box b { font-size: 24px; color: var(--p-700); letter-spacing: .5px; }
.summary-strip { width: 100%; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.summary-strip .s { display: flex; gap: 10px; align-items: flex-start; }
.summary-strip svg { color: var(--p-600); margin-top: 2px; }
.summary-strip small { display: block; font-size: 12px; font-weight: 700; color: var(--ink); }
.summary-strip span { font-size: 13px; color: var(--ink-2); display: block; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin: 3px 0; }
.badge.paid { background: var(--green-bg); color: var(--green); }
.badge.pending { background: #fef3c7; color: #b45309; }
.done-actions { display: grid; gap: 10px; width: 100%; margin-top: 20px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 50; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- small phones ---------- */
@media (max-width: 360px) {
  .view { padding-left: 12px; padding-right: 12px; }
  .progress em { font-size: 10px; }
  .trip { gap: 8px; padding: 10px; }
  .boat { display: none; }
  .art { display: none; }
  .actions .btn-ghost { padding: 0 14px; }
}

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  .view { padding-left: 24px; padding-right: 24px; }
  .flow-head { margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .route-row { grid-template-columns: 1fr auto; }
  .review-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .flow-card { padding: 26px 28px; }
  .step-title h3 { font-size: 22px; }
  .features li { flex-direction: row; justify-content: center; font-size: 13px; }
  .summary-strip { grid-template-columns: repeat(4, 1fr); padding: 18px; }
  .done-actions { grid-template-columns: repeat(3, auto); justify-content: center; }
  .actions { position: static; background: none; padding: 12px 0 0; margin-left: 0; margin-right: 0; }
  .actions .btn-primary { flex: none; min-width: 180px; }
  .art svg { width: 80px; height: 60px; }
}

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  .nav { display: flex; }
  .topbar { padding: 22px 0; }
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 30px 0 10px; }
  .hero h1 { font-size: 52px; }
  .search-card { padding: 22px; }
  .features { padding: 22px; }
}

.company-slot { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.company-slot:empty { display: none; }
.flow-head h2 .company-slot { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.flow-head h2 .company-slot:empty { display: none; }
.setup-msg {
  margin: 0; padding: 12px 14px; border-radius: 12px;
  background: #fef3c7; color: #92400e; font-size: 14px; font-weight: 600; line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
