:root {
    --bg: #04080f;
    --bg-elevated: #0b1320;
    --surface: rgba(14, 22, 34, 0.88);
    --surface-solid: #101927;
    --card-border: rgba(72, 142, 214, 0.24);
    --primary: #1c9af7;
    --primary-strong: #0d63c7;
    --primary-soft: #9ed8ff;
    --accent: #d8343b;
    --accent-strong: #b81f2e;
    --success: #22c55e;
    --warning: #f59e0b;
    --text: #f5f8fc;
    --muted: #a8b5c5;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
    --radius: 22px;
    --radius-sm: 14px;
    --container: 1180px;
    --sidebar-width: 280px;
    --admin-sidebar-width: 260px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top center, rgba(28, 154, 247, 0.16), transparent 26%), radial-gradient(circle at top right, rgba(216, 52, 59, 0.08), transparent 20%), linear-gradient(180deg, #03060b 0%, #08111a 100%);
}

    body.menu-open {
        overflow: hidden;
    }

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 16px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: 10px;
    background: #ffffff;
    color: #111111;
    font-weight: 700;
    transition: top 0.2s ease;
}

    .skip-link:focus {
        top: 16px;
    }

.site-shell {
    min-height: 100vh;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 32px;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    height: 100vh;
    padding: 28px 20px;
    background: linear-gradient(180deg, rgba(10, 16, 27, 0.98), rgba(7, 11, 18, 0.98));
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    z-index: 1200;
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.28);
}

.sidebar-brand {
    margin-bottom: 30px;
}

.brand-image-link {
    display: block;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(158, 216, 255, 0.18);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

    .brand-image-link:hover,
    .brand-image-link:focus-visible {
        transform: translateY(-2px);
        border-color: rgba(62, 183, 255, 0.42);
        box-shadow: 0 22px 40px rgba(0, 0, 0, 0.34);
    }

.brand-image {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    object-position: center center;
}

.sidebar-nav,
.sidebar-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-footer-links {
    margin-top: auto;
    padding-top: 1rem;
}

    .sidebar-nav a,
    .sidebar-footer-links a {
        display: flex;
        align-items: center;
        min-height: 50px;
        padding: 0.95rem 1rem;
        border-radius: 16px;
        border: 1px solid rgba(114, 208, 255, 0.16);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text);
        font-weight: 700;
        transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    }

        .sidebar-nav a:hover,
        .sidebar-nav a:focus-visible,
        .sidebar-footer-links a:hover,
        .sidebar-footer-links a:focus-visible {
            transform: translateX(4px);
            border-color: rgba(62, 183, 255, 0.42);
            background: rgba(30, 125, 214, 0.16);
            box-shadow: inset 0 0 0 1px rgba(28, 154, 247, 0.08);
        }

.sidebar-nav .nav-cta {
    margin-top: 6px;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    border-color: rgba(207, 240, 255, 0.32);
    box-shadow: 0 14px 28px rgba(7, 95, 199, 0.28);
}

    .sidebar-nav .nav-cta:hover,
    .sidebar-nav .nav-cta:focus-visible {
        transform: translateY(-1px);
        background: linear-gradient(135deg, #39b8ff 0%, #0b73ea 100%);
        border-color: rgba(224, 246, 255, 0.56);
    }

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1400;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(114, 208, 255, 0.24);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.1);
    padding: 0;
    cursor: pointer;
}

    .mobile-menu-btn span {
        display: block;
        width: 22px;
        height: 2px;
        margin: 5px auto;
        border-radius: 999px;
        background: #fff;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .mobile-menu-btn[aria-expanded='true'] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-btn[aria-expanded='true'] span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn[aria-expanded='true'] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

.sidebar-overlay {
    display: none;
}

.container,
.narrow {
    width: 100%;
    max-width: var(--container);
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.narrow {
    max-width: 860px;
}

.section {
    padding: 4rem 0;
}

.section-sm {
    padding: 2.5rem 0;
}

.section-title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1;
}

.section-intro {
    max-width: 700px;
    margin: 0 0 2rem;
    color: var(--muted);
    line-height: 1.75;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--primary-soft);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 700;
}

.grid {
    display: grid;
    gap: 1.25rem;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.glass-card,
.admin-card,
.admin-summary-card {
    background: linear-gradient(180deg, rgba(17, 25, 39, 0.92), rgba(11, 17, 27, 0.92));
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    margin: 0.35rem 0 0.75rem;
    font-size: 1.35rem;
}

.text-muted {
    color: var(--muted);
    line-height: 1.75;
}

.text-danger {
    color: #ff9da8 !important;
    font-size: 0.95rem;
}

.button-row,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn,
.btn-primary,
a.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #fff;
    font-weight: 800;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
    cursor: pointer;
}

    .btn:hover,
    .btn:focus-visible,
    .btn-primary:hover,
    .btn-primary:focus-visible {
        transform: translateY(-1px);
    }

.btn-secondary,
a.btn-secondary,
button.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: rgba(114, 208, 255, 0.18);
    box-shadow: none;
}

    .btn-secondary:hover,
    .btn-secondary:focus-visible {
        background: rgba(30, 125, 214, 0.16);
    }

