/* ============================================================
   Hyundai Airport — Customer App theme
   Premium app feel on mobile · clean expansion on desktop
   Palette: Hyundai navy #002c5f · active blue #00aad2
   ============================================================ */

:root {
    --hy-navy: #002c5f;
    --hy-navy-deep: #00214a;
    --hy-navy-ink: #0b1f3a;
    --hy-blue: #00aad2;
    --hy-sky: #e6f6fb;
    --hy-bg: #f4f6f9;
    --hy-text: #1c2b3a;
    --hy-muted: #64748b;
    --hy-border: #e6eaf0;
    --nav-h: 62px;
    /* aliases used by Phase 3 components */
    --app-border: var(--hy-border);
    --app-muted: var(--hy-muted);
}

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--hy-bg);
    color: var(--hy-text);
    font-size: .94rem;
}

.text-navy { color: var(--hy-navy) !important; }
.btn-navy {
    background: var(--hy-navy);
    border: 1px solid var(--hy-navy);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    transition: .18s;
}
.btn-navy:hover, .btn-navy:focus { background: var(--hy-navy-deep); color: #fff; box-shadow: 0 8px 20px rgba(0, 44, 95, .22); }
.btn-outline-navy { border: 1.5px solid var(--hy-navy); color: var(--hy-navy); border-radius: 12px; font-weight: 600; }
.btn-outline-navy:hover { background: var(--hy-navy); color: #fff; }

/* ---------------------------------------------------- frame */
.app-frame {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--hy-bg);
    position: relative;
    padding-bottom: calc(var(--nav-h) + 18px);
}
body.no-bottom-nav .app-frame { padding-bottom: 24px; }

@media (min-width: 992px) {
    .app-frame {
        max-width: 1080px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ---------------------------------------------------- app bar */
.app-bar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(244, 246, 249, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}
.app-bar.scrolled { border-bottom-color: var(--hy-border); }

.app-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hy-navy); }
.app-logo strong { display: block; font-size: .98rem; font-weight: 800; letter-spacing: .01em; line-height: 1.05; }
.app-logo small { display: block; font-size: .64rem; color: var(--hy-muted); letter-spacing: .22em; text-transform: uppercase; }

.bar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--hy-border);
    color: var(--hy-navy);
    font-size: 1.1rem;
    text-decoration: none;
}
.bar-btn-ghost { background: transparent; border-color: transparent; }
.bar-title { flex: 1; text-align: center; font-weight: 700; color: var(--hy-navy); font-size: 1rem; }

.bar-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--hy-navy), #0a4d8c);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.bar-avatar:hover { color: #fff; }

.btn-signin {
    display: inline-flex;
    align-items: center;
    background: var(--hy-navy);
    color: #fff;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}
.btn-signin:hover { background: var(--hy-navy-deep); color: #fff; }

.app-content { padding: 4px 16px 16px; }
@media (min-width: 992px) { .app-content { padding: 8px 0 24px; } }

.app-alert { border-radius: 12px; font-size: .86rem; }

/* ---------------------------------------------------- hero slider */
.hero-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 8px 0 6px;
}
.hero-slider::-webkit-scrollbar { display: none; }

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-height: 210px;
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(700px 300px at 90% -20%, rgba(0, 170, 210, .35), transparent 60%),
        linear-gradient(135deg, var(--hy-navy) 0%, var(--hy-navy-ink) 75%);
    color: #fff;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}
@media (min-width: 992px) { .hero-slide { min-height: 300px; } }

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 20, 45, 0) 30%, rgba(0, 20, 45, .78) 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 22px; }
.hero-kicker { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--hy-blue); font-weight: 700; }
.hero-title { font-size: 1.45rem; font-weight: 800; margin: 4px 0 2px; }
.hero-sub { font-size: .84rem; color: rgba(255, 255, 255, .8); margin-bottom: 12px; }
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--hy-navy);
    font-size: .8rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
}
.hero-cta:hover { background: var(--hy-sky); color: var(--hy-navy); }

