:root {
    --portal-bg: #f4f6f8;
    --portal-card: #fff;
    --portal-navy: #1f2937;
    --portal-ink: #1f2937;
    --portal-muted: #64748b;
    --portal-line: #e5e7eb;
    --portal-orange: #c62828;
    --portal-orange-dark: #a61b1b;
}

* { box-sizing: border-box; }
body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(ellipse at 92% 0, rgba(198, 40, 40, .07), transparent 35rem), var(--portal-bg);
    color: var(--portal-ink);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.user-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px max(24px, calc((100vw - 1240px) / 2));
    border-bottom: 1px solid rgba(229, 234, 241, .85);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(16px);
}

.user-brand { display: flex; align-items: center; gap: 11px; flex: none; }
.user-brand img { width: 42px; height: 42px; }
.user-brand strong { display: block; font-size: 13px; font-weight: 800; letter-spacing: -.25px; }
.user-brand span { display: block; margin-top: 3px; color: var(--portal-muted); font-size: 10px; }
.user-nav { display: flex; align-items: center; gap: 5px; }
.user-nav a { padding: 10px 13px; border-radius: 9px; color: #596579; font-size: 11px; font-weight: 700; transition: color .18s, background .18s; }
.user-nav a:hover, .user-nav a.active { background: #fef2f2; color: var(--portal-orange-dark); }
.user-account { display: flex; align-items: center; gap: 10px; }
.user-avatar { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #fecaca; border-radius: 50%; background: #fef2f2; color: var(--portal-orange-dark); font-size: 12px; font-weight: 800; }
.user-avatar { overflow: hidden; }
.user-avatar img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.user-account-name { max-width: 145px; overflow: hidden; color: #354155; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.logout-form { margin: 0; }
.logout-button { padding: 8px 11px; border: 1px solid var(--portal-line); border-radius: 8px; background: #fff; color: #647084; cursor: pointer; font-size: 10px; font-weight: 700; transition: border-color .18s, color .18s; }
.logout-button:hover { border-color: #fecaca; color: #c62828; }

.portal-container { width: min(100% - 48px, 1240px); margin: 34px auto 60px; }
.welcome-banner { position: relative; display: flex; min-height: 210px; align-items: center; justify-content: space-between; gap: 28px; overflow: hidden; padding: 34px 40px; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; background: linear-gradient(115deg, #101827, #1c2b41 72%, #26344a); box-shadow: 0 18px 44px rgba(16, 24, 39, .15); color: #fff; }
.welcome-banner::after { position: absolute; top: -135px; right: 40px; width: 310px; height: 310px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 36px rgba(255,255,255,.025), 0 0 0 78px rgba(255,255,255,.018); content: ''; pointer-events: none; }
.welcome-banner-copy { position: relative; z-index: 1; max-width: 630px; }
.welcome-kicker { margin-bottom: 10px; color: #fca5a5; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.welcome-banner h1 { margin: 0; font-size: clamp(25px, 3vw, 35px); letter-spacing: -1.3px; }
.welcome-banner p { margin: 10px 0 0; color: #b7c2d0; font-size: 12px; line-height: 1.75; }
.banner-count { position: relative; z-index: 1; display: grid; width: 118px; height: 118px; flex: none; align-content: center; justify-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 22px; background: rgba(255,255,255,.075); backdrop-filter: blur(8px); }
.banner-count strong { color: #fff; font-size: 32px; letter-spacing: -1.5px; }
.banner-count span { margin-top: 3px; color: #c2ccd9; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }

.portal-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 34px; }
.portal-stat { display: flex; align-items: center; gap: 14px; padding: 17px 19px; border: 1px solid var(--portal-line); border-radius: 14px; background: var(--portal-card); box-shadow: 0 6px 18px rgba(23, 32, 51, .035); }
.portal-stat-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 12px; background: #fef2f2; color: var(--portal-orange-dark); font-size: 16px; }
.portal-stat:nth-child(2) .portal-stat-icon { background: #eef4ff; color: #3974d5; }
.portal-stat:nth-child(3) .portal-stat-icon { background: #eaf8f0; color: #19945b; }
.portal-stat strong { display: block; font-size: 19px; line-height: 1.1; }
.portal-stat span { display: block; margin-top: 5px; color: var(--portal-muted); font-size: 10px; }

.portal-section { margin-top: 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.45px; }
.section-heading p { margin: 5px 0 0; color: var(--portal-muted); font-size: 11px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--portal-orange-dark); font-size: 11px; font-weight: 800; }
.text-link:hover { text-decoration: underline; }

.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.vehicle-card { overflow: hidden; border: 1px solid var(--portal-line); border-radius: 15px; background: var(--portal-card); box-shadow: 0 7px 22px rgba(23, 32, 51, .045); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.vehicle-card:hover { transform: translateY(-4px); border-color: #fecaca; box-shadow: 0 14px 30px rgba(23, 32, 51, .1); }
.vehicle-photo { position: relative; display: grid; height: 170px; overflow: hidden; place-items: center; background: linear-gradient(140deg, #e9eef5, #f7f9fb); color: #9ba8b9; }
.vehicle-photo img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-photo img { transition: transform .3s ease; }
.vehicle-card:hover .vehicle-photo img { transform: scale(1.04); }
.vehicle-placeholder { font-size: 38px; opacity: .7; }
.availability-badge { position: absolute; top: 12px; left: 12px; padding: 6px 9px; border: 1px solid rgba(187,247,208,.8); border-radius: 999px; background: rgba(240,253,244,.94); color: #15803d; font-size: 9px; font-weight: 800; }
.vehicle-card-body { padding: 16px; }
.vehicle-type { color: var(--portal-orange-dark); font-size: 9px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.vehicle-card h3 { margin: 6px 0 0; font-size: 14px; letter-spacing: -.25px; }
.vehicle-meta { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-top: 9px; color: var(--portal-muted); font-size: 10px; }
.vehicle-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #eef1f5; }
.vehicle-price { font-size: 13px; font-weight: 800; }
.vehicle-price small { color: var(--portal-muted); font-size: 9px; font-weight: 500; }
.vehicle-view { padding: 8px 10px; border-radius: 8px; background: var(--portal-navy); color: white; font-size: 10px; font-weight: 700; transition: background .18s; }
.vehicle-view:hover { background: var(--portal-orange-dark); }

.booking-list { overflow: hidden; border: 1px solid var(--portal-line); border-radius: 15px; background: var(--portal-card); box-shadow: 0 7px 22px rgba(23,32,51,.04); }
.booking-row { display: grid; grid-template-columns: minmax(150px, 1.5fr) minmax(120px, 1fr) minmax(110px, 1fr) minmax(85px, .7fr) minmax(90px, .8fr); align-items: center; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #eef1f5; font-size: 10px; }
.booking-row:last-child { border-bottom: 0; }
.booking-head { background: #fafbfd; color: #7a8799; font-size: 9px; font-weight: 800; letter-spacing: .55px; text-transform: uppercase; }
.booking-car { display: flex; align-items: center; gap: 10px; min-width: 0; }
.booking-thumb { display: grid; width: 38px; height: 34px; flex: none; overflow: hidden; place-items: center; border-radius: 8px; background: #eef1f5; color: #8491a3; }
.booking-thumb img { width: 100%; height: 100%; object-fit: cover; }
.booking-car strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.booking-car span, .booking-cell-muted { display: block; margin-top: 4px; color: var(--portal-muted); font-size: 9px; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; border-radius: 999px; background: #eef4ff; color: #3568b8; font-size: 9px; font-weight: 800; }
.status-pill.status-active { background: #eaf8f0; color: #16834f; }
.status-pill.status-cancelled { background: #fff0f0; color: #c24141; }
.status-pill.status-returned { background: #f0f2f5; color: #657184; }
.empty-state { padding: 36px 20px; border: 1px dashed #d6dde7; border-radius: 14px; background: rgba(255,255,255,.65); color: var(--portal-muted); text-align: center; }
.empty-state i { display: block; margin-bottom: 10px; color: #aeb8c6; font-size: 24px; }
.empty-state strong { display: block; color: #354155; font-size: 13px; }
.empty-state p { margin: 6px 0 0; font-size: 11px; }
.pagination-wrap { margin-top: 22px; }
.pagination-wrap nav { display: flex; justify-content: center; }

.vehicle-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 24px; align-items: start; }
.vehicle-detail-photo { display: grid; min-height: 380px; overflow: hidden; place-items: center; border: 1px solid var(--portal-line); border-radius: 18px; background: linear-gradient(140deg, #e9eef5, #f7f9fb); color: #9ba8b9; font-size: 58px; }
.vehicle-detail-photo img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.vehicle-detail-card { padding: 26px; border: 1px solid var(--portal-line); border-radius: 18px; background: #fff; box-shadow: 0 9px 27px rgba(23,32,51,.06); }
.vehicle-detail-card h1 { margin: 7px 0 8px; font-size: 25px; letter-spacing: -.9px; }
.detail-description { color: var(--portal-muted); font-size: 11px; line-height: 1.7; }
.detail-list { margin: 20px 0 0; border-top: 1px solid #eef1f5; }
.detail-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef1f5; font-size: 11px; }
.detail-line span { color: var(--portal-muted); }
.detail-line strong { text-align: right; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #657184; font-size: 11px; font-weight: 700; }
.back-link:hover { color: var(--portal-orange-dark); }

.booking-request { margin-top: 22px; padding-top: 19px; border-top: 1px solid #eef1f5; }
.booking-request-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.booking-request-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.35px; }
.booking-request-heading p { margin: 5px 0 0; color: var(--portal-muted); font-size: 10px; }
.booking-request-heading > strong { color: var(--portal-orange-dark); font-size: 14px; white-space: nowrap; }
.booking-request-heading small { color: var(--portal-muted); font-size: 9px; font-weight: 500; }
.booking-date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.booking-date-fields label { display: grid; gap: 6px; color: #596579; font-size: 10px; font-weight: 700; }
.booking-date-fields input, .booking-date-fields select { width: 100%; min-width: 0; min-height: 40px; padding: 9px 10px; border: 1px solid var(--portal-line); border-radius: 8px; background: #fff; color: var(--portal-ink); font-size: 10px; }
.booking-date-fields input:focus { border-color: var(--portal-orange); outline: 3px solid rgba(198,40,40,.12); }
.booking-submit { display: flex; width: 100%; min-height: 43px; align-items: center; justify-content: center; gap: 8px; margin-top: 13px; border: 0; border-radius: 9px; background: var(--portal-orange-dark); color: #fff; cursor: pointer; font-size: 11px; font-weight: 800; transition: transform .18s ease, background .18s; }
.booking-submit:hover { transform: translateY(-2px); background: #a61b1b; }
.booking-note { margin: 10px 0 0; color: var(--portal-muted); font-size: 9px; line-height: 1.6; }
.booking-field-error { color: #c24141; font-size: 9px; font-weight: 600; }
.booking-form-error { margin: 0 0 12px; padding: 10px 11px; border: 1px solid #fecaca; border-radius: 8px; background: #fff1f2; color: #a61b1b; font-size: 10px; line-height: 1.5; }
.booking-success { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid #bbf7d0; border-radius: 10px; background: #f0fdf4; color: #166534; font-size: 11px; font-weight: 700; }
.booking-cancel-button { margin-top: 7px; padding: 4px 7px; border: 1px solid rgba(248, 113, 113, .28); border-radius: 6px; background: rgba(127, 29, 29, .16); color: #fca5a5; cursor: pointer; font: inherit; font-size: 8px; font-weight: 700; }
.booking-cancel-button:hover { background: rgba(127, 29, 29, .3); }
.booking-edit-link { display: block; width: fit-content; margin-top: 7px; color: #fca5a5; font-size: 8px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.booking-edit-card { max-width: 800px; margin: 34px auto; padding: 0 26px 25px; overflow: hidden; border: 1px solid #292e38; border-radius: 17px; background: linear-gradient(145deg, #131720, #0f1218); box-shadow: 0 18px 44px rgba(0,0,0,.27); }
.booking-edit-heading { display: flex; align-items: center; gap: 15px; margin: 0 -26px; padding: 24px 26px; border-bottom: 1px solid rgba(255,255,255,.07); background: linear-gradient(100deg, rgba(198,40,40,.08), transparent 66%); }
.booking-edit-icon { display: grid; width: 48px; height: 48px; flex: none; place-items: center; border: 1px solid rgba(198,40,40,.22); border-radius: 14px; background: rgba(198,40,40,.12); color: #e53935; font-size: 18px; }
.booking-edit-heading .welcome-kicker { margin-bottom: 4px; }
.booking-edit-heading h1 { margin: 0; color: #f4f6fa; font-size: clamp(20px, 3vw, 26px); letter-spacing: -.5px; }
.booking-edit-heading p { margin: 5px 0 0; color: #98a2b0; font-size: 10px; }
.booking-edit-vehicle { display: flex; align-items: center; gap: 12px; margin: 21px 0 25px; padding: 13px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(5,7,11,.38); }
.booking-edit-photo { display: grid; width: 62px; height: 52px; flex: none; overflow: hidden; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: #090b10; color: #e53935; font-size: 19px; }
.booking-edit-photo img { width: 100%; height: 100%; object-fit: cover; }
.booking-edit-vehicle-name { display: grid; min-width: 0; flex: 1; gap: 4px; }
.booking-edit-vehicle-name small, .booking-edit-price small { color: #8792a2; font-size: 8px; }
.booking-edit-vehicle-name strong { overflow: hidden; color: #f4f6fa; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.booking-edit-vehicle .status-pill { flex: none; }
.booking-edit-price { display: grid; gap: 4px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.08); text-align: right; }
.booking-edit-price strong { color: #fca5a5; font-size: 11px; white-space: nowrap; }
.booking-edit-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.booking-edit-section-title span { color: #edf0f5; font-size: 12px; font-weight: 800; }
.booking-edit-section-title small { color: #8792a2; font-size: 9px; }
.booking-edit-card .booking-date-fields label { color: #c4cbd5; }
.booking-edit-card .booking-date-fields input { min-height: 46px; border-color: #343a45; background: #090b10; color: #f4f6fa; color-scheme: dark; }
.booking-edit-card .booking-date-fields input:focus { border-color: #c62828; outline: 3px solid rgba(198,40,40,.13); }
.booking-edit-info { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; padding: 11px 12px; border: 1px solid rgba(59,130,246,.18); border-radius: 9px; background: rgba(59,130,246,.06); color: #a9b5c6; font-size: 9px; line-height: 1.6; }
.booking-edit-info i { margin-top: 1px; color: #60a5fa; }
.booking-edit-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 17px; }
.booking-edit-cancel { display: inline-flex; min-height: 42px; align-items: center; padding: 0 15px; border: 1px solid #343a45; border-radius: 9px; color: #c4cbd5; font-size: 10px; font-weight: 700; }
.booking-edit-cancel:hover { background: rgba(255,255,255,.05); }
.booking-edit-actions .booking-submit { width: auto; min-width: 180px; min-height: 42px; margin: 0; padding: 0 16px; }
.my-booking-list { display: grid; gap: 13px; }
.my-booking-card { position: relative; overflow: hidden; padding: 18px 20px 15px; border: 1px solid #292e38; border-radius: 15px; background: linear-gradient(125deg, #141821, #101319 68%); box-shadow: 0 11px 27px rgba(0,0,0,.18); }
.my-booking-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, #e53935, rgba(198,40,40,.08)); content: ''; }
.my-booking-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.my-booking-vehicle { display: flex; min-width: 0; align-items: center; gap: 12px; }
.my-booking-photo { display: grid; width: 68px; height: 54px; flex: none; overflow: hidden; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: #090b10; color: #e53935; font-size: 20px; }
.my-booking-photo img { width: 100%; height: 100%; object-fit: cover; }
.my-booking-name { display: grid; min-width: 0; gap: 4px; }
.my-booking-name small { color: #8792a2; font-size: 8px; }
.my-booking-name strong { overflow: hidden; color: #f4f6fa; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.my-booking-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 15px 0; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.065); border-bottom: 1px solid rgba(255,255,255,.065); }
.my-booking-details > div { display: grid; gap: 5px; }
.my-booking-details small { color: #8792a2; font-size: 8px; }
.my-booking-details small i { margin-right: 4px; color: #e53935; }
.my-booking-details strong { color: #e7eaf0; font-size: 10px; }
.my-booking-details .my-booking-total { text-align: right; }
.my-booking-details .my-booking-total strong { color: #fca5a5; font-size: 12px; }
.my-booking-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.my-booking-waiting, .my-booking-footnote { color: #a5afbd; font-size: 9px; }
.my-booking-waiting i { margin-right: 5px; color: #fca5a5; }
.my-booking-action-buttons { display: flex; align-items: center; gap: 8px; }
.my-booking-edit, .my-booking-cancel { display: inline-flex; min-height: 32px; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border: 1px solid #343a45; border-radius: 8px; background: transparent; color: #d5dae2; cursor: pointer; font: inherit; font-size: 9px; font-weight: 700; text-decoration: none; }
.my-booking-edit { border-color: rgba(198,40,40,.24); background: rgba(198,40,40,.08); color: #fca5a5; }
.my-booking-edit:hover { background: rgba(198,40,40,.16); }
.my-booking-cancel { border-color: rgba(248,113,113,.2); color: #fca5a5; }
.my-booking-cancel:hover { background: rgba(127,29,29,.22); }
.my-booking-footnote i { margin-right: 5px; color: #6ee7b7; }
@media (max-width: 600px) {
    .booking-edit-card { margin: 20px auto; padding: 0 16px 18px; }
    .booking-edit-heading { gap: 11px; margin: 0 -16px; padding: 19px 16px; }
    .booking-edit-icon { width: 42px; height: 42px; }
    .booking-edit-vehicle { flex-wrap: wrap; }
    .booking-edit-price { margin-left: auto; }
    .booking-edit-section-title { align-items: flex-start; flex-direction: column; gap: 4px; }
    .booking-edit-actions { flex-direction: column-reverse; }
    .booking-edit-actions .booking-submit, .booking-edit-cancel { width: 100%; }
    .my-booking-card { padding: 15px 14px 13px; }
    .my-booking-photo { width: 56px; height: 47px; }
    .my-booking-details { gap: 7px; }
    .my-booking-details strong { font-size: 9px; }
    .my-booking-details .my-booking-total strong { font-size: 10px; }
    .my-booking-actions { align-items: flex-start; flex-direction: column; }
    .my-booking-action-buttons { width: 100%; }
    .my-booking-action-buttons form, .my-booking-edit, .my-booking-cancel { flex: 1; }
}

@media (max-width: 900px) {
    .user-header { flex-wrap: wrap; padding: 12px 24px; }
    .user-nav { order: 3; width: 100%; overflow-x: auto; }
    .user-nav a { white-space: nowrap; }
    .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .booking-row { grid-template-columns: minmax(140px, 1.3fr) 1fr 1fr 90px; }
    .booking-row > :nth-child(5) { display: none; }
}

@media (max-width: 620px) {
    .user-header { gap: 12px; padding: 11px 16px; }
    .user-brand img { width: 38px; height: 38px; }
    .user-account { gap: 7px; }
    .user-account-name { display: none; }
    .portal-container { width: min(100% - 30px, 1240px); margin: 22px auto 42px; }
    .welcome-banner { min-height: 190px; padding: 25px 22px; }
    .welcome-banner p { max-width: 330px; }
    .banner-count { width: 78px; height: 78px; border-radius: 17px; }
    .banner-count strong { font-size: 24px; }
    .banner-count span { font-size: 7px; }
    .portal-stats { grid-template-columns: 1fr; gap: 10px; margin: 14px 0 28px; }
    .portal-stat { padding: 13px 15px; }
    .vehicle-grid { grid-template-columns: 1fr; }
    .vehicle-photo { height: 190px; }
    .section-heading { align-items: start; }
    .booking-list { border: 0; background: transparent; box-shadow: none; }
    .booking-head { display: none; }
    .booking-row { grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 10px; border: 1px solid var(--portal-line); border-radius: 12px; background: #fff; }
    .booking-row > :nth-child(3), .booking-row > :nth-child(4) { color: var(--portal-muted); }
    .vehicle-detail { grid-template-columns: 1fr; }
    .vehicle-detail-photo { min-height: 240px; }
    .booking-date-fields { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Shared spacing: keep renter and staff pages open and easy to scan. */
.portal-container { width: min(100% - 64px, 1280px); margin: 40px auto 72px; }
.portal-section { margin-top: 38px; }
.welcome-banner { gap: 34px; padding: 38px 44px; }
.portal-stats { gap: 20px; margin: 24px 0 38px; }
.section-heading { gap: 20px; margin-bottom: 18px; }
.vehicle-grid { gap: 22px; }
.vehicle-card-body { padding: 19px; }
.vehicle-detail { gap: 30px; }
.vehicle-detail-card { padding: 30px; }
.booking-request { margin-top: 26px; padding-top: 22px; }
.booking-date-fields { gap: 14px; }

@media (max-width: 900px) {
    .portal-container { width: min(100% - 48px, 1280px); margin-top: 30px; }
    .vehicle-grid { gap: 18px; }
    .vehicle-detail { gap: 22px; }
}

@media (max-width: 620px) {
    .portal-container { width: min(100% - 30px, 1280px); margin: 22px auto 46px; }
    .portal-section { margin-top: 30px; }
    .welcome-banner { gap: 18px; padding: 26px 22px; }
    .portal-stats { gap: 12px; margin: 18px 0 28px; }
    .section-heading { gap: 12px; margin-bottom: 14px; }
    .vehicle-grid { gap: 16px; }
    .vehicle-card-body { padding: 17px; }
    .vehicle-detail-card { padding: 22px; }
    .booking-date-fields { gap: 11px; }
}

.portal-about { display: grid; grid-template-columns: minmax(230px, .85fr) minmax(0, 1.15fr); gap: 36px; align-items: center; margin-top: 42px; padding: 34px; border: 1px solid #292e38; border-radius: 18px; background: radial-gradient(ellipse at 0 100%, rgba(198, 40, 40, .09), transparent 28rem), linear-gradient(135deg, #11141b, #0e1016); box-shadow: 0 14px 34px rgba(0, 0, 0, .2); scroll-margin-top: 105px; }
.portal-about-intro { max-width: 330px; }
.about-kicker { color: #e53935; font-size: 9px; font-weight: 800; letter-spacing: 1.35px; text-transform: uppercase; }
.portal-about-intro h2 { margin: 10px 0; color: #f4f6f8; font-size: clamp(25px, 3vw, 34px); line-height: 1.12; letter-spacing: -1px; }
.portal-about-intro h2 span { color: #e53935; }
.portal-about-intro p { margin: 0 0 17px; color: #a3adbb; font-size: 11px; line-height: 1.8; }
.portal-about-steps { display: grid; gap: 10px; }
.about-step { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; background: rgba(255, 255, 255, .025); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.about-step:hover { transform: translateX(4px); border-color: rgba(198, 40, 40, .28); background: rgba(198, 40, 40, .045); }
.about-step-icon { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border: 1px solid rgba(198, 40, 40, .2); border-radius: 11px; background: rgba(198, 40, 40, .11); color: #e53935; font-size: 14px; }
.about-step strong { color: #f2f4f7; font-size: 10px; }
.about-step p { margin: 4px 0 0; color: #929cab; font-size: 9px; line-height: 1.6; }

@media (max-width: 760px) {
    .portal-about { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .about-step { transition: none; }
}

.payment-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.payment-summary-card { display: flex; min-width: 0; align-items: center; gap: 13px; padding: 17px; border: 1px solid #292e38; border-radius: 13px; background: #11141b; box-shadow: 0 8px 22px rgba(0, 0, 0, .17); }
.payment-summary-icon { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border: 1px solid rgba(198, 40, 40, .2); border-radius: 11px; background: rgba(198, 40, 40, .1); color: #e53935; }
.payment-summary-card small, .payment-summary-card strong { display: block; }
.payment-summary-card small { color: #9ba5b4; font-size: 9px; }
.payment-summary-card strong { margin-top: 5px; color: #f5f6f8; font-size: 16px; letter-spacing: -.35px; }
.payment-summary-due .payment-summary-icon { border-color: rgba(248, 113, 113, .18); background: rgba(248, 113, 113, .09); color: #fca5a5; }
.my-payment-card { margin-top: 14px; padding: 19px; border: 1px solid #292e38; border-radius: 15px; background: #11141b; box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.my-payment-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.my-payment-vehicle { display: flex; min-width: 0; align-items: center; gap: 11px; }
.my-payment-vehicle .booking-thumb { width: 48px; height: 42px; }
.my-payment-vehicle > span:last-child { display: grid; min-width: 0; gap: 4px; }
.my-payment-vehicle strong { overflow: hidden; color: #f4f6fa; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.my-payment-vehicle small { color: #98a2b0; font-size: 9px; }
.status-pill.status-pending { background: rgba(198, 40, 40, .14); color: #fca5a5; }
.my-payment-progress-row { margin-top: 18px; }
.my-payment-progress-label { display: flex; justify-content: space-between; color: #a3adbb; font-size: 9px; }
.my-payment-progress-label strong { color: #e53935; }
.my-payment-progress { height: 6px; overflow: hidden; margin-top: 8px; border-radius: 99px; background: #282d36; }
.my-payment-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a61b1b, #e53935); transition: width .25s ease; }
.my-payment-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; padding: 14px 0; border-bottom: 1px solid #292e38; }
.my-payment-totals small, .my-payment-totals strong { display: block; }
.my-payment-totals small { color: #98a2b0; font-size: 9px; }
.my-payment-totals strong { margin-top: 5px; color: #f4f6fa; font-size: 11px; }
.my-payment-totals .payment-paid-amount { color: #6ee7b7; }
.my-payment-totals .payment-balance-due { color: #fca5a5; }
.my-payment-records { margin-top: 15px; }
.my-payment-records h3 { margin: 0 0 9px; color: #dbe0e8; font-size: 10px; }
.my-payment-record { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .055); }
.payment-record-icon { display: grid; width: 31px; height: 31px; flex: none; place-items: center; border-radius: 9px; background: #202530; color: #e53935; font-size: 11px; }
.payment-record-main { display: grid; min-width: 0; flex: 1; gap: 4px; }
.payment-record-main strong { color: #e9edf2; font-size: 9px; }
.payment-record-main small { overflow: hidden; color: #98a2b0; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.payment-record-status { padding: 4px 7px; border-radius: 999px; background: rgba(198, 40, 40, .13); color: #fca5a5; font-size: 8px; font-weight: 800; }
.payment-record-paid { background: rgba(16, 185, 129, .13); color: #6ee7b7; }
.payment-record-refunded { background: rgba(148, 163, 184, .13); color: #cbd5e1; }
.payment-record-amount { color: #f4f6fa; font-size: 9px; white-space: nowrap; }
.payment-no-records { margin: 0; padding: 10px 0 2px; border-top: 1px solid rgba(255, 255, 255, .055); color: #98a2b0; font-size: 9px; }
.payment-info-note { display: flex; align-items: center; gap: 9px; margin: -3px 0 14px; padding: 11px 13px; border: 1px solid rgba(198, 40, 40, .18); border-radius: 10px; background: rgba(198, 40, 40, .055); color: #bdc4ce; font-size: 9px; line-height: 1.5; }
.payment-info-note i { flex: none; color: #e53935; }
.my-payment-card { position: relative; overflow: hidden; }
.my-payment-card::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: linear-gradient(180deg, #e53935, rgba(198, 40, 40, .08)); content: ''; }
.my-payment-vehicle small { line-height: 1.55; }
.payment-record-status { white-space: nowrap; }

@media (max-width: 760px) {
    .payment-summary { grid-template-columns: 1fr; gap: 9px; }
    .payment-summary-card { padding: 13px 15px; }
}

@media (max-width: 480px) {
    .my-payment-card { padding: 14px; }
    .my-payment-totals { gap: 8px; }
    .my-payment-totals strong { font-size: 9px; }
    .my-payment-record { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 8px; }
    .payment-record-status { grid-column: 2; justify-self: start; font-size: 7px; }
    .payment-record-amount { grid-column: 3; grid-row: 2; align-self: center; font-size: 8px; }
}

.dashboard-booking-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

@media (max-width: 620px) {
    .dashboard-booking-links { gap: 8px 12px; }
}

/* Payment page hierarchy and card accents. */
.payment-summary-card { position: relative; min-height: 102px; overflow: hidden; padding: 18px 20px; border-color: rgba(255, 255, 255, .08); background: linear-gradient(135deg, #151922, #101319); transition: transform .18s ease, border-color .18s ease; }
.payment-summary-card::after { position: absolute; right: -26px; bottom: -43px; width: 110px; height: 110px; border: 1px solid currentColor; border-radius: 50%; opacity: .1; box-shadow: 0 0 0 15px currentColor; content: ''; pointer-events: none; }
.payment-summary-card:hover { transform: translateY(-3px); border-color: rgba(198, 40, 40, .3); }
.payment-summary-card > div { position: relative; z-index: 1; min-width: 0; }
.payment-summary-icon { width: 44px; height: 44px; border-radius: 13px; }
.payment-summary-rental .payment-summary-icon { color: #e53935; }
.payment-summary-paid .payment-summary-icon { border-color: rgba(52, 211, 153, .2); background: rgba(16, 185, 129, .1); color: #6ee7b7; }
.payment-summary-due .payment-summary-icon { border-color: rgba(198, 40, 40, .22); background: rgba(198, 40, 40, .12); color: #fca5a5; }
.payment-summary-card small { font-size: 9px; font-weight: 700; letter-spacing: .2px; }
.payment-summary-card strong { margin-top: 4px; font-size: clamp(14px, 1.5vw, 18px); white-space: nowrap; }
.payment-summary-paid strong { color: #6ee7b7; }
.payment-summary-due strong { color: #fca5a5; }
.payment-summary-caption { display: block; margin-top: 4px; color: #778293; font-size: 8px; }
.my-payment-card { padding: 21px; border-color: rgba(255, 255, 255, .085); background: linear-gradient(135deg, #131720, #101319); }
.my-payment-header { padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .065); }
.my-payment-vehicle .booking-thumb { border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; }
.my-payment-progress-row { margin-top: 16px; }
.my-payment-totals { gap: 9px; padding: 15px 0; }
.my-payment-totals > div { padding: 11px 12px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 10px; background: rgba(5, 7, 11, .35); }
.my-payment-totals strong { font-size: 10px; white-space: nowrap; }
.my-payment-records { margin-top: 16px; }
.my-payment-records h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 10px; }
.my-payment-records h3::before { width: 3px; height: 12px; border-radius: 3px; background: #c62828; content: ''; }
.my-payment-record { padding: 11px 8px; border: 1px solid rgba(255, 255, 255, .055); border-radius: 10px; background: rgba(5, 7, 11, .24); }
.payment-submit-form { margin-top: 16px; padding: 16px; border: 1px solid rgba(198, 40, 40, .16); border-radius: 11px; background: rgba(198, 40, 40, .045); }
.payment-submit-form h3 { margin: 0; color: #f4f6fa; font-size: 11px; }
.payment-submit-form > p { margin: 5px 0 13px; color: #98a2b0; font-size: 9px; line-height: 1.6; }
.payment-submit-form .booking-date-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.payment-submit-form .booking-date-fields label { color: #c4cbd5; }
.payment-submit-form .booking-date-fields input, .payment-submit-form .booking-date-fields select { border-color: #343a45; background: #090b10; color: #f4f6fa; color-scheme: dark; }
.payment-submit-form .booking-submit { max-width: 230px; }
.payment-submit-error { margin-top: 12px; }
.payment-receipt-link { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid rgba(198, 40, 40, .2); border-radius: 7px; color: #fca5a5; font-size: 8px; font-weight: 700; white-space: nowrap; }
.payment-receipt-link:hover { background: rgba(198, 40, 40, .1); }
.payment-no-records { padding: 12px; border: 1px dashed rgba(255, 255, 255, .12); border-radius: 9px; background: rgba(5, 7, 11, .2); }

@media (max-width: 480px) {
    .payment-summary-card { min-height: 90px; padding: 14px; }
    .payment-summary-card strong { font-size: 15px; }
    .my-payment-card { padding: 16px 14px; }
    .my-payment-totals { grid-template-columns: 1fr; }
    .my-payment-totals > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; }
    .my-payment-totals strong { margin-top: 0; font-size: 10px; }
    .payment-submit-form { padding: 13px; }
    .payment-submit-form .booking-date-fields { grid-template-columns: 1fr; }
}

/* Give the renter payment page more breathing room between its sections. */
.payment-summary { gap: 20px; margin: 26px 0 30px; }
#payment-history .section-heading { margin-bottom: 20px; }
#payment-history > .payment-info-note { margin: 0 0 24px; padding: 14px 16px; font-size: 10px; }
.my-payment-card { margin-top: 22px; padding: 26px; }
.my-payment-header { padding-bottom: 18px; }
.my-payment-progress-row { margin-top: 22px; }
.my-payment-totals { gap: 14px; margin-top: 18px; padding: 18px 0; }
.my-payment-totals > div { padding: 13px 14px; }
.my-payment-totals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.my-payment-totals .payment-pending-amount { color: #fcd34d; }
.payment-pending-note { margin-top: 20px !important; }
.my-payment-records { margin-top: 21px; }
.my-payment-records h3 { margin-bottom: 13px; }
.my-payment-record { margin-top: 8px; padding: 13px 12px; }
.payment-submit-form { margin-top: 24px; padding: 21px; }
.payment-submit-form > p { margin: 7px 0 17px; font-size: 10px; }
.payment-submit-form .booking-date-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.payment-submit-form .booking-date-fields label { gap: 7px; }
.payment-submit-form .booking-submit { min-height: 44px; margin-top: 16px; }
.payment-review-actions { gap: 9px; }
.payment-record-rejected { background: rgba(239, 68, 68, .14); color: #fca5a5; }

@media (max-width: 760px) {
    .payment-summary { gap: 12px; margin: 20px 0 24px; }
    .my-payment-card { padding: 20px; }
}

@media (max-width: 480px) {
    .my-payment-card { margin-top: 16px; padding: 17px 14px; }
    .my-payment-totals { gap: 9px; padding: 14px 0; }
    .payment-submit-form { margin-top: 18px; padding: 15px; }
    .payment-submit-form .booking-date-fields { grid-template-columns: minmax(0, 1fr); }
}

.dashboard-hero {
    min-height: 440px;
    align-items: center;
    padding: 54px 58px;
    isolation: isolate;
}
.dashboard-hero .welcome-banner-copy { max-width: 49%; padding-right: 18px; }
.dashboard-hero h1 { font-size: clamp(34px, 4vw, 51px); line-height: 1.12; letter-spacing: -2px; }
.dashboard-hero h1 span { color: #e53935; }
.dashboard-hero p { max-width: 410px; font-size: 12px; }
.dashboard-hero-visual {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    display: flex;
    width: 53%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 28px 22px 34px 48px;
    overflow: hidden;
    background: linear-gradient(115deg, transparent 0 18%, rgba(198, 40, 40, .12) 18% 34%, rgba(198, 40, 40, .22) 34% 100%);
    clip-path: polygon(29% 0, 100% 0, 100% 100%, 0 100%);
}
.dashboard-hero-visual::after { position: absolute; inset: 0; background: linear-gradient(90deg, #111319 0%, rgba(17, 19, 25, .26) 30%, transparent 76%); content: ''; pointer-events: none; }
.dashboard-hero-orbit { position: absolute; top: 50%; left: 53%; width: 330px; height: 330px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; box-shadow: 0 0 0 32px rgba(255, 255, 255, .025), 0 0 0 70px rgba(255, 255, 255, .018); transform: translate(-50%, -50%); }
.dashboard-hero-car { position: relative; z-index: 1; width: min(100%, 620px); max-height: 340px; object-fit: contain; filter: drop-shadow(0 23px 23px rgba(0, 0, 0, .48)); transform: translate(3%, 0); animation: none; transition: none; }
.dashboard-hero-placeholder { position: relative; z-index: 1; color: rgba(255, 255, 255, .82); font-size: 110px; filter: drop-shadow(0 20px 20px rgba(0, 0, 0, .45)); transform: translate(15%, -6%); }
.dashboard-featured-chip { position: absolute; z-index: 2; right: 26px; bottom: 22px; display: grid; min-width: 185px; gap: 5px; padding: 13px 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(12, 14, 19, .78); box-shadow: 0 10px 25px rgba(0, 0, 0, .3); backdrop-filter: blur(12px); }
.dashboard-featured-chip > span { color: #e53935; font-size: 8px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.dashboard-featured-chip strong { overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-featured-chip small { color: #fff; font-size: 11px; font-weight: 800; }
.dashboard-featured-chip small span { color: #a3adbb; font-size: 9px; font-weight: 500; }
.dashboard-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 21px; }
.dashboard-primary-link,
.dashboard-secondary-link { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border-radius: 9px; font-size: 10px; font-weight: 800; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.dashboard-primary-link { background: #c62828; color: #fff; box-shadow: 0 8px 20px rgba(166, 27, 27, .22); }
.dashboard-primary-link:hover { transform: translateY(-2px); background: #a61b1b; }
.dashboard-secondary-link { border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .045); color: #f4f6fa; }
.dashboard-secondary-link:hover { transform: translateY(-2px); border-color: rgba(198, 40, 40, .45); background: rgba(198, 40, 40, .1); }
.dashboard-hero-note { display: flex; align-items: center; gap: 7px; margin-top: 17px; color: #a3adbb; font-size: 9px; font-weight: 600; }
.dashboard-hero-note i { color: #e53935; }

@media (max-width: 900px) {
    .dashboard-hero { min-height: 390px; padding: 40px 36px; }
    .dashboard-hero .welcome-banner-copy { max-width: 58%; }
    .dashboard-hero-visual { padding: 24px 16px 28px 34px; }
    .dashboard-hero-car { width: min(108%, 540px); max-height: 310px; }
    .dashboard-featured-chip { right: 17px; bottom: 16px; min-width: 155px; }
}

@media (max-width: 620px) {
    .dashboard-hero { min-height: 590px; align-items: flex-start; padding: 32px 24px 255px; }
    .dashboard-hero .welcome-banner-copy { max-width: 100%; }
    .dashboard-hero h1 { font-size: clamp(32px, 10vw, 43px); }
    .dashboard-hero-visual { top: auto; bottom: 0; width: 100%; height: 255px; padding: 25px 12px 34px; clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%); background: linear-gradient(145deg, rgba(198, 40, 40, .12), rgba(198, 40, 40, .24)); }
    .dashboard-hero-visual::after { background: linear-gradient(180deg, #111319 0%, rgba(17, 19, 25, .12) 46%, transparent 100%); }
    .dashboard-hero-orbit { left: 50%; width: 245px; height: 245px; }
    .dashboard-hero-car { width: min(108%, 450px); max-height: 210px; transform: translateY(5%); }
    .dashboard-hero-placeholder { font-size: 78px; transform: translateY(3%); }
    .dashboard-featured-chip { right: 13px; bottom: 12px; min-width: 145px; padding: 10px 12px; }
    .dashboard-hero-actions { gap: 8px; }
}

/* Renter portal red and white palette. */
:root {
    color-scheme: light;
    --portal-bg: #f4f6f8;
    --portal-card: #ffffff;
    --portal-navy: #1f2937;
    --portal-ink: #1f2937;
    --portal-muted: #64748b;
    --portal-line: #e5e7eb;
    --portal-orange: #c62828;
    --portal-orange-dark: #a61b1b;
}

body {
    background: radial-gradient(ellipse at 92% 0, rgba(198, 40, 40, .07), transparent 35rem), var(--portal-bg);
    color: var(--portal-ink);
}

.user-header {
    border-bottom-color: #e5e7eb;
    background: rgba(255, 255, 255, .96);
}

.user-brand strong,
.user-account-name { color: #1f2937; }
.user-nav a { color: #64748b; }
.user-nav a:hover,
.user-nav a.active { background: rgba(198, 40, 40, .09); color: #a61b1b; }
.user-avatar { border-color: rgba(198, 40, 40, .25); background: rgba(198, 40, 40, .08); color: #a61b1b; }
.logout-button { border-color: #e5e7eb; background: #fff; color: #4b5563; }
.logout-button:hover { border-color: rgba(239, 68, 68, .55); color: #f87171; }

.portal-stat,
.vehicle-card,
.booking-list,
.vehicle-detail-card {
    border-color: var(--portal-line);
    background: var(--portal-card);
    color: var(--portal-ink);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}

.portal-stat-icon,
.portal-stat:nth-child(2) .portal-stat-icon,
.portal-stat:nth-child(3) .portal-stat-icon {
    background: rgba(198, 40, 40, .13);
    color: #e53935;
}

.vehicle-photo,
.vehicle-detail-photo { background: linear-gradient(140deg, #171b24, #202530); color: #8e98a8; }
.vehicle-card-footer,
.detail-list,
.detail-line { border-color: #292e38; }
.vehicle-card-footer { border-top-color: #292e38; }
.vehicle-meta,
.detail-line span,
.detail-description,
.booking-note { color: #a3adbb; }
.vehicle-view { background: #c62828; color: #fff; }
.vehicle-view:hover,
.booking-submit { background: #a61b1b; }
.vehicle-view:hover { color: #fff; }
.booking-row { border-bottom-color: #292e38; }
.booking-head { background: #171a22; color: #a3adbb; }
.booking-thumb { background: #202530; color: #a3adbb; }
.status-pill { background: rgba(198, 40, 40, .14); color: #fca5a5; }
.status-pill.status-active { background: rgba(16, 185, 129, .15); color: #6ee7b7; }
.status-pill.status-cancelled { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.status-pill.status-returned { background: #272c36; color: #c0c7d2; }
.empty-state { border-color: #343a45; background: rgba(17, 20, 27, .75); color: #a3adbb; }
.empty-state strong { color: #f4f6fa; }
.empty-state i { color: #717c8d; }
.booking-date-fields label { color: #c4cbd5; }
.booking-date-fields input { border-color: #343a45; background: #090b10; color: #f4f6fa; color-scheme: dark; }
.booking-date-fields input:focus { border-color: #c62828; }
.booking-success { border-color: rgba(16, 185, 129, .35); background: rgba(16, 185, 129, .1); color: #86efac; }

@media (max-width: 620px) {
    .booking-row { border-color: #292e38; background: #11141b; }
}

/* Final visual polish shared by the dashboard, catalog, and booking pages. */
.user-header { box-shadow: 0 8px 26px rgba(0, 0, 0, .2); }
.user-brand img { filter: drop-shadow(0 0 12px rgba(198, 40, 40, .18)); }
.user-nav a { position: relative; }
.user-nav a.active::after { position: absolute; right: 13px; bottom: 4px; left: 13px; height: 2px; border-radius: 2px; background: #c62828; content: ''; }

/* Make renter navigation labels easier to read and give each item more room. */
.user-header { min-height: 84px; }
.user-brand strong { font-size: 15px; }
.user-nav { gap: 8px; }
.user-nav a { padding: 13px 16px; font-size: 15px; }
.user-account-name { font-size: 13px; }
.logout-button { padding: 11px 14px; font-size: 12px; }

@media (max-width: 900px) {
    .user-nav a { padding: 12px 15px; font-size: 14px; }
}

@media (max-width: 620px) {
    .user-header { min-height: 76px; }
    .user-nav { gap: 6px; }
    .user-nav a { padding: 11px 13px; font-size: 13px; }
}

.welcome-banner {
    border-color: rgba(198, 40, 40, .2);
    background: radial-gradient(ellipse at 88% 45%, rgba(198, 40, 40, .22), transparent 25rem), linear-gradient(115deg, #101116, #171a21 72%, #201910);
    box-shadow: 0 20px 54px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .035);
}
.welcome-banner::before { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: linear-gradient(180deg, #fca5a5, #a61b1b); content: ''; }
.welcome-banner::after { border-color: rgba(198, 40, 40, .15); box-shadow: 0 0 0 36px rgba(198, 40, 40, .025), 0 0 0 78px rgba(198, 40, 40, .018); }
.welcome-kicker { color: #e53935; }
.banner-count { border-color: rgba(198, 40, 40, .3); background: rgba(198, 40, 40, .09); }
.banner-count strong { text-shadow: 0 0 24px rgba(198, 40, 40, .22); }
.portal-stat { position: relative; overflow: hidden; border-radius: 15px; box-shadow: 0 9px 26px rgba(0, 0, 0, .18); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.portal-stat::after { position: absolute; top: 0; right: 0; width: 64px; height: 2px; background: linear-gradient(90deg, transparent, rgba(198, 40, 40, .65)); content: ''; }
.portal-stat:hover { transform: translateY(-3px); border-color: rgba(198, 40, 40, .35); box-shadow: 0 14px 30px rgba(0, 0, 0, .24); }
.portal-stat strong { color: #fff; font-size: 21px; letter-spacing: -.7px; }
.portal-stat-icon { border: 1px solid rgba(198, 40, 40, .16); }
.section-heading { padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .055); }
.section-heading h2 { color: #f4f6f8; font-size: 18px; letter-spacing: -.55px; }
.section-heading p { color: #8993a2; }
.text-link { color: #e53935; }
.vehicle-card { border-radius: 16px; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
.vehicle-card:hover { transform: translateY(-5px); border-color: rgba(198, 40, 40, .45); box-shadow: 0 20px 40px rgba(0, 0, 0, .34), 0 0 0 1px rgba(198, 40, 40, .08); }
.vehicle-photo { background: radial-gradient(ellipse at 50% 110%, rgba(198, 40, 40, .14), transparent 62%), linear-gradient(145deg, #171b24, #202530); }
.availability-badge { box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.vehicle-card h3 { color: #f4f6f8; font-size: 15px; }
.vehicle-price { color: #fff; font-size: 15px; letter-spacing: -.3px; }
.vehicle-view,
.booking-submit { box-shadow: 0 7px 18px rgba(166, 27, 27, .18); }
.booking-list { border-radius: 15px; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }
.booking-row { color: #dce1e8; }
.booking-head { color: #9ba5b4; }
.booking-car strong { color: #f4f6fa; }
.vehicle-detail-photo { box-shadow: 0 16px 36px rgba(0, 0, 0, .2); }
.vehicle-detail-card { box-shadow: 0 16px 36px rgba(0, 0, 0, .24); }
.vehicle-detail-card h1 { color: #fff; }
.booking-request { border-top-color: #292e38; }
.booking-request-heading h2 { color: #fff; }
.booking-request-heading > strong { color: #e53935; }
.booking-form-error { border-color: rgba(248, 113, 113, .28); background: rgba(127, 29, 29, .2); color: #fca5a5; }
.back-link { color: #aab3c0; }
.back-link:hover { color: #e53935; }
.pagination-wrap a,
.pagination-wrap span { border-color: #343a45 !important; background: #11141b !important; color: #d4dae3 !important; }
.pagination-wrap [aria-current="page"] span { border-color: #c62828 !important; background: #c62828 !important; color: #fff !important; }

a:focus-visible,
button:focus-visible,
input:focus-visible { outline: 3px solid rgba(198, 40, 40, .55); outline-offset: 3px; }

@media (max-width: 620px) {
    .welcome-banner { border-radius: 16px; }
    .section-heading { padding-bottom: 10px; }
    .booking-row { box-shadow: 0 7px 18px rgba(0, 0, 0, .16); }
}

/* Booking history: clearer status, schedule, and renter actions. */
.my-booking-list { gap: 16px; }
.my-booking-card { padding: 22px 24px 19px; border-radius: 17px; transition: border-color .18s ease, box-shadow .18s ease; }
.my-booking-card:hover { border-color: rgba(198, 40, 40, .35); box-shadow: 0 15px 34px rgba(0, 0, 0, .24); }
.my-booking-photo { width: 78px; height: 62px; border-radius: 12px; }
.my-booking-name { gap: 5px; }
.my-booking-name small { color: #9aa4b2; font-size: 9px; letter-spacing: .25px; }
.my-booking-name strong { font-size: 14px; }
.status-pill.status-pending { border: 1px solid rgba(245, 158, 11, .25); background: rgba(245, 158, 11, .12); color: #fcd34d; }
.status-pill.status-active { border: 1px solid rgba(16, 185, 129, .25); background: rgba(16, 185, 129, .12); color: #6ee7b7; }
.status-pill.status-returned { border: 1px solid rgba(148, 163, 184, .2); background: rgba(148, 163, 184, .1); color: #c0c7d2; }
.status-pill.status-cancelled { border: 1px solid rgba(239, 68, 68, .25); background: rgba(239, 68, 68, .12); color: #fca5a5; }
.my-booking-details { gap: 12px; margin: 18px 0; padding: 0; border: 0; }
.my-booking-details > div { min-width: 0; gap: 7px; padding: 12px 13px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 10px; background: rgba(255, 255, 255, .025); }
.my-booking-details small { font-size: 9px; }
.my-booking-details strong { font-size: 11px; }
.my-booking-details .my-booking-total { border-color: rgba(198, 40, 40, .18); background: rgba(198, 40, 40, .06); text-align: left; }
.my-booking-actions { min-height: 36px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.my-booking-waiting, .my-booking-footnote { font-size: 10px; }
.my-booking-action-buttons form { margin: 0; }
.my-booking-edit, .my-booking-cancel { min-height: 36px; padding: 0 12px; border-radius: 9px; font-size: 10px; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.my-booking-edit:hover, .my-booking-cancel:hover { transform: translateY(-1px); }
.my-booking-cancel { border-color: rgba(239, 68, 68, .28); background: rgba(239, 68, 68, .08); color: #fca5a5; }
.my-booking-cancel:hover { border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .16); }
.my-booking-footnote { display: inline-flex; align-items: center; gap: 7px; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .07); }
.my-booking-footnote i { color: #6ee7b7; }

@media (max-width: 700px) {
    .my-booking-card { padding: 18px; }
    .my-booking-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .my-booking-details .my-booking-total { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .my-booking-top { align-items: flex-start; }
    .my-booking-photo { width: 62px; height: 52px; }
    .my-booking-name strong { font-size: 12px; }
    .my-booking-actions { align-items: flex-start; flex-direction: column; }
    .my-booking-action-buttons { width: 100%; }
    .my-booking-action-buttons form, .my-booking-edit, .my-booking-cancel { flex: 1; }
}

/* Navy and white palette for the renter booking history. */
body.renter-bookings-page .welcome-banner {
    border-color: rgba(147, 197, 253, .24);
    background: radial-gradient(ellipse at 88% 45%, rgba(59, 130, 246, .2), transparent 25rem), linear-gradient(115deg, #101b2e, #172c49 72%, #203b60);
}
body.renter-bookings-page .welcome-banner::before { background: linear-gradient(180deg, #93c5fd, #2563eb); }
body.renter-bookings-page .welcome-banner::after { border-color: rgba(147, 197, 253, .16); box-shadow: 0 0 0 36px rgba(147, 197, 253, .025), 0 0 0 78px rgba(147, 197, 253, .018); }
body.renter-bookings-page .welcome-kicker { color: #93c5fd; }
body.renter-bookings-page .banner-count { border-color: rgba(147, 197, 253, .28); background: rgba(59, 130, 246, .1); }
body.renter-bookings-page .section-heading h2 { color: #f8fafc; }
body.renter-bookings-page .section-heading p { color: #aab6c8; }
body.renter-bookings-page .section-heading { border-bottom-color: rgba(147, 197, 253, .12); }
body.renter-bookings-page .text-link { color: #93c5fd; }
body.renter-bookings-page .user-nav a.active { background: #eff6ff; color: #1d4ed8; }
body.renter-bookings-page .user-nav a.active::after { background: #2563eb; }
body.renter-bookings-page .my-booking-card {
    border-color: #dce5f0;
    background: linear-gradient(135deg, #fff, #f7faff);
    box-shadow: 0 10px 28px rgba(4, 15, 32, .2);
}
body.renter-bookings-page .my-booking-card::before { background: linear-gradient(180deg, #3b82f6, rgba(37, 99, 235, .16)); }
body.renter-bookings-page .my-booking-card:hover { border-color: #9bbbe4; box-shadow: 0 15px 34px rgba(4, 15, 32, .26); }
body.renter-bookings-page .my-booking-photo { border-color: #dce5f0; background: #eaf1fa; color: #416187; }
body.renter-bookings-page .my-booking-name small { color: #728198; }
body.renter-bookings-page .my-booking-name strong { color: #172b47; }
body.renter-bookings-page .my-booking-details > div { border-color: #e4eaf2; background: #f8faff; }
body.renter-bookings-page .my-booking-details small { color: #6b7a90; }
body.renter-bookings-page .my-booking-details strong { color: #213550; }
body.renter-bookings-page .my-booking-details .my-booking-total { border-color: #d8e6f8; background: #edf4ff; }
body.renter-bookings-page .my-booking-details .my-booking-total strong { color: #1d4ed8; }
body.renter-bookings-page .status-pill.status-pending { border-color: #f2dda9; background: #fff8e6; color: #946200; }
body.renter-bookings-page .status-pill.status-active { border-color: #c7eed9; background: #ecfdf3; color: #027a48; }
body.renter-bookings-page .status-pill.status-returned { border-color: #d7e1ed; background: #f1f5f9; color: #52637a; }
body.renter-bookings-page .status-pill.status-cancelled { border-color: #f5d0ce; background: #fff1f0; color: #b42318; }
body.renter-bookings-page .my-booking-actions,
body.renter-bookings-page .my-booking-footnote { border-top-color: #e5eaf1; }
body.renter-bookings-page .my-booking-waiting,
body.renter-bookings-page .my-booking-footnote { color: #53647c; }
body.renter-bookings-page .my-booking-waiting i { color: #2563eb; }
body.renter-bookings-page .my-booking-footnote i { color: #059669; }
body.renter-bookings-page .my-booking-edit { border-color: #c9daf1; background: #eff6ff; color: #1d4ed8; }
body.renter-bookings-page .my-booking-edit:hover { border-color: #9bbbe4; background: #e4efff; }
body.renter-bookings-page .my-booking-cancel { border-color: #f2c7c4; background: #fff5f4; color: #b42318; }
body.renter-bookings-page .my-booking-cancel:hover { border-color: #e99a95; background: #ffebe9; }

body.renter-bookings-page .empty-state { border-color: #34465f; background: rgba(19, 31, 49, .88); }
body.renter-bookings-page .empty-state strong { color: #f8fafc; }
body.renter-bookings-page .empty-state p { color: #b5c2d4; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