.btn-danger,
a.btn-danger,
button.btn-danger {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    border-color: rgba(255, 194, 198, 0.2);
    color: #fff;
}

.btn-sm {
    min-height: 40px;
    padding: 0 1rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.form-group,
.form-row {
    margin-bottom: 1rem;
}

    .form-label,
    .form-row label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .input-dark,
    textarea.input-dark,
    select.input-dark,
    .form-row input:not([type='checkbox']):not([type='radio']):not([type='file']),
    .form-row textarea,
    .form-row select,
    .form-group input:not([type='checkbox']):not([type='radio']):not([type='file']),
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 14px 16px;
        border-radius: 14px;
        border: 1px solid rgba(158, 216, 255, 0.12);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .form-row input[type='file'],
    .form-group input[type='file'] {
        width: 100%;
        padding: 12px 14px;
        border-radius: 14px;
        border: 1px dashed rgba(158, 216, 255, 0.2);
        background: rgba(255, 255, 255, 0.025);
        color: var(--muted);
    }

    .input-dark::placeholder,
    .form-row input::placeholder,
    .form-row textarea::placeholder,
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #7c91a8;
    }

    .input-dark:focus,
    textarea.input-dark:focus,
    select.input-dark:focus,
    .form-row input:focus,
    .form-row textarea:focus,
    .form-row select:focus,
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        outline: none;
        border-color: rgba(28, 154, 247, 0.55);
        box-shadow: 0 0 0 4px rgba(28, 154, 247, 0.12);
    }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-grid-full {
    grid-column: 1 / -1;
}

.validation-summary,
.admin-alert,
.success-banner {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(28, 154, 247, 0.18);
    background: rgba(28, 154, 247, 0.1);
}

    .validation-summary ul {
        margin: 0;
        padding-left: 1.2rem;
    }

.placeholder-block,
.empty-state {
    min-height: 220px;
    border: 1px dashed rgba(158, 216, 255, 0.28);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    place-items: center;
    color: var(--muted);
    text-align: center;
    padding: 1.5rem;
}

.empty-state {
    min-height: 180px;
}

.service-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(17, 25, 39, 0.95), rgba(11, 17, 27, 0.95));
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

    .service-card:hover {
        transform: translateY(-6px);
    }

.service-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .service-content h2 {
        margin: 0;
        font-size: 1.35rem;
    }

    .service-content p {
        margin: 0;
        color: var(--muted);
        line-height: 1.7;
    }

.service-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.75rem;
}

    .service-footer span,
    .service-price,
    .service-detail-price {
        font-weight: 800;
        color: var(--primary-soft);
    }

.service-detail-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
}

.service-detail-price {
    font-size: 1.4rem;
    margin: 1rem 0;
}

.testimonial-text {
    margin: 0 0 1rem;
    line-height: 1.8;
    color: var(--muted);
}

.testimonial-name {
    margin: 0;
    font-weight: 700;
}

.quote-layout {
    align-items: start;
}

.quote-copy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.quote-info-card {
    background: linear-gradient(180deg, rgba(21, 31, 49, 0.94), rgba(12, 19, 31, 0.94));
}

.quote-points {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.8;
}

    .quote-points li + li {
        margin-top: 0.5rem;
    }

.quote-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.quote-mini-label {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-soft);
    font-weight: 700;
}

.quote-mini-value {
    font-size: 1rem;
    color: var(--text);
}

.quote-form-card {
    background: linear-gradient(180deg, rgba(17, 25, 39, 0.96), rgba(10, 15, 24, 0.96));
}

.quote-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.site-header,
.dealer-header {
    position: sticky;
    top: 0;
    z-index: 900;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    background: rgba(4, 8, 15, 0.75);
    border-bottom: 1px solid var(--line);
}

.dealer-nav-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand,
.dealer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.dealer-brand-mark {
    width: 14px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 0 30px rgba(28, 154, 247, 0.25);
}

.dealer-brand-copy,
.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-top,
.brand-bottom {
    line-height: 1;
}

.brand-top {
    letter-spacing: 0.18em;
    font-size: 0.86rem;
    font-weight: 900;
}

.brand-bottom {
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-nav,
.dealer-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

    .site-nav > a,
    .dealer-nav > a,
    .nav-auth a,
    .dealer-nav-auth a {
        color: var(--muted);
        font-weight: 600;
    }

        .site-nav > a:hover,
        .dealer-nav > a:hover,
        .nav-auth a:hover,
        .dealer-nav-auth a:hover {
            color: var(--text);
        }

.nav-auth,
.dealer-nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0 0 0 0.4rem;
    padding: 0;
}

.nav-toggle,
.dealer-nav-toggle,
.nav-button {
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(114, 208, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    padding: 0;
}

    .nav-toggle span,
    .dealer-nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        margin: 5px auto;
        background: #fff;
    }

.site-footer,
.dealer-footer {
    margin-top: 2rem;
    padding: 3rem 0;
    border-top: 1px solid var(--line);
    background: rgba(4, 8, 15, 0.55);
}

.dealer-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1.5rem;
}

