:root {
    --bg: #0c111d;
    --panel: #111827;
    --panel-soft: #182234;
    --text: #f8fafc;
    --muted: #9ca3af;
    --brand: #60a5fa;
    --brand-strong: #2563eb;
    --border: #253145;
    --danger: #fca5a5;
    --success: #86efac;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
}

main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.site-header,
.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 18px;
}

.menu-toggle {
    display: none;
}

nav a,
.section-heading a,
.admin-bar a {
    color: var(--muted);
    text-decoration: none;
}

nav a:hover,
.section-heading a:hover,
.admin-bar a:hover {
    color: var(--text);
}

.hero {
    display: grid;
    min-height: 420px;
    align-items: center;
    padding: 56px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.32), transparent 30%),
        linear-gradient(135deg, #101827, #172033);
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 5.75rem);
    line-height: 0.96;
    letter-spacing: -0.08em;
}

.hero p {
    max-width: 560px;
    color: var(--muted);
    font-size: 1.1rem;
}

.eyebrow {
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.actions,
.admin-bar,
.inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-strong);
    color: white;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}

.button.ghost {
    background: transparent;
    border: 1px solid var(--border);
}

.button.small {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.9rem;
}

.button.danger {
    background: #991b1b;
}

.panel,
.card,
.admin-bar {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--panel);
    padding: 24px;
}

.warning {
    border-color: #f59e0b;
}

.narrow {
    max-width: 480px;
    margin: 0 auto;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 36px 0 16px;
}

.section-heading.compact {
    margin: 0 0 18px;
}

.grid {
    display: grid;
    gap: 18px;
}

.cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 18px;
}

.stat {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel-soft);
}

.stat strong {
    display: block;
    font-size: 2rem;
}

.stat span,
.card p,
small {
    color: var(--muted);
}

.car-image {
    display: grid;
    min-height: 160px;
    place-items: center;
    margin: -8px -8px 18px;
    border-radius: 16px;
    background: var(--panel-soft);
    color: var(--muted);
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.form {
    display: grid;
    gap: 16px;
}

.grid-form {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.full {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 700;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-label input {
    width: auto;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0b1220;
    color: var(--text);
    padding: 12px;
    font: inherit;
}

.flash {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--panel);
}

.flash.notice {
    color: var(--success);
}

.flash.error {
    color: var(--danger);
}

.table-wrap {
    overflow-x: auto;
}

.actions-cell,
.actions-cell form,
.photo-actions,
.photo-actions form {
    display: flex;
    align-items: center;
    gap: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: capitalize;
}

.badge-confirmed,
.badge-picked_up {
    color: #bfefff;
    background: rgba(40, 200, 255, 0.14);
}

.badge-returned,
.badge-completed {
    color: #c8ffe7;
    background: rgba(70, 241, 168, 0.14);
}

.badge-cancelled {
    color: #ffc5cf;
    background: rgba(255, 77, 109, 0.14);
}

.task-grid {
    display: grid;
    gap: 14px;
}

.task-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel-soft);
}

.task-card h3,
.task-card p {
    margin: 0 0 8px;
}

.task-actions {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    gap: 8px;
    min-width: 210px;
}

.task-note,
.muted,
.empty-state {
    color: var(--muted);
}

.timeline {
    margin: 22px 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel-soft);
}

.timeline h2 {
    margin-top: 0;
}

.timeline-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.timeline-item {
    padding: 12px;
    border: 1px solid rgba(141, 157, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.timeline-item span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.timeline-item strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
}

.timeline-item.is-done {
    border-color: rgba(70, 241, 168, 0.28);
}

.reservation-filters {
    align-items: end;
}

.reservation-email-action {
    align-items: end;
}

.reservation-email-action label {
    flex: 1 1 260px;
}

.debug {
    white-space: pre-wrap;
    color: var(--danger);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.photo-grid figure {
    margin: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel-soft);
}

.photo-grid img {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
}

.photo-grid figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.photo-actions {
    flex-wrap: wrap;
    margin-top: 10px;
}

.vehicle-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.vehicle-main-photo,
.empty-photo {
    width: 100%;
    min-height: 420px;
    border-radius: 18px;
    object-fit: cover;
    background: var(--panel-soft);
}

.empty-photo {
    display: grid;
    place-items: center;
    color: var(--muted);
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.photo-strip img {
    width: 100%;
    height: 110px;
    border-radius: 12px;
    object-fit: cover;
}

.vehicle-summary h1 {
    margin-top: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
}

.price {
    display: block;
    margin: 20px 0;
    color: var(--brand);
    font-size: 1.5rem;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.detail-list div {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel-soft);
}

.detail-list span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.detail-list strong {
    display: block;
    margin-top: 4px;
}

.date-ranges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.date-ranges span {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--muted);
}

.reservation-context,
.availability-note {
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel-soft);
}

