:root {
  --portal-green: #c6ef1c;
  --portal-green-dark: #9fca00;
  --portal-ink: #111111;
  --portal-muted: #6e6e73;
  --portal-line: #e5e5e7;
  --portal-surface: #f6f6f7;
  --portal-danger: #a52222;
  --portal-success: #196c36;
}

.booking-shell,
.portal-shell {
  width: 100%;
  max-width: 1040px;
  flex: 0 0 auto;
  margin: 0 auto;
  padding: 24px;
}

.booking-shell { max-width: 560px; }

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.portal-header img { width: auto; height: 44px; }
.portal-header-actions { display: flex; align-items: center; gap: 8px; }
.portal-header-actions[hidden],
#login-view[hidden],
#dashboard-view[hidden],
.next-bookings[hidden] { display: none !important; }
.portal-header-actions .site-account-button,
.portal-header-actions .site-profile-button { background: var(--portal-surface); }
.dashboard-identity { display: flex; align-items: center; gap: 9px; margin-right: 4px; }
.dashboard-identity div { display: grid; max-width: 150px; }
.dashboard-identity strong,
.dashboard-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-identity strong { font-size: 12px; }
.dashboard-identity small { color: var(--portal-muted); font-size: 10px; }
.dashboard-book-button { border-radius: 8px; padding: 12px 16px; }
.account-secondary-button { min-height: 46px; border: 1px solid var(--portal-line); border-radius: 8px; background: #fff; font: inherit; font-weight: 800; cursor: pointer; }

.icon-link,
.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--portal-line);
  border-radius: 50%;
  background: #fff;
  color: var(--portal-ink);
  text-decoration: none;
  cursor: pointer;
}

.portal-title { margin-bottom: 24px; }
.portal-title h1 { font-size: 38px; line-height: 1.08; margin-bottom: 8px; letter-spacing: 0; }
.portal-title p { color: var(--portal-muted); line-height: 1.55; }

.booking-progress { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 12px; }
.booking-progress span { color: var(--portal-muted); }
.booking-progress strong { font-size: 12px; }

.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 22px 0 28px;
}

.stepper span { height: 4px; border-radius: 2px; background: var(--portal-line); }
.stepper span.active { background: var(--portal-ink); }