.dealer-footer-brand p,
.footer-list li {
    color: var(--muted);
    line-height: 1.75;
}

.dealer-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

    .dealer-footer-badges span {
        padding: 0.55rem 0.8rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(158, 216, 255, 0.16);
        color: var(--text);
        font-size: 0.88rem;
    }

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .footer-list li + li {
        margin-top: 0.55rem;
    }

.login-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.login-shell {
    position: relative;
    min-height: 100vh;
    padding: 2rem;
    display: grid;
    place-items: center;
}

.login-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(28, 154, 247, 0.18), transparent 20%), radial-gradient(circle at 85% 15%, rgba(216, 52, 59, 0.13), transparent 18%), radial-gradient(circle at 50% 100%, rgba(255,255,255,0.04), transparent 24%);
    pointer-events: none;
}

.login-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    width: min(100%, 1100px);
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 1.5rem;
    align-items: stretch;
}

.login-panel-single {
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
}

.login-brand,
.centered-card {
    padding: 2rem;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(11, 17, 27, 0.82), rgba(11, 17, 27, 0.64));
    border: 1px solid rgba(158, 216, 255, 0.1);
    box-shadow: var(--shadow);
}

    .login-brand h1,
    .centered-card h1 {
        margin: 0 0 0.75rem;
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .login-brand p,
    .centered-card p,
    .login-help p {
        color: var(--muted);
        line-height: 1.8;
    }

.login-home-link {
    display: inline-block;
    margin-bottom: 1.25rem;
    color: var(--primary-soft);
    font-weight: 700;
}

.login-card {
    padding: 1.8rem;
}

.login-actions-center {
    justify-content: center;
}

.remember-row {
    display: flex;
    align-items: center;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--muted);
}

/* =========================
   PREMIUM ADMIN EXPERIENCE
   ========================= */

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
    gap: 0;
    background: radial-gradient(circle at top left, rgba(28, 154, 247, 0.08), transparent 22%), radial-gradient(circle at top right, rgba(216, 52, 59, 0.06), transparent 18%), linear-gradient(180deg, rgba(4, 8, 15, 0.98), rgba(7, 11, 18, 0.98));
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1.5rem 1rem;
    background: linear-gradient(180deg, rgba(8, 13, 22, 0.98), rgba(6, 10, 17, 0.98));
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 14px 0 34px rgba(0, 0, 0, 0.34);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    overflow-y: auto;
}

    .admin-sidebar h2 {
        margin: 0 0 1.25rem;
        padding: 0 0.35rem;
        font-size: 1.2rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        color: var(--text);
    }

    .admin-sidebar a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0.9rem 1rem;
        margin-bottom: 0.65rem;
        border-radius: 16px;
        border: 1px solid rgba(114, 208, 255, 0.12);
        background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
        color: var(--text);
        font-weight: 700;
        transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    }

        .admin-sidebar a:hover,
        .admin-sidebar a:focus-visible {
            transform: translateX(4px);
            border-color: rgba(62, 183, 255, 0.34);
            background: linear-gradient(180deg, rgba(28, 154, 247, 0.16), rgba(28, 154, 247, 0.08));
            box-shadow: inset 0 0 0 1px rgba(158, 216, 255, 0.08);
        }

    .admin-sidebar hr {
        border: 0;
        border-top: 1px solid var(--line);
        margin: 1rem 0;
    }

    .admin-sidebar form {
        margin-top: 1rem;
    }

.admin-main {
    padding: 2rem;
    min-width: 0;
}

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

    .admin-page-header h1 {
        margin: 0.15rem 0 0.45rem;
        font-size: clamp(2rem, 4vw, 2.75rem);
        line-height: 1;
        letter-spacing: -0.03em;
    }

.admin-page-subtitle {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 1rem;
}

.admin-eyebrow {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: var(--primary-soft);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
    font-weight: 800;
}

.admin-card,
.admin-panel,
.admin-summary-card,
.admin-stat-card,
.admin-pipeline-card,
.admin-kpi-box,
.quote-summary-card,
.quote-list-panel {
    position: relative;
    background: linear-gradient(180deg, rgba(16, 25, 39, 0.96), rgba(10, 16, 27, 0.94));
    border: 1px solid rgba(114, 208, 255, 0.12);
    border-radius: 22px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.035);
    overflow: hidden;
}

    .admin-card::before,
    .admin-panel::before,
    .admin-summary-card::before,
    .admin-stat-card::before,
    .admin-pipeline-card::before,
    .admin-kpi-box::before,
    .quote-summary-card::before,
    .quote-list-panel::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(158, 216, 255, 0.26), transparent);
        pointer-events: none;
    }

.admin-panel,
.admin-card,
.quote-list-panel {
    padding: 1.4rem;
}

.admin-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

    .admin-panel-header h2 {
        margin: 0.15rem 0 0;
        font-size: 1.45rem;
        letter-spacing: -0.02em;
    }

.admin-stats-grid,
.admin-summary-grid,
.quote-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card,
.admin-summary-card,
.quote-summary-card {
    padding: 1.15rem 1.15rem 1.1rem;
    min-width: 0;
}