.reservation-context h2,
.availability-note h2 {
    margin-top: 0;
}

.site-footer {
    color: var(--muted);
    padding: 28px 0;
}

@media (max-width: 700px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .hero {
        padding: 32px 24px;
    }

    .vehicle-detail {
        grid-template-columns: 1fr;
    }

    .vehicle-main-photo,
    .empty-photo {
        min-height: 260px;
    }
}

/* Cosmic Rental brand refresh */
:root {
    --bg: #030408;
    --panel: rgba(12, 15, 28, 0.82);
    --panel-soft: rgba(21, 27, 49, 0.82);
    --text: #f9fbff;
    --muted: #aeb8d4;
    --brand: #28c8ff;
    --brand-strong: #8f4dff;
    --brand-hot: #ff37d2;
    --border: rgba(141, 157, 255, 0.22);
    --danger: #ff9aa8;
    --success: #74f6c7;
    --glow-blue: rgba(40, 200, 255, 0.28);
    --glow-purple: rgba(143, 77, 255, 0.32);
    --glow-pink: rgba(255, 55, 210, 0.22);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 12%, var(--glow-blue), transparent 28rem),
        radial-gradient(circle at 82% 18%, var(--glow-purple), transparent 30rem),
        radial-gradient(circle at 70% 82%, var(--glow-pink), transparent 28rem),
        linear-gradient(180deg, #02030a 0%, #070815 42%, #030408 100%);
    color: var(--text);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(120, 205, 255, 0.55) 0 1px, transparent 1.5px);
    background-position: 0 0, 42px 64px;
    background-size: 130px 130px, 180px 180px;
    opacity: 0.18;
}

main {
    padding-top: 24px;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 10;
    margin-top: 14px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(3, 4, 8, 0.72);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand img {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 28px var(--glow-blue), 0 0 42px var(--glow-purple);
}

.brand span {
    font-size: 0.92rem;
}

nav {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

nav a,
.admin-bar a {
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--muted);
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

nav a:hover,
.admin-bar a:hover {
    background: rgba(40, 200, 255, 0.12);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(40, 200, 255, 0.18);
}

.menu-toggle {
    align-items: center;
    column-gap: 8px;
    grid-template-columns: 18px auto;
    grid-template-rows: repeat(3, 4px);
    min-height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.menu-toggle span {
    display: block;
    grid-column: 1;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: white;
}

.menu-toggle span + span {
    margin-left: 0;
}

.menu-toggle span:nth-child(1) {
    grid-row: 1;
}

.menu-toggle span:nth-child(2) {
    grid-row: 2;
    transform: none;
}

.menu-toggle span:nth-child(3) {
    grid-row: 3;
    transform: none;
}

.menu-toggle strong {
    grid-column: 2;
    grid-row: 1 / 4;
    font-size: 0.82rem;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-color: rgba(127, 103, 255, 0.34);
    background:
        linear-gradient(90deg, rgba(3, 4, 8, 0.8), rgba(3, 4, 8, 0.36)),
        radial-gradient(circle at 73% 32%, rgba(255, 55, 210, 0.22), transparent 19rem),
        radial-gradient(circle at 30% 72%, rgba(40, 200, 255, 0.28), transparent 22rem),
        url("/logo/logo.jpeg") right 7% center / min(44vw, 460px) auto no-repeat,
        linear-gradient(135deg, rgba(10, 12, 26, 0.96), rgba(23, 12, 42, 0.88));
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.48);
}

.hero::after {
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 460px;
    height: 460px;
    border: 1px solid rgba(40, 200, 255, 0.28);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 80px rgba(143, 77, 255, 0.42), inset 0 0 50px rgba(40, 200, 255, 0.12);
}

.hero > div {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero h1,
.vehicle-summary h1 {
    letter-spacing: -0.07em;
    text-shadow: 0 0 34px rgba(143, 77, 255, 0.28);
}

.hero p {
    color: #d8def2;
}

.eyebrow {
    color: var(--brand);
    text-shadow: 0 0 18px rgba(40, 200, 255, 0.6);
}

.button,
button {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong) 52%, var(--brand-hot));
    box-shadow: 0 12px 34px rgba(143, 77, 255, 0.28);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button:hover,
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 44px rgba(143, 77, 255, 0.38);
    filter: brightness(1.07);
}

.button.ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(40, 200, 255, 0.32);
    box-shadow: inset 0 0 0 1px rgba(143, 77, 255, 0.14);
}

