:root {
    --bg: #f4efe7;
    --bg-secondary: #fffaf2;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #ffffff;
    --surface-dark: #12222c;
    --text: #13232d;
    --muted: #5d6c76;
    --line: rgba(19, 35, 45, 0.1);
    --brand: #df6d2d;
    --brand-deep: #b34a14;
    --accent: #0c7c72;
    --accent-soft: #d9f2ee;
    --warning-soft: #fff0da;
    --success-soft: #dff6e8;
    --shadow-sm: 0 16px 40px rgba(18, 34, 44, 0.08);
    --shadow-lg: 0 28px 70px rgba(18, 34, 44, 0.14);
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 36px;
    --transition: 220ms ease;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(223, 109, 45, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(12, 124, 114, 0.15), transparent 22%),
        linear-gradient(180deg, #f8f4ed 0%, #f2ece4 55%, #efe7dd 100%);
}

a {
    color: var(--brand-deep);
    text-decoration: none;
}

a:hover {
    color: var(--brand);
}

.site-main {
    position: relative;
}

.page-container {
    padding-top: 2rem;
}

.site-navbar {
    padding: 1rem 0;
    background: rgba(8, 22, 30, 0.82) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-navbar.is-scrolled {
    padding: 0.7rem 0;
    background: rgba(8, 22, 30, 0.94) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.navbar-brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: #fff;
}

.navbar-brand:hover,
.footer-brand:hover {
    color: #fff;
}

.navbar-brand strong,
.footer-brand strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.navbar-brand small,
.footer-brand small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.brand-mark {
    width: 2.8rem;
    height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand), #ffb36c);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-link {
    color: rgba(255, 255, 255, 0.78) !important;
    font-weight: 600;
    padding: 0.55rem 0.85rem !important;
    border-radius: 999px;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.09);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 0.92rem;
}

.btn {
    border-radius: 14px;
    font-weight: 700;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-brand,
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #f08a34);
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(223, 109, 45, 0.22);
}

.btn-brand:hover,
.btn-primary:hover,
.btn-brand:focus,
.btn-primary:focus {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-deep), var(--brand));
    border-color: transparent;
}

.btn-dark {
    background: linear-gradient(135deg, #12222c, #29414e);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(18, 34, 44, 0.22);
}

.btn-outline-light,
.btn-outline-primary {
    border-width: 1.5px;
}

.btn-outline-primary {
    color: var(--brand-deep);
    border-color: rgba(179, 74, 20, 0.28);
    background: rgba(255, 255, 255, 0.7);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), #f08a34);
}

.card,
.glass-panel,
.surface-panel {
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--radius-md);
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.card {
    overflow: hidden;
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 !important;
    font-weight: 700;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 3.2rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #12222c 0%, #20414f 45%, #0c7c72 100%);
    box-shadow: var(--shadow-lg);
}

.hero-section::after {
    content: '';
    position: absolute;
    right: -120px;
    top: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
}

.hero-badge,
.section-badge,
.stat-pill,
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-badge,
.section-badge {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.hero-title,
.display-title,
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
}

.hero-title {
    max-width: 12ch;
    font-size: clamp(2.6rem, 4vw, 4.6rem);
    line-height: 0.96;
    margin: 1rem 0;
}

.hero-copy,
.section-copy,
.muted-copy {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
    line-height: 1.75;
}

.hero-actions,
.hero-stats,
.feature-meta,
.filter-toolbar,
.quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-stat-card,
.feature-card,
.step-card,
.metric-card,
.dashboard-card {
    position: relative;
    height: 100%;
    padding: 1.4rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.hero-stat-card {
    min-height: 170px;
}

.hero-stat-card .eyebrow,
.metric-label,
.section-copy,
.table td.text-muted,
.form-hint,
.results-label {
    color: var(--muted) !important;
}

.stat-value,
.metric-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    line-height: 1;
    margin: 0.35rem 0 0.55rem;
}

.section-intro {
    max-width: 620px;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 0.75rem;
}

