/* ============================================================
   Waypoint — modern customer journey components (2026)
   Uses theme tokens from style.css / themes.css so light, dark and
   all 8 colour themes work automatically.
   ============================================================ */

:root { --soft: var(--surface-soft, var(--bg-soft)); --ring: color-mix(in srgb, var(--primary) 18%, transparent); }

/* ── Surfaces ─────────────────────────────────────────────── */
.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.surface-card-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
.head-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
  background: var(--primary-50); color: var(--primary);
}
.head-icon.tone-orange { background: color-mix(in srgb, #f97316 14%, var(--surface)); color: #ea580c; }
.head-icon.tone-green  { background: color-mix(in srgb, #10b981 14%, var(--surface)); color: #059669; }

.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state > i { font-size: 2.75rem; color: var(--text-soft); display: block; margin-bottom: .75rem; }

.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 1.15rem; height: 1.15rem;
  border: 2px solid rgba(255,255,255,.55); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
.btn-outline-primary.is-loading::after, .btn-outline-secondary.is-loading::after { border-color: var(--ring); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Booking stepper ─────────────────────────────────────── */
.bk-stepper { list-style: none; display: flex; padding: 0; margin: 0 0 1.75rem; counter-reset: none; }
.bk-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .45rem; position: relative; text-align: center; }
.bk-step:not(:last-child)::after {
  content: ''; position: absolute; top: 19px; left: calc(50% + 24px); right: calc(-50% + 24px);
  height: 3px; border-radius: 3px; background: var(--border);
}
.bk-step.is-done:not(:last-child)::after { background: var(--primary); }
.bk-step-dot {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 2px solid var(--border); color: var(--text-soft); font-size: .95rem;
  transition: all var(--t-base); position: relative; z-index: 1;
}
.bk-step.is-done .bk-step-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.bk-step.is-current .bk-step-dot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 5px var(--ring); }
.bk-step-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.bk-step.is-current .bk-step-label { color: var(--text); }
@media (max-width: 575px) {
  .bk-step-label { display: none; }
  .bk-step.is-current .bk-step-label { display: block; position: absolute; top: 46px; white-space: nowrap; }
  .bk-stepper { margin-bottom: 2.4rem; }
  .bk-step-dot { width: 34px; height: 34px; font-size: .85rem; }
  .bk-step:not(:last-child)::after { top: 16px; left: calc(50% + 20px); right: calc(-50% + 20px); }
}

/* ── Order summary (sidebar) ─────────────────────────────── */
.summary-card { position: sticky; top: 88px; }
.summary-title { font-weight: 700; display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.summary-route { position: relative; padding-left: 1.4rem; margin-bottom: 1rem; }
.summary-route::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 26px; border-left: 2px dashed var(--border-strong); }
.summary-route .stop { position: relative; display: flex; gap: .6rem; margin-bottom: .8rem; }
.summary-route .dot { position: absolute; left: -1.4rem; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.summary-route .dot.end { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
.summary-route .name { font-weight: 700; line-height: 1.3; }
.summary-route .time { font-size: .8rem; color: var(--text-muted); }
.summary-dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .88rem; margin: 0; }
.summary-dl dt { color: var(--text-muted); font-weight: 500; }
.summary-dl dd { margin: 0; text-align: right; font-weight: 600; word-break: break-word; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border-strong); }
.summary-total strong { font-size: 1.75rem; color: var(--success); letter-spacing: -.02em; }
.summary-note { font-size: .78rem; color: var(--text-muted); margin: .75rem 0 0; display: flex; gap: .4rem; align-items: flex-start; }

/* ── Passenger form ──────────────────────────────────────── */
.signin-hint {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .85rem 1rem; margin-bottom: 1.25rem; border-radius: var(--radius);
  background: var(--primary-50); color: var(--text); font-weight: 600; font-size: .9rem;
}
.seat-names { display: grid; gap: .6rem; }
.seat-name-row { display: flex; gap: .75rem; align-items: center; }
.seat-badge-lg {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-weight: 800;
}

/* ── Payment channels ────────────────────────────────────── */
.paych-list { display: grid; gap: .6rem; margin-bottom: 1.25rem; }
.paych {
  display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.paych:hover { border-color: var(--border-strong); color: var(--text); }
.paych.active { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 3px var(--ring); }
.paych-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--soft); color: var(--primary); }
.paych.active .paych-icon { background: var(--primary); color: #fff; }
.paych-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.paych-label { font-weight: 700; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.paych-desc { font-size: .82rem; color: var(--text-muted); }
.paych-tag { font-size: .68rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.paych-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; transition: all var(--t-fast); }
.paych.active .paych-radio { border: 6px solid var(--primary); }
.paych-panel { border-top: 1px solid var(--border); padding-top: 1.5rem; }

.pp-card { display: inline-block; background: #fff; color: #0f172a; border-radius: 18px; padding: 0 0 1rem; box-shadow: var(--shadow-md); overflow: hidden; width: 100%; max-width: 280px; }
.pp-head { background: #0b3d91; color: #fff; font-weight: 800; letter-spacing: .04em; padding: .6rem; font-size: 1.05rem; }
.pp-card img { width: 100%; max-width: 240px; aspect-ratio: 1; display: block; margin: .9rem auto .3rem; image-rendering: pixelated; }
.pp-amount { font-size: 1.6rem; font-weight: 800; color: #0b3d91; }
.pp-name { font-size: .82rem; color: #475569; }
.pay-steps { counter-reset: ps; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.pay-steps li { counter-increment: ps; position: relative; padding-left: 2.2rem; margin-bottom: .6rem; font-size: .92rem; }
.pay-steps li::before { content: counter(ps); position: absolute; left: 0; top: 0; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--primary-50); color: var(--primary); font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; }

.bank-box { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem; }
.bank-row { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.bank-row:last-child { border-bottom: 0; }
.bank-row > span { color: var(--text-muted); font-size: .85rem; min-width: 110px; }
.bank-row strong { flex: 1; }
.bank-row.total { background: var(--soft); }
.bank-row.total strong { font-size: 1.3rem; color: var(--success); }
.copy-btn { padding: 0 .25rem; text-decoration: none; }
.copy-btn.copied { color: var(--success) !important; }
.copy-btn.copied i::before { content: "\2713"; }

.slip-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  min-height: 170px; padding: 1.25rem; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: var(--soft); cursor: pointer; text-align: center; transition: all var(--t-fast); margin: 0;
}
.slip-drop:hover, .slip-drop.drag { border-color: var(--primary); background: var(--primary-50); }
.slip-drop-icon { font-size: 2rem; color: var(--primary); }
.slip-label { font-weight: 700; }
.slip-hint { font-size: .75rem; color: var(--text-muted); }
.slip-preview { max-height: 220px; max-width: 100%; border-radius: .6rem; box-shadow: var(--shadow); margin-bottom: .5rem; }
.slip-preview:not([hidden]) ~ .slip-drop-icon { display: none; }
.slip-footnote { font-size: .78rem; color: var(--text-muted); margin: .75rem 0 0; text-align: center; }

.gw-box { max-width: 460px; margin: 0 auto; text-align: center; }
.gw-brands { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.gw-brands span { font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: .3rem .6rem; border-radius: .4rem; border: 1px solid var(--border); color: var(--text-muted); }
.gw-secure { font-size: .78rem; color: var(--text-muted); margin: .9rem 0 0; }

.pay-review { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; border-color: color-mix(in srgb, var(--warning) 45%, var(--border)); background: color-mix(in srgb, var(--warning) 8%, var(--surface)); }
.pay-review-spinner { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--warning) 30%, transparent); border-top-color: var(--warning); animation: spin 1s linear infinite; }
.pay-live { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-weight: 600; color: var(--text-muted); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Countdown ring */
.countdown { position: relative; width: 132px; height: 132px; margin: 0 auto 1.25rem; }
.countdown svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.countdown circle { fill: none; stroke-width: 9; }
.cd-track { stroke: var(--border); }
.cd-bar { stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .3s; }
.countdown.is-urgent .cd-bar { stroke: var(--danger); }
.cd-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cd-time { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.countdown.is-urgent .cd-time { color: var(--danger); }
.cd-label { font-size: .72rem; color: var(--text-muted); }

/* Success */
.pay-success { text-align: center; padding: 2.5rem 1.5rem; max-width: 760px; margin: 0 auto; }
.pay-success-icon {
  width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: #fff; background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 14px 30px -10px rgba(16,185,129,.6); animation: pop .5s cubic-bezier(.2,1.4,.4,1);
}
.pay-success-icon.tone-info { background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 14px 30px -10px rgba(99,102,241,.6); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.pay-success h2 { font-weight: 800; margin-bottom: .25rem; }
.pay-success-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.pay-success-grid > div { background: var(--soft); border-radius: var(--radius); padding: .8rem; display: flex; flex-direction: column; gap: .15rem; }
.pay-success-grid span { font-size: .75rem; color: var(--text-muted); }
.pay-mail-note { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .55rem 1rem; border-radius: 999px; font-size: .88rem; background: color-mix(in srgb, #10b981 12%, transparent); color: #047857; }
:root[data-mode="dark"] .pay-mail-note { color: #6ee7b7; }
.pay-success-grid strong { word-break: break-all; }
.parcel-dropoff { display: flex; gap: 1.25rem; align-items: center; margin: 1.5rem auto 0; padding: 1rem; border-radius: var(--radius-lg); border: 1px dashed var(--border-strong); max-width: 560px; }
.drop-qr { background: #fff; padding: .4rem; border-radius: .6rem; flex-shrink: 0; line-height: 0; }
.drop-qr img { width: 120px; height: 120px; image-rendering: pixelated; }
@media (max-width: 575px) { .parcel-dropoff { flex-direction: column; text-align: center; } .parcel-dropoff .text-start { text-align: center !important; } }

/* ── Status pills ────────────────────────────────────────── */
.status-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tone-success { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.tone-warning { background: color-mix(in srgb, var(--warning) 16%, transparent); color: #b45309; }
.tone-danger  { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.tone-info    { background: color-mix(in srgb, var(--info) 14%, transparent); color: #0e7490; }
.tone-primary { background: var(--primary-50); color: var(--primary); }
.tone-muted, .tone-secondary { background: var(--soft); color: var(--text-muted); }
:root[data-mode="dark"] .tone-warning { color: #fbbf24; }
:root[data-mode="dark"] .tone-info { color: #22d3ee; }

/* ── Header: customer chip / sign-in ─────────────────────── */
.cust-chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .6rem .25rem .25rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: .88rem;
}
.cust-chip img, .cust-chip-fallback { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.cust-chip-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 800; }
.cust-menu { min-width: 240px; }
.cust-menu .dropdown-item { display: flex; align-items: center; gap: .6rem; }
.cust-menu-head { padding: .6rem 1rem .75rem; border-bottom: 1px solid var(--border); margin-bottom: .35rem; }
.nav-login-btn { border-radius: 999px; padding-inline: .9rem; }
.nav-admin-link {
  width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center;
  color: var(--text-muted); border: 1px solid transparent; transition: all var(--t-fast);
}
.nav-admin-link:hover { color: var(--primary); border-color: var(--border); background: var(--surface); }

/* ── Auth / login ────────────────────────────────────────── */
.auth-shell { display: flex; justify-content: center; padding: 2rem 0 3rem; }
.auth-card { width: 100%; max-width: 440px; text-align: center; padding: 2.25rem 2rem; }
.auth-brand-icon {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.7rem; background: var(--theme-grad, linear-gradient(135deg, var(--primary), var(--primary-dark))); box-shadow: var(--shadow-primary);
}
.auth-title { font-size: 1.55rem; font-weight: 800; margin-bottom: .35rem; }
.auth-sub { color: var(--text-muted); margin: 0; }
.auth-perks { list-style: none; padding: 0; margin: 0 auto 1rem; text-align: left; max-width: 300px; }
.auth-perks li { display: flex; gap: .6rem; align-items: center; padding: .35rem 0; font-size: .9rem; }
.auth-perks i { color: var(--primary); }
.auth-fine { font-size: .75rem; color: var(--text-soft); margin: 0; }
.login-gate { padding: 2.5rem 1.5rem; }
.login-gate-icon { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; background: var(--primary-50); color: var(--primary); }
.g_id_signin { min-height: 44px; }

/* ── Account ─────────────────────────────────────────────── */
.acct-hero {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.75rem; border-radius: var(--radius-2xl); color: #fff; margin-bottom: 1.25rem;
  background: var(--theme-grad, linear-gradient(135deg, var(--primary), var(--primary-dark)));
  box-shadow: var(--shadow-primary);
}
.acct-id { display: flex; align-items: center; gap: 1rem; }
.acct-avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.6); }
.acct-avatar-fallback { display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.2); font-size: 1.8rem; font-weight: 800; }
.acct-hello { opacity: .85; font-size: .85rem; }
.acct-name { font-size: 1.5rem; font-weight: 800; margin: 0; color: #fff; }
.acct-email { font-size: .85rem; opacity: .9; }
.acct-stats { display: flex; gap: .75rem; }
.acct-stat { background: rgba(255,255,255,.16); backdrop-filter: blur(6px); border-radius: var(--radius); padding: .7rem 1.1rem; text-align: center; min-width: 96px; }
.acct-stat .n { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.acct-stat .l { font-size: .74rem; opacity: .9; }
.acct-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.seg-tabs { display: inline-flex; padding: .3rem; gap: .25rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); flex-wrap: wrap; }
.seg-tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border-radius: 999px; color: var(--text-muted); font-weight: 600; font-size: .88rem; text-decoration: none; }
.seg-tabs a.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.seg-tabs .count { font-size: .72rem; background: rgba(127,127,127,.18); padding: 0 .45rem; border-radius: 999px; }
.seg-tabs a.active .count { background: rgba(255,255,255,.25); }
.acct-list { display: grid; gap: .75rem; }
.acct-item { display: flex; align-items: center; gap: 1.1rem; padding: 1rem 1.25rem; transition: box-shadow var(--t-fast), transform var(--t-fast); }
.acct-item:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.acct-item-date { flex-shrink: 0; width: 72px; text-align: center; border-radius: var(--radius); background: var(--primary-50); padding: .5rem .25rem; display: flex; flex-direction: column; }
.acct-item-date .d { font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--primary); }
.acct-item-date .m { font-size: .72rem; color: var(--text-muted); }
.acct-item-date .t { font-size: .78rem; font-weight: 700; }
.acct-item-icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: color-mix(in srgb, #f97316 14%, var(--surface)); color: #ea580c; }
.acct-item-main { flex: 1; min-width: 0; }
.acct-item-route { font-weight: 700; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.acct-item-route i { color: var(--text-soft); font-size: .8em; }
.acct-item-meta { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }
.acct-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.acct-item-amount { font-weight: 800; }
.acct-item-actions { display: flex; gap: .35rem; }
@media (max-width: 767px) {
  .acct-item { flex-wrap: wrap; }
  .acct-item-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .acct-stats { width: 100%; }
  .acct-stat { flex: 1; min-width: 0; }
}

/* ── Parcel booking ──────────────────────────────────────── */
.page-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-intro h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: .2rem 0 .3rem; }
.page-intro p { color: var(--text-muted); margin: 0; max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; }
.mini-steps { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0; flex-wrap: wrap; }
.mini-steps li { display: flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; padding: .4rem .8rem .4rem .4rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.mini-steps span { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .72rem; display: inline-flex; align-items: center; justify-content: center; }
.type-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.type-pill { margin: 0; cursor: pointer; }
.type-pill input { position: absolute; opacity: 0; pointer-events: none; }
.type-pill span { display: inline-block; padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid var(--border); font-size: .88rem; font-weight: 600; transition: all var(--t-fast); }
.type-pill input:checked + span { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.type-pill input:focus-visible + span { box-shadow: 0 0 0 3px var(--ring); }
.pay-pref { display: grid; gap: .5rem; }
.pay-pref label { margin: 0; cursor: pointer; }
.pay-pref input { position: absolute; opacity: 0; pointer-events: none; }
.pay-pref span { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: var(--radius); border: 1.5px solid var(--border); font-weight: 600; transition: all var(--t-fast); }
.pay-pref input:checked + span { border-color: var(--primary); background: var(--primary-50); }

/* ── reCAPTCHA ───────────────────────────────────────────── */
.recaptcha-note { font-size: .7rem; color: var(--text-soft); margin: .75rem 0 0; }
.grecaptcha-badge { visibility: hidden; }   /* allowed when the attribution text (.recaptcha-note) is shown */
.recaptcha-wrap { display: flex; justify-content: center; }

/* ── Payment summary becomes a compact strip on phones ─────── */
@media (max-width: 991px) {
  .pay-summary { position: static; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
  .pay-summary .summary-title, .pay-summary .summary-dl, .pay-summary .summary-note { display: none; }
  .pay-summary .countdown { width: 78px; height: 78px; margin: 0; flex-shrink: 0; }
  .pay-summary .cd-time { font-size: 1.05rem; }
  .pay-summary .cd-label { font-size: .6rem; }
  .pay-summary .summary-total { flex: 1; margin: 0; padding: 0; border: 0; flex-direction: column; align-items: flex-end; }
}

/* ── Readable alerts in dark mode ───────────────────────────── */
:root[data-mode="dark"] .alert-warning { background: rgba(245,158,11,.14); color: #fcd34d; border-color: rgba(245,158,11,.35); }
:root[data-mode="dark"] .alert-success { background: rgba(16,185,129,.14); color: #6ee7b7; border-color: rgba(16,185,129,.35); }
:root[data-mode="dark"] .alert-danger  { background: rgba(239,68,68,.14);  color: #fca5a5; border-color: rgba(239,68,68,.35); }
:root[data-mode="dark"] .alert-info    { background: rgba(6,182,212,.14);  color: #67e8f9; border-color: rgba(6,182,212,.35); }
@media (prefers-color-scheme: dark) {
  :root[data-mode="auto"] .alert-warning { background: rgba(245,158,11,.14); color: #fcd34d; border-color: rgba(245,158,11,.35); }
  :root[data-mode="auto"] .alert-success { background: rgba(16,185,129,.14); color: #6ee7b7; border-color: rgba(16,185,129,.35); }
  :root[data-mode="auto"] .alert-danger  { background: rgba(239,68,68,.14);  color: #fca5a5; border-color: rgba(239,68,68,.35); }
  :root[data-mode="auto"] .alert-info    { background: rgba(6,182,212,.14);  color: #67e8f9; border-color: rgba(6,182,212,.35); }
  :root[data-mode="auto"] .tone-warning { color: #fbbf24; }
  :root[data-mode="auto"] .tone-info { color: #22d3ee; }
}