.button.danger {
    background: linear-gradient(135deg, #ff416c, #8f1d3f);
}

.panel,
.card,
.admin-bar,
.stat {
    border-color: var(--border);
    background: linear-gradient(180deg, rgba(17, 21, 40, 0.84), rgba(7, 9, 19, 0.82));
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
}

.card {
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(40, 200, 255, 0.42);
    box-shadow: 0 22px 84px rgba(40, 200, 255, 0.12), 0 18px 70px rgba(0, 0, 0, 0.34);
}

.car-image,
.empty-photo,
.photo-grid figure,
.detail-list div,
.date-ranges span,
.reservation-context,
.availability-note {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
        rgba(13, 18, 35, 0.88);
    border-color: rgba(141, 157, 255, 0.2);
}

input,
select,
textarea {
    border-color: rgba(141, 157, 255, 0.26);
    background: rgba(4, 7, 17, 0.74);
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(40, 200, 255, 0.72);
    box-shadow: 0 0 0 4px rgba(40, 200, 255, 0.12);
}

th {
    color: #dfe6ff;
}

td {
    color: #edf2ff;
}

.badge {
    background: rgba(40, 200, 255, 0.11);
    color: #bfefff;
    box-shadow: inset 0 0 0 1px rgba(40, 200, 255, 0.18);
}

.flash {
    border: 1px solid var(--border);
    background: rgba(5, 8, 18, 0.88);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.booking-calendar-wrap {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(8, 11, 24, 0.72);
}

.calendar-help {
    margin: 0;
    color: var(--muted);
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.calendar-legend span::before {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    content: "";
}

.available-dot::before {
    background: #46f1a8;
    box-shadow: 0 0 14px rgba(70, 241, 168, 0.7);
}

.offer-dot::before {
    background: #ffd166;
    box-shadow: 0 0 14px rgba(255, 209, 102, 0.8);
}

.unavailable-dot::before {
    background: #ff4d6d;
    box-shadow: 0 0 14px rgba(255, 77, 109, 0.7);
}

.calendar-empty {
    padding: 24px;
    border: 1px dashed rgba(141, 157, 255, 0.35);
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
}

.calendar-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

.calendar-months {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.calendar-month {
    padding: 16px;
    border: 1px solid rgba(141, 157, 255, 0.2);
    border-radius: 18px;
    background: rgba(3, 5, 13, 0.56);
}

.calendar-month h3 {
    margin: 0 0 14px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
}

.calendar-weekday {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.calendar-blank {
    min-height: 42px;
}

.calendar-day {
    min-width: 0;
    min-height: 42px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    font-weight: 800;
}

.calendar-day:hover {
    transform: translateY(-1px);
}

.calendar-day.is-available {
    border-color: rgba(70, 241, 168, 0.34);
    background: rgba(70, 241, 168, 0.12);
    color: #c8ffe7;
}

.calendar-day.is-offer {
    border-color: rgba(255, 209, 102, 0.75);
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.34), transparent 18px),
        linear-gradient(135deg, rgba(255, 224, 130, 0.34), rgba(255, 158, 43, 0.18));
    color: #fff4c2;
    box-shadow: inset 0 0 0 1px rgba(255, 244, 194, 0.16), 0 0 18px rgba(255, 209, 102, 0.2);
}

.calendar-day.is-unavailable {
    border-color: rgba(255, 77, 109, 0.4);
    background: rgba(255, 77, 109, 0.16);
    color: #ffc5cf;
    cursor: not-allowed;
    opacity: 0.85;
}

.calendar-day.is-past {
    color: rgba(174, 184, 212, 0.38);
    cursor: not-allowed;
    opacity: 0.45;
}

.calendar-day.is-selected {
    border-color: rgba(40, 200, 255, 0.9);
    background: linear-gradient(135deg, var(--brand), var(--brand-strong), var(--brand-hot));
    color: white;
    box-shadow: 0 0 24px rgba(143, 77, 255, 0.42);
}

.calendar-day.is-in-range {
    border-color: rgba(40, 200, 255, 0.44);
    background: rgba(40, 200, 255, 0.18);
    color: #e8f9ff;
}

.selected-range {
    margin: 14px 0 0;
    color: #dbe8ff;
    font-weight: 800;
}

.instant-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 24px;
    background:
        linear-gradient(90deg, rgba(3, 4, 8, 0.82), rgba(3, 4, 8, 0.44)),
        radial-gradient(circle at 73% 32%, rgba(255, 55, 210, 0.22), transparent 19rem),
        radial-gradient(circle at 30% 72%, rgba(40, 200, 255, 0.28), transparent 22rem),
        url("/logo/logo.jpeg") right 42px bottom 34px / min(34vw, 360px) auto no-repeat,
        linear-gradient(135deg, rgba(10, 12, 26, 0.96), rgba(23, 12, 42, 0.88));
}

.quick-reserve {
    position: relative;
    z-index: 2;
    align-self: center;
}

.quick-reserve h2 {
    margin-top: 0;
}

.quick-reserve a {
    display: inline-block;
    margin-top: 12px;
    color: var(--brand);
    text-decoration: none;
}

.offer-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.offer-card {
    position: relative;
    overflow: hidden;
}

.offer-media {
    position: relative;
    display: grid;
    min-height: 210px;
    place-items: center;
    margin: -8px -8px 18px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--panel-soft);
}

.offer-media img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.offer-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
    padding: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe66d, #ff4fd8 48%, #6d5dff);
    color: #fff;
    font-size: 1rem;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
    transform: rotate(8deg);
    box-shadow: 0 0 38px rgba(255, 79, 216, 0.5);
}