.feature-card,
.step-card,
.metric-card,
.dashboard-card,
.auth-panel,
.car-card,
.booking-card {
    border: 1px solid rgba(19, 35, 45, 0.08);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover,
.step-card:hover,
.metric-card:hover,
.dashboard-card:hover,
.car-card:hover,
.booking-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(223, 109, 45, 0.28);
}

.icon-tile {
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--warning-soft), rgba(255, 255, 255, 0.95));
    color: var(--brand-deep);
    font-size: 1.2rem;
}

.feature-card h5,
.step-card h5,
.dashboard-card h5,
.car-card h5,
.metric-card h6 {
    margin: 1rem 0 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.page-hero,
.page-banner,
.auth-hero,
.dashboard-hero {
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.6rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-sm);
}

.page-hero h1,
.page-hero h3,
.auth-hero h1,
.dashboard-hero h3 {
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.filter-toolbar {
    align-items: end;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
}

.filter-toolbar .form-control,
.filter-toolbar .form-select,
.form-control,
.form-select,
.form-check-input,
.input-group-text,
textarea.form-control {
    border-radius: 14px;
    border: 1px solid rgba(19, 35, 45, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.form-control,
.form-select,
textarea.form-control {
    padding: 0.85rem 0.95rem;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(223, 109, 45, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(223, 109, 45, 0.14) !important;
}

.form-label {
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.password-toggle {
    border-radius: 14px;
    border: 1px solid rgba(19, 35, 45, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.results-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(19, 35, 45, 0.08);
}

.car-card .card-header,
.booking-card .card-header {
    padding: 1.1rem 1.2rem;
    background: linear-gradient(135deg, #12222c, #23414e) !important;
}

.car-card .card-body,
.booking-card .card-body {
    padding: 1.35rem;
}

.car-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.meta-tile {
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    background: rgba(242, 236, 228, 0.75);
}

.meta-tile span {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
}

.meta-tile strong {
    display: block;
    margin-top: 0.25rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed rgba(19, 35, 45, 0.14);
}

.summary-card,
.notice-card,
.cta-strip {
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(19, 35, 45, 0.08);
    background: rgba(255, 255, 255, 0.74);
}

.notice-card.info {
    background: rgba(12, 124, 114, 0.09);
}

.notice-card.warning {
    background: rgba(223, 109, 45, 0.1);
}

.total-display,
.inline-stat {
    border-radius: 16px;
    border: 1px solid rgba(12, 124, 114, 0.14);
    background: var(--success-soft);
}

.auth-shell {
    max-width: 1120px;
    margin: 0 auto;
}

.auth-panel {
    padding: 1.8rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-sm);
}

.auth-side {
    height: 100%;
    padding: 2rem;
    border-radius: var(--radius-lg);
    color: #fff;
    background: linear-gradient(150deg, #12222c 0%, #20414f 42%, #df6d2d 100%);
    box-shadow: var(--shadow-lg);
}

.auth-side .section-copy {
    color: rgba(255, 255, 255, 0.82) !important;
}

.auth-points {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.auth-point {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.fleet-car-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(19, 35, 45, 0.08);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.fleet-car-card:hover {
    transform: translateY(-3px);
    border-color: rgba(223, 109, 45, 0.22);
    box-shadow: 0 20px 50px rgba(18, 34, 44, 0.12);
}

.fleet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(19, 35, 45, 0.08);
}

.fleet-car-info {
    flex: 1;
}

.fleet-car-model {
    margin: 0 0 0.35rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.fleet-car-number {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
}

.fleet-car-status {
    white-space: nowrap;
}

.fleet-car-status .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    padding: 0.5rem 0.7rem;
}

.fleet-card-specs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
    flex: 1;
}

.fleet-spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(242, 236, 228, 0.65);
}

.spec-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}

.spec-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.fleet-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), #f08a34);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 8px 20px rgba(223, 109, 45, 0.18);
}

.fleet-card-action:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(223, 109, 45, 0.24);
}

.booking-success-wrap {
    max-width: 940px;
    margin: 0 auto;
}

.booking-success-panel {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-lg);
}

.booking-success-head {
    text-align: center;
    margin-bottom: 1.6rem;
}

.success-icon-ring {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #0c7c72, #36b68e);
    box-shadow: 0 14px 34px rgba(12, 124, 114, 0.28);
}

.booking-success-head h1 {
    margin: 0.9rem 0 0.55rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.booking-success-head p {
    max-width: 60ch;
    margin: 0.2rem auto 0;
    color: var(--muted);
}

.booking-success-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.booking-info-card {
    padding: 1.35rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(19, 35, 45, 0.08);
    box-shadow: var(--shadow-sm);
}

.booking-info-card h5 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Space Grotesk', sans-serif;
}

.booking-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.82rem 0;
    border-bottom: 1px solid rgba(19, 35, 45, 0.08);
}