.admin-stat-label,
.quote-summary-label {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.admin-stat-value,
.admin-summary-card h2,
.admin-summary-card h3,
.quote-summary-value {
    display: block;
    margin: 0;
    font-size: clamp(1.7rem, 2vw, 2.2rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.admin-help,
.quote-summary-help {
    margin: 0.55rem 0 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.94rem;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 1.25rem;
    align-items: stretch;
}

.admin-definition-list {
    display: grid;
    gap: 1rem;
    margin: 0;
}

    .admin-definition-list > div {
        padding: 1rem 1.05rem;
        border-radius: 18px;
        background: rgba(255,255,255,0.025);
        border: 1px solid rgba(158, 216, 255, 0.08);
    }

    .admin-definition-list dt {
        margin: 0 0 0.45rem;
        color: var(--primary-soft);
        font-size: 0.76rem;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        font-weight: 800;
    }

    .admin-definition-list dd {
        margin: 0;
        color: var(--text);
        word-break: break-word;
        line-height: 1.6;
    }

.admin-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.95rem;
    margin-top: 0.35rem;
}

.admin-pipeline-card {
    padding: 1rem;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
}

    .admin-pipeline-card strong {
        font-size: 2rem;
        line-height: 1;
        letter-spacing: -0.04em;
        color: #ffffff;
    }

.admin-kpi-row,
.admin-kpi-row-wide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.admin-kpi-box {
    padding: 1rem 1.05rem;
    min-width: 0;
    background: linear-gradient(180deg, rgba(28,154,247,0.10), rgba(255,255,255,0.02));
}

    .admin-kpi-box span {
        display: block;
        margin-bottom: 0.45rem;
        color: var(--muted);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        font-weight: 800;
    }

    .admin-kpi-box strong {
        font-size: 1.7rem;
        line-height: 1;
        letter-spacing: -0.03em;
        color: #ffffff;
    }

.admin-actions-row,
.admin-toolbar,
.quote-toolbar,
.admin-filter-actions,
.quote-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.admin-btn,
.admin-btn-primary,
.admin-btn-secondary,
.admin-link-button,
.quote-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid rgba(114, 208, 255, 0.16);
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}

    .admin-btn:hover,
    .admin-btn-primary:hover,
    .admin-btn-secondary:hover,
    .admin-link-button:hover,
    .quote-link-button:hover,
    .admin-btn:focus-visible,
    .admin-btn-primary:focus-visible,
    .admin-btn-secondary:focus-visible,
    .admin-link-button:focus-visible,
    .quote-link-button:focus-visible {
        transform: translateY(-1px);
    }

.admin-btn-primary,
.quote-action-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    border-color: rgba(209, 239, 255, 0.22);
    box-shadow: 0 14px 28px rgba(7, 95, 199, 0.22);
}

.admin-btn-secondary,
.admin-link-button,
.quote-link-button {
    color: var(--text);
    background: rgba(255,255,255,0.04);
}

.admin-link-button,
.quote-link-button {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
}

.quote-action-success {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.24);
    color: #dcffe8;
}

.quote-action-warning {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.24);
    color: #fff1ce;
}

.admin-link {
    color: var(--primary-soft);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.18s ease, opacity 0.18s ease;
}

    .admin-link:hover,
    .admin-link:focus-visible {
        color: #d8efff;
        text-decoration: underline;
    }

.admin-muted,
.quote-secondary,
.quote-timestamp,
.quote-notes-preview,
.quote-summary-help {
    color: var(--muted);
}

.admin-upload-preview {
    width: 100%;
    max-width: 320px;
    border-radius: 18px;
    border: 1px solid rgba(158, 216, 255, 0.16);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
    margin-top: 0.7rem;
}

.admin-table-wrap,
.quote-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 20px;
    border: 1px solid rgba(158, 216, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}

    .admin-table-wrap::-webkit-scrollbar,
    .quote-table-wrap::-webkit-scrollbar {
        height: 10px;
    }

    .admin-table-wrap::-webkit-scrollbar-thumb,
    .quote-table-wrap::-webkit-scrollbar-thumb {
        background: rgba(158, 216, 255, 0.22);
        border-radius: 999px;
    }

.admin-table,
.quote-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    border: 0;
}

.quote-table {
    min-width: 1250px;
}

    .admin-table thead th,
    .quote-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        text-align: left;
        padding: 1rem 0.95rem;
        color: var(--primary-soft);
        font-size: 0.8rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        background: rgba(10, 16, 27, 0.94);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        white-space: nowrap;
    }

    .admin-table tbody td,
    .quote-table tbody td {
        padding: 1rem 0.95rem;
        vertical-align: top;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        color: var(--text);
        word-break: break-word;
    }

    .admin-table tbody tr,
    .quote-table tbody tr {
        transition: background 0.18s ease;
    }

        .admin-table tbody tr:hover,
        .quote-table tbody tr:hover {
            background: rgba(255, 255, 255, 0.025);
        }

.admin-table tbody td:nth-child(1) {
    min-width: 220px;
}

.admin-table tbody td:nth-child(2) {
    min-width: 140px;
}