.flow-step { animation: flow-in .28s ease both; }
.flow-step[hidden] { display: none; }
.flow-step h2 { font-size: 23px; margin-bottom: 8px; }
.flow-step > p { color: var(--portal-muted); font-size: 14px; margin-bottom: 20px; line-height: 1.5; }
.flow-step > .flow-kicker { margin-bottom: 5px; color: #505055; font-size: 11px; font-weight: 800; text-transform: uppercase; }
@keyframes flow-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.choice-list { display: grid; gap: 12px; }
.choice-card {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 13px;
  padding: 16px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.choice-card:hover,
.choice-card.selected { border-color: var(--portal-ink); box-shadow: 0 0 0 1px var(--portal-ink); background: #f7f7f5; }
.choice-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: var(--portal-surface); }
.choice-card.selected .choice-icon { color: #fff; background: var(--portal-ink); }
.choice-copy { min-width: 0; }
.choice-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.choice-title strong { white-space: nowrap; font-size: 14px; }
.choice-card h3 { font-size: 16px; margin-bottom: 4px; }
.choice-card p { color: var(--portal-muted); font-size: 13px; line-height: 1.45; }
.choice-card small { display: block; margin-top: 7px; color: var(--portal-muted); font-size: 10px; font-weight: 700; }
.choice-check { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--portal-line); border-radius: 50%; color: transparent; font-size: 11px; }
.choice-card.selected .choice-check { color: #fff; background: var(--portal-ink); border-color: var(--portal-ink); }

.date-strip { display: flex; gap: 7px; margin: 0 0 18px; padding: 4px 0 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 0; }
.date-strip::-webkit-scrollbar { display: none; }
.date-card { min-width: 62px; min-height: 80px; display: grid; place-items: center; align-content: center; gap: 1px; padding: 7px; border: 1px solid var(--portal-line); border-radius: 8px; background: #fff; scroll-snap-align: start; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.date-card span,
.date-card small { color: var(--portal-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.date-card strong { font-size: 22px; line-height: 1.1; }
.date-card.selected { color: #fff; background: var(--portal-ink); border-color: var(--portal-ink); transform: translateY(-2px); box-shadow: 0 7px 16px rgba(0,0,0,.12); }
.date-card.selected span,
.date-card.selected small { color: #d8d8dc; }
.time-panel { padding: 16px; border: 1px solid var(--portal-line); border-radius: 8px; background: linear-gradient(145deg, #fafafa, #fff); }
.time-panel-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 13px; text-transform: capitalize; }
.time-panel-head strong { font-size: 13px; }
.time-panel-head span { color: var(--portal-muted); font-size: 10px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.slot-button {
  min-height: 48px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.slot-button { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.slot-button.selected { color: #fff; background: var(--portal-ink); border-color: var(--portal-ink); box-shadow: 0 5px 14px rgba(0,0,0,.14); }

.form-grid { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--portal-green); border-color: var(--portal-ink); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.check-row input { margin-top: 2px; }

.connected-banner { display: flex; align-items: center; gap: 11px; padding: 13px; margin-bottom: 16px; border-radius: 8px; background: #f2f2ef; }
.connected-banner[hidden], .account-choice[hidden] { display: none !important; }
.connected-check { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--portal-ink); font-weight: 900; }
.connected-banner div { display: grid; }
.connected-banner strong { font-size: 13px; }
.connected-banner small { color: var(--portal-muted); font-size: 11px; }
.account-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 16px; }
.account-choice-card { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--portal-line); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.account-choice-card.selected { border-color: var(--portal-ink); box-shadow: 0 0 0 1px var(--portal-ink); }
.option-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 7px; background: var(--portal-surface); }
.account-choice-card.selected .option-icon { color: #fff; background: var(--portal-ink); }
.account-choice-card span:last-child { min-width: 0; display: grid; }
.account-choice-card strong { font-size: 12px; }
.account-choice-card small { color: var(--portal-muted); font-size: 10px; }

.vehicle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vehicle-card { min-height: 178px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 14px; overflow: hidden; border: 1px solid var(--portal-line); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background-color .22s ease; }
.vehicle-card.selected { border-color: var(--portal-ink); box-shadow: 0 0 0 1px var(--portal-ink), 0 10px 24px rgba(0,0,0,.07); background: #f7f7f5; }
.vehicle-visual { position: relative; width: 100%; height: 88px; display: grid; place-items: center; margin-bottom: 13px; padding: 8px 5px 18px; border-radius: 7px; background: var(--portal-surface); }
.vehicle-visual::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 14px; border-top: 1px dashed #c8c8c8; }
.vehicle-visual svg { position: relative; z-index: 1; width: 100%; height: 64px; color: #1d1d1f; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vehicle-visual .vehicle-window { color: #f2f2f0; fill: currentColor; }
.vehicle-visual .vehicle-hub { color: #f2f2f0; fill: currentColor; }
.vehicle-badge { position: absolute; z-index: 2; top: 7px; left: 7px; padding: 4px 6px; border-radius: 4px; color: #4f4f53; background: rgba(255,255,255,.9); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.vehicle-card.selected .vehicle-visual { color: #fff; background: var(--portal-ink); transform: translateY(-2px); }
.vehicle-card.selected .vehicle-visual::after { border-color: #59595d; }
.vehicle-card.selected .vehicle-visual svg { color: #f5f5f2; }
.vehicle-card.selected .vehicle-visual .vehicle-window,
.vehicle-card.selected .vehicle-visual .vehicle-hub { color: #28282b; }
.vehicle-visual { transition: transform .22s ease, color .22s ease, background-color .22s ease; }
.vehicle-card strong { margin-bottom: 3px; font-size: 13px; }
.vehicle-card small { color: var(--portal-muted); font-size: 10px; }
.notes-field { margin-top: 16px; }
.notes-field label span { color: var(--portal-muted); font-weight: 400; }
.legal-consents { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; border: 0; }
.legal-consents legend { margin-bottom: 2px; font-size: 13px; font-weight: 800; }
.consent-card { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin-top: 14px; padding: 13px; border: 1px solid var(--portal-line); border-radius: 8px; font-size: 12px; line-height: 1.45; cursor: pointer; }
.legal-consents .consent-card { margin-top: 0; }
.consent-card a { color: var(--portal-ink); font-weight: 800; text-underline-offset: 2px; }
.consent-card input { position: absolute; opacity: 0; pointer-events: none; }
.consent-box { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #c9c9cd; border-radius: 5px; color: transparent; }
.consent-card:has(input:checked) { border-color: var(--portal-ink); background: #f7f7f5; }
.consent-card input:checked + .consent-box { color: #fff; background: var(--portal-ink); border-color: var(--portal-ink); font-weight: 900; }

.flow-actions { display: flex; gap: 10px; margin-top: 22px; }
.flow-actions .btn { flex: 1; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }

.notice { border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.45; margin: 14px 0; }
.notice-info { color: #284b63; background: #eef7fc; }
.notice-error { color: var(--portal-danger); background: #fff0f0; }
.notice-success { color: var(--portal-success); background: #edfaef; }

.booking-ticket { position: relative; margin-bottom: 10px; border: 1px solid #d4d4d0; border-radius: 5px 5px 0 0; background: repeating-linear-gradient(0deg, rgba(17,17,17,.013) 0 1px, transparent 1px 4px), #fdfdfb; box-shadow: 0 16px 34px rgba(0,0,0,.1); }
.booking-ticket::after { content: ''; position: absolute; z-index: 2; left: -1px; right: -1px; bottom: -9px; height: 10px; background: #f5f5f2; clip-path: polygon(0 0, 2.5% 100%, 5% 0, 7.5% 100%, 10% 0, 12.5% 100%, 15% 0, 17.5% 100%, 20% 0, 22.5% 100%, 25% 0, 27.5% 100%, 30% 0, 32.5% 100%, 35% 0, 37.5% 100%, 40% 0, 42.5% 100%, 45% 0, 47.5% 100%, 50% 0, 52.5% 100%, 55% 0, 57.5% 100%, 60% 0, 62.5% 100%, 65% 0, 67.5% 100%, 70% 0, 72.5% 100%, 75% 0, 77.5% 100%, 80% 0, 82.5% 100%, 85% 0, 87.5% 100%, 90% 0, 92.5% 100%, 95% 0, 97.5% 100%, 100% 0); filter: drop-shadow(0 2px 1px rgba(0,0,0,.08)); }
.ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; color: #fff; background: #111; }
.ticket-head > div { display: grid; }
.ticket-head span { font-size: 9px; font-weight: 700; }
.ticket-head strong { font-size: 18px; }
.ticket-status { padding: 6px 8px; border: 1px solid #555; border-radius: 4px; color: var(--portal-green); }
.ticket-route { display: grid; grid-template-columns: 58px 1fr minmax(100px, auto); gap: 12px; align-items: center; padding: 22px 18px; background: rgba(246,246,242,.72); }
.ticket-date { display: grid; text-align: center; }
.ticket-date strong { font-size: 30px; line-height: 1; }
.ticket-date span { margin-top: 4px; font-size: 10px; font-weight: 900; }
.ticket-line { position: relative; height: 1px; background: #bababe; }
.ticket-line::before, .ticket-line::after { content: ''; position: absolute; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: #111; }
.ticket-line::before { left: 0; }.ticket-line::after { right: 0; }
.ticket-main { display: grid; }
.ticket-main span, .ticket-grid span { color: var(--portal-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.ticket-main strong { font-size: 24px; }
.ticket-main small, .ticket-grid small { color: var(--portal-muted); font-size: 10px; }
.ticket-divider { position: relative; height: 1px; margin: 0 14px; border-top: 1px dashed #cfcfd2; }
.ticket-divider::before, .ticket-divider::after { content: ''; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: #f7f7f4; border: 1px solid #d9d9dc; }
.ticket-divider::before { left: -24px; }.ticket-divider::after { right: -24px; }
.ticket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 19px 18px; }
.ticket-grid div { min-width: 0; display: grid; }
.ticket-grid strong, .ticket-grid small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-grid strong { margin-top: 3px; font-size: 12px; }
.ticket-total { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px 18px; background: rgba(242,242,239,.92); }
.ticket-total span { color: var(--portal-muted); font-size: 11px; font-weight: 700; }
.ticket-total strong { font-size: 21px; }
.secure-note { display: flex; gap: 9px; align-items: center; margin-top: 14px; color: var(--portal-muted); font-size: 12px; }
.payment-legal-summary { margin: 12px 0 0; color: var(--portal-muted); font-size: 10px; line-height: 1.5; }
.pay-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; }
.pay-button svg { transition: transform .2s ease; }
.pay-button:hover svg { transform: translateX(3px); }
.pay-button.loading svg { animation: pay-pulse .8s ease-in-out infinite alternate; }
@keyframes pay-pulse { to { transform: translateX(5px); opacity: .45; } }

@media (hover: hover) {
  .choice-card:hover,
  .date-card:hover,
  .slot-button:hover,
  .account-choice-card:hover,
  .vehicle-card:hover { transform: translateY(-2px); }
  .date-card.selected:hover { transform: translateY(-3px); }
}

.choice-card.selected,
.slot-button.selected,
.account-choice-card.selected,
.vehicle-card.selected { animation: option-selected .24s ease both; }
@keyframes option-selected {
  0% { transform: scale(.985); }
  100% { transform: scale(1); }
}

.portal-nav { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 24px; }
.portal-nav button {
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--portal-surface);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.portal-nav button.active { color: #fff; background: var(--portal-ink); }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat { padding: 18px; border: 1px solid var(--portal-line); border-radius: 8px; }
.stat strong { display: block; font-size: 26px; margin-bottom: 4px; }
.stat span { color: var(--portal-muted); font-size: 12px; }

.panel { margin-bottom: 28px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.panel-head h2 { font-size: 20px; }
.panel-head p { color: var(--portal-muted); font-size: 13px; }

.booking-list { display: grid; gap: 12px; }
.booking-card { border: 1px solid var(--portal-line); border-radius: 8px; padding: 17px; outline: none; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.booking-card-highlight { border-color: var(--portal-ink); box-shadow: 0 0 0 2px var(--portal-green), 0 16px 34px rgba(0,0,0,.1); transform: translateY(-2px); }
.booking-top { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.booking-card h3 { font-size: 16px; margin-bottom: 4px; }
.booking-meta { color: var(--portal-muted); font-size: 13px; line-height: 1.55; }
.booking-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 12px; border-top: 1px solid var(--portal-line); }
.booking-details div { font-size: 13px; line-height: 1.4; }
.booking-details span { color: var(--portal-muted); display: block; font-size: 11px; margin-bottom: 2px; }
.booking-cancellation-note { margin: 0 0 14px; padding: 12px 13px; border-left: 3px solid #a52222; border-radius: 4px; color: #541919; background: #fff2f2; }
.booking-cancellation-note strong { display: block; margin-bottom: 4px; font-size: 12px; }
.booking-cancellation-note p { font-size: 12px; line-height: 1.5; }
.booking-cancellation-note span { display: block; margin-top: 7px; color: #7b3434; font-size: 10px; font-weight: 700; }
.booking-documents { grid-column: 1 / -1; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.booking-action { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--portal-line); border-radius: 7px; color: var(--portal-ink); background: #fff; font: inherit; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }
.booking-invoice-action { color: #fff; border-color: var(--portal-ink); background: var(--portal-ink); }
.booking-cancel-action { color: #8b2727; border-color: #e3bcbc; background: #fff8f8; }
.booking-cancel-action.is-locked { color: var(--portal-muted); border-color: var(--portal-line); background: var(--portal-surface); }
.booking-action.is-disabled { color: var(--portal-muted); cursor: default; }
.booking-documents small { display: block; margin-top: 7px; color: var(--portal-muted); font-size: 10px; line-height: 1.4; }
.client-cancel-dialog { width: min(calc(100% - 32px), 460px); margin: auto; padding: 24px; border: 0; border-radius: 8px; color: var(--portal-ink); background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.24); }
.client-cancel-dialog::backdrop { background: rgba(17,17,17,.48); backdrop-filter: blur(6px); }
.client-cancel-dialog h2 { margin: 4px 38px 16px 0; font-size: 23px; }
.client-dialog-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--portal-surface); font-size: 22px; cursor: pointer; }
.client-cancel-summary { display: grid; gap: 5px; padding: 15px; border: 1px solid var(--portal-line); border-radius: 8px; background: var(--portal-surface); }
.client-cancel-summary strong { font-size: 15px; }
.client-cancel-summary span { color: var(--portal-muted); font-size: 12px; }
.client-cancel-policy { margin: 15px 0; color: var(--portal-muted); font-size: 12px; line-height: 1.55; }
.client-cancel-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 9px; }
.client-cancel-actions button { min-height: 46px; border: 1px solid var(--portal-line); border-radius: 8px; background: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.client-cancel-actions button:last-child { color: #fff; border-color: #9a2929; background: #9a2929; }
.client-cancel-actions button:disabled { opacity: .65; cursor: wait; }

.status-pill { display: inline-flex; align-items: center; height: 25px; padding: 0 9px; border-radius: 13px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-confirmed,
.status-completed { color: var(--portal-success); background: #e8f8ec; }
.status-pending_payment { color: #795400; background: #fff5d9; }
.status-canceled,
.status-refunded { color: var(--portal-muted); background: var(--portal-surface); }

.text-link { color: var(--portal-ink); font-weight: 700; text-underline-offset: 3px; }
.empty-state { padding: 28px; text-align: center; color: var(--portal-muted); background: var(--portal-surface); border-radius: 8px; }

.next-bookings { margin-bottom: 24px; }
.next-bookings-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.next-bookings-head span { display: block; margin-bottom: 3px; color: var(--portal-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.next-bookings-head h2 { font-size: 20px; }
.next-bookings-head > strong { padding: 6px 9px; border-radius: 6px; background: var(--portal-surface); font-size: 11px; white-space: nowrap; }
.next-bookings-list { display: grid; gap: 10px; }
.next-booking {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--portal-line);
  border-left: 4px solid var(--portal-green);
  border-radius: 8px;
  animation: flow-in .28s ease both;
}
.next-date { display: grid; place-items: center; min-height: 68px; border-radius: 6px; background: var(--portal-surface); text-align: center; }
.next-date strong { font-size: 25px; line-height: 1; }
.next-date span { color: var(--portal-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.next-copy h3 { margin-bottom: 5px; font-size: 17px; }
.next-copy p { color: var(--portal-muted); font-size: 13px; line-height: 1.5; }
.dashboard-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.dashboard-tabs button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--portal-surface); font-weight: 800; cursor: pointer; }
.dashboard-tabs button.active { color: #fff; background: var(--portal-ink); }
.dashboard-account { margin-bottom: 20px; color: var(--portal-muted); font-size: 13px; }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 24px; }
.compact-form { padding: 18px; background: var(--portal-surface); border-radius: 8px; }
.compact-form h3 { margin-bottom: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--portal-line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 12px; border-bottom: 1px solid var(--portal-line); text-align: left; font-size: 13px; vertical-align: top; }
th { color: var(--portal-muted); font-size: 11px; text-transform: uppercase; background: var(--portal-surface); }
tr:last-child td { border-bottom: 0; }
.small-button { border: 1px solid var(--portal-line); background: #fff; border-radius: 6px; padding: 7px 9px; font-weight: 700; cursor: pointer; }

@media (max-width: 720px) {
  .booking-shell,
  .portal-shell { padding: 18px; }
  .stat-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .booking-details { grid-template-columns: 1fr; }
  .portal-title h1 { font-size: 30px; }
  .portal-header-actions .site-profile-copy { display: none; }
  .dashboard-identity div { display: none; }
  .dashboard-book-button { width: 42px; height: 42px; padding: 0; overflow: hidden; font-size: 0; }
  .dashboard-book-button::before { content: '+'; font-size: 24px; line-height: 1; }
  .next-booking { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
  .next-date { min-height: 58px; }
  .next-booking .btn { grid-column: 1 / -1; width: 100%; }
  .table-wrap { overflow: visible; border: 0; }
  table { min-width: 0; }
  thead { display: none; }
  tbody { display: grid; gap: 10px; }
  tr { display: block; border: 1px solid var(--portal-line); border-radius: 8px; overflow: hidden; }
  td { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
  td::before { content: attr(data-label); color: var(--portal-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
  td[colspan] { display: block; }
  td[colspan]::before { content: none; }
}

@media (max-width: 420px) {
  .booking-shell { padding: 16px 18px 24px; }
  .portal-header { margin-bottom: 22px; }
  .portal-title { margin-bottom: 12px; }
  .portal-title h1 { font-size: 28px; }
  .booking-progress { margin-top: 10px; }
  .stepper { margin: 10px 0 17px; gap: 6px; }
  .flow-step h2 { font-size: 21px; }
  .flow-step { padding-bottom: 76px; }
  .choice-card { grid-template-columns: 44px minmax(0, 1fr) 22px; padding: 14px; gap: 10px; }
  .choice-icon { width: 44px; height: 44px; }
  .choice-title { align-items: flex-start; }
  .choice-title h3 { max-width: 145px; }
  .account-choice { grid-template-columns: 1fr; }
  .account-choice-card { min-height: 58px; }
  .date-card { min-width: 62px; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-actions { position: sticky; bottom: 0; z-index: 5; margin: 20px -18px -24px; padding: 12px 18px max(12px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); border-top: 1px solid var(--portal-line); backdrop-filter: blur(12px); }
  .flow-actions .btn { min-width: 0; padding-inline: 12px; }
  .ticket-route { grid-template-columns: 52px 1fr 88px; gap: 9px; padding-inline: 14px; }
  .ticket-grid { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-step,
  .choice-card.selected,
  .slot-button.selected,
  .account-choice-card.selected,
  .vehicle-card.selected,
  .pay-button.loading svg { animation: none; }
  html { scroll-behavior: auto; }
}