.booking-detail-row span {
    color: var(--muted);
}

.booking-detail-row strong {
    text-align: right;
}

.booking-detail-row.total {
    border-bottom: 0;
    margin-top: 0.35rem;
    padding: 0.95rem;
    border-radius: 14px;
    background: var(--success-soft);
}

.booking-detail-row.total strong {
    color: #0c7c72;
    font-size: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
}

.next-step-line {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 0;
    color: var(--text);
}

.next-step-line i {
    color: var(--brand-deep);
    margin-top: 0.15rem;
}

.booking-actions {
    margin-top: 1rem;
    display: grid;
    gap: 0.7rem;
}

.edit-shell {
    max-width: 1120px;
    margin: 0 auto;
}

.edit-side-panel {
    height: 100%;
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    color: #fff;
    background: linear-gradient(155deg, #12222c 0%, #203d4a 45%, #df6d2d 100%);
    box-shadow: var(--shadow-lg);
}

.edit-side-panel h2 {
    margin: 0.95rem 0 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.edit-side-panel p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.edit-side-summary {
    margin-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    display: grid;
    gap: 0.55rem;
}

.edit-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.edit-summary-row span {
    color: rgba(255, 255, 255, 0.78);
}

.edit-summary-row strong {
    text-align: right;
}

.edit-form-panel .card-header {
    border-radius: 16px;
}

.availability-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(242, 236, 228, 0.62);
    border: 1px solid rgba(19, 35, 45, 0.08);
}

.availability-toggle .form-check-input {
    width: 2.6em;
    height: 1.3em;
}

@media (max-width: 991.98px) {
    .edit-side-panel {
        padding: 1.45rem;
    }
}

@media (max-width: 767.98px) {
    .fleet-grid {
        grid-template-columns: 1fr;
    }

    .booking-success-panel {
        padding: 1.35rem;
    }

    .booking-success-grid {
        grid-template-columns: 1fr;
    }

    .success-icon-ring {
        width: 4.8rem;
        height: 4.8rem;
        font-size: 2rem;
    }

    .availability-toggle {
        flex-direction: column;
        align-items: flex-start;
    }
}

.quick-stats {
    margin-bottom: 1.5rem;
}

.metric-card {
    min-width: 180px;
}

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table thead th {
    background: #12222c;
    color: #fff;
    border-bottom: none;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
}

.table > :not(caption) > * > * {
    padding: 1rem 1rem;
    border-bottom-color: rgba(19, 35, 45, 0.08);
}

.badge {
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    font-weight: 700;
}

.site-footer {
    padding: 2.4rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.78);
    background: #0b171f;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-grid h6 {
    color: #fff;
    margin-bottom: 0.85rem;
    font-family: 'Space Grotesk', sans-serif;
}

.footer-grid a {
    display: block;
    margin-bottom: 0.55rem;
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid a:hover {
    color: #fff;
}

.footer-copy {
    max-width: 420px;
    margin: 1rem 0 0;
}

.footer-meta {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.92rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.is-hidden {
    display: none !important;
}

@media (max-width: 991.98px) {
    .page-container {
        padding-top: 1.35rem;
    }

    .hero-section {
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-meta {
        flex-direction: column;
    }

    .auth-side {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        max-width: none;
    }

    .hero-actions,
    .hero-stats,
    .filter-toolbar,
    .results-toolbar,
    .quick-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .car-meta-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        width: 100%;
    }
}