.hero-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 4px; }
.hero-dots span { width: 6px; height: 6px; border-radius: 50%; background: #c6d0dc; transition: .2s; }
.hero-dots span.active { width: 18px; border-radius: 4px; background: var(--hy-navy); }

/* ---------------------------------------------------- sections */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 12px;
}
.section-head h2 { font-size: 1.02rem; font-weight: 800; color: var(--hy-navy); margin: 0; }
.section-link { font-size: .78rem; font-weight: 600; color: var(--hy-blue); text-decoration: none; }

/* quick action tiles */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
@media (min-width: 992px) { .tiles-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; } }

.tile {
    background: #fff;
    border: 1px solid var(--hy-border);
    border-radius: 16px;
    padding: 14px 6px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--hy-text);
    transition: .18s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.tile:hover { transform: translateY(-2px); border-color: rgba(0, 170, 210, .5); box-shadow: 0 10px 24px rgba(0, 44, 95, .1); color: var(--hy-navy); }
.tile i {
    font-size: 1.25rem;
    color: var(--hy-navy);
    background: var(--hy-sky);
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tile span { font-size: .68rem; font-weight: 600; line-height: 1.25; }

/* vehicle cards (featured strip) */
.vehicle-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}
.vehicle-strip::-webkit-scrollbar { display: none; }

.vehicle-card {
    flex: 0 0 190px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--hy-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--hy-text);
    transition: .18s;
}
.vehicle-card:hover { box-shadow: 0 10px 26px rgba(0, 44, 95, .12); transform: translateY(-2px); color: var(--hy-text); }

.vehicle-thumb {
    height: 110px;
    background: linear-gradient(135deg, #eef3f8, #dde7f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9db1c7;
    font-size: 2rem;
    background-size: cover;
    background-position: center;
}
.vehicle-card-body { padding: 11px 13px 13px; }
.vehicle-name { font-size: .84rem; font-weight: 700; color: var(--hy-navy); line-height: 1.2; }
.vehicle-cat { font-size: .66rem; color: var(--hy-muted); text-transform: uppercase; letter-spacing: .08em; margin: 2px 0 6px; }
.vehicle-price { font-size: .78rem; font-weight: 700; color: var(--hy-text); }
.vehicle-price small { color: var(--hy-muted); font-weight: 500; }

/* generic card */
.card-app {
    background: #fff;
    border: 1px solid var(--hy-border);
    border-radius: 18px;
    padding: 18px;
}

/* ---------------------------------------------------- bottom nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--hy-border);
    display: flex;
    z-index: 1040;
}
@media (min-width: 992px) { .bottom-nav { display: none; } }

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #8a97a8;
    font-size: .62rem;
    font-weight: 600;
    position: relative;
}
.bottom-nav-item i { font-size: 1.2rem; }
.bottom-nav-item.active { color: var(--hy-navy); }
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 26px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--hy-navy);
}

/* desktop top links replacement */
.site-foot { border-top: 1px solid var(--hy-border); background: #fff; }
.site-foot-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--hy-muted);
}

/* ---------------------------------------------------- auth + forms */
.auth-page { max-width: 430px; margin: 4vh auto 0; }
.auth-hero { text-align: center; margin-bottom: 22px; }
.auth-hero .mark {
    color: var(--hy-navy);
    background: #fff;
    border: 1px solid var(--hy-border);
    width: 74px;
    height: 74px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 44, 95, .1);
}
.auth-hero h1 { font-size: 1.35rem; font-weight: 800; color: var(--hy-navy); margin: 16px 0 2px; }
.auth-hero p { color: var(--hy-muted); font-size: .85rem; margin: 0; }

