/* Provectus Equipment Sales: dealer template theme (black + gold) */
:root {
    --ink: #0E0E0E;
    --ink-2: #1A1A1A;
    --ink-3: #262626;
    --gold: #C9A227;
    --gold-2: #E0BC45;
    --gold-pale: #FAF3DC;
    --paper: #F6F5F1;
    --card: #FFFFFF;
    --line: #E4E1D8;
    --text: #1C1C1C;
    --text-soft: #5E5B55;
    --ok: #1F8A4C;
    --warn: #B7791F;
    --danger: #B42318;
    --info: #2563A8;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.28);
    --display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    --body: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    --drawer-width: 440px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--body);
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-title {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.08;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }

a { color: #8A6D12; }
a:hover { color: var(--ink); }

img { max-width: 100%; }

.muted { color: var(--text-soft); }
.text-gold, .gold { color: var(--gold) !important; }
.narrow { max-width: 900px; }
.as-link { text-decoration: none; }
.display-title { font-size: clamp(2.4rem, 5vw, 4rem); }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: #8A6D12;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-dark .kicker, .home-hero .kicker, .page-hero .kicker, .ai-promo .kicker, .kicker.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn { border-radius: 8px; font-weight: 600; }
.btn-lg { padding: 0.72rem 1.35rem; font-size: 1rem; }

.btn-gold {
    color: var(--ink);
    background: var(--gold);
    border: 1px solid var(--gold);
}
.btn-gold:hover, .btn-gold:focus { color: var(--ink); background: var(--gold-2); border-color: var(--gold-2); }
.btn-gold:disabled { color: var(--ink); background: var(--gold); opacity: 0.6; }

.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn-outline-dark { color: var(--ink); border-color: #2b2b2b; }
.btn-outline-dark:hover { color: #fff; background: var(--ink); }
.btn-link { color: #8A6D12; }

.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.3);
}

.form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }

.btn-ask {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    color: var(--ink);
    background: var(--gold);
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}
.btn-ask:hover { background: var(--gold-2); }

.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.72rem 1.1rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.btn-save.saved { color: #B42318; border-color: #f0c9c5; background: #fff5f4; }

/* ---------- Status pills & flags ---------- */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    background: #EAF1FA;
    color: var(--info);
}
.status-pill.ok { background: #E6F4EC; color: var(--ok); }
.status-pill.warn { background: #FDF3E1; color: var(--warn); }
.status-pill.muted { background: #EFEEEA; color: #6B6862; }
.status-pill.info { background: #EAF1FA; color: var(--info); }

.source-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: #F1EFE8;
    color: var(--text-soft);
    font-size: 0.74rem;
    font-weight: 600;
}

.flag {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.flag.sale { background: #B42318; }
.flag.cond { background: var(--info); }
.flag.stock, .flag.ok { background: var(--ok); }
.flag.warn { background: var(--warn); }
.flag.muted { background: #6B6862; }

/* ---------- Demo banner & header ---------- */
.demo-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 7px 16px;
    background: var(--gold);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}
.demo-banner a { color: var(--ink); font-weight: 800; }
.demo-banner .demo-short { display: none; }

.site-header { position: sticky; top: 0; z-index: 900; }

.topbar { background: #000; color: #BDBAB2; font-size: 0.8rem; }
.topbar-inner { display: flex; align-items: center; gap: 22px; padding-block: 7px; }
.topbar-inner i { color: var(--gold); }
.topbar-phone { margin-left: auto; color: #fff; font-weight: 700; text-decoration: none; }
.topbar-phone:hover { color: var(--gold); }

.mainnav { background: var(--ink); border-bottom: 1px solid #222; }
.mainnav-inner { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand img { display: block; height: 46px; width: auto; }

.nav-toggle { display: none; }
.nav-burger { display: none; margin-left: auto; color: #fff; font-size: 1.8rem; cursor: pointer; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 24px 11px;
    color: #E8E6E0;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--gold); }
.nav-links > li > a .bi-chevron-down { font-size: 0.7rem; }
.nav-links .nav-finder { color: var(--gold) !important; }

.has-menu { position: relative; }
.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    display: none;
    flex-direction: column;
    padding: 8px;
    background: var(--ink-2);
    border: 1px solid #2d2d2d;
    border-top: 2px solid var(--gold);
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow-lg);
}
.nav-menu.right { left: auto; right: 0; }
.has-menu:hover > .nav-menu, .has-menu:focus-within > .nav-menu { display: flex; }
.nav-menu a, .nav-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: #E8E6E0;
    background: none;
    border: 0;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: left;
    text-decoration: none;
    width: 100%;
    cursor: pointer;
}
.nav-menu a:hover, .nav-menu button:hover { background: #2a2a2a; color: var(--gold); }
.nav-menu form { margin: 0; }
.nav-menu-extra { border-top: 1px solid #333; margin-top: 4px; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-user {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    color: #E8E6E0;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}
.nav-user i { font-size: 1.25rem; }
.nav-user:hover { color: var(--gold); }

/* ---------- Heroes ---------- */
.home-hero {
    position: relative;
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 45%, rgba(0, 0, 0, 0.25) 100%), var(--hero-image) center / cover no-repeat, var(--ink);
}
.home-hero-inner { padding-block: clamp(64px, 10vw, 130px); }
.home-hero-copy { max-width: 700px; }
.home-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; text-transform: uppercase; }
.home-hero h1 span { color: var(--gold); }
.home-hero p { margin: 18px 0 26px; color: #DEDAD0; font-size: 1.12rem; line-height: 1.6; }

.hero-ask { margin-bottom: 20px; }
.hero-ask-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    color: var(--text);
}
.hero-ask-form > i { color: var(--gold); font-size: 1.2rem; }
.hero-ask-form input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1rem; background: transparent; }
.hero-ask-form.as-link span:not(.btn) { flex: 1; color: var(--text-soft); }

.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-quick a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 0.86rem;
    text-decoration: none;
    backdrop-filter: blur(4px);
}
.hero-quick a:hover { border-color: var(--gold); color: var(--gold); }

.page-hero {
    padding: clamp(40px, 6vw, 72px) 0 clamp(34px, 5vw, 56px);
    color: #fff;
    background: radial-gradient(circle at 85% 20%, rgba(201, 162, 39, 0.18), transparent 45%), var(--ink);
}
.page-hero.with-image {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.55)), var(--hero-image) center / cover no-repeat;
}
.page-hero h1 { margin: 0; text-transform: uppercase; font-weight: 800; }
.page-hero p { max-width: 720px; margin: 12px 0 0; color: #D6D2C8; font-size: 1.08rem; }

/* ---------- Sections ---------- */
.site-main { min-height: 60vh; }
.section { padding-block: clamp(44px, 6vw, 80px); }
.section-alt { background: #EEECE5; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark p { color: #CFCBC1; }

.section-head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { margin: 0; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; text-align: left; flex-wrap: wrap; }

.stats-band { background: var(--ink-2); color: #fff; border-top: 1px solid #2a2a2a; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 22px; text-align: center; }
.stats-grid div { display: flex; flex-direction: column; padding: 4px 10px; border-left: 1px solid #333; }
.stats-grid div:first-child { border-left: 0; }
.stats-grid strong { color: var(--gold); font-family: var(--display); font-size: 2.1rem; line-height: 1; }
.stats-grid span { color: #BDBAB2; font-size: 0.84rem; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.category-tile {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    color: #fff;
    text-decoration: none;
    background: var(--ink);
}
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; opacity: 0.85; }
.category-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.88)); }
.category-tile > div { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; }
.category-tile h3 { margin: 0 0 3px; text-transform: uppercase; font-size: 1.5rem; }
.category-tile span { color: var(--gold); font-size: 0.86rem; font-weight: 600; }
.category-tile:hover img { transform: scale(1.05); }
.category-tile:hover { color: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Unit & model cards ---------- */
.unit-card, .model-card, .owned-card, .accessory-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: box-shadow 200ms ease, transform 200ms ease;
}
.unit-card:hover, .model-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.unit-card.not-available { opacity: 0.85; }

.unit-card-media, .model-card-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #1a1a1a; }
.unit-card-media img, .model-card-media img { width: 100%; height: 100%; object-fit: cover; }
.unit-card-flags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.model-card-media .flag { position: absolute; top: 10px; left: 10px; }

.unit-card-body, .model-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.unit-card-kicker { color: var(--text-soft); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.unit-card h3, .model-card h3 { margin: 4px 0 8px; font-size: 1.3rem; }
.unit-card h3 a, .model-card h3 a { color: var(--ink); text-decoration: none; }
.unit-card h3 a:hover, .model-card h3 a:hover { color: #8A6D12; }
.model-tagline { margin: 0 0 10px; color: var(--text-soft); font-size: 0.88rem; }

.spec-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.spec-chips div { padding: 5px 9px; background: #F4F2EC; border-radius: 6px; }
.spec-chips dt { color: var(--text-soft); font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.spec-chips dd { margin: 0; font-size: 0.84rem; font-weight: 700; }

.unit-card-foot { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-top: auto; }
.price { display: flex; flex-direction: column; line-height: 1.15; }
.price s { color: var(--text-soft); font-size: 0.82rem; }
.price small { color: var(--text-soft); font-size: 0.72rem; text-transform: uppercase; }
.price strong { font-family: var(--display); font-size: 1.6rem; }

/* ---------- Home promo, features, testimonials ---------- */
.ai-promo { background: var(--ink); color: #fff; }
.ai-promo-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.ai-promo p { color: #CFCBC1; }
.check-list { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; }
.check-list i { color: var(--gold); }

.demo-tour { padding-block: 56px; }
.demo-tour-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.demo-tour-card { display: flex; flex-direction: column; padding: 26px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
.demo-tour-head { display: flex; gap: 14px; align-items: flex-start; }
.demo-tour-head h3 { margin: 0 0 4px; font-size: 1.6rem; }
.demo-tour-head p { margin: 0; color: var(--text-soft); }
.demo-tour-icon { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; color: var(--ink); background: var(--gold); border-radius: 50%; font-size: 1.3rem; }
.demo-tour-card .check-list { margin: 18px 0 22px; font-size: 0.95rem; }
.demo-tour-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.demo-tour-actions form { margin: 0; }
.demo-tour-actions .btn { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 18px; line-height: 1.2; text-align: left; }
.demo-tour-actions .btn small { font-weight: 500; opacity: 0.8; }

.chat-mock { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--ink-2); border: 1px solid #2d2d2d; border-radius: 16px; box-shadow: var(--shadow-lg); }
.bubble { max-width: 88%; padding: 12px 15px; border-radius: 14px; font-size: 0.92rem; line-height: 1.5; }
.bubble.user { align-self: flex-end; background: var(--gold); color: var(--ink); border-bottom-right-radius: 4px; }
.bubble.bot { background: #2a2a2a; color: #EDEAE2; border-bottom-left-radius: 4px; }
.mock-card { display: flex; gap: 12px; align-items: center; padding: 10px; background: #fff; color: var(--ink); border-radius: 10px; }
.mock-card img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; }
.mock-card div { display: flex; flex-direction: column; font-size: 0.86rem; }
.mock-card span { color: var(--ok); font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.feature i { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; color: var(--gold); background: var(--ink); border-radius: 10px; font-size: 1.3rem; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--text-soft); font-size: 0.92rem; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial { margin: 0; padding: 26px; background: var(--ink-2); border: 1px solid #2d2d2d; border-radius: var(--radius); }
.stars { color: var(--gold); letter-spacing: 3px; }
.testimonial blockquote { margin: 12px 0; color: #EDEAE2; font-size: 1rem; line-height: 1.6; }
.testimonial figcaption { color: #A5A198; font-size: 0.86rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

.cta-band { padding-block: 44px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: var(--ink); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 4px; text-transform: uppercase; font-weight: 800; }
.cta-inner p { margin: 0; }
.cta-inner a:not(.btn) { color: var(--ink); font-weight: 700; }
.cta-band .btn-gold { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-band .btn-outline-light { color: var(--ink); border-color: var(--ink); }
.cta-band .btn-outline-light:hover { background: var(--ink); color: #fff; }

.cta-inline { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding: 22px 26px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.cta-inline p { margin: 0; color: #CFCBC1; }
.cta-inline h3 { margin: 0 0 4px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 56px; background: #000; color: #A5A198; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-grid h4 { margin-bottom: 12px; color: #fff; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-grid a { display: block; padding: 3px 0; color: #A5A198; text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }
.footer-contact a { display: inline; }
.footer-logo { height: 44px; width: auto; margin-bottom: 12px; }
.footer-tagline { color: #D6D2C8; }
.footer-contact i { color: var(--gold); margin-right: 4px; }
.footer-brand { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border: 1px solid #333; border-radius: 6px; color: #E8E6E0; font-weight: 600; }
.footer-note { margin-top: 10px; font-size: 0.82rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 28px; border-top: 1px solid #222; font-size: 0.8rem; }

/* ---------- Inventory ---------- */
.inventory-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); max-height: calc(100vh - 150px); overflow-y: auto; }
.filter-group label { display: block; margin-bottom: 4px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); }
.filter-ask { padding: 16px; background: var(--gold-pale); border: 1px solid #EFDFA8; border-radius: 8px; }
.filter-ask p { margin: 4px 0 10px; font-size: 0.86rem; color: var(--text-soft); }
.filter-ask .btn { margin: 0 6px 6px 0; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }

.empty-state { padding: 48px 24px; text-align: center; background: var(--card); border: 1px dashed #CFCBC0; border-radius: var(--radius); }
.empty-state > i { font-size: 2.2rem; color: var(--gold); }
.empty-state h3 { margin: 10px 0 6px; }
.empty-state p { margin: 0; color: var(--text-soft); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 0.86rem; color: var(--text-soft); }
.crumbs a { color: var(--text-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs i { font-size: 0.7rem; }

/* ---------- Detail pages ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.gallery-main { overflow: hidden; aspect-ratio: 3 / 2; background: #111; border-radius: var(--radius); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; overflow: hidden; aspect-ratio: 3 / 2; background: #111; border: 2px solid transparent; border-radius: 6px; cursor: pointer; opacity: 0.7; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--gold); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--text-soft); font-size: 0.86rem; font-weight: 600; }
.detail-info h1 { margin: 10px 0 6px; font-size: clamp(2rem, 3.4vw, 2.8rem); }
.detail-tagline { color: var(--text-soft); font-size: 1.05rem; }
.detail-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 16px 0; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; }
.detail-price strong { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.detail-price s { color: var(--text-soft); }
.detail-price .save { color: var(--danger); font-weight: 700; font-size: 0.9rem; }
.detail-price small { flex-basis: 100%; color: var(--text-soft); }

.key-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.key-specs div { padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.key-specs dt { color: var(--text-soft); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.key-specs dd { margin: 2px 0 0; font-weight: 700; }

.installed h3 { font-size: 1.1rem; margin-bottom: 6px; }
.installed ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; }
.installed i { color: var(--gold); }

.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
.fine { color: var(--text-soft); font-size: 0.76rem; }

.detail-lower { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.spec-table { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.spec-table th, .spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 0.92rem; vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 42%; color: var(--text-soft); font-weight: 600; background: #FAF9F6; }

.quote-box { padding: 26px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
.quote-box h2 { font-size: 1.8rem; margin-bottom: 4px; }
.quote-box .validation-message { color: var(--danger); font-size: 0.8rem; }
.success-box { padding: 10px 0; text-align: center; }
.success-box > i { color: var(--ok); font-size: 2.6rem; }
.success-box h3 { margin: 8px 0; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.chip span { padding: 0 7px; background: #F1EFE8; border-radius: 999px; font-size: 0.74rem; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.chip.active span { background: var(--gold); color: var(--ink); }

.model-group { margin-bottom: 44px; }
.model-group h2 { margin-bottom: 4px; text-transform: uppercase; }

.option-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.option-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-size: 0.92rem; }
.advisor-box { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.advisor-box > i { color: var(--gold); font-size: 1.6rem; }
.advisor-box p { color: #CFCBC1; margin: 4px 0 10px; font-size: 0.9rem; }

.feature-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.feature-list li { display: flex; gap: 10px; }
.feature-list i { color: var(--gold); }
.section-dark .feature-list li { color: #E8E6E0; }

.faq { max-width: 860px; }
.faq details { margin-bottom: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.faq summary { padding: 14px 18px; font-weight: 600; cursor: pointer; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p, .faq details div { padding: 12px 18px 16px; margin: 0; color: var(--text-soft); }

/* ---------- Compare ---------- */
.compare-pickers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.compare-table { width: 100%; overflow-x: auto; }
.compare-table table { width: 100%; min-width: 640px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.compare-table th, .compare-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.92rem; }
.compare-table thead th { background: var(--ink); color: #fff; font-family: var(--display); font-size: 1.15rem; }
.compare-table thead img { display: block; width: 100%; max-width: 220px; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 8px; border-radius: 6px; }
.compare-table tbody th { width: 22%; background: #FAF9F6; color: var(--text-soft); font-weight: 600; }
.compare-table thead a { color: var(--gold); }

/* ---------- Finder wizard ---------- */
.wizard { padding: clamp(22px, 4vw, 38px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.wizard-progress { height: 6px; margin-bottom: 12px; overflow: hidden; background: #EEECE5; border-radius: 999px; }
.wizard-progress span { display: block; height: 100%; background: var(--gold); transition: width 250ms ease; }
.wizard-step { margin: 0 0 8px; color: var(--text-soft); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.wizard h2 { margin-bottom: 18px; }
.wizard-nav { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.choice-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 92px;
    padding: 14px;
    color: var(--ink);
    background: #FAF9F6;
    border: 2px solid var(--line);
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
}
.choice i { color: #8A6D12; font-size: 1.6rem; }
.choice:hover { border-color: #BDB6A0; }
.choice.active { background: var(--gold-pale); border-color: var(--gold); }

.finder-results { margin-top: 10px; }
.rec-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); overflow: hidden; margin-bottom: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.rec-card.top { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.rec-card > img, .rec-card > a > img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.rec-body { padding: 20px 22px; }
.rec-body h3 { margin: 6px 0; }
.reasons { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 5px; font-size: 0.92rem; }
.reasons i { color: var(--ok); margin-right: 4px; }
.reasons .caution, .caution { color: var(--warn); }
.reasons .caution i { color: var(--warn); }
.stepup-box { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; padding: 16px 18px; background: var(--gold-pale); border: 1px solid #EFDFA8; border-radius: var(--radius); }
.stepup-box > i { color: #8A6D12; font-size: 1.5rem; }
.accessory-row { display: flex; flex-wrap: wrap; gap: 10px; }
.accessory-chip { display: flex; flex-direction: column; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-size: 0.88rem; }
.accessory-chip small { color: var(--text-soft); }
.ruled-out { margin-top: 22px; color: var(--text-soft); font-size: 0.88rem; }
.ruled-out li { margin-bottom: 4px; }
.note-box { padding: 14px 16px; background: #F4F2EC; border-left: 4px solid var(--gold); border-radius: 6px; }

/* ---------- Accessories & parts ---------- */
.accessory-card .accessory-img { aspect-ratio: 4 / 3; background: #F4F2EC; }
.accessory-card .accessory-img img { width: 100%; height: 100%; object-fit: cover; }
.accessory-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 14px 16px; }
.accessory-body h3 { margin: 0; font-size: 1.15rem; }
.accessory-body p { margin: 0; color: var(--text-soft); font-size: 0.88rem; }

.parts-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.parts-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 10px; margin-bottom: 14px; }
.parts-list { display: grid; gap: 10px; }
.part-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.part-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: #F4F2EC; }
.part-info strong { display: block; }
.part-info small { color: var(--text-soft); }
.part-info p { margin: 4px 0 0; font-size: 0.86rem; color: var(--text-soft); }
.part-buy { display: flex; flex-direction: column; align-items: end; gap: 4px; text-align: right; }
.part-buy strong { font-family: var(--display); font-size: 1.35rem; }
.cart { position: sticky; top: 130px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
.cart h3 { font-size: 1.3rem; }
.cart-lines { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.cart-lines li { display: grid; grid-template-columns: minmax(0, 1fr) 64px auto; gap: 8px; align-items: center; font-size: 0.86rem; }
.cart-total { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 1.05rem; }
.lookup { margin-top: 18px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.lookup h3 { font-size: 1.15rem; }

/* ---------- Resources ---------- */
.article-list { display: grid; gap: 10px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.article-link { display: block; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color 150ms ease; }
.article-link:hover { border-color: var(--gold); color: var(--ink); }
.article-link h3 { margin: 6px 0; font-size: 1.2rem; }
.article-link p { margin: 0; color: var(--text-soft); font-size: 0.88rem; }
.article-body { max-width: 780px; font-size: 1.02rem; line-height: 1.7; }
.article-body h2, .article-body h3 { margin-top: 28px; }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { position: relative; padding: 14px 16px 14px 58px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 12px; display: grid; place-items: center; width: 30px; height: 30px; color: var(--ink); background: var(--gold); border-radius: 50%; font-weight: 800; }

.payment-result { margin-top: 18px; padding: 22px; text-align: center; background: var(--ink); color: #fff; border-radius: var(--radius); }
.payment-result .amount, .payment-result strong { display: block; color: var(--gold); font-family: var(--display); font-size: 3rem; line-height: 1; }
.payment-result small, .payment-result p { color: #CFCBC1; }

/* ---------- About & contact ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.about-photos img:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.brand-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 18px; }
.brand-row img { height: 56px; width: auto; }
.contact-card { padding: 24px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.contact-card h3 { color: var(--gold); }
.contact-card p, .contact-card li { color: #D6D2C8; }
.contact-card a { color: #fff; }
.contact-card i { color: var(--gold); margin-right: 6px; }

.not-found { padding-block: 90px; text-align: center; }

/* ---------- Auth & account ---------- */
.auth-page { display: grid; place-items: center; padding: 56px 16px; min-height: 70vh; background: radial-gradient(circle at 20% 10%, rgba(201, 162, 39, 0.14), transparent 40%), var(--ink); }
.auth-card { width: 100%; max-width: 480px; padding: 32px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 2.2rem; margin-bottom: 4px; }
.demo-logins { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-grid form { margin: 0; }
.demo-persona {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 10px 12px;
    background: #FAF9F6;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
}
.demo-persona:hover { border-color: var(--gold); background: var(--gold-pale); }
.demo-persona i { color: #8A6D12; font-size: 1.4rem; }
.demo-persona strong { display: block; font-size: 0.9rem; }
.demo-persona small { display: block; color: var(--text-soft); font-size: 0.74rem; line-height: 1.3; }

.account-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.account-head h1 { margin: 0; }
.tabs { display: flex; gap: 4px; margin-bottom: 22px; overflow-x: auto; border-bottom: 2px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; margin-bottom: -2px; color: var(--text-soft); background: none; border: 0; border-bottom: 3px solid transparent; font-weight: 600; white-space: nowrap; cursor: pointer; }
.tab span { padding: 0 7px; background: #EEECE5; border-radius: 999px; font-size: 0.74rem; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--gold); }
.owned-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.owned-card > div { padding: 16px; }
.list-card { margin-bottom: 12px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.list-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.profile-box { max-width: 760px; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; background: #F3F2EE; }
.admin-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 18px 12px; overflow-y: auto; background: var(--ink); color: #D6D2C8; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; font-family: var(--display); font-size: 1.35rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-brand:hover { color: var(--gold); }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: #D6D2C8; border-radius: 8px; font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.admin-sidebar nav a:hover { background: #1f1f1f; color: #fff; }
.admin-sidebar nav a.active { background: var(--gold); color: var(--ink); font-weight: 700; }
.admin-nav-label { margin: 16px 12px 4px; color: #7C786F; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.admin-sidebar-foot { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid #262626; }
.admin-sidebar-foot a { color: #A5A198; font-size: 0.86rem; text-decoration: none; }
.admin-sidebar-foot a:hover { color: var(--gold); }

.admin-main { min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 800; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 28px; background: var(--ink-2); color: #fff; }
.admin-dealer { font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.04em; }
.admin-topbar-actions { display: flex; align-items: center; gap: 14px; }
.admin-topbar-actions form { margin: 0; }
.admin-user { color: #CFCBC1; font-size: 0.86rem; }
.admin-content { padding: 26px 28px 48px; }

.admin-page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-page-head h1 { margin: 0; font-size: 2.1rem; }
.admin-page-head p { margin: 2px 0 0; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi { display: flex; flex-direction: column; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
a.kpi:hover { border-color: var(--gold); color: var(--ink); }
.kpi strong { font-family: var(--display); font-size: 2.1rem; line-height: 1.05; }
.kpi span { color: var(--text-soft); font-size: 0.82rem; font-weight: 600; }
.kpi small { color: var(--text-soft); font-size: 0.74rem; }
.small-kpi strong { font-size: 1.5rem; }

.admin-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.admin-grid-2.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.panel { padding: 18px 20px; margin-bottom: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.panel-head h2, .panel h2 { margin: 0; font-size: 1.35rem; }
.sticky-panel { position: sticky; top: 78px; max-height: calc(100vh - 100px); overflow-y: auto; }

.admin-table { margin: 0; font-size: 0.88rem; }
.admin-table th { color: var(--text-soft); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-bottom-width: 1px; }
.admin-table td { vertical-align: middle; }
.admin-table tr.clickable { cursor: pointer; }
.admin-table tr.clickable:hover td { background: #FAF8F1; }
.admin-table tr.selected td { background: var(--gold-pale); }
.admin-table .form-control-sm, .admin-table .form-select-sm { min-width: 90px; }
.thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; background: #eee; }

.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.admin-filters .form-control, .admin-filters .form-select { width: auto; min-width: 180px; }

.detail-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin-bottom: 12px; font-size: 0.88rem; }
.detail-list dt { color: var(--text-soft); font-weight: 600; }
.detail-list dd { margin: 0; }

.transcript { display: flex; flex-direction: column; gap: 8px; max-height: 480px; overflow-y: auto; padding: 12px; background: #F6F5F1; border-radius: 8px; }
.t-msg { max-width: 90%; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 0.86rem; }
.t-msg p, .t-msg ul, .t-msg ol { margin: 0 0 6px; }
.t-msg ul, .t-msg ol { padding-left: 1.1rem; }
.t-msg.user { align-self: flex-end; background: var(--ink); color: #fff; border-color: var(--ink); }
.t-msg small { display: block; margin-bottom: 2px; color: var(--text-soft); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.t-msg.user small { color: var(--gold); }

.session-list { display: flex; flex-direction: column; gap: 6px; }
.session-item { display: block; width: 100%; padding: 10px 12px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 0.86rem; }
.session-item:hover { border-color: #BDB6A0; }
.session-item.selected { border-color: var(--gold); background: var(--gold-pale); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo-tile { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: #eee; border-radius: 8px; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile button { position: absolute; top: 6px; right: 6px; }

.admin-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 18px -28px -48px; padding: 14px 28px; background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); backdrop-filter: blur(6px); }

.assistant-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.assistant-tips { padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.88rem; }
.assistant-tips h2, .assistant-tips h3 { font-size: 1.2rem; }
.assistant-tips li { margin-bottom: 8px; }
.assistant-tips button { padding: 0; color: #8A6D12; background: none; border: 0; text-align: left; text-decoration: underline; cursor: pointer; }

/* ---------- AI assistant drawer ---------- */
.ai-launcher {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 950;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 10px;
    color: #fff;
    background: var(--ink);
    border: 1px solid #333;
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    animation: launcher-in 400ms ease-out both;
}
.ai-launcher:hover { border-color: var(--gold); }
.ai-launcher-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); background: var(--gold); border-radius: 50%; font-size: 1.2rem; }
.ai-launcher-text { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.ai-launcher-text small { color: #BDBAB2; font-size: 0.76rem; }

@keyframes launcher-in {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ai-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(0, 0, 0, 0.35); opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.ai-backdrop.show { opacity: 1; pointer-events: auto; }

.ai-assistant {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    width: min(var(--drawer-width), 100%);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform 240ms ease, visibility 240ms;
    visibility: hidden;
}
.ai-assistant.open { transform: translateX(0); visibility: visible; }
.ai-resize-handle { display: none; }

/* Desktop: dock the panel beside the page so the site stays usable while chatting. */
@media (min-width: 992px) {
    body { transition: padding-right 240ms ease; }
    body:has(.ai-assistant.open:not(.inline)) { padding-right: var(--drawer-width); }
    body.ai-resizing { transition: none; cursor: col-resize; user-select: none; }
    .ai-backdrop { display: none; }
    .ai-assistant:not(.inline) { box-shadow: -1px 0 0 var(--line), -12px 0 32px rgba(0, 0, 0, 0.08); }
    .ai-resize-handle {
        position: absolute;
        top: 0;
        bottom: 0;
        left: -4px;
        z-index: 3;
        display: block;
        width: 8px;
        cursor: col-resize;
        touch-action: none;
    }
    .ai-resize-handle::after { content: ""; position: absolute; top: 0; bottom: 0; left: 3px; width: 2px; background: transparent; transition: background 150ms ease; }
    .ai-resize-handle:hover::after, body.ai-resizing .ai-resize-handle::after { background: var(--gold); }
}
.ai-assistant.inline {
    position: relative;
    z-index: auto;
    width: 100%;
    height: calc(100vh - 150px);
    min-height: 520px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: none;
    transform: none;
    transition: none;
}

.ai-assistant-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; color: #fff; background: var(--ink); border-bottom: 2px solid var(--gold); }
.ai-assistant-id { display: flex; align-items: center; gap: 12px; }
.ai-assistant-header h2 { margin: 0; font-size: 1.35rem; }
.ai-assistant-header h2 small { margin-left: 6px; color: var(--gold); font-family: var(--body, inherit); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.ai-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: var(--ink); background: var(--gold); border-radius: 50%; font-size: 1.15rem; }
.ai-status { display: flex; align-items: center; gap: 6px; color: #BDBAB2; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.ai-status span { width: 7px; height: 7px; background: #3CCB7F; border-radius: 50%; }
.ai-status.offline span { background: #999; }
.ai-header-actions { display: flex; gap: 6px; }

.icon-button { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: inherit; background: transparent; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; cursor: pointer; }
.icon-button:hover { border-color: var(--gold); color: var(--gold); }
.icon-button:disabled { opacity: 0.45; cursor: default; }

.ai-notice { display: flex; gap: 8px; padding: 9px 16px; color: #6C521C; background: var(--gold-pale); border-bottom: 1px solid #EFDFA8; font-size: 0.76rem; line-height: 1.4; }

.ai-messages { overflow-y: auto; padding: 16px; background: #F6F5F1; }
.ai-welcome { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ai-welcome h3 { margin-bottom: 6px; font-size: 1.45rem; }
.ai-welcome p { color: var(--text-soft); font-size: 0.9rem; line-height: 1.5; }
.ai-suggestions { display: grid; gap: 7px; margin-top: 12px; }
.ai-suggestions button { padding: 9px 12px; color: var(--ink); text-align: left; background: #FAF9F6; border: 1px solid var(--line); border-radius: 8px; font-size: 0.84rem; font-weight: 600; cursor: pointer; }
.ai-suggestions button:hover:not(:disabled) { border-color: var(--gold); background: var(--gold-pale); }

.ai-message { margin-top: 14px; }
.message-label { display: block; margin-bottom: 4px; color: var(--text-soft); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.ai-message-text { width: fit-content; max-width: 92%; padding: 10px 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; border-top-left-radius: 4px; font-size: 0.9rem; line-height: 1.55; overflow-wrap: anywhere; }
.ai-message-text p { margin: 0 0 8px; }
.ai-message-text p:last-child, .ai-message-text ul:last-child, .ai-message-text ol:last-child { margin-bottom: 0; }
.ai-message-text ul, .ai-message-text ol { margin: 0 0 8px; padding-left: 1.2rem; }
.ai-message-text h3, .ai-message-text h4 { margin: 6px 0; font-size: 1.05rem; }
.ai-message.user .ai-message-text { margin-left: auto; color: #fff; background: var(--ink); border-color: var(--ink); border-radius: 12px; border-top-right-radius: 4px; }
.ai-message.blocked .ai-message-text { background: #FFF8EB; border-color: #F1D9A6; }

.ai-cards { display: grid; gap: 8px; margin-top: 8px; }
.ai-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.ai-card:not(:has(> img)) { grid-template-columns: minmax(0, 1fr); }
.ai-card > img { width: 100%; height: 100%; min-height: 80px; object-fit: cover; }
.ai-card-body { padding: 9px 12px; font-size: 0.82rem; }
.ai-card-title { font-weight: 700; font-size: 0.9rem; }
.ai-card-title a { color: var(--ink); }
.ai-card-sub { color: var(--text-soft); }
.ai-card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.ai-card-badges span { padding: 1px 7px; background: #F1EFE8; border-radius: 999px; font-size: 0.7rem; font-weight: 600; }
.ai-card-line { color: var(--text); }
.ai-card-price { margin-top: 3px; font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.ai-card-actions { display: flex; gap: 6px; margin-top: 8px; }
.ai-card-status { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: #EAF1FA; color: var(--info); }
.ai-card-status.ok { background: #E6F4EC; color: var(--ok); }
.ai-card-status.warn { background: #FDF3E1; color: var(--warn); }
.ai-card-status.muted { background: #EFEEEA; color: #6B6862; }
.ai-card.kind-action { border-left: 4px solid var(--gold); }
.ai-card.kind-quote, .ai-card.kind-order, .ai-card.kind-ticket { border-left: 4px solid var(--ok); }

.typing-indicator { display: flex; gap: 5px; width: fit-content; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.typing-indicator span { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; animation: typing 900ms infinite alternate; }
.typing-indicator span:nth-child(2) { animation-delay: 180ms; }
.typing-indicator span:nth-child(3) { animation-delay: 360ms; }
@keyframes typing { to { opacity: 0.25; transform: translateY(-3px); } }

.ai-offline { padding: 10px 16px; background: #FFF4F2; color: var(--danger); font-size: 0.82rem; border-top: 1px solid #F3D2CD; }
.ai-composer { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 8px; padding: 12px; background: #fff; border-top: 1px solid var(--line); }
.ai-composer input { min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; outline: 0; }
.ai-composer input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2); }
.ai-composer .send { width: 42px; height: 42px; color: var(--ink); background: var(--gold); border: 0; }
.ai-composer .send:hover:not(:disabled) { background: var(--gold-2); color: var(--ink); }

/* ---------- Blazor error UI ---------- */
#blazor-error-ui {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    width: 100%;
    padding: 0.7rem 1.25rem;
    color: var(--ink);
    background: var(--gold-pale);
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.2);
}
#blazor-error-ui .reload { font-weight: 700; }
#blazor-error-ui .dismiss { position: absolute; right: 0.9rem; top: 0.6rem; cursor: pointer; }

.validation-message { color: var(--danger); font-size: 0.8rem; }
.invalid { outline: 1px solid var(--danger); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .nav-links > li > a { padding-inline: 8px; font-size: 0.86rem; }
    .card-grid, .card-grid.four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .nav-burger { display: block; order: 3; margin-left: 0; }
    .nav-actions { margin-left: auto; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 8px 16px 16px;
        background: var(--ink);
        border-top: 1px solid #222;
        max-height: 75vh;
        overflow-y: auto;
    }
    .mainnav-inner { position: relative; }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-links > li > a { padding: 12px 4px; font-size: 1rem; }
    .nav-links .nav-menu { position: static; display: flex; padding: 0 0 6px 12px; background: none; border: 0; box-shadow: none; }
    .nav-actions .btn-ask span, .nav-user span { display: none; }

    .ai-promo-grid, .detail-grid, .detail-lower, .about-grid, .parts-layout, .inventory-layout, .assistant-page { grid-template-columns: minmax(0, 1fr); }
    .filters, .cart { position: static; max-height: none; }
    .card-grid, .card-grid.three, .card-grid.four, .testimonial-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .rec-card { grid-template-columns: minmax(0, 1fr); }
    .rec-card > img, .rec-card > a > img { max-height: 240px; }

    .admin-shell { grid-template-columns: minmax(0, 1fr); }
    .admin-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; }
    .admin-nav-label, .admin-sidebar-foot { display: none; }
    .admin-grid-2, .admin-grid-2.wide-left { grid-template-columns: minmax(0, 1fr); }
    .admin-table { display: block; max-width: 100%; overflow-x: auto; }
    .sticky-panel { position: static; max-height: none; }
}

@media (max-width: 640px) {
    .demo-banner .demo-full, .demo-banner > i { display: none; }
    .demo-banner .demo-short { display: inline; }
    .demo-banner { padding-block: 6px; font-size: 0.8rem; }
    .topbar-inner > span:first-child { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
    .stats-grid div:nth-child(3) { border-left: 0; }
    .card-grid, .card-grid.three, .card-grid.four, .testimonial-grid, .article-grid, .feature-grid, .feature-list { grid-template-columns: minmax(0, 1fr); }
    .key-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .choice-grid.two, .compare-pickers, .parts-toolbar, .demo-grid, .demo-tour-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-ask-form { flex-wrap: wrap; padding: 12px; }
    .hero-ask-form input { flex-basis: 80%; }
    .hero-ask-form .btn { width: 100%; }
    .part-row { grid-template-columns: 56px minmax(0, 1fr); }
    .part-row img { width: 56px; height: 56px; }
    .part-buy { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .ai-launcher-text { display: none; }
    .ai-launcher { padding: 8px; }
    .admin-content { padding: 18px 14px 40px; }
    .admin-topbar { padding: 10px 14px; flex-wrap: wrap; }
    .admin-savebar { margin-inline: -14px; padding-inline: 14px; }
}