.admin-table tbody td:nth-child(3) {
    min-width: 160px;
}

.admin-table tbody td:nth-child(4) {
    min-width: 110px;
}

.admin-table tbody td:nth-child(5) {
    min-width: 130px;
}

.admin-table tbody td:nth-child(6) {
    max-width: 260px;
    min-width: 220px;
}

.admin-table tbody td:nth-child(7) {
    min-width: 240px;
}

.quote-table tbody td:nth-child(1) {
    min-width: 240px;
}

.quote-table tbody td:nth-child(2) {
    min-width: 150px;
}

.quote-table tbody td:nth-child(3) {
    min-width: 180px;
}

.quote-table tbody td:nth-child(4) {
    min-width: 120px;
}

.quote-table tbody td:nth-child(5) {
    min-width: 150px;
}

.quote-table tbody td:nth-child(6) {
    min-width: 240px;
    max-width: 300px;
}

.quote-table tbody td:nth-child(7) {
    min-width: 180px;
}

.quote-table tbody td:nth-child(8) {
    min-width: 260px;
}

.admin-actions,
.quote-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 210px;
}

    .admin-actions a,
    .admin-actions button,
    .quote-actions a,
    .quote-actions button {
        white-space: nowrap;
    }

.admin-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.admin-status-new {
    color: #dff1ff;
    background: rgba(28, 154, 247, 0.15);
    border-color: rgba(28, 154, 247, 0.28);
}

.admin-status-contacted {
    color: #fff1ce;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.28);
}

.admin-status-booked {
    color: #dcffe8;
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.26);
}

.admin-status-completed {
    color: #d9fff1;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.28);
}

.admin-status-closed {
    color: #e7eef8;
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.24);
}

.empty-state,
.quote-empty-state {
    min-height: 220px;
    border: 1px dashed rgba(158, 216, 255, 0.20);
    border-radius: 22px;
    background: rgba(255,255,255,0.025);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2rem;
}

    .empty-state h2,
    .quote-empty-state h3 {
        margin: 0 0 0.45rem;
    }

    .empty-state p,
    .quote-empty-state p {
        margin: 0;
        color: var(--muted);
        line-height: 1.7;
    }

.page-shell {
    width: min(calc(100% - 2rem), 1080px);
    margin: 0 auto;
}

/* =========================
   QUOTE REQUESTS / CRM
   ========================= */

.admin-toolbar,
.quote-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-toolbar-left,
.quote-toolbar-left,
.admin-toolbar-right,
.quote-toolbar-right {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.admin-filter-bar,
.quote-filter-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(114, 208, 255, 0.12);
    background: linear-gradient(180deg, rgba(16, 25, 39, 0.96), rgba(10, 16, 27, 0.94));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.035);
}

.admin-filter-group,
.quote-filter-group {
    min-width: 0;
}

    .admin-filter-group label,
    .quote-filter-group label {
        display: block;
        margin-bottom: 0.45rem;
        color: var(--primary-soft);
        font-size: 0.76rem;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        font-weight: 800;
    }

    .admin-filter-group input,
    .admin-filter-group select,
    .admin-filter-group textarea,
    .quote-filter-group input,
    .quote-filter-group select,
    .quote-filter-group textarea,
    .admin-search-input,
    .quote-search-input {
        width: 100%;
        min-height: 46px;
        padding: 0.85rem 0.95rem;
        border-radius: 14px;
        border: 1px solid rgba(158, 216, 255, 0.12);
        background: rgba(255,255,255,0.03);
        color: var(--text);
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

        .admin-filter-group input::placeholder,
        .quote-filter-group input::placeholder,
        .admin-search-input::placeholder,
        .quote-search-input::placeholder {
            color: #7c91a8;
        }

        .admin-filter-group input:focus,
        .admin-filter-group select:focus,
        .admin-filter-group textarea:focus,
        .quote-filter-group input:focus,
        .quote-filter-group select:focus,
        .quote-filter-group textarea:focus,
        .admin-search-input:focus,
        .quote-search-input:focus {
            outline: none;
            border-color: rgba(28, 154, 247, 0.55);
            box-shadow: 0 0 0 4px rgba(28, 154, 247, 0.12);
            background: rgba(255,255,255,0.045);
        }

.admin-chip-row,
.quote-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.admin-chip,
.quote-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 36px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(114, 208, 255, 0.14);
    background: rgba(255,255,255,0.035);
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 700;
}

    .admin-chip strong,
    .quote-chip strong {
        color: var(--primary-soft);
        font-weight: 800;
    }

.quote-list-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .quote-list-header h2 {
        margin: 0.15rem 0 0;
        font-size: 1.4rem;
        letter-spacing: -0.02em;
    }