.form-label { font-size: .78rem; font-weight: 600; color: var(--hy-text); }
.form-control, .form-select {
    border-radius: 12px;
    border-color: var(--hy-border);
    padding: .62rem .85rem;
    font-size: .9rem;
    background: #fff;
}
.form-control:focus, .form-select:focus { border-color: var(--hy-blue); box-shadow: 0 0 0 .22rem rgba(0, 170, 210, .13); }
.input-group-text { background: #fafbfd; border-color: var(--hy-border); color: var(--hy-muted); border-radius: 12px 0 0 12px; }

.auth-switch { text-align: center; font-size: .84rem; color: var(--hy-muted); margin-top: 18px; }
.auth-switch a { color: var(--hy-blue); font-weight: 700; text-decoration: none; }

/* ---------------------------------------------------- section placeholder */
.coming {
    text-align: center;
    padding: 54px 22px;
}
.coming-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto 16px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--hy-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: var(--hy-navy);
    box-shadow: 0 14px 34px rgba(0, 44, 95, .08);
}
.coming-badge {
    display: inline-block;
    background: var(--hy-sky);
    color: var(--hy-navy);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    border-radius: 20px;
    padding: 6px 13px;
    text-transform: uppercase;
}
.coming h1 { font-size: 1.35rem; font-weight: 800; color: var(--hy-navy); margin: 12px 0 8px; }
.coming p { color: var(--hy-muted); font-size: .88rem; max-width: 420px; margin: 0 auto; }
.coming-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.coming-list span {
    background: #fff;
    border: 1px solid var(--hy-border);
    border-radius: 20px;
    padding: 6px 13px;
    font-size: .74rem;
    font-weight: 600;
    color: var(--hy-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.coming-list i { color: var(--hy-blue); }

/* profile */
.profile-head {
    background:
        radial-gradient(500px 220px at 90% -30%, rgba(0, 170, 210, .3), transparent 60%),
        linear-gradient(150deg, var(--hy-navy), var(--hy-navy-ink));
    border-radius: 20px;
    color: #fff;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.profile-big-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}
.verified-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 170, 210, .22);
    color: #bfeaf5;
    border-radius: 20px;
    font-size: .66rem;
    font-weight: 700;
    padding: 3px 10px;
}

.menu-list { background: #fff; border: 1px solid var(--hy-border); border-radius: 18px; overflow: hidden; }
.menu-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--hy-text);
    border-bottom: 1px solid #f0f3f7;
    font-size: .89rem;
    font-weight: 600;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item:hover { background: #f8fafd; color: var(--hy-navy); }
.menu-item i:first-child {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--hy-sky);
    color: var(--hy-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.menu-item .chev { margin-left: auto; color: #b6c2d0; }
.menu-item.danger i:first-child { background: #fdecec; color: #c0343a; }
.menu-item .soon {
    margin-left: auto;
    font-size: .62rem;
    font-weight: 700;
    color: var(--hy-muted);
    background: var(--hy-bg);
    border-radius: 20px;
    padding: 3px 9px;
}

/* ================================================================
   PHASE 3 — catalog pages (Find A Car · Detail · Compare · Calculator ·
   Brochures · Offers)
   ================================================================ */

/* search bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    padding: 10px 14px;
    margin-top: 6px;
    position: relative;
}
.search-bar i { color: var(--app-muted); }
.search-bar input {
    border: 0;
    outline: 0;
    flex: 1;
    font-size: .88rem;
    background: transparent;
    min-width: 0;
}
.search-clear { color: var(--app-muted); font-size: .75rem; text-decoration: none; }

/* category chips */
.cat-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 2px 4px;
    scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
    white-space: nowrap;
    font-size: .78rem;
    font-weight: 600;
    color: var(--app-muted);
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 20px;
    padding: 7px 14px;
    text-decoration: none;
    transition: .15s;
}
.cat-chip:hover { color: var(--hy-navy); }
.cat-chip.active { background: var(--hy-navy); border-color: var(--hy-navy); color: #fff; }

/* vehicle grid & cards */
.vgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 768px)  { .vgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .vgrid { grid-template-columns: repeat(4, 1fr); } }
.vcard {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: .18s;
}
a.vcard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 42, 67, .1); }
.vcard-img {
    height: 110px;
    background: linear-gradient(135deg, #eef2f7, #e2e8f0) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa8bd;
    font-size: 1.7rem;
    position: relative;
}
@media (min-width: 768px) { .vcard-img { height: 140px; } }
.vcard-flag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #b45309;
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-radius: 12px;
    padding: 3px 8px;
}
.vcard-flag-blue { background: var(--hy-blue); }
.vcard-body { padding: 10px 12px 12px; }
.vcard-name { font-weight: 700; color: var(--hy-navy); font-size: .84rem; line-height: 1.25; }
.vcard-cat { color: var(--app-muted); font-size: .68rem; margin-top: 1px; }
.vcard-price { color: var(--hy-navy); font-weight: 700; font-size: .8rem; margin-top: 6px; }
.vcard-price small { color: var(--app-muted); font-weight: 500; }

/* detail page */
.detail-gallery { margin-top: 8px; }
.detail-hero {
    height: 210px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef2f7, #e2e8f0) center/cover no-repeat;
    border: 1px solid var(--app-border);
}
@media (min-width: 768px) { .detail-hero { height: 320px; } }
.detail-hero-empty { display: flex; align-items: center; justify-content: center; color: #9aa8bd; font-size: 3rem; }
.detail-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.detail-thumbs::-webkit-scrollbar { display: none; }
.detail-thumb {
    width: 64px;
    height: 44px;
    min-width: 64px;
    border-radius: 10px;
    border: 2px solid transparent;
    background: #eef2f7 center/cover no-repeat;
    cursor: pointer;
    padding: 0;
}
.detail-thumb.active { border-color: var(--hy-blue); }
.detail-name { font-size: 1.35rem; font-weight: 800; color: var(--hy-navy); margin: 2px 0 0; }
.detail-price { color: var(--hy-navy); font-weight: 700; margin-top: 2px; }
.detail-short { color: var(--app-muted); font-size: .82rem; margin: 6px auto 0; max-width: 540px; }
.detail-desc { font-size: .84rem; color: #33465e; line-height: 1.65; }

/* variant selector */
.variant-list { display: flex; flex-direction: column; gap: 8px; }
.variant-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid var(--app-border);
    border-radius: 14px;
    padding: 11px 13px;
    text-decoration: none;
    transition: .15s;
}
.variant-option.active { border-color: var(--hy-navy); box-shadow: 0 4px 14px rgba(0, 44, 95, .1); }
.variant-radio {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    border: 2px solid #c3cdd9;
}
.variant-option.active .variant-radio { border-color: var(--hy-navy); box-shadow: inset 0 0 0 3.5px #fff; background: var(--hy-navy); }
.variant-name { display: block; font-weight: 700; color: var(--hy-navy); font-size: .82rem; }
.variant-meta { display: block; color: var(--app-muted); font-size: .69rem; }
.variant-price { font-weight: 700; color: var(--hy-navy); font-size: .8rem; white-space: nowrap; }

/* price box / calculator rows */
.pricebox-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: .83rem;
    color: #33465e;
    padding: 6px 0;
}
.pricebox-main { font-size: .9rem; color: var(--hy-navy); border-bottom: 1px dashed var(--app-border); margin-bottom: 6px; }
.pricebox-sub {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--app-muted);
    margin: 8px 0 2px;
}
.pricebox-total { border-top: 1px solid var(--app-border); margin-top: 4px; padding-top: 9px; font-weight: 700; color: var(--hy-navy); }
.pricebox-link { display: inline-block; margin-top: 8px; font-size: .76rem; font-weight: 600; color: var(--hy-blue); text-decoration: none; }

/* key specs */
.kspec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .kspec-grid { grid-template-columns: repeat(4, 1fr); } }
.kspec {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    padding: 11px 12px;
}
.kspec i { color: var(--hy-blue); font-size: 1.15rem; }
.kspec span { display: block; color: var(--app-muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; }
.kspec strong { font-size: .78rem; color: var(--hy-navy); line-height: 1.2; }

/* full specs */
.specs-group-title { font-weight: 700; color: var(--hy-navy); font-size: .8rem; margin-bottom: 4px; }
.specs-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-top: 1px solid #f1f5f9;
    font-size: .8rem;
}
.specs-row span { color: var(--app-muted); }
.specs-row strong { color: #33465e; font-weight: 600; text-align: right; }

/* colors */
.color-row { display: flex; gap: 12px; flex-wrap: wrap; padding: 4px 2px; }
.color-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1.5px var(--app-border);
}

/* brochures */
.brochure-row { display: flex; align-items: center; gap: 11px; }
.brochure-ico {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: #fdecec;
    color: #c0343a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.brochure-title { font-weight: 700; color: var(--hy-navy); font-size: .82rem; }
.brochure-meta { color: var(--app-muted); font-size: .68rem; }
.vcard-static .vcard-img { height: 96px; }

/* detail actions */
.detail-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0 8px;
}
@media (min-width: 768px) { .detail-actions { grid-template-columns: repeat(3, 1fr); } }
.detail-actions .btn { font-size: .8rem; padding: 11px 8px; border-radius: 12px; }

/* compare */
.compare-wrap { overflow-x: auto; border: 1px solid var(--app-border); border-radius: 16px; background: #fff; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .78rem; min-width: 560px; }
.compare-table th, .compare-table td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.compare-table thead th { border-bottom: 1px solid var(--app-border); text-align: left; }
.compare-table td:first-child, .compare-table th:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    color: var(--app-muted);
    font-weight: 600;
    min-width: 120px;
    max-width: 150px;
    box-shadow: 1px 0 0 #f1f5f9;
}
.compare-table td { color: #33465e; }
.compare-group td { background: #f7f9fc !important; color: var(--hy-navy) !important; font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.compare-vimg {
    width: 120px;
    height: 62px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef2f7, #e2e8f0) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa8bd;
}
.compare-vname { font-weight: 700; color: var(--hy-navy); margin-top: 6px; font-size: .78rem; }
.compare-vvar { color: var(--app-muted); font-size: .68rem; font-weight: 500; }

/* calculator */
.seg { display: flex; background: #eef2f7; border-radius: 12px; padding: 4px; gap: 4px; }
.seg-opt { flex: 1; position: relative; margin: 0; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-opt span {
    display: block;
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    color: var(--app-muted);
    border-radius: 9px;
    padding: 8px 4px;
    transition: .15s;
}
.seg-opt input:checked + span { background: var(--hy-navy); color: #fff; box-shadow: 0 3px 9px rgba(0, 44, 95, .25); }
.calc-result {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    padding: 16px;
}
.calc-head { border-bottom: 1px dashed var(--app-border); padding-bottom: 8px; margin-bottom: 8px; }
.calc-title { font-weight: 800; color: var(--hy-navy); }
.calc-sub { color: var(--app-muted); font-size: .76rem; }
.calc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--hy-navy);
    color: #fff;
    border-radius: 14px;
    padding: 13px 15px;
    margin-top: 10px;
    font-size: .86rem;
}
.calc-total strong { font-size: 1.05rem; }
.calc-note { color: var(--app-muted); font-size: .68rem; margin-top: 8px; }

/* offers */
.offer-card { padding: 0; overflow: hidden; }
.offer-img { height: 140px; background: center/cover no-repeat #eef2f7; }
.offer-body { padding: 14px 16px 16px; }
.offer-chip {
    background: rgba(0, 170, 210, .12);
    color: #0b7f9c;
    font-size: .64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-radius: 12px;
    padding: 3px 9px;
}
.offer-title { font-weight: 700; color: var(--hy-navy); font-size: .95rem; margin-top: 2px; }
.offer-desc { color: #33465e; font-size: .8rem; margin: 6px 0 8px; line-height: 1.55; }
.home-offer { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 12px 14px; }

/* ================================================================
   PHASE 4 — request forms & success screens
   ================================================================ */
.form-sec {
    font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
    color: var(--hy-navy); border-bottom: 1px solid var(--app-border);
    padding-bottom: 6px; margin-bottom: 12px;
}
.success-box { text-align: center; padding: 34px 22px; margin-top: 14px; }
.success-ico {
    width: 74px; height: 74px; border-radius: 50%;
    background: rgba(14, 124, 107, .12); color: #0e7c6b;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 12px;
}
.success-box h1 { font-size: 1.15rem; font-weight: 800; color: var(--hy-navy); }
.success-number {
    display: inline-block; background: var(--hy-navy); color: #fff;
    font-weight: 800; letter-spacing: .06em; border-radius: 12px;
    padding: 9px 22px; font-size: 1rem; margin: 10px 0;
}
.success-box p { color: var(--app-muted); font-size: .83rem; max-width: 430px; margin: 0 auto; }

/* ================================================================
   PHASE 6 — account, requests tracker, notifications
   ================================================================ */
.bar-badge {
    position: absolute; top: 2px; right: 2px;
    background: #e63946; color: #fff; font-size: .56rem; font-weight: 700;
    min-width: 15px; height: 15px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 3px;
}
.notif-unread { border-left: 3px solid var(--hy-blue); }
.req-timeline { border-left: 2px solid #e9eef5; margin-left: 7px; padding-left: 14px; }
.req-step { position: relative; padding: 5px 0; }
.req-dot {
    position: absolute; left: -20px; top: 10px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--hy-blue); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--app-border);
}

.status-pill {
    --pill: #6c757d;
    background: color-mix(in srgb, var(--pill) 14%, white);
    color: var(--pill);
    font-weight: 700;
    font-size: .66rem;
    border-radius: 20px;
    padding: 4px 10px;
    white-space: nowrap;
}

/* ---------- Profile dropdown (app bar) ---------- */
button.bar-avatar { border: 0; cursor: pointer; }
.profile-menu {
    min-width: 225px;
    border: 0;
    border-radius: 14px;
    padding: .4rem;
    margin-top: .55rem;
    box-shadow: 0 14px 40px rgba(2, 20, 43, .18);
}
.profile-menu .dropdown-item { border-radius: 9px; font-size: .86rem; padding: .5rem .7rem; }
.profile-menu .dropdown-item i { color: #64748b; }
.profile-menu .dropdown-item:active { background: var(--hy-navy); color: #fff; }
.profile-menu .dropdown-item:active i { color: #fff; }
.profile-menu .dropdown-item.text-danger i { color: inherit; }
.profile-menu-head { padding: .45rem .7rem .55rem; border-bottom: 1px solid #eef1f6; margin-bottom: .3rem; }
.profile-menu-head strong { display: block; font-size: .88rem; color: var(--hy-navy); }
.profile-menu-head small { color: #64748b; font-size: .72rem; }

/* ---------- Hero banner images (desktop uses the desktop image) ---------- */
.hero-slide.has-img { background-image: var(--hero-img-m); }
@media (min-width: 992px) {
    .hero-slide.has-img {
        background-image: var(--hero-img-d);
        aspect-ratio: 1600 / 640;   /* standard desktop banner — full image visible */
        height: auto;
        min-height: 0;
        max-height: 540px;
    }
}

/* ---------- Vehicle detail: catalog-style hero (full car, no crop) ---------- */
.detail-hero-wrap {
    background: #f4f6f9;
    border: 1px solid #eceff4;
    border-radius: 20px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-hero-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;   /* complete vehicle — wheels, roof, bumpers */
    cursor: zoom-in;
}
@media (min-width: 992px) { .detail-hero-img { max-height: 460px; } }

/* ---------- Grouped gallery sections ---------- */
.gv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 768px)  { .gv-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .gv-grid { grid-template-columns: repeat(4, 1fr); } }
.gv-item {
    position: relative;
    border: 1px solid #eceff4;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    background: #f4f6f9;
    cursor: zoom-in;
}
.gv-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .25s ease;
}
.gv-item:hover img { transform: scale(1.04); }
.gv-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 14px 10px 7px;
    font-size: .7rem;
    color: #fff;
    text-align: left;
    background: linear-gradient(180deg, rgba(0,20,45,0), rgba(0,20,45,.72));
}

/* ---------- Lightbox ---------- */
.lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(4, 14, 28, .93);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-img {
    max-width: 92vw;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 10px;
}
.lb-close, .lb-nav {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    width: 42px; height: 42px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lb-close { top: 16px; right: 16px; }
.lb-nav   { top: 50%; transform: translateY(-50%); }
.lb-prev  { left: 12px; }
.lb-next  { right: 12px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-cap {
    position: absolute;
    bottom: 18px; left: 0; right: 0;
    text-align: center;
    color: rgba(255,255,255,.85);
    font-size: .8rem;
    padding: 0 20px;
}

/* ---------- 360° viewer ---------- */
.v360-wrap { padding: 0; overflow: hidden; }
.v360-stage {
    position: relative;
    background: #f4f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}
.v360-stage:active { cursor: grabbing; }
.v360-stage img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    pointer-events: none;
}
@media (min-width: 992px) { .v360-stage img { max-height: 480px; } }
.v360-loading {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,.92);
    border-radius: 12px;
    padding: 10px 18px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--hy-navy);
    min-width: 190px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(2,20,43,.14);
    overflow: hidden;
}
.v360-loading-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: rgba(0,170,210,.16);
    transition: width .2s ease;
}
.v360-loading span:last-child { position: relative; }
.v360-hint {
    position: absolute;
    bottom: 10px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,20,45,.62);
    color: #fff;
    border-radius: 20px;
    font-size: .68rem;
    padding: 4px 12px;
    pointer-events: none;
}
.v360-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #eef1f6;
}
.v360-btn {
    border: 1px solid #dde3ec;
    background: #fff;
    color: var(--hy-navy);
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.v360-btn:hover { background: #eef4fb; }
.v360-colors { display: flex; gap: 6px; }
.v360-color {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid #dde3ec;
    cursor: pointer;
    padding: 0;
}
.v360-color.active { border-color: var(--hy-navy); box-shadow: 0 0 0 2px rgba(0,44,95,.18); }

/* ---------- Color chips (interactive) + hero crossfade ---------- */
.detail-hero-img { transition: opacity .28s ease; }
.detail-hero-img.is-fading { opacity: 0; }
.color-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #e3e8f0;
    background: #fff;
    border-radius: 22px;
    padding: 6px 14px 6px 7px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.color-chip-btn:hover { border-color: #b9c6d8; }
.color-chip-btn.active {
    border-color: var(--hy-navy);
    box-shadow: 0 0 0 2px rgba(0, 44, 95, .14);
}
.color-chip-btn .color-dot {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(0, 20, 45, .12);
    flex: 0 0 auto;
}
.color-chip-name { font-size: .78rem; font-weight: 600; color: var(--hy-navy); white-space: nowrap; }
#colorRow { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Color preview stage (selected color without a 360° set) ---------- */
.color-stage {
    margin-top: 4px;
    padding: 10px;
    text-align: center;
    cursor: zoom-in;
}
.color-stage img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: #f4f6f9;
    border-radius: 12px;
    transition: opacity .28s ease;
}
.color-stage img.is-fading { opacity: 0; }
.color-stage[hidden], .v360-wrap[hidden] { display: none !important; }
