/* ===================== A PLUS — booking flow (booking.php) + tracking (track.php) =====================
   Builds on module A's tokens and shared classes (.container, .section, .btn, .field, .notice, .glass, .pill, .badge).
   Every token has a fallback so the pages hold up on their own. Prefixes: .bk- booking page, .tk- tracking page. */
.bk, .tk {
  --bk-open: #34d399; --bk-limited: #f5b342; --bk-info: #60a5fa; --bk-progress: #a78bfa;
  --bk-red: var(--red-2, #e11b22); --bk-red-deep: var(--red, #b43036); --bk-glow: var(--red-glow, rgba(225, 27, 34, .35));
  --bk-surface: var(--surface, #171414); --bk-surface-2: var(--surface-2, #1f1b1b); --bk-line: var(--line, rgba(255, 255, 255, .08));
  --bk-text: var(--text, #f3efef); --bk-muted: var(--muted, #a79f9f); --bk-radius: var(--radius, 18px);
  --bk-ease: cubic-bezier(.22, .61, .36, 1);
  --bk-num: 'Inter', 'Tajawal', system-ui, sans-serif;
}
.bk [hidden], .tk [hidden] { display: none !important; }
.bk-req { color: var(--bk-red); font-weight: 800; }
.bk-opt { color: var(--bk-muted); font-weight: 400; font-size: .8em; }

/* ---------------- Hero band with the angled red panel ---------------- */
.bk-hero { position: relative; overflow: hidden; padding: clamp(44px, 7vw, 84px) 0 clamp(28px, 4vw, 48px); background:
  radial-gradient(900px 420px at 15% -10%, rgba(225, 27, 34, .14), transparent 60%),
  linear-gradient(180deg, var(--bk-surface, #171414), var(--bg, #0e0c0c)); }
.bk-hero__panel { position: absolute; top: -45%; inset-inline-end: -14%; width: 44%; height: 190%; background: linear-gradient(160deg, var(--red-2, #e11b22), var(--red, #b43036) 70%, transparent); opacity: .14; transform: skewX(-14deg); pointer-events: none; }
.bk-hero__panel::after { content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: -14px; width: 2px; background: linear-gradient(180deg, transparent, var(--red-2, #e11b22) 30%, var(--red-2, #e11b22) 70%, transparent); opacity: .9; }
.bk-hero__inner { position: relative; max-width: 760px; }
.bk-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.bk-hero .lead { max-width: 620px; }
.bk-hero__trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bk-hero__trust li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--bk-text); background: rgba(255, 255, 255, .05); border: 1px solid var(--bk-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bk-hero__trust .ic { color: var(--bk-red); }

/* ---------------- Layout ---------------- */
.bk .container { position: relative; }
.bk-noscript { margin-bottom: 20px; }
.bk-noscript a { color: inherit; text-decoration: underline; }
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 1024px) {
  .bk-layout { grid-template-columns: minmax(0, 1fr) 356px; gap: 40px; }
  .bk-aside { position: sticky; top: 92px; }
  .bk-chips { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}
/* after a successful booking the hero calms down and the card takes the stage */
.booking-done .bk-hero { padding-bottom: 20px; }
.booking-done .bk-hero .lead, .booking-done .bk-hero__trust { display: none; }
.bk-form { min-width: 0; }

/* ---------------- Steps ---------------- */
.bk-step { position: relative; background: var(--bk-surface); border: 1px solid var(--bk-line); border-radius: var(--bk-radius); padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; transition: border-color .25s var(--bk-ease), box-shadow .25s var(--bk-ease); }
.bk-step::before { content: ''; position: absolute; inset-inline: 22px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); }
.bk-step:focus-within { border-color: rgba(255, 255, 255, .16); }
.bk-step.has-error { border-color: rgba(225, 27, 34, .55); box-shadow: 0 0 0 3px rgba(225, 27, 34, .12); }
.bk-step__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.bk-step__head .h3 { margin: 0; line-height: 1.2; }
.bk-step__num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--bk-num); font-weight: 700; font-size: .95rem; color: #fff; background: linear-gradient(135deg, var(--bk-red), var(--bk-red-deep)); box-shadow: 0 8px 20px var(--bk-glow); margin-top: 2px; }
.bk-step__sub { margin: 4px 0 0; color: var(--bk-muted); font-size: .93rem; line-height: 1.5; }

/* ---------------- Service chips (multi-select, hidden checkboxes) ---------------- */
.bk-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.bk-chip { position: relative; display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 12px 14px; border-radius: 14px; white-space: normal; color: var(--text); overflow: hidden; background: var(--bk-surface-2); border: 1px solid var(--bk-line); cursor: pointer; user-select: none; -webkit-user-select: none; transition: transform .2s var(--bk-ease), border-color .2s, background .2s, box-shadow .25s; }
.bk-chip__box { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.bk-chip__ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--bk-muted); background: rgba(255, 255, 255, .04); transition: background .2s, color .2s; }
.bk-chip__text { min-width: 0; flex: 1; }
.bk-chip__text b { display: block; font-weight: 700; font-size: .9rem; line-height: 1.3; overflow-wrap: break-word; }
.bk-chip__text small { display: block; color: var(--bk-muted); font-size: .76rem; margin-top: 2px; line-height: 1.3; }
.bk-chip__check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .22); display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: background .2s, border-color .2s, color .2s; }
.bk-chip:hover { border-color: rgba(255, 255, 255, .2); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .28); }
.bk-chip:focus-within { outline: 2px solid var(--bk-red); outline-offset: 2px; }
.bk-chip.active { color: var(--text); border-color: var(--bk-red); background: linear-gradient(135deg, rgba(225, 27, 34, .18), rgba(180, 48, 54, .05)); box-shadow: 0 0 0 1px rgba(225, 27, 34, .35), 0 12px 28px rgba(225, 27, 34, .14); }
.bk-chip.active .bk-chip__ic { background: linear-gradient(135deg, var(--bk-red), var(--bk-red-deep)); color: #fff; }
.bk-chip.active .bk-chip__check { background: var(--bk-red); border-color: var(--bk-red); color: #fff; }
.bk-chip:has(.bk-chip__box:checked) { border-color: var(--bk-red); }   /* own rule on purpose: browsers without :has() drop the whole selector list */
.bk-branch:has(input:checked) { border-color: var(--bk-red); }

/* ---------------- Calendar ---------------- */
.bk-cal { background: var(--bk-surface-2); border: 1px solid var(--bk-line); border-radius: 16px; padding: 14px; }
.bk-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.bk-cal__title { margin: 0; font-size: 1.1rem; font-weight: 800; letter-spacing: .01em; }
.bk-cal__nav { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--bk-line); background: rgba(255, 255, 255, .04); color: var(--bk-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, border-color .2s, opacity .2s; }
.bk-cal__nav:hover:not(:disabled) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.bk-cal__nav:disabled { opacity: .3; cursor: default; }
[dir="rtl"] [data-cal-next] svg, [dir="ltr"] [data-cal-prev] svg { transform: scaleX(-1); }
.bk-cal__week, .bk-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bk-cal__week span { text-align: center; font-size: .72rem; font-weight: 700; color: var(--bk-muted); padding: 6px 0 8px; letter-spacing: .02em; }
.bk-day { position: relative; aspect-ratio: 1; min-height: 44px; border-radius: 12px; border: 1px solid transparent; background: rgba(255, 255, 255, .03); color: var(--bk-text); font-family: var(--bk-num); font-weight: 600; font-size: .95rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; cursor: pointer; transition: transform .18s var(--bk-ease), background .18s, border-color .18s, box-shadow .25s; }
.bk-day__n { line-height: 1; }
.bk-day__dot { width: 6px; height: 6px; border-radius: 50%; background: transparent; transition: background .2s; }
.bk-day--blank { visibility: hidden; }
.bk-day--open { background: rgba(52, 211, 153, .07); }
.bk-day--open .bk-day__dot { background: var(--bk-open); box-shadow: 0 0 8px rgba(52, 211, 153, .5); }
.bk-day--open:hover { border-color: rgba(52, 211, 153, .55); background: rgba(52, 211, 153, .14); transform: translateY(-1px); }
.bk-day--limited { background: rgba(245, 179, 66, .08); }
.bk-day--limited .bk-day__dot { background: var(--bk-limited); box-shadow: 0 0 8px rgba(245, 179, 66, .5); }
.bk-day--limited:hover { border-color: rgba(245, 179, 66, .6); background: rgba(245, 179, 66, .16); transform: translateY(-1px); }
.bk-day--full { color: var(--bk-muted); opacity: .5; cursor: not-allowed; }
.bk-day--full .bk-day__dot { background: rgba(255, 255, 255, .28); }
.bk-day--closed, .bk-day--past, .bk-day--horizon { opacity: .28; cursor: default; }
.bk-day--loading { background: linear-gradient(100deg, rgba(255, 255, 255, .03) 30%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .03) 70%); background-size: 240% 100%; animation: bk-shimmer 1.3s linear infinite; cursor: progress; }
.bk-day:disabled { pointer-events: none; }
.bk-day.is-today .bk-day__n { color: var(--bk-red); }
.bk-day.is-today { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.bk-day.is-span { background: rgba(225, 27, 34, .16); border-color: rgba(225, 27, 34, .45); color: #fff; }
.bk-day.is-span .bk-day__dot { background: rgba(255, 255, 255, .6); box-shadow: none; }
.bk-day.is-selected { background: linear-gradient(135deg, var(--bk-red), var(--bk-red-deep)); border-color: transparent; color: #fff; box-shadow: 0 10px 24px var(--bk-glow); transform: scale(1.06); z-index: 1; opacity: 1; }
.bk-day.is-selected .bk-day__n { color: #fff; }
.bk-day.is-selected .bk-day__dot { background: #fff; box-shadow: none; }
.bk-day:focus-visible { outline: 2px solid #fff; outline-offset: 2px; z-index: 2; }
.bk-cal__grid.is-loading { pointer-events: none; }
.bk-cal__msg { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(225, 27, 34, .1); border: 1px solid rgba(225, 27, 34, .35); font-size: .9rem; }
.bk-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: var(--bk-muted); }
.bk-legend li { display: inline-flex; align-items: center; gap: 7px; }
.bk-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.bk-dot--open { background: var(--bk-open); } .bk-dot--limited { background: var(--bk-limited); }
.bk-dot--full { background: rgba(255, 255, 255, .28); } .bk-dot--closed { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
@keyframes bk-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------------- Drop-off → pick-up panel ---------------- */
.bk-dates { margin-top: 16px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 16px 20px; border-radius: 16px; border: 1px solid rgba(225, 27, 34, .4); background: linear-gradient(135deg, rgba(225, 27, 34, .14), rgba(255, 255, 255, .03) 70%); transition: border-color .3s, background .3s, opacity .3s; }
.bk-dates[data-empty] { border-color: var(--bk-line); background: var(--bk-surface-2); }
.bk-dates[data-empty] b { color: var(--bk-muted); font-weight: 600; font-size: 1rem; }
.bk-dates__col { min-width: 0; }
.bk-dates__col small { display: block; color: var(--bk-muted); font-size: .76rem; font-weight: 700; margin-bottom: 4px; }
.bk-dates__col b { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
.bk-dates__col span { display: block; color: var(--bk-muted); font-size: .84rem; margin-top: 2px; }
.bk-dates__arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--bk-red); }
[dir="rtl"] .bk-dates__arrow svg { transform: scaleX(-1); }
.bk-dates__arrow em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--bk-text); background: rgba(255, 255, 255, .09); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.bk-dates__arrow em:empty { display: none; }
.bk-dates.is-pop { animation: bk-pop .45s var(--bk-ease); }
@keyframes bk-pop { 0% { transform: scale(.985); } 55% { transform: scale(1.012); } 100% { transform: scale(1); } }
@media (max-width: 479px) {
  .bk-dates { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .bk-dates__arrow { flex-direction: row; justify-content: center; gap: 8px; }
  [dir] .bk-dates__arrow svg { transform: rotate(90deg); }
}

/* ---------------- Branch cards (radios) ---------------- */
.bk-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.bk-branch { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bk-surface-2); border: 1px solid var(--bk-line); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--bk-ease), box-shadow .25s; }
.bk-branch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.bk-branch__ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--bk-muted); background: rgba(255, 255, 255, .04); transition: background .2s, color .2s; }
.bk-branch__text { flex: 1; min-width: 0; }
.bk-branch__text b { display: block; font-size: .95rem; line-height: 1.3; }
.bk-branch__text small { display: block; color: var(--bk-muted); font-size: .78rem; margin-top: 2px; }
.bk-branch__radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); position: relative; transition: border-color .2s; }
.bk-branch__radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--bk-red); transform: scale(0); transition: transform .2s var(--bk-ease); }
.bk-branch:hover { border-color: rgba(255, 255, 255, .2); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .28); }
.bk-branch:focus-within { outline: 2px solid var(--bk-red); outline-offset: 2px; }
.bk-branch.active { border-color: var(--bk-red); background: linear-gradient(135deg, rgba(225, 27, 34, .16), rgba(180, 48, 54, .04)); }
.bk-branch.active .bk-branch__ic { background: linear-gradient(135deg, var(--bk-red), var(--bk-red-deep)); color: #fff; }
.bk-branch.active .bk-branch__radio { border-color: var(--bk-red); }
.bk-branch.active .bk-branch__radio::after { transform: scale(1); }

/* ---------------- Fields ---------------- */
.bk-form .field, .tk .field { margin-bottom: 14px; }
.bk-form .field label, .tk .field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.bk-form .field input, .bk-form .field textarea, .tk .field input, .tk .field textarea {
  width: 100%; box-sizing: border-box; background: var(--bk-surface-2); border: 1px solid var(--bk-line); border-radius: 12px; padding: 13px 14px; min-height: 50px;
  color: var(--bk-text); font-family: inherit; font-size: 1rem; line-height: 1.4; transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; }
.bk-form .field input::placeholder, .bk-form .field textarea::placeholder, .tk .field input::placeholder, .tk .field textarea::placeholder { color: rgba(167, 159, 159, .55); }
.bk-form .field input:focus, .bk-form .field textarea:focus, .tk .field input:focus, .tk .field textarea:focus { outline: none; border-color: var(--bk-red); box-shadow: 0 0 0 3px rgba(225, 27, 34, .18); background: rgba(255, 255, 255, .04); }
.bk-form .field textarea, .tk .field textarea { resize: vertical; min-height: 96px; }
.bk-form .field.is-invalid input, .bk-form .field.is-invalid textarea { border-color: var(--bk-red); box-shadow: 0 0 0 3px rgba(225, 27, 34, .14); }
.bk-form input[dir="ltr"], .tk input[dir="ltr"] { text-align: start; font-family: var(--bk-num); letter-spacing: .02em; }
.bk-row-2, .bk-row-3 { display: grid; gap: 14px; }
.bk-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-row-2 .field, .bk-row-3 .field { margin-bottom: 0; }
.bk-row-2 + .bk-row-3, .bk-row-2 + .field, .bk-row-3 + .field { margin-top: 14px; }
@media (max-width: 640px) {
  .bk-row-2 { grid-template-columns: 1fr; }
  .bk-row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-row-3 .field:last-child { grid-column: 1 / -1; }
}
.bk-err { color: #ff7378; font-size: .84rem; font-weight: 600; margin: 8px 0 0; line-height: 1.4; }
.bk-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---------------- Submit ---------------- */
.bk-submit { margin-top: 6px; }
.bk-form-err { margin-bottom: 12px; }
.bk-submit__btn { width: 100%; justify-content: center; min-height: 58px; font-size: 1.08rem; position: relative; }
.bk-submit__btn.is-busy { opacity: .85; cursor: progress; }
.bk-submit__btn.is-busy .ic { animation: bk-spin 1s linear infinite; }
@keyframes bk-spin { to { transform: rotate(360deg); } }
.bk-submit__note { display: flex; align-items: flex-start; justify-content: center; gap: 7px; margin: 12px 0 0; color: var(--bk-muted); font-size: .85rem; line-height: 1.5; text-align: center; }
.bk-submit__note .ic { flex: none; margin-top: 3px; }

/* ---------------- Aside: summary + how it works ---------------- */
.bk-aside__card { background: var(--bk-surface); border: 1px solid var(--bk-line); border-radius: var(--bk-radius); padding: 22px; margin-bottom: 16px; }
.bk-aside__title { margin: 0 0 14px; font-size: .95rem; font-weight: 800; letter-spacing: .02em; color: var(--bk-text); }
.bk-sum { margin: 0; }
.bk-sum > div { padding: 10px 0; border-top: 1px solid var(--bk-line); }
.bk-sum > div:first-child { border-top: 0; padding-top: 0; }
.bk-sum dt { display: flex; align-items: center; gap: 6px; color: var(--bk-muted); font-size: .78rem; font-weight: 700; margin-bottom: 3px; }
.bk-sum dt .ic { color: var(--bk-red); }
.bk-sum dd { margin: 0; font-weight: 700; font-size: .95rem; line-height: 1.4; }
.bk-sum dd[data-empty] { color: var(--bk-muted); font-weight: 500; }
.bk-aside__price { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--bk-line); color: var(--bk-muted); font-size: .82rem; line-height: 1.5; }
.bk-aside__price .ic { flex: none; color: #25d366; margin-top: 2px; }
.bk-how { list-style: none; margin: 0; padding: 0; counter-reset: bkhow; }
.bk-how li { position: relative; padding: 0 0 14px; padding-inline-start: 42px; counter-increment: bkhow; }
.bk-how li:last-child { padding-bottom: 0; }
.bk-how li::before { content: counter(bkhow); position: absolute; inset-inline-start: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--bk-num); font-weight: 700; font-size: .85rem; color: var(--bk-red); border: 1.5px solid rgba(225, 27, 34, .5); background: rgba(225, 27, 34, .08); }
.bk-how li:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: 14px; top: 32px; bottom: 2px; width: 1px; background: linear-gradient(180deg, rgba(225, 27, 34, .4), transparent); }
.bk-how b { display: block; font-size: .93rem; line-height: 1.35; }
.bk-how span { display: block; color: var(--bk-muted); font-size: .84rem; line-height: 1.45; margin-top: 2px; }
.bk-aside__wa { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; color: var(--bk-text); background: rgba(37, 211, 102, .09); border: 1px solid rgba(37, 211, 102, .3); font-size: .86rem; transition: background .2s, border-color .2s; }
.bk-aside__wa:hover { background: rgba(37, 211, 102, .16); border-color: rgba(37, 211, 102, .5); }
.bk-aside__wa .ic { flex: none; color: #25d366; }
.bk-aside__wa b { display: block; font-family: var(--bk-num); font-weight: 700; font-size: .95rem; margin-top: 2px; }

/* ---------------- Success card ---------------- */
.bk-success { position: relative; overflow: hidden; max-width: 700px; margin: 0 auto; padding: clamp(28px, 5vw, 48px) clamp(18px, 4vw, 40px); text-align: center; border: 1px solid var(--bk-line); border-radius: 22px; background: var(--bk-surface); outline: none; animation: bk-rise .55s var(--bk-ease) both; }
.bk-success::before { content: ''; position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(closest-side, rgba(225, 27, 34, .28), transparent); pointer-events: none; }
.bk-success > * { position: relative; }
.bk-success__ring { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 16px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--bk-red), var(--bk-red-deep)); box-shadow: 0 0 0 8px rgba(225, 27, 34, .14), 0 14px 34px var(--bk-glow); animation: bk-ring .8s var(--bk-ease) both; }
.bk-success .h2 { margin: 6px 0 0; }
.bk-success__id { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin: 20px auto 18px; padding: 14px 26px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .28); background: var(--bk-surface-2); }
.bk-success__id small { color: var(--bk-muted); font-size: .78rem; font-weight: 700; }
.bk-success__id b { font-family: var(--bk-num); font-weight: 800; font-size: clamp(1.5rem, 6vw, 2rem); letter-spacing: .08em; line-height: 1.1; }
.bk-copy { margin-top: 4px; background: none; border: 1px solid var(--bk-line); color: var(--bk-muted); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; transition: color .2s, border-color .2s; }
.bk-copy:hover, .bk-copy.is-done { color: var(--bk-text); border-color: rgba(255, 255, 255, .3); }
.bk-copy.is-done { color: var(--bk-open); border-color: rgba(52, 211, 153, .5); }
.bk-success .bk-dates--static { text-align: start; margin: 0 auto 14px; }
.bk-success__meta { color: var(--bk-muted); margin: 0 0 16px; font-size: .95rem; }
.bk-success__meta i { font-style: normal; opacity: .5; padding: 0 4px; }
.bk-success__note { display: flex; gap: 10px; align-items: flex-start; text-align: start; margin: 0 auto 20px; padding: 14px 16px; border-radius: 14px; background: rgba(37, 211, 102, .09); border: 1px solid rgba(37, 211, 102, .28); line-height: 1.55; }
.bk-success__note .ic { flex: none; color: #25d366; margin-top: 3px; }
.bk-success__actions { justify-content: center; }
.bk-success__hint { margin: 18px 0 0; color: var(--bk-muted); font-size: .86rem; }
.bk-success__hint a { color: var(--bk-text); font-family: var(--bk-num); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@keyframes bk-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bk-ring { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@media (max-width: 479px) { .bk-success .bk-dates--static { text-align: center; } .bk-success__actions .btn { width: 100%; justify-content: center; } }

/* ---------------- Notices (scoped fallback in case a page loads before site.css does) ---------------- */
.bk .notice, .tk .notice { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--bk-line); background: var(--bk-surface-2); font-size: .93rem; line-height: 1.5; display: flex; gap: 8px; align-items: flex-start; }
.bk .notice .ic, .tk .notice .ic { flex: none; margin-top: 3px; }
.bk .notice--err, .tk .notice--err { border-color: rgba(225, 27, 34, .45); background: rgba(225, 27, 34, .1); color: var(--bk-text); }
.bk .notice--ok, .tk .notice--ok { border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .1); color: var(--bk-text); }

/* ===================================== Tracking page ===================================== */
.tk-flash { margin-bottom: 18px; }
.tk-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: clamp(18px, 3vw, 28px); border-radius: var(--bk-radius); border: 1px solid var(--bk-line); background: var(--bk-surface); margin-bottom: 22px; position: relative; overflow: hidden; }
.tk-head::after { content: ''; position: absolute; top: -60%; inset-inline-end: -12%; width: 34%; height: 220%; background: linear-gradient(160deg, var(--bk-red), var(--bk-red-deep) 70%, transparent); opacity: .1; transform: skewX(-14deg); pointer-events: none; }
.tk-head__main { position: relative; min-width: 0; }
.tk-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.tk-head__id { margin: 6px 0 4px; font-family: var(--bk-num); font-weight: 800; font-size: clamp(1.5rem, 5vw, 2.1rem); letter-spacing: .07em; line-height: 1.1; }
.tk-head__meta { margin: 0; color: var(--bk-muted); font-size: .9rem; }
.tk-head__meta b { color: var(--bk-text); }

/* status + offer pills (colour by state) */
.tk-status, .tk-offer__state { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; border: 1px solid; }
.tk-status::before, .tk-offer__state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.tk-status--pending, .tk-offer__state--sent { color: var(--bk-limited); border-color: rgba(245, 179, 66, .45); background: rgba(245, 179, 66, .1); }
.tk-status--confirmed { color: var(--bk-info); border-color: rgba(96, 165, 250, .45); background: rgba(96, 165, 250, .1); }
.tk-status--in_progress { color: var(--bk-progress); border-color: rgba(167, 139, 250, .45); background: rgba(167, 139, 250, .1); }
.tk-status--done, .tk-offer__state--accepted { color: var(--bk-open); border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .1); }
.tk-status--cancelled, .tk-status--no_show, .tk-offer__state--pending { color: var(--bk-muted); border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); }
.tk-offer__state--refused { color: #ff7378; border-color: rgba(225, 27, 34, .45); background: rgba(225, 27, 34, .1); }

/* timeline */
.tk-timeline { list-style: none; margin: 0 0 22px; padding: 22px 8px 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; border: 1px solid var(--bk-line); border-radius: var(--bk-radius); background: var(--bk-surface-2); }
.tk-tl__step { position: relative; text-align: center; padding: 0 4px; }
.tk-tl__step::before { content: ''; position: absolute; top: 17px; inset-inline-start: -50%; width: 100%; height: 2px; background: rgba(255, 255, 255, .1); }
.tk-tl__step:first-child::before { display: none; }
.tk-tl__dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; margin: 0 auto 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--bk-surface); border: 1.5px solid rgba(255, 255, 255, .16); color: var(--bk-muted); font-family: var(--bk-num); font-weight: 700; font-size: .85rem; transition: all .3s; }
.tk-tl__dot i { font-style: normal; }
.tk-tl__step b { display: block; font-size: .9rem; line-height: 1.3; color: var(--bk-muted); }
.tk-tl__step small { display: block; color: var(--bk-muted); font-size: .76rem; line-height: 1.4; margin-top: 3px; opacity: .8; }
.tk-tl__step.is-done .tk-tl__dot { background: linear-gradient(135deg, var(--bk-red), var(--bk-red-deep)); border-color: transparent; color: #fff; }
.tk-tl__step.is-done::before, .tk-tl__step.is-current::before { background: linear-gradient(90deg, var(--bk-red-deep), var(--bk-red)); }
.tk-tl__step.is-done b { color: var(--bk-text); }
.tk-tl__step.is-current .tk-tl__dot { border-color: var(--bk-red); color: var(--bk-red); box-shadow: 0 0 0 6px rgba(225, 27, 34, .14), 0 8px 20px var(--bk-glow); animation: tk-pulse 2.4s ease-in-out infinite; }
.tk-tl__step.is-current b { color: var(--bk-text); }
.tk-tl__step.is-current small { opacity: 1; }
.tk-timeline.is-ended { opacity: .55; }
@keyframes tk-pulse { 0%, 100% { box-shadow: 0 0 0 5px rgba(225, 27, 34, .14), 0 8px 20px var(--bk-glow); } 50% { box-shadow: 0 0 0 10px rgba(225, 27, 34, .06), 0 8px 24px var(--bk-glow); } }
@media (max-width: 640px) {
  .tk-timeline { grid-template-columns: 1fr; gap: 0; padding: 18px 16px; }
  .tk-tl__step { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; text-align: start; padding: 0 0 18px; }
  .tk-tl__step:last-child { padding-bottom: 0; }
  .tk-tl__dot { grid-row: 1 / 3; margin: 0; }
  .tk-tl__step::before { top: -18px; inset-inline-start: 17px; width: 2px; height: 18px; }
  .tk-tl__step b { padding-top: 6px; }
}
.tk-ended { margin: -8px 0 22px; }

/* details */
.tk-grid { display: grid; gap: 14px; }
.tk-dates { margin-top: 0; }
.tk-details { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tk-details > div { background: var(--bk-surface); border: 1px solid var(--bk-line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.tk-details dt { display: flex; align-items: center; gap: 6px; color: var(--bk-muted); font-size: .78rem; font-weight: 700; margin-bottom: 6px; }
.tk-details dt .ic { color: var(--bk-red); }
.tk-details dd { margin: 0; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.tk-details dd small { display: block; color: var(--bk-muted); font-weight: 400; font-size: .85rem; margin-top: 2px; }
.tk-svc { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-svc .badge { display: inline-block; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--bk-line); font-size: .82rem; font-weight: 600; }
@media (max-width: 560px) { .tk-details { grid-template-columns: 1fr; } }

/* offer box */
.tk-offer { margin-top: 22px; padding: clamp(18px, 3vw, 26px); border-radius: var(--bk-radius); border: 1px solid var(--bk-line); background: var(--bk-surface); transition: border-color .3s, box-shadow .3s; }
.tk-offer.is-open { border-color: rgba(225, 27, 34, .45); box-shadow: 0 0 0 4px rgba(225, 27, 34, .08), 0 18px 40px rgba(0, 0, 0, .3); }
.tk-offer.is-accepted { border-color: rgba(52, 211, 153, .4); }
.tk-offer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tk-offer__head .h3 { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.tk-offer__head .ic { color: var(--bk-red); }
.tk-offer__text { margin: 14px 0 16px; line-height: 1.6; }
.tk-offer__note { margin-bottom: 14px; animation: bk-rise .35s var(--bk-ease) both; }
.tk-offer__err { margin-bottom: 12px; }
.tk-offer__actions { gap: 10px; }
.tk-offer__actions .btn.is-armed { border-color: var(--bk-red); color: #ff7378; }
.tk-offer__done { margin-top: 14px; }
.tk-offer__quote { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--bk-surface-2); border-inline-start: 3px solid var(--bk-red); color: var(--bk-muted); font-size: .92rem; line-height: 1.55; display: flex; gap: 8px; align-items: flex-start; }
.tk-offer__quote .ic { flex: none; margin-top: 3px; }
@media (max-width: 560px) { .tk-offer__actions .btn { width: 100%; justify-content: center; } }
.tk-actions { margin-top: 22px; }
@media (max-width: 560px) { .tk-actions .btn { width: 100%; justify-content: center; } }
.tk-keep { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 16px 0 0; color: var(--bk-muted); font-size: .85rem; text-align: center; }

/* lookup */
.tk--lookup .container { display: grid; place-items: center; }
.tk-lookup { width: 100%; max-width: 520px; padding: clamp(26px, 5vw, 40px) clamp(18px, 4vw, 32px); border-radius: 22px; border: 1px solid var(--bk-line); background: var(--bk-surface); text-align: center; position: relative; overflow: hidden; }
.tk-lookup::before { content: ''; position: absolute; inset: -50% -20% auto; height: 80%; background: radial-gradient(closest-side, rgba(225, 27, 34, .22), transparent); pointer-events: none; }
.tk-lookup > * { position: relative; }
.tk-lookup__ic { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 14px; display: inline-flex; align-items: center; justify-content: center; color: var(--bk-red); background: rgba(225, 27, 34, .1); border: 1px solid rgba(225, 27, 34, .35); }
.tk-lookup .h2 { margin: 4px 0 6px; }
.tk-lookup .lead { margin: 0 0 8px; font-size: 1rem; }
.tk-lookup .notice { text-align: start; margin-top: 14px; }
.tk-lookup__form { text-align: start; margin-top: 18px; display: grid; gap: 4px; }
.tk-lookup__form .btn { width: 100%; justify-content: center; margin-top: 6px; min-height: 54px; }
.tk-lookup__hint { margin: 18px 0 0; color: var(--bk-muted); font-size: .88rem; line-height: 1.6; }
.tk-lookup__hint a { color: var(--bk-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Motion + small screens ---------------- */
@media (prefers-reduced-motion: reduce) {
  .bk-chip, .bk-branch, .bk-day, .bk-dates, .bk-success, .bk-success__ring, .tk-offer__note, .bk-day--loading { animation: none !important; transition: none !important; }
  .bk-chip:hover, .bk-branch:hover, .bk-day:hover { transform: none; }
  .tk-tl__step.is-current .tk-tl__dot { animation: none; }
}
@media (max-width: 400px) {
  .bk-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bk-chip { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; min-height: 0; }
  .bk-chip__ic { width: 36px; height: 36px; }
  .bk-chip__text b { font-size: .86rem; }
  .bk-chip__check { position: absolute; top: 12px; inset-inline-end: 12px; width: 20px; height: 20px; }
  .bk-cal { padding: 10px; }
  .bk-cal__week, .bk-cal__grid { gap: 4px; }
  .bk-day { border-radius: 10px; font-size: .88rem; min-height: 44px; }
  .bk-step__head { gap: 10px; }
  .bk-step__num { width: 30px; height: 30px; font-size: .85rem; }
}

/* #25 nearest available day — one tap instead of reading a grid of dim squares */
.bk-cal__soonest { margin: 0 0 10px; }
.bk-soonest { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 10px 14px; border-radius: 12px;
  background: rgba(214, 40, 40, .10); border: 1px solid rgba(214, 40, 40, .32); color: var(--bk-text);
  font-family: inherit; font-size: .92rem; cursor: pointer; text-align: start;
  transition: background .18s, border-color .18s, transform .18s var(--bk-ease); }
.bk-soonest:hover { background: rgba(214, 40, 40, .17); border-color: rgba(214, 40, 40, .5); }
.bk-soonest:active { transform: scale(.99); }
.bk-soonest b { font-weight: 700; }
.bk-soonest span { font-family: var(--bk-num); opacity: .88; }
.bk-soonest__none { display: block; padding: 9px 12px; font-size: .88rem; opacity: .7; }