.quote-list-subtitle {
    margin: 0.35rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.quote-customer {
    display: grid;
    gap: 0.35rem;
}

    .quote-customer strong {
        font-size: 1rem;
        color: #ffffff;
    }

.quote-notes-preview {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quote-vehicle,
.quote-service {
    color: var(--text);
    line-height: 1.6;
}

.quote-inline-form {
    display: inline;
    margin: 0;
}

.quote-pagination,
.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.quote-pagination-links,
.admin-pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quote-page-link,
.admin-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(114, 208, 255, 0.14);
    background: rgba(255,255,255,0.035);
    color: var(--text);
    font-weight: 800;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

    .quote-page-link:hover,
    .quote-page-link:focus-visible,
    .admin-page-link:hover,
    .admin-page-link:focus-visible {
        transform: translateY(-1px);
        border-color: rgba(62, 183, 255, 0.34);
        background: rgba(28,154,247,0.12);
    }

    .quote-page-link.is-active,
    .admin-page-link.is-active {
        color: #fff;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
        border-color: rgba(209, 239, 255, 0.22);
    }

.quote-mobile-list {
    display: none;
}

.quote-mobile-card {
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(114, 208, 255, 0.12);
    background: linear-gradient(180deg, rgba(16, 25, 39, 0.96), rgba(10, 16, 27, 0.94));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.035);
}

    .quote-mobile-card + .quote-mobile-card {
        margin-top: 0.85rem;
    }

/* ===== FIX SELECT DROPDOWN (REQUEST QUOTE PAGE) ===== */

select,
.form-group select,
.form-row select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(158, 216, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

    select option {
        background-color: #0b1320;
        color: #ffffff;
    }

    select:focus {
        outline: none;
        border-color: rgba(28, 154, 247, 0.55);
        box-shadow: 0 0 0 4px rgba(28, 154, 247, 0.12);
    }

select {
    background-image: linear-gradient(45deg, transparent 50%, var(--primary-soft) 50%), linear-gradient(135deg, var(--primary-soft) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 15px) calc(50% - 3px);
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

/* ==========================================
   CUSTOM SEARCHABLE SELECT
   ========================================== */

.custom-select {
    position: relative;
}

.custom-select-input {
    padding-right: 56px;
}

.custom-select-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 1px solid rgba(114, 208, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

    .custom-select-toggle:hover,
    .custom-select-toggle:focus-visible {
        background: rgba(28, 154, 247, 0.12);
        border-color: rgba(62, 183, 255, 0.34);
    }

    .custom-select-toggle span {
        width: 10px;
        height: 10px;
        border-right: 2px solid var(--primary-soft);
        border-bottom: 2px solid var(--primary-soft);
        transform: rotate(45deg);
        margin-top: -4px;
        transition: transform 0.18s ease, margin-top 0.18s ease;
    }

.custom-select.is-open .custom-select-toggle span {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    padding: 0.5rem;
    border-radius: 18px;
    border: 1px solid rgba(114, 208, 255, 0.16);
    background: linear-gradient(180deg, rgba(16, 25, 39, 0.98), rgba(10, 16, 27, 0.98));
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.34);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.custom-select.is-open .custom-select-menu {
    display: block;
}

.custom-select-menu::-webkit-scrollbar {
    width: 10px;
}

.custom-select-menu::-webkit-scrollbar-thumb {
    background: rgba(158, 216, 255, 0.18);
    border-radius: 999px;
}

.custom-select-option {
    width: 100%;
    display: block;
    text-align: left;
    padding: 0.85rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

    .custom-select-option + .custom-select-option {
        margin-top: 0.3rem;
    }

    .custom-select-option:hover,
    .custom-select-option:focus-visible,
    .custom-select-option.is-active {
        background: rgba(28, 154, 247, 0.12);
        border-color: rgba(62, 183, 255, 0.24);
    }

    .custom-select-option.is-hidden {
        display: none;
    }

.custom-select-empty {
    padding: 0.9rem 0.95rem;
    color: var(--muted);
    font-weight: 600;
}

/* ==========================================
   LUXURY HERO (RESPONSIVE + BUTTON VISIBILITY FIX)
   ========================================== */

.home-hero-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    background: #03060b;
    min-height: clamp(320px, 65vh, 820px);
}

.home-hero-media {
    width: 100%;
    height: clamp(320px, 65vh, 820px);
}

    .home-hero-media img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center top;
        filter: saturate(1.03) contrast(1.04);
        transform: scale(1.03);
        animation: heroZoom 14s ease-out forwards;
        will-change: transform;
    }

.home-hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 18%, rgba(28, 154, 247, 0.14), transparent 28%), radial-gradient(circle at 18% 72%, rgba(255, 255, 255, 0.06), transparent 18%), radial-gradient(circle at 82% 62%, rgba(216, 52, 59, 0.08), transparent 18%);
}

.home-hero-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    background: linear-gradient( 180deg, rgba(4, 8, 15, 0.08) 0%, rgba(4, 8, 15, 0.16) 42%, rgba(4, 8, 15, 0.34) 72%, rgba(4, 8, 15, 0.58) 100% );
}

.home-hero-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient( 180deg, rgba(4, 8, 15, 0) 0%, rgba(4, 8, 15, 0.28) 45%, #04080f 100% );
}

