:root {
  --navy: #071f33;
  --navy-2: #0b3552;
  --navy-3: #174c6d;
  --yellow: #f4c400;
  --yellow-soft: #fff7cf;
  --red: #df5050;
  --ink: #183246;
  --muted: #6f8290;
  --line: #d8e2e8;
  --canvas: #f2f5f7;
  --white: #fff;
  --shadow: 0 24px 60px rgba(7, 31, 51, .16);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--canvas); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--canvas); font: 14px/1.45 "DM Sans", Arial, sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
body.modal-open { overflow: hidden; }

.user-topbar { position: sticky; z-index: 50; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 28px; color: #fff; background: var(--navy); box-shadow: 0 4px 16px rgba(7, 31, 51, .2); }
.user-brand { display: flex; align-items: center; gap: 10px; color: #fff; font: 700 20px/1 "Outfit", sans-serif; letter-spacing: .5px; text-decoration: none; }
.user-brand small { color: var(--yellow); font-size: 12px; font-weight: 600; }
.user-brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border: 2px solid rgba(255,255,255,.8); border-radius: 7px; }
.dispatch-link { padding: 8px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; color: #d8e7f0; font-size: 11px; font-weight: 600; text-decoration: none; }
.dispatch-link:hover { color: var(--navy); border-color: var(--yellow); background: var(--yellow); }

.user-page { min-height: calc(100vh - 62px); }
.auth-layout { display: grid; grid-template-columns: minmax(350px, .9fr) minmax(440px, 1.1fr); width: min(1120px, calc(100% - 40px)); min-height: 680px; margin: 34px auto; overflow: hidden; border: 1px solid #d5e0e6; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.welcome-panel { position: relative; overflow: hidden; padding: 70px 58px; color: #fff; background: var(--navy); }
.welcome-panel:before, .welcome-panel:after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.welcome-panel:before { right: -150px; bottom: -130px; width: 390px; height: 390px; border: 75px solid rgba(244,196,0,.13); }
.welcome-panel:after { top: -90px; left: -100px; width: 260px; height: 260px; border: 55px solid rgba(255,255,255,.05); }
.welcome-badge, .section-kicker { color: var(--yellow); font-size: 10px; font-weight: 700; letter-spacing: 1.35px; }
.welcome-panel h1 { position: relative; max-width: 420px; margin: 20px 0 13px; font: 700 clamp(35px, 4vw, 54px)/1.04 "Outfit", sans-serif; }
.welcome-panel > p { position: relative; max-width: 430px; margin: 0; color: #b8ccda; font-size: 15px; }
.welcome-steps { position: relative; display: grid; gap: 20px; margin-top: 58px; }
.welcome-steps > div { display: flex; align-items: center; gap: 13px; }
.welcome-steps b { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border: 1px solid rgba(244,196,0,.45); border-radius: 50%; color: var(--yellow); background: rgba(244,196,0,.08); }
.welcome-steps span, .welcome-steps strong, .welcome-steps small { display: block; }
.welcome-steps strong { font-size: 13px; }
.welcome-steps small { margin-top: 2px; color: #91aec0; font-size: 10px; }

.auth-card { align-self: center; width: min(510px, calc(100% - 48px)); margin: 35px auto; padding: 25px 34px 30px; }
.auth-card .section-kicker { color: var(--navy-3); }
.auth-card h2 { margin: 6px 0 3px; color: var(--navy); font: 700 31px/1.1 "Outfit", sans-serif; }
.auth-intro { margin: 0 0 25px; color: var(--muted); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.auth-tabs button { position: relative; min-height: 46px; padding: 0 8px; border: 0; color: #80909b; background: transparent; font-size: 11px; font-weight: 700; }
.auth-tabs button:after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: transparent; }
.auth-tabs button.active { color: var(--navy); }
.auth-tabs button.active:after { background: var(--yellow); }
.auth-form > div { display: grid; gap: 14px; }

.user-field { display: block; min-width: 0; }
.user-field > span { display: block; margin: 0 0 5px 2px; color: #526a7a; font-size: 11px; font-weight: 700; }
.user-field > input, .phone-entry, .password-entry, .address-entry { width: 100%; min-height: 45px; border: 1px solid #cdd9e0; border-radius: 7px; background: #fff; }
.user-field > input { padding: 0 13px; outline: none; }
.user-field input { color: var(--ink); }
.user-field input::placeholder { color: #9aa8b1; }
.user-field > input:focus, .phone-entry:focus-within, .password-entry:focus-within, .address-entry:focus-within { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(23,76,109,.12); outline: 0; }
.phone-entry { display: grid; grid-template-columns: 45px 1fr; align-items: center; }
.phone-entry b { display: grid; place-items: center; height: 27px; border-right: 1px solid var(--line); color: var(--navy); font-size: 12px; }
.phone-entry input, .password-entry input, .address-entry input { width: 100%; min-width: 0; height: 43px; padding: 0 12px; border: 0; outline: 0; background: transparent; }
.password-entry { display: grid; grid-template-columns: 1fr 44px; align-items: center; }
.show-password { height: 31px; margin-right: 5px; border: 0; border-radius: 5px; color: var(--navy-3); background: #eaf1f5; font-size: 10px; font-weight: 700; }
.password-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

.primary-action { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; margin-top: 3px; border: 0; border-radius: 7px; color: #fff; background: var(--navy); box-shadow: 0 8px 20px rgba(7,31,51,.17); font-size: 11px; font-weight: 700; letter-spacing: .25px; }
.primary-action:hover { color: var(--navy); background: var(--yellow); }
.primary-action:disabled { cursor: wait; opacity: .65; }
.primary-action span { font-size: 18px; }
.guest-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 13px; color: #91a0aa; font-size: 10px; }
.guest-divider:before, .guest-divider:after { content: ""; flex: 1; height: 1px; background: var(--line); }
.guest-action { width: 100%; min-height: 45px; border: 1px solid #b9c9d3; border-radius: 7px; color: var(--navy); background: #fff; font-size: 11px; font-weight: 700; }
.guest-action:hover { border-color: var(--yellow); background: var(--yellow-soft); }
.privacy-note { margin: 13px 0 0; color: #8a9aa4; font-size: 9px; text-align: center; }

.ride-view { width: min(1180px, calc(100% - 36px)); margin: 30px auto 45px; }
.ride-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.ride-heading h1 { margin: 5px 0 1px; color: var(--navy); font: 700 32px/1.05 "Outfit", sans-serif; }
.ride-heading p { margin: 0; color: var(--muted); }
.secondary-action { min-height: 39px; padding: 0 15px; border: 1px solid #c7d5dd; border-radius: 6px; color: var(--navy); background: #fff; font-size: 10px; font-weight: 700; }
.ride-layout { display: grid; grid-template-columns: minmax(290px, .72fr) minmax(480px, 1.28fr); gap: 18px; align-items: start; }
.profile-column { display: grid; gap: 16px; }
.profile-card, .pending-rides-card, .history-card, .trip-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(7,31,51,.07); }
.profile-card { display: flex; align-items: center; gap: 13px; padding: 18px; }
.profile-avatar { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; color: var(--navy); background: var(--yellow); font: 700 13px/1 "Outfit", sans-serif; }
.profile-card small, .card-heading small { color: #78909e; font-size: 8px; font-weight: 700; letter-spacing: .85px; }
.profile-card h2, .card-heading h2 { margin: 2px 0; color: var(--navy); font: 700 18px/1.2 "Outfit", sans-serif; }
.profile-card p { margin: 0; color: var(--muted); font-size: 10px; }
.guest-profile { display: grid; gap: 13px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.guest-chip, .history-count { display: grid; place-items: center; min-width: 31px; min-height: 25px; padding: 0 8px; border-radius: 13px; color: var(--navy); background: var(--yellow-soft); font-size: 9px; font-weight: 700; }
.lookup-entry { display: grid; grid-template-columns: 1fr 45px; gap: 7px; }
.lookup-entry button, .address-entry button { border: 0; border-radius: 6px; color: #fff; background: var(--navy); font-size: 18px; }
.lookup-entry button:hover, .address-entry button:hover { color: var(--navy); background: var(--yellow); }
.lookup-status { margin: -6px 1px 0 !important; color: #7c8e99 !important; font-size: 9px !important; }
.lookup-status.found { color: #245d7c !important; font-weight: 700; }
.lookup-status.new { color: #8e6810 !important; }

.pending-rides-card { padding: 18px; }
.pending-count { display: grid; place-items: center; min-width: 31px; min-height: 25px; padding: 0 8px; border-radius: 13px; color: var(--navy); background: var(--yellow); font-size: 9px; font-weight: 800; }
.pending-empty { margin: 17px 5px 3px; color: #8798a3; font-size: 10px; text-align: center; }
.pending-rides { display: grid; gap: 10px; margin-top: 13px; }
.pending-ride { position: relative; overflow: hidden; padding: 13px 40px 13px 13px; border: 1px solid #dce5ea; border-radius: 9px; background: linear-gradient(145deg, #fff 0%, #f8fbfc 100%); }
.pending-ride:before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--yellow); }
.pending-ride-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.pending-status { display: inline-flex; align-items: center; gap: 5px; color: #765b00; font-size: 8px; font-weight: 800; letter-spacing: .35px; }
.pending-status:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }
.pending-price { color: var(--navy); font: 700 15px/1 "Outfit", sans-serif; }
.pending-route { position: relative; display: grid; gap: 10px; }
.pending-route:before { content: ""; position: absolute; top: 14px; bottom: 14px; left: 5px; border-left: 1px dashed #9babb4; }
.pending-stop { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 7px; align-items: start; }
.pending-stop i { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 2px; border: 2px solid #fff; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.pending-stop:last-child i { background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.pending-stop span { overflow: hidden; color: #526b7a; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.cancel-ride { position: absolute; top: 11px; right: 8px; display: grid; place-items: center; width: 27px; height: 27px; border: 0; border-radius: 7px; color: #fff; background: var(--red); box-shadow: 0 6px 13px rgba(223,80,80,.25); font-size: 18px; line-height: 1; }
.cancel-ride:hover { background: #bd3939; transform: translateY(-1px); }
.ride-cancel-locked { position: absolute; top: 11px; right: 8px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; color: #8b6810; background: #fff2c8; font-size: 13px; }
.pending-ride.ride-in_progress { border-color: #b9cdd9; background: linear-gradient(145deg, #fff 0%, #eef5f8 100%); }
.pending-ride.ride-in_progress:before { background: var(--navy); }
.ride-in_progress .pending-status { color: var(--navy); }
.ride-in_progress .pending-status:before { background: var(--navy); box-shadow: 0 0 0 3px #dce8ef; }
.ride-lock-note { margin: 9px 0 0 21px; padding: 7px 8px; border-radius: 5px; color: #5e7482; background: #e7f0f5; font-size: 8px; line-height: 1.35; }
.pending-meta { margin: 10px 0 0 21px; color: #81929c; font-size: 8px; }
.open-ride-chat { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0 21px; padding: 7px 10px; border: 0; border-radius: 6px; color: #fff; background: var(--navy); font-size: 9px; font-weight: 800; }
.open-ride-chat:hover { background: #174d6d; }

.history-card { padding: 18px; }
.history-empty { margin: 17px 0 3px; color: #8798a3; font-size: 10px; text-align: center; }
.address-history { display: grid; gap: 8px; margin-top: 13px; }
.saved-address { padding: 10px; border: 1px solid #e1e8ec; border-radius: 7px; background: #fbfcfd; }
.saved-address p { margin: 0 0 8px; color: #405d70; font-size: 10px; }
.saved-address-actions { display: flex; gap: 6px; }
.saved-address-actions button { flex: 1; min-height: 27px; border: 0; border-radius: 4px; color: var(--navy); background: #eaf1f5; font-size: 8px; font-weight: 700; }
.saved-address-actions button:last-child { color: #9c3535; background: #fff0f0; }

.trip-card { min-height: 535px; padding: clamp(24px, 4vw, 42px); }
.trip-progress { display: flex; align-items: center; max-width: 250px; margin-bottom: 27px; }
.trip-progress span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #cbd8df; border-radius: 50%; color: #91a0aa; font-size: 9px; font-weight: 700; }
.trip-progress span.active { color: var(--navy); border-color: var(--yellow); background: var(--yellow); }
.trip-progress i { flex: 1; height: 1px; background: #dce5ea; }
.trip-card > h2 { margin: 0; color: var(--navy); font: 700 28px/1.1 "Outfit", sans-serif; }
.trip-help { margin: 5px 0 25px; color: var(--muted); font-size: 11px; }
.route-entry { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: end; }
.route-dot { display: grid; place-items: center; width: 29px; height: 29px; margin-bottom: 8px; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--navy); box-shadow: 0 0 0 2px var(--navy); font-size: 9px; font-weight: 700; }
.destination-dot { background: var(--red); box-shadow: 0 0 0 2px var(--red); }
.route-connector { width: 1px; height: 21px; margin: 3px 0 3px 14px; border-left: 1px dashed #8ba0ad; }
.address-entry { display: grid; grid-template-columns: 1fr 45px; }
.address-entry button { border-radius: 0 6px 6px 0; }
.user-address-field { position: relative; }
.user-address-results { position: absolute; z-index: 20; top: 69px; right: 0; left: 45px; overflow-y: auto; max-height: 280px; border: 1px solid #cbd8df; border-radius: 6px; background: #fff; box-shadow: 0 16px 35px rgba(7,31,51,.18); }
.user-address-option { display: flex; align-items: flex-start; gap: 9px; width: 100%; min-height: 55px; padding: 9px 10px; border: 0; border-bottom: 1px solid #edf1f3; color: var(--ink); background: #fff; text-align: left; }
.user-address-option:before { content: "⌖"; flex: 0 0 18px; color: #718895; font-size: 15px; }
.user-address-option:hover, .user-address-option.keyboard-active { background: var(--yellow-soft); box-shadow: inset 3px 0 var(--yellow); }
.user-address-option b, .user-address-option small { display: block; }
.user-address-option b { color: var(--navy); font-size: 10px; }
.user-address-option small { margin-top: 2px; color: #728692; font-size: 9px; line-height: 1.35; }
.user-address-message { padding: 14px; color: #718692; font-size: 10px; text-align: center; }
.user-address-attribution { padding: 6px 9px; color: #84949d; background: #fafcfd; font-size: 8px; text-align: right; }
.ride-summary { display: flex; align-items: center; gap: 9px; margin-top: 24px; padding: 11px 13px; border: 1px solid #f1df8f; border-radius: 7px; color: #755b16; background: #fff9de; font-size: 10px; }
.ride-summary span { color: #c29300; font-size: 16px; }
.ride-summary p { margin: 0; }
.ride-summary.ready { color: #244d67; border-color: #c9dbe6; background: #eef5f8; }
.request-action { margin-top: 13px; }
.ride-confirmation { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding: 16px; border: 1px solid #cadce6; border-radius: 9px; background: #eef5f8; }
.confirmation-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--navy); background: var(--yellow); font-size: 20px; font-weight: 700; }
.ride-confirmation small { color: #668294; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.ride-confirmation h3 { margin: 2px 0; color: var(--navy); font: 700 16px/1.2 "Outfit", sans-serif; }
.ride-confirmation p { margin: 0; color: #607987; font-size: 10px; }

.modal-overlay { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: rgba(3, 19, 31, .69); backdrop-filter: blur(7px); animation: overlay-in .18s ease-out; }
.modal-card { position: relative; width: min(590px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 31px; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(3,19,31,.35); animation: modal-in .22s ease-out; }
.modal-close { position: absolute; top: 17px; right: 17px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #6d808c; background: #edf2f5; font-size: 21px; line-height: 1; }
.modal-close:hover { color: var(--navy); background: var(--yellow); }
.modal-kicker { color: var(--navy-3); font-size: 9px; font-weight: 800; letter-spacing: 1.25px; }
.modal-kicker.danger { color: #c94141; }
.modal-card > h2, .cancel-heading h2 { margin: 6px 40px 4px 0; color: var(--navy); font: 700 29px/1.08 "Outfit", sans-serif; }
.modal-intro { margin: 0 0 22px; color: var(--muted); font-size: 11px; }
.confirmation-route { position: relative; display: grid; gap: 0; padding: 18px; border: 1px solid #dce5ea; border-radius: 11px; background: #f8fafb; }
.confirmation-route > i { width: 1px; height: 24px; margin: 2px 0 2px 14px; border-left: 1px dashed #9aaab3; }
.confirmation-stop { display: grid; grid-template-columns: 31px 1fr; gap: 11px; align-items: center; }
.stop-letter { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: #fff; background: var(--navy); font-size: 9px; font-weight: 800; }
.destination-stop { background: var(--red); }
.confirmation-stop small { color: #82939d; font-size: 8px; font-weight: 800; letter-spacing: .75px; }
.confirmation-stop p { margin: 2px 0 0; color: #345266; font-size: 11px; line-height: 1.4; }
.estimate-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 15px; align-items: stretch; margin-top: 14px; }
.estimate-price { display: grid; padding: 18px; border-radius: 11px; color: #fff; background: var(--navy); }
.estimate-price small { color: #a9c0cf; font-size: 8px; font-weight: 800; letter-spacing: .85px; }
.estimate-price strong { margin: 4px 0; color: var(--yellow); font: 700 34px/1 "Outfit", sans-serif; }
.estimate-price span { color: #adc1ce; font-size: 9px; }
.estimate-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.estimate-details span { display: grid; place-content: center; padding: 10px; border: 1px solid #dce5ea; border-radius: 11px; color: #84949e; font-size: 8px; text-align: center; }
.estimate-details b { display: block; margin-bottom: 5px; color: var(--navy); font: 700 16px/1 "Outfit", sans-serif; }
.estimate-note { margin: 11px 4px 0; color: #83939d; font-size: 8px; }
.modal-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; margin-top: 22px; }
.modal-actions button { min-height: 46px; border-radius: 7px; font-size: 10px; font-weight: 800; letter-spacing: .25px; }
.modal-back { border: 1px solid #cbd7de; color: var(--navy); background: #fff; }
.modal-back:hover { background: #edf3f6; }
.modal-confirm { display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; color: var(--navy); background: var(--yellow); box-shadow: 0 9px 20px rgba(191,151,0,.2); }
.modal-confirm:hover { color: #fff; background: var(--navy); }
.modal-confirm:disabled, .danger-confirm:disabled { cursor: wait; opacity: .65; }
.modal-confirm span { font-size: 17px; }
.ride-chat-modal-card { width: min(650px, 100%); }
.ride-chat-messages { display: flex; flex-direction: column; gap: 9px; min-height: 240px; max-height: 44vh; overflow-y: auto; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #f4f8fa; }
.ride-chat-empty { margin: auto; color: var(--muted); font-size: 11px; text-align: center; }
.ride-chat-bubble { align-self: flex-start; width: fit-content; max-width: min(82%, 430px); padding: 9px 11px; border: 1px solid #d5e0e6; border-radius: 10px 10px 10px 3px; color: var(--ink); background: #fff; box-shadow: 0 5px 14px rgba(7,31,51,.06); }
.ride-chat-bubble.mine { align-self: flex-end; border-color: var(--navy); border-radius: 10px 10px 3px 10px; color: #fff; background: var(--navy); }
.ride-chat-bubble b, .ride-chat-bubble small { display: block; }
.ride-chat-bubble b { margin-bottom: 4px; font-size: 9px; }
.ride-chat-bubble p { margin: 0; font-size: 12px; line-height: 1.45; white-space: pre-wrap; }
.ride-chat-bubble small { margin-top: 5px; opacity: .68; font-size: 8px; }
.ride-chat-bubble img { display: block; width: min(100%, 300px); max-height: 260px; object-fit: cover; border-radius: 7px; }
.ride-chat-form { margin-top: 12px; }
.ride-chat-form textarea { width: 100%; resize: vertical; padding: 11px; border: 1px solid #cbd8df; border-radius: 8px; color: var(--ink); font: inherit; }
.ride-chat-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ride-chat-photo { padding: 10px 12px; border-radius: 7px; color: var(--navy); background: var(--yellow); font-size: 9px; font-weight: 800; cursor: pointer; }
.ride-chat-photo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
#ride-chat-photo-name { flex: 1; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ride-chat-actions button { min-width: 100px; min-height: 39px; border: 0; border-radius: 7px; color: #fff; background: var(--navy); font-size: 9px; font-weight: 800; }
.cancel-heading { display: flex; align-items: center; gap: 13px; padding-right: 42px; }
.cancel-heading h2 { margin-right: 0; }
.cancel-symbol { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border-radius: 12px; color: #fff; background: var(--red); box-shadow: 0 9px 19px rgba(223,80,80,.24); font-size: 28px; line-height: 1; }
.cancellation-modal-card .modal-intro { margin: 13px 0 18px 56px; }
.cancel-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; border: 0; }
.cancel-reasons legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cancel-reasons label { position: relative; display: flex; align-items: center; min-height: 43px; padding: 9px 11px; border: 1px solid #dce4e9; border-radius: 8px; color: #496273; background: #fff; cursor: pointer; font-size: 10px; }
.cancel-reasons label:hover { border-color: #e79a9a; background: #fff8f8; }
.cancel-reasons label:has(input:checked) { color: #9f3434; border-color: var(--red); background: #fff2f2; box-shadow: 0 0 0 2px rgba(223,80,80,.08); font-weight: 700; }
.cancel-reasons input { width: 15px; height: 15px; margin: 0 8px 0 0; accent-color: var(--red); }
.cancel-note { display: grid; gap: 6px; margin-top: 14px; color: #5d7280; font-size: 9px; font-weight: 700; }
.cancel-note textarea { min-height: 72px; resize: vertical; padding: 11px 12px; border: 1px solid #d4dfe5; border-radius: 8px; color: var(--ink); outline: 0; }
.cancel-note textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(223,80,80,.1); }
.danger-confirm { display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; color: #fff; background: var(--red); box-shadow: 0 9px 20px rgba(223,80,80,.24); }
.danger-confirm:hover { background: #b93636; }
.danger-confirm span { font-size: 18px; }
@keyframes overlay-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(13px) scale(.98); } }

.user-toast { position: fixed; z-index: 100; top: 76px; left: 50%; max-width: min(430px, calc(100% - 30px)); padding: 11px 15px; border-radius: 7px; color: #fff; background: var(--navy); box-shadow: 0 14px 34px rgba(7,31,51,.25); opacity: 0; pointer-events: none; transform: translate(-50%, -13px); transition: .2s ease; }
.user-toast.show { opacity: 1; transform: translate(-50%, 0); }
.user-toast.error { background: #9f3f3f; }

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; width: min(620px, calc(100% - 24px)); }
  .welcome-panel { min-height: 260px; padding: 42px; }
  .welcome-panel h1 { max-width: 520px; font-size: 38px; }
  .welcome-steps { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 34px; }
  .welcome-steps > div { align-items: flex-start; }
  .welcome-steps small { display: none; }
  .ride-layout { grid-template-columns: 1fr; }
  .profile-column { grid-template-columns: 1fr 1fr; }
  .guest-profile { grid-column: 1 / -1; }
  .pending-rides-card { grid-row: span 2; }
}

@media (max-width: 600px) {
  .user-topbar { min-height: 55px; padding: 0 14px; }
  .dispatch-link { display: none; }
  .auth-layout { min-height: 0; margin: 12px auto; border-radius: 12px; }
  .welcome-panel { min-height: 215px; padding: 31px 25px; }
  .welcome-panel h1 { margin-top: 13px; font-size: 31px; }
  .welcome-panel > p { font-size: 12px; }
  .welcome-steps { margin-top: 24px; }
  .welcome-steps > div { gap: 7px; }
  .welcome-steps b { flex-basis: 27px; width: 27px; height: 27px; font-size: 9px; }
  .welcome-steps strong { font-size: 9px; }
  .auth-card { width: 100%; margin: 0; padding: 28px 20px 31px; }
  .auth-card h2 { font-size: 26px; }
  .password-grid { grid-template-columns: 1fr; }
  .ride-view { width: calc(100% - 20px); margin-top: 17px; }
  .ride-heading { align-items: flex-start; }
  .ride-heading h1 { font-size: 25px; }
  .ride-heading p { font-size: 11px; }
  .profile-column { grid-template-columns: 1fr; }
  .pending-rides-card { grid-row: auto; }
  .trip-card { min-height: 0; padding: 22px 16px; }
  .trip-card > h2 { font-size: 24px; }
  .route-entry { grid-template-columns: 28px 1fr; gap: 7px; }
  .route-dot { width: 24px; height: 24px; margin-bottom: 10px; }
  .route-connector { margin-left: 11px; }
  .user-address-results { left: 35px; }
  .modal-overlay { align-items: end; padding: 10px; }
  .modal-card { max-height: calc(100vh - 20px); padding: 24px 18px; border-radius: 16px; }
  .modal-card > h2, .cancel-heading h2 { font-size: 24px; }
  .estimate-panel { grid-template-columns: 1fr; }
  .cancel-reasons { grid-template-columns: 1fr; }
  .cancellation-modal-card .modal-intro { margin-left: 0; }
  .modal-actions { grid-template-columns: 1fr; }
  .modal-actions .modal-back { order: 2; }
}

/* Adaptación general: acceso, cuenta e ingreso de viajes al 100% de zoom. */
html, body, .user-page { width: 100%; max-width: 100%; }
.auth-layout, .ride-view { max-width: calc(100% - 24px); }
.auth-layout > *, .ride-layout > *, .profile-column > *, .trip-card > * { min-width: 0; }

@media (min-width: 901px) and (max-width: 1350px) {
  .auth-layout {
    grid-template-columns: minmax(300px, .82fr) minmax(390px, 1.18fr);
    width: calc(100% - 24px);
    min-height: clamp(590px, calc(100vh - 94px), 680px);
    margin: 16px auto;
  }
  .welcome-panel { padding: clamp(38px, 4vw, 55px) clamp(30px, 4vw, 48px); }
  .welcome-panel h1 { font-size: clamp(34px, 4vw, 47px); }
  .welcome-steps { margin-top: clamp(30px, 4vh, 48px); }
  .auth-card { width: min(500px, calc(100% - 28px)); margin: 20px auto; padding: 22px 26px 27px; }
  .ride-view { width: calc(100% - 24px); margin: 18px auto 32px; }
  .ride-layout { grid-template-columns: minmax(270px, .68fr) minmax(430px, 1.32fr); gap: 13px; }
  .trip-card { padding: clamp(24px, 3vw, 34px); }
}

@media (max-width: 900px) {
  .auth-layout, .ride-view { max-width: calc(100% - 20px); }
}