.price-estimate {
    margin-top: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(70, 241, 168, 0.3);
    border-radius: 14px;
    background: rgba(70, 241, 168, 0.1);
    color: #d7ffe9;
    font-weight: 900;
}

.price-estimate.is-error {
    border-color: rgba(255, 77, 109, 0.42);
    background: rgba(255, 77, 109, 0.12);
    color: #ffd1d8;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-top: 1px solid rgba(141, 157, 255, 0.16);
    text-align: center;
}

.site-footer img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.92;
    box-shadow: 0 0 22px var(--glow-purple);
}

@media (max-width: 900px) {
    .hero {
        background:
            linear-gradient(180deg, rgba(3, 4, 8, 0.55), rgba(3, 4, 8, 0.94)),
            url("/logo/logo.jpeg") center 12% / min(72vw, 340px) auto no-repeat,
            linear-gradient(135deg, rgba(10, 12, 26, 0.96), rgba(23, 12, 42, 0.88));
        padding-top: 260px;
    }

    .instant-hero {
        grid-template-columns: 1fr;
        background:
            linear-gradient(180deg, rgba(3, 4, 8, 0.38), rgba(3, 4, 8, 0.96)),
            url("/logo/logo.jpeg") center 32px / min(72vw, 300px) auto no-repeat,
            linear-gradient(135deg, rgba(10, 12, 26, 0.96), rgba(23, 12, 42, 0.88));
    }
}