.home-hero-image-content {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 640px;
    margin-top: auto;
    padding: 0 0 1rem;
    padding-bottom: .5rem;
    animation: heroContentRise 0.8s ease-out both;
}

    .home-hero-image-content .eyebrow {
        margin-bottom: 0.85rem;
    }

    .home-hero-image-content h1 {
        margin: 0 0 0.85rem;
        font-size: clamp(2.6rem, 6vw, 5.25rem);
        line-height: 0.96;
        letter-spacing: -0.04em;
        text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    }

    .home-hero-image-content p {
        margin: 0 0 1.5rem;
        max-width: 580px;
        font-size: 1.05rem;
        line-height: 1.8;
        color: var(--muted);
        text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    }

.home-hero-split {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
}

.home-hero-split-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 2rem;
    align-items: center;
}

.home-hero-copy {
    max-width: 620px;
    text-align: left;
}

    .home-hero-copy h1 {
        margin: 0;
        font-size: clamp(3rem, 6vw, 5.4rem);
        line-height: 0.95;
        letter-spacing: -0.05em;
    }

    .home-hero-copy p {
        max-width: 620px;
        margin: 0.85rem 0 0;
        font-size: 1.08rem;
        line-height: 1.85;
        color: var(--muted);
    }

.hero-actions-left {
    justify-content: flex-start;
    margin-top: 1.25rem;
}

.home-hero-transformation {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
}

.transformation-card {
    max-width: 880px;
    margin: 0 auto;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    align-items: center;
}

.transformation-image-frame {
    border-radius: calc(var(--radius) - 6px);
    overflow: hidden;
    min-height: 320px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.transformation-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.transformation-copy {
    text-align: left;
}

    .transformation-copy h2 {
        margin: 0 0 0.75rem;
        font-size: clamp(1.9rem, 3.6vw, 2.8rem);
        line-height: 1.05;
    }

    .transformation-copy p {
        margin: 0;
        color: var(--muted);
        line-height: 1.8;
    }

.transformation-card.is-transitioning .transformation-image {
    opacity: 0.12;
    transform: scale(1.02);
}

.transformation-card.is-after {
    border-color: rgba(62, 183, 255, 0.32);
    box-shadow: 0 22px 44px rgba(5, 21, 44, 0.36);
}

.home-hero-image .hero-actions {

    position: relative;
    z-index: 6;
    gap: 0.9rem;
}

.home-hero-image .btn {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

    .home-hero-image .btn.btn-secondary {
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.28);
    }

.home-hero-image + section,
.home-hero-image + .section {
    position: relative;
}

    .home-hero-image + section::before,
    .home-hero-image + .section::before {
        content: "";
        position: absolute;
        top: -1px;
        left: 50%;
        transform: translateX(-50%);
        width: min(92%, 1200px);
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(158, 216, 255, 0.22), transparent);
    }

@keyframes heroZoom {
    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1.015);
    }
}

@keyframes heroContentRise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1400px) {
    .admin-pipeline-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .grid-4,
    .dealer-footer-grid,
    .admin-summary-grid,
    .admin-stats-grid,
    .quote-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-grid-2 {
        grid-template-columns: 1fr;
    }

    .admin-filter-bar,
    .quote-filter-bar {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 991.98px) {
    .home-hero-image,
    .home-hero-media {
        height: 60vh;
        min-height: 460px;
    }

    .home-hero-image-content {
        max-width: 100%;
        padding-bottom: 1rem;
    }

    .home-hero-split {
        min-height: auto;
        padding: 3rem 0 2rem;
    }

    .home-hero-split-inner {
        grid-template-columns: 1fr;
    }

    .home-hero-copy,
    .home-hero-transformation,
    .transformation-copy {
        max-width: none;
        margin-left: 0;
        text-align: center;
    }

    .hero-actions-left {
        justify-content: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        width: var(--sidebar-width);
        max-width: 82vw;
    }

    .main-content {
        margin-left: 0;
        padding: 88px 18px 24px;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1100;
    }

    body.menu-open .sidebar {
        transform: translateX(0);
    }

    body.menu-open .sidebar-overlay {
        display: block;
    }

    .login-panel {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .admin-main {
        padding: 1.25rem;
    }

    .admin-page-header,
    .admin-toolbar,
    .quote-toolbar,
    .quote-list-header {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav,
    .dealer-nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        padding: 1rem;
        border-radius: 18px;
        background: rgba(10, 16, 27, 0.96);
        border: 1px solid var(--line-strong);
        box-shadow: var(--shadow);
    }

        .site-nav.is-open,
        .dealer-nav.is-open {
            display: flex;
        }

    .nav-toggle,
    .dealer-nav-toggle,
    .nav-button {
        display: block;
    }

    .nav-auth,
    .dealer-nav-auth {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
    }

    .admin-pipeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .home-hero-image,
    .home-hero-media {
        height: 50vh;
        min-height: 340px;
    }

    .sidebar-brand {
        margin-bottom: 24px;
    }

    .brand-image-link {
        border-radius: 18px;
    }

    .transformation-card {
        padding: 1rem;
    }

    .transformation-image,
    .transformation-image-frame {
        min-height: 250px;
    }

        .home-hero-media img {
            transform: none;
            animation: none;
            object-position: center 30%;
        }

    .home-hero-image-content {
        padding-bottom: 0.85rem;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .form-grid,
    .quote-mini-grid,
    .dealer-footer-grid,
    .admin-summary-grid,
    .admin-stats-grid,
    .admin-kpi-row,
    .admin-kpi-row-wide,
    .admin-pipeline-grid,
    .quote-summary-grid,
    .admin-filter-bar,
    .quote-filter-bar {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .quote-form-actions {
        flex-direction: column;
    }

        .quote-form-actions .btn,
        .hero-actions .btn,
        .button-row .btn {
            width: 100%;
        }

    .admin-table,
    .quote-table {
        min-width: 900px;
    }

    .admin-panel,
    .admin-card,
    .quote-list-panel {
        padding: 1rem;
    }

    .admin-panel-header h2 {
        font-size: 1.25rem;
    }

    .quote-pagination,
    .admin-pagination {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .brand-title {
        font-size: 1.4rem;
    }

    .brand-subtitle,
    .brand-bottom {
        font-size: 0.68rem;
    }

    .login-shell,
    .admin-main,
    .main-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .admin-page-header h1 {
        font-size: 1.9rem;
    }

    .admin-page-subtitle {
        font-size: 0.95rem;
    }

    .admin-actions-row,
    .quote-actions,
    .admin-filter-actions,
    .quote-filter-actions,
    .admin-toolbar-left,
    .admin-toolbar-right,
    .quote-toolbar-left,
    .quote-toolbar-right {
        width: 100%;
    }

    .admin-btn,
    .admin-btn-primary,
    .admin-btn-secondary,
    .admin-link-button,
    .quote-link-button {
        width: 100%;
        justify-content: center;
    }

    .home-hero-image-content p {
        font-size: 0.98rem;
    }
}


.browser-support-note {
    color: var(--muted);
}

@supports not ((-webkit-backdrop-filter: blur(4px)) or (backdrop-filter: blur(4px))) {
    .site-header,
    .dealer-header,
    .admin-sidebar,
    .custom-select-menu,
    .home-hero-image .btn {
        background: rgba(10, 16, 27, 0.96);
    }
}

@media (max-width: 991.98px) {
    .service-footer {
        flex-direction: column;
        align-items: stretch;
    }

        .service-footer .btn {
            width: 100%;
        }

    .service-image img,
    .service-detail-image img {
        height: auto;
    }

    .home-hero-image-content {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .mobile-menu-btn {
        top: 12px;
        left: 12px;
        width: 48px;
        height: 48px;
    }

    .sidebar {
        max-width: 88vw;
        padding: 24px 16px;
    }

    .main-content {
        padding-top: 82px;
    }

    .home-hero-image-content h1 {
        line-height: 1.02;
    }

    .section-intro,
    .home-hero-image-content p {
        line-height: 1.65;
    }
}

@media (max-width: 480px) {
    .home-hero-image,
    .home-hero-media {
        height: 45vh;
        min-height: 300px;
    }

    .home-hero-split {
        padding-top: 2.25rem;
    }

    .home-hero-image-content {
        padding-bottom: 0.75rem;
    }

    .container,
    .narrow {
        width: calc(100% - 1.25rem);
    }

    .btn,
    .btn-primary,
    a.btn,
    button.btn,
    .btn-secondary,
    a.btn-secondary,
    button.btn-secondary {
        width: 100%;
    }

    .hero-actions,
    .button-row {
        flex-direction: column;
    }

    .home-hero-image-content h1 {
        font-size: 2.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-media img,
    .home-hero-image-content {
        animation: none;
    }
}
/* FORCE HERO CONTENT LOWER */
.home-hero-image-content {
    padding-bottom: 0.5rem !important;
}

.admin-capture-shell {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 1.5rem;
}

.admin-capture-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-capture-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-capture-card {
    padding: 1.25rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}

.admin-capture-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-capture-card h2 {
    margin: 0.2rem 0 0;
    font-size: 1.15rem;
}

.admin-capture-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(216, 52, 59, 0.18);
    color: #ffd8db;
    border: 1px solid rgba(216, 52, 59, 0.28);
    font-weight: 700;
}

.admin-capture-badge-success {
    background: rgba(34, 197, 94, 0.16);
    color: #d4ffe2;
    border-color: rgba(34, 197, 94, 0.28);
}

.admin-camera-btn,
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid rgba(114, 208, 255, 0.24);
    cursor: pointer;
}

.admin-camera-btn,
.admin-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(7, 95, 199, 0.28);
}

.admin-btn-secondary {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}

.admin-camera-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.admin-preview-frame {
    margin-top: 1rem;
    min-height: 180px;
    border-radius: 18px;
    border: 1px dashed rgba(114, 208, 255, 0.28);
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.admin-upload-preview {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 16px;
}

.admin-upload-preview-hidden {
    display: none;
}

.admin-flash-message {
    margin: 1rem 0;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.26);
    color: #d9ffe6;
    font-weight: 600;
}

.admin-mini-preview-pair {
    display: flex;
    gap: 0.5rem;
}

.admin-mini-preview {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 960px) {
    .admin-capture-shell {
        grid-template-columns: 1fr;
    }

    .admin-capture-grid {
        grid-template-columns: 1fr;
    }
}