@media (max-width: 700px) {
    .site-header {
        position: static;
        border-radius: 24px;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    .brand img {
        width: 52px;
        height: 52px;
    }

    .calendar-months {
        grid-template-columns: 1fr;
    }

    .calendar-controls {
        justify-content: stretch;
    }

    .calendar-controls .button {
        flex: 1;
    }
}

/* Final responsive polish */
@media (max-width: 1100px) {
    main,
    .site-header,
    .site-footer,
    .flash {
        width: min(100% - 24px, 960px);
    }

    .vehicle-detail,
    .instant-hero {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    main {
        width: min(100% - 20px, 720px);
        padding: 18px 0 40px;
    }

    .site-header {
        position: static;
        width: min(100% - 20px, 720px);
        margin-top: 10px;
        padding: 14px;
        border-radius: 24px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .brand {
        width: auto;
        justify-content: flex-start;
        text-align: center;
    }

    .brand span {
        font-size: 0.82rem;
    }

    .menu-toggle {
        display: inline-grid;
        margin-left: auto;
        grid-column: 2;
        grid-row: 1;
    }

    .site-nav {
        display: none;
        width: 100%;
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 6px;
        margin-top: 10px;
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a {
        padding: 10px 8px;
        font-size: 0.86rem;
        text-align: center;
    }

    .admin-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px;
    }

    .admin-bar strong,
    .admin-bar form {
        grid-column: 1 / -1;
    }

    .admin-bar a,
    .admin-bar button {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 245px 20px 24px;
        border-radius: 24px;
        background:
            linear-gradient(180deg, rgba(3, 4, 8, 0.38), rgba(3, 4, 8, 0.96)),
            url("/logo/logo.jpeg") center 30px / min(76vw, 270px) auto no-repeat,
            linear-gradient(135deg, rgba(10, 12, 26, 0.96), rgba(23, 12, 42, 0.88));
    }

    .hero h1 {
        font-size: clamp(2.2rem, 14vw, 3.8rem);
        letter-spacing: -0.06em;
    }

    .hero p {
        font-size: 1rem;
    }

    .panel,
    .card,
    .admin-bar {
        padding: 18px;
        border-radius: 20px;
    }

    .section-heading,
    .section-heading.compact {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .section-heading h1,
    .section-heading h2 {
        margin-bottom: 0;
    }

    .actions,
    .inline-form {
        align-items: stretch;
        flex-direction: column;
    }

    .actions .button,
    .inline-form .button,
    .form .button,
    button {
        width: 100%;
    }

    .cards,
    .offer-grid,
    .stats,
    .grid-form,
    .detail-list {
        grid-template-columns: 1fr;
    }

    .car-image {
        min-height: 190px;
    }

    .car-image img,
    .offer-media img {
        height: 210px;
    }

    .offer-badge {
        width: 92px;
        height: 92px;
        font-size: 0.86rem;
    }

    .vehicle-main-photo,
    .empty-photo {
        min-height: 260px;
    }

    .photo-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-calendar-wrap {
        padding: 12px;
    }

    .calendar-legend {
        width: 100%;
        justify-content: flex-start;
    }

    .calendar-months {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .calendar-month {
        padding: 10px;
    }

    .calendar-grid {
        gap: 4px;
    }

    .calendar-day,
    .calendar-blank {
        min-height: 38px;
        border-radius: 10px;
        font-size: 0.9rem;
    }

    .calendar-controls {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .table-wrap {
        margin: 0 -8px;
        padding: 0 8px;
    }

    .table-wrap table {
        min-width: 0;
    }

    .table-wrap table,
    .table-wrap thead,
    .table-wrap tbody,
    .table-wrap tr,
    .table-wrap th,
    .table-wrap td {
        display: block;
    }

    .table-wrap thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .table-wrap tbody {
        display: grid;
        gap: 14px;
    }

    .table-wrap tr {
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: var(--panel-soft);
    }

    .table-wrap td {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(141, 157, 255, 0.16);
    }

    .table-wrap td:last-child {
        border-bottom: 0;
    }

    .table-wrap td::before {
        display: block;
        margin-bottom: 6px;
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        content: attr(data-label);
    }

    .table-wrap td[colspan]::before {
        display: none;
    }

    .task-card {
        display: grid;
    }

    .task-actions {
        justify-content: flex-start;
        min-width: 0;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        align-items: center;
        flex-direction: column;
        width: min(100% - 20px, 720px);
        padding: 22px 0;
    }
}

@media (max-width: 430px) {
    .brand {
        gap: 8px;
    }

    .brand img {
        width: 46px;
        height: 46px;
    }

    .site-nav {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 215px;
        background-size: auto, min(78vw, 235px) auto, auto;
    }

    .calendar-weekday {
        font-size: 0.64rem;
    }

    .calendar-day,
    .calendar-blank {
        min-height: 34px;
        font-size: 0.82rem;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }
}
