/* Thaihilux public site: "Rugged Pickup" theme. Mobile first. */
:root {
    --bg: #111315;
    --bg-2: #1b1e21;
    --bg-3: #24282c;
    --line: #2f3439;
    --text: #f2efe9;
    --muted: #a2a7ac;
    --accent: #ff6a13;
    --accent-2: #ff8b40;
    --accent-ink: #160a02;
    --ok: #3ccf7a;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 18px 40px rgba(0, 0, 0, .35);
    --head: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --wrap: 1280px;
    --pad: 16px;
    --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 15px/1.55 var(--body);
    padding-bottom: var(--dock-h);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.ico { flex: none; }

/* Visibility helpers */
.only-mobile { display: inline-flex; }
.hide-mobile { display: none !important; }
.hide-xs { display: none; }
.hide-sm { display: none !important; }
@media (min-width: 480px) { .hide-xs { display: inline; } }
@media (min-width: 768px) { .hide-sm { display: flex !important; } :root { --pad: 24px; } }
@media (min-width: 992px) {
    .only-mobile { display: none !important; }
    .hide-mobile { display: flex !important; }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
    font: 600 14px/1 var(--body); letter-spacing: .02em; cursor: pointer; white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #22bd60; color: #fff; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 15px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--bg-3); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.linklike:hover { color: var(--accent-2); }

/* Top bar */
.topbar { background: #0b0c0d; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.topbar-facts, .topbar-side, .topbar-account { display: flex; align-items: center; gap: 14px; }
.topbar-facts li { display: inline-flex; align-items: center; gap: 6px; }
.topbar-facts strong { color: var(--text); font-variant-numeric: tabular-nums; }
.topbar-facts .ico { color: var(--accent); }
.topbar-account a, .topbar-account button { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 12.5px; }
.topbar-account form { margin: 0; }
.socials { display: flex; gap: 6px; }
.socials a { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); }
.socials a:hover { background: var(--bg-3); color: var(--accent); }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(17, 19, 21, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.masthead-in { display: flex; align-items: center; gap: 10px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; color: var(--text); }
.brand img { height: 40px; width: auto; }
.brand-mark { height: 34px; width: auto; }
.masthead-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.kw-search { position: relative; display: none; order: 5; flex: 1 1 100%; margin-bottom: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.kw-search.is-open { display: flex; }
.kw-mode { border: 0; background: transparent; padding: 0 8px 0 12px; border-right: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.kw-mode option { background: var(--bg-2); }
.kw-search input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; background: transparent; outline: none; }
.kw-search input::placeholder { color: #6f757b; }
.kw-go { width: 48px; border: 0; background: var(--accent); color: var(--accent-ink); border-radius: 0 9px 9px 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.kw-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); max-height: 60vh; overflow: auto; }
.kw-results ul { padding: 6px; }
.kw-results li a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; }
.kw-results li a:hover { background: var(--bg-3); color: var(--text); }
.kw-results img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--bg-3); }
.kw-results small { color: var(--muted); }
.kw-results .p-3 { padding: 14px; text-align: center; color: var(--muted); }

@media (min-width: 992px) {
    .masthead-in { flex-wrap: nowrap; gap: 24px; min-height: 76px; }
    .brand-mark { height: 40px; }
    .kw-search { display: flex; order: 0; flex: 1 1 auto; max-width: 620px; margin: 0; }
    .masthead-actions { margin-left: 0; }
}

/* Main nav + mega menu */
.mainnav { border-top: 1px solid var(--line); }
.mainnav-list { display: flex; align-items: stretch; gap: 4px; position: relative; }
.mainnav-link {
    display: inline-flex; align-items: center; gap: 4px; height: 46px; padding: 0 14px; border: 0; background: none; cursor: pointer;
    font: 700 16px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--text); border-bottom: 2px solid transparent;
}
.mainnav-link:hover, .has-mega.is-open > .mainnav-link { color: var(--accent); border-bottom-color: var(--accent); }
.has-mega { position: static; }
.mega {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 55; display: none; grid-template-columns: repeat(4, 1fr); gap: 24px;
    padding: 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow);
}
.has-mega.is-open .mega { display: grid; }
@media (hover: hover) { .has-mega:hover .mega { display: grid; } }
.mega-head { font: 700 14px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.mega ul { display: grid; gap: 2px; max-height: 300px; overflow: auto; }
.mega li a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 14px; }
.mega li a:hover { background: var(--bg-3); }
.mega em, .chip em { font-style: normal; color: var(--muted); font-size: 12px; }
.mega-empty { color: var(--muted); font-size: 13px; padding: 6px 8px; }
.mega-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: 14px; }

/* Notice ticker */
.notice { overflow: hidden; background: #0b0c0d; border-bottom: 1px solid var(--line); color: var(--notice-color, var(--accent)); font-size: 13px; font-weight: 600; }
.notice-track { display: flex; width: max-content; animation: ticker 40s linear infinite; padding: 8px 0; }
.notice-track > span { padding-right: 48px; white-space: nowrap; }
.notice:hover .notice-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

.topad { margin-top: 12px; }
.topad img { width: 100%; border-radius: var(--radius); }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.drawer-panel {
    position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: var(--bg-2); border-right: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 16px; padding: 14px 16px 24px; overflow-y: auto; animation: slide-in .2s ease-out;
}
@keyframes slide-in { from { transform: translateX(-100%); } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-nav { display: grid; }
.drawer-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font: 700 20px/1 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.drawer-group summary { cursor: pointer; padding: 6px 4px; font-weight: 600; color: var(--muted); }
.drawer-group .chip-row { padding-top: 10px; }
.drawer-foot { margin-top: auto; display: grid; gap: 10px; }
body.no-scroll { overflow: hidden; }

/* Hero */
.hero { position: relative; overflow: hidden; background: #0b0c0d; }
.hero-plain {
    min-height: 460px; display: flex; align-items: center; padding: 48px 0 110px;
    background:
        radial-gradient(1200px 400px at 80% 110%, rgba(255, 106, 19, .28), transparent 60%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
        linear-gradient(180deg, #16191c, #0b0c0d);
}
.hero-art { position: absolute; right: -60px; bottom: 60px; width: min(780px, 120%); opacity: .55; pointer-events: none; }
.hero-truck { width: 100%; height: auto; }
.hero-copy { position: relative; }
.kicker { font: 700 14px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hero-title { font-size: clamp(44px, 11vw, 96px); font-weight: 800; line-height: .92; }
.hero-title span { color: var(--accent); }
.hero-lead { max-width: 520px; margin-top: 16px; color: #cfd2d5; font-size: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Slider */
.slider { position: relative; }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.slide img { width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0;
    background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; display: none; align-items: center; justify-content: center;
}
.slider-nav:hover { background: var(--accent); color: var(--accent-ink); }
.slider-nav.prev { left: 16px; }
.slider-nav.next { right: 16px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 26px; height: 4px; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .4); cursor: pointer; padding: 0; }
.slider-dots button[aria-current="true"] { background: var(--accent); }
.slider-desk { display: none; }
@media (min-width: 768px) {
    .slider-desk { display: block; }
    .slider-mob { display: none; }
    .slider-nav { display: inline-flex; }
}
.hero-slides + .finder-wrap { margin-top: 16px; }

/* Finder */
.finder-wrap { position: relative; z-index: 5; margin-top: -80px; }
.finder {
    background: linear-gradient(180deg, #1e2226, #181b1e); border: 1px solid var(--line); border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow);
}
.finder-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.finder-title { font-size: 28px; }
.finder-sub { color: var(--muted); font-size: 14px; }
.finder-sub strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.finder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > span { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field select, .field input {
    width: 100%; height: 44px; padding: 0 32px 0 12px; border-radius: 8px; border: 1px solid var(--line); background-color: var(--bg);
    appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a13' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.field select:hover { border-color: #444a50; }
.field select:focus { border-color: var(--accent); outline: none; }
.field option { background: var(--bg-2); color: var(--text); }
.field-pair { grid-column: span 2; }
.field-pair > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.finder-actions { grid-column: 1 / -1; display: flex; align-items: end; }
.finder-actions .btn { width: 100%; }
.finder-more { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.finder-more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; list-style: none; padding: 4px 0; }
.finder-more summary::-webkit-details-marker { display: none; }
.finder-more[open] summary { margin-bottom: 10px; }
.finder.is-busy [data-finder-count] { opacity: .5; }
@media (min-width: 640px) {
    .finder { padding: 22px 24px; }
    .finder-grid { grid-template-columns: repeat(3, 1fr); }
    .field-pair { grid-column: span 1; }
    .finder-actions { grid-column: auto; }
}
@media (min-width: 1100px) {
    .finder-grid { grid-template-columns: repeat(4, 1fr); }
    .finder-title { font-size: 32px; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat strong { display: block; font: 800 34px/1 var(--head); color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat:first-child strong { color: var(--accent); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* Sections */
.block { padding: 36px 0 8px; }
.block-tight { padding: 24px 0 0; }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.block-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--accent); }
.block-title { font-size: clamp(28px, 6vw, 40px); }
.block-title.sm { font-size: 24px; margin-bottom: 12px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; }

/* Vehicle grid + card */
.vgrid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 540px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .vgrid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.vcard { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, transform .2s; }
.vcard:hover { border-color: #4a3426; transform: translateY(-2px); }
.vcard-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-3); overflow: hidden; }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.vcard:hover .vcard-media img { transform: scale(1.04); }
.vcard-flag { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font: 700 13px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; }
.flag-sold { background: #e23b3b; color: #fff; }
.flag-hold { background: #f2c230; color: #1c1600; }
.vcard-ref { position: absolute; right: 10px; top: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .65); font-size: 11.5px; color: #ddd; }
.vcard.is-sold .vcard-media img { filter: grayscale(.8) brightness(.7); }
.vcard-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.vcard-title { font-size: 22px; line-height: 1.05; }
.vcard-title a:hover { color: var(--accent); }
.vcard-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vcard-chips li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; background: var(--bg-3); font-size: 12.5px; color: #cfd2d5; }
.vcard-chips .ico { color: var(--accent); }
.vcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.vcard-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.vcard-price strong { font: 800 28px/1 var(--head); color: var(--accent); }
.vcard-price strong.ask { font-size: 20px; }
.vcard-price s { color: var(--muted); font-size: 13px; }
.vcard-price small { color: var(--muted); font-size: 11px; letter-spacing: .1em; }

/* Deal tiles + ad strip */
.deal-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.deal-tile { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.deal-tile img { width: 100%; height: auto; transition: transform .3s; }
.deal-tile:hover img { transform: scale(1.03); }
@media (min-width: 768px) { .deal-tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.ad-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.ad-tile { display: block; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.ad-tile img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .ad-strip { grid-auto-columns: calc((100% - 24px) / 3); } }
@media (min-width: 1100px) { .ad-strip { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

/* Browse chips */
.browse-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .browse-grid { grid-template-columns: 1fr 1fr; } }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* Empty state */
.empty { text-align: center; padding: 48px 20px; border: 1px dashed #3a4046; border-radius: var(--radius-lg); background: var(--bg-2); }
.empty .ico { color: var(--accent); margin: 0 auto 12px; }
.empty h2 { font-size: 32px; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.empty .hero-cta { justify-content: center; }

/* CTA band */
.band { margin-top: 48px; background: var(--accent); color: var(--accent-ink); background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 14px); }
.band-in { display: grid; gap: 18px; padding-top: 32px; padding-bottom: 32px; }
.band-title { font-size: clamp(30px, 6vw, 44px); font-weight: 800; }
.band p { margin-top: 6px; font-weight: 500; max-width: 560px; }
.band .hero-cta { margin-top: 0; }
.band .btn-accent { background: var(--accent-ink); color: var(--text); }
.band .btn-accent:hover { background: #000; color: #fff; }
.band .btn-ghost { border-color: rgba(0, 0, 0, .35); color: var(--accent-ink); }
.band .btn-ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); background: rgba(0, 0, 0, .08); }
@media (min-width: 900px) { .band-in { grid-template-columns: 1fr auto; align-items: center; } }

/* Footer */
.sitefoot { background: #0b0c0d; border-top: 1px solid var(--line); }
.band + .sitefoot, main + .sitefoot { margin-top: 0; }
.sitefoot-grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 32px; }
.sitefoot-brand { display: grid; gap: 14px; align-content: start; }
.sitefoot-brand p { max-width: 320px; }
.foot-head { font-size: 18px; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px; }
.foot-links { display: grid; gap: 8px; color: #cfd2d5; font-size: 14px; }
.foot-contact { display: grid; gap: 10px; font-size: 14px; color: #cfd2d5; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .ico { color: var(--accent); margin-top: 2px; }
.sitefoot-base { border-top: 1px solid var(--line); padding: 16px 0; font-size: 13px; color: var(--muted); }
@media (min-width: 640px) { .sitefoot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .sitefoot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* Mobile dock */
.dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(11, 12, 13, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.dock-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 10px; font-weight: 700; font-size: 15px; }
.dock-wa { background: #1fa855; color: #fff; }
.dock-inq { background: var(--accent); color: var(--accent-ink); }
.dock-btn:hover { color: inherit; filter: brightness(1.08); }
@media (max-width: 991.98px) { :root { --dock-h: 66px; } }


/* Small screens: compact top bar, keep the hero art away from the copy */
.topbar-facts li, .topbar-account a { white-space: nowrap; }
@media (max-width: 479.98px) {
    .topbar-facts span, .topbar-account .hide-xs { display: none !important; }
    .topbar-facts { gap: 10px; }
}
@media (max-width: 767.98px) {
    .hero-art { width: 150%; right: -45%; bottom: auto; top: 12px; opacity: .18; }
}

/* ===== Inner pages ===== */
.pagehead { padding: 28px 0 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #16191c, var(--bg)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--accent); }
.pagehead-title { font-size: clamp(32px, 7vw, 52px); font-weight: 800; }
.pagehead-sub { margin-top: 6px; color: var(--muted); }
.pagehead-sub strong { color: var(--accent); }
.pagehead-note { margin-top: 6px; color: var(--accent-2); font-weight: 600; }
.alert { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); font-size: 14px; margin-bottom: 14px; }
.alert ul { padding-left: 18px; list-style: disc; }
.alert-error { border-color: #7a2b2b; background: #2a1414; color: #ffb4b4; }
.alert-ok { border-color: #1f6b3e; background: #102619; color: #a8f0c4; }

/* Listing */
.listing { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 32px; }
.listing-main { min-width: 0; }
.listing-side-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font: 700 22px/1 var(--head); text-transform: uppercase; }
@media (max-width: 991.98px) {
    .listing-side { position: fixed; inset: 0 auto 0 0; z-index: 210; width: min(380px, 92vw); background: var(--bg); padding: 14px; overflow-y: auto; transform: translateX(-105%); transition: transform .2s ease-out; border-right: 1px solid var(--line); }
    .listing-side.is-open { transform: none; box-shadow: var(--shadow); }
    .listing-side .finder { border-radius: var(--radius); }
    .filter-scrim { position: fixed; inset: 0; z-index: 205; background: rgba(0, 0, 0, .6); }
}
@media (min-width: 992px) {
    .listing { grid-template-columns: 300px 1fr; align-items: start; }
    .listing-side { position: sticky; top: 140px; max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: thin; }
}
.finder-side { padding: 16px; box-shadow: none; }
.finder-side .finder-head { margin-bottom: 10px; }
.finder-side .finder-title { font-size: 24px; }
.finder-side .finder-grid { grid-template-columns: 1fr 1fr; }
.finder-side .field:not(.field-pair) { grid-column: span 2; }
.finder-side .field-pair { grid-column: span 2; }
.finder-side .finder-actions { grid-column: span 2; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; font-size: 14px; font-weight: 500; }
.tab em { font-style: normal; color: var(--muted); font-size: 12px; }
.tab.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tab.is-on em { color: var(--accent-ink); }
.tab img { border-radius: 2px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.toolbar-field { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.toolbar-field select { height: 36px; padding: 0 28px 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a13' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px; appearance: none; -webkit-appearance: none; color: var(--text); }
.toolbar-field option { background: var(--bg-2); }
.hide-xs-flex { display: none; }
@media (min-width: 480px) { .hide-xs-flex { display: inline-flex; } }
.viewtoggle { margin-left: auto; display: none; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.viewtoggle button { width: 38px; height: 34px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.viewtoggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (min-width: 768px) { .viewtoggle { display: inline-flex; } }

.vgrid-listing { grid-template-columns: 1fr; }
@media (min-width: 540px) { .vgrid-listing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .vgrid-listing { grid-template-columns: repeat(3, 1fr); } }
.vcard-specs, .vcard-acc { display: none; }
@media (min-width: 768px) {
    .vgrid.is-list { grid-template-columns: 1fr; }
    .is-list .vcard { flex-direction: row; }
    .is-list .vcard-media { flex: 0 0 300px; aspect-ratio: auto; min-height: 225px; }
    .is-list .vcard-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px 14px; margin: 0; font-size: 13px; }
    .is-list .vcard-specs dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
    .is-list .vcard-specs dd { margin: 0; font-weight: 500; }
    .is-list .vcard-acc { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
    .is-list .vcard-acc span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: #cfd2d5; }
    .is-list .vcard-acc a { color: var(--accent); padding: 3px 4px; }
}

/* Pager */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pager-pages { display: flex; gap: 6px; flex-wrap: wrap; }
.pager-btn, .pager-num { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); font-weight: 600; font-size: 14px; }
.pager-num.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pager-btn.is-off { opacity: .4; }
.pager-gap { display: inline-flex; align-items: center; height: 40px; padding: 0 4px; color: var(--muted); }
.pager-info { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }
@media (max-width: 479.98px) { .pager-word { display: none; } .pager-num, .pager-btn { min-width: 36px; padding: 0 8px; } }

/* ===== Vehicle detail ===== */
.detail { padding-top: 18px; padding-bottom: 8px; }
.detail-top { display: grid; gap: 22px; }
@media (min-width: 992px) { .detail-top { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: start; } }
.gallery { min-width: 0; }
.gallery-stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 3; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-stage .vcard-flag { z-index: 2; }
.gallery-stage .slider-nav { display: inline-flex; }
.gallery-count { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .65); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.gallery-full { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border: 0; border-radius: 8px; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.gallery-full:hover { background: var(--accent); color: var(--accent-ink); }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: thin; }
.gallery-thumbs button { flex: 0 0 88px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--bg-2); cursor: pointer; opacity: .65; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5, 6, 7, .96); display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .slider-nav { display: inline-flex; }
.lightbox-close { position: absolute; top: 10px; right: 10px; color: #fff; }
.lightbox .gallery-count { left: 50%; transform: translateX(-50%); bottom: 16px; }

.summary-title { font-size: clamp(30px, 6vw, 46px); font-weight: 800; }
.summary-chips { margin-top: 12px; }
.pricebox { margin-top: 18px; padding: 18px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.pricebox-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pricebox-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 4px; }
.pricebox-now { font: 800 48px/1 var(--head); color: var(--accent); }
.pricebox s { color: var(--muted); }
.save { padding: 3px 8px; border-radius: 6px; background: rgba(60, 207, 122, .15); color: var(--ok); font-size: 13px; font-weight: 600; }
.pricebox-deal { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--accent-2); font-weight: 600; font-size: 14px; }
.pricebox-cta { display: grid; gap: 8px; margin-top: 16px; }
@media (min-width: 480px) { .pricebox-cta { grid-template-columns: 1fr auto; } }
.keyfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 18px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.keyfacts div { background: var(--bg-2); padding: 10px 12px; }
.keyfacts dt, .spec-table dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.keyfacts dd, .spec-table dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }

.detail-body { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 992px) { .detail-body { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: start; } .detail-side { position: sticky; top: 140px; } }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel-title { font-size: 26px; margin-bottom: 14px; }
.spec-table { display: grid; grid-template-columns: 1fr; margin: 0; }
.spec-table div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-table dd { margin: 0; text-align: right; }
@media (min-width: 640px) { .spec-table { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.features li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #6f757b; }
.features li.is-on { color: var(--text); font-weight: 500; }
.features li.is-on .ico { color: var(--ok); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ship-img { border-radius: var(--radius); margin-bottom: 12px; }

/* Inquiry */
.inq { background: var(--bg-2); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius-lg); padding: 18px; scroll-margin-top: 150px; }
.inq-title { font-size: 30px; margin-bottom: 14px; }
.inq-step + .inq-step { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.inq-step-title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 12px; }
.inq-step-title span { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 16px; }
.inq-step-title small { font: 500 12px/1 var(--body); text-transform: none; color: var(--muted); }
.ports { margin: 12px 0; display: grid; gap: 6px; }
.port { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--bg); }
.port:has(input:checked) { border-color: var(--accent); background: rgba(255, 106, 19, .08); }
.port label, .port > span:first-child { display: flex; align-items: center; gap: 10px; }
.port input { accent-color: var(--accent); width: 18px; height: 18px; }
.port strong { font-variant-numeric: tabular-nums; }
.inq-total { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; border-radius: 8px; background: var(--bg); }
.inq-total span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.inq-total strong { font: 800 32px/1 var(--head); color: var(--accent); }
.inq-steps-info { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: #cfd2d5; }
.inq-steps-info h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.inq-steps-info ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.small { font-size: 13px; }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-block { width: 100%; margin-top: 12px; }

/* Forms (shared) */
.form-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid.two .field-wide { grid-column: 1 / -1; } }
.field input:not([type=checkbox]):not([type=radio]), .field textarea {
    width: 100%; padding: 0 12px; height: 46px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); background-image: none; cursor: text;
}
.field textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input[readonly] { opacity: .75; }
.field input::placeholder, .field textarea::placeholder { color: #6f757b; }
.field-phone > div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.field-error { color: #ff9b9b; font-size: 12.5px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 2px; }

/* ===== Auth ===== */
.auth-body { padding-bottom: 0; }
.auth { min-height: 100vh; display: grid; }
@media (min-width: 992px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(460px, 560px); } }
.auth-art { display: none; position: relative; overflow: hidden; background:
    radial-gradient(900px 380px at 30% 110%, rgba(255, 106, 19, .32), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px), #0b0c0d; border-right: 1px solid var(--line); }
@media (min-width: 992px) { .auth-art { display: flex; align-items: flex-end; } }
.auth-art-in { padding: 56px; display: grid; gap: 18px; max-width: 560px; }
.auth-art-title { font: 800 clamp(48px, 5vw, 76px)/.92 var(--head); text-transform: uppercase; }
.auth-art-title span { color: var(--accent); }
.auth-main { display: flex; flex-direction: column; padding: 18px var(--pad) 24px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-left: auto; }
.auth-card { width: 100%; max-width: 480px; margin: 32px auto; }
.auth-title { font-size: 44px; font-weight: 800; }
.auth-lead { color: var(--muted); margin: 8px 0 20px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; }
.auth-alt { margin-top: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.auth-foot { margin-top: auto; text-align: center; color: #5c636a; font-size: 12.5px; }
.form-grid .btn-lg { width: 100%; }
.pw { position: relative; }
.pw input { padding-right: 48px !important; }
.pw-toggle { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.pw-toggle[aria-pressed="true"] { color: var(--accent); }
.code-input { letter-spacing: .5em; font-size: 20px !important; font-variant-numeric: tabular-nums; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #e25555 !important; }

[hidden] { display: none !important; }
.min0 { min-width: 0; }
.mono { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-danger { background: transparent; color: #ff8d8d; border-color: #6b2c2c; }
.btn-danger:hover { background: #3a1717; color: #ffb4b4; }
.hint { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.hint.is-bad, .hint.is-bad a { color: #ff9b9b; }
.hint.is-ok { color: var(--ok); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--bg-3); color: var(--muted); }
.pill-ok { background: rgba(60, 207, 122, .14); color: var(--ok); }
.pill-warn { background: rgba(242, 166, 48, .14); color: #f2b14d; }
.pill-bad { background: rgba(226, 85, 85, .16); color: #ff8d8d; }
.pill-off { background: var(--bg-3); color: var(--muted); }
.pill-accent { background: var(--accent); color: var(--accent-ink); }
.count { font-style: normal; display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; }

/* ===== Client account ===== */
.acct-wrap { display: grid; gap: 20px; padding-top: 24px; padding-bottom: 40px; }
@media (min-width: 992px) { .acct-wrap { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; } .acct-side { position: sticky; top: 140px; } }
.acct-solo { padding-top: 20px; padding-bottom: 40px; }
.acct-side { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; }
.acct-user { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); }
.acct-user-text { min-width: 0; display: grid; }
.acct-user-text span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-flex; flex: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; overflow: hidden; background: var(--accent); color: var(--accent-ink); font: 800 18px/1 var(--head); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 84px; height: 84px; font-size: 32px; }
.avatar-xs { width: 24px; height: 24px; font-size: 11px; vertical-align: middle; }
.acct-nav { display: flex; gap: 4px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.acct-nav::-webkit-scrollbar { display: none; }
.acct-nav a, .acct-logout button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-weight: 500; font-size: 14.5px; white-space: nowrap; color: #cfd2d5; background: none; border: 0; width: 100%; cursor: pointer; text-align: left; }
.acct-nav a:hover, .acct-logout button:hover { background: var(--bg-3); color: var(--text); }
.acct-nav a.is-on { background: rgba(255, 106, 19, .12); color: var(--accent); }
.acct-nav a .count { margin-left: auto; }
.acct-logout { margin: 0; }
@media (min-width: 992px) { .acct-nav { flex-direction: column; overflow: visible; } .acct-logout { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; } }
@media (max-width: 991.98px) { .acct-logout button span, .acct-nav a span { display: inline; } .acct-logout { flex: none; } .acct-logout button { width: auto; } }
.pane-head { margin-bottom: 16px; }
.pane-head h1 { font-size: clamp(32px, 6vw, 44px); font-weight: 800; }
.pane-head p { color: var(--muted); margin-top: 4px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 16px; }
.card-flush { padding: 0; overflow: hidden; }
.card-title { font-size: 24px; margin-bottom: 14px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-title-row .card-title { margin: 0; }
.photo-row { display: flex; align-items: center; gap: 16px; }
.form-grid.three { grid-template-columns: 1fr; }
@media (min-width: 768px) { .form-grid.three { grid-template-columns: repeat(3, 1fr); } .form-grid.three .field-wide { grid-column: 1 / -1; } }
.phone-pair { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); margin-bottom: 14px; font-size: 14px; }
.note .ico { color: var(--accent); margin-top: 2px; }
.note form { margin-top: 8px; }
.note-ok { border-color: #1f6b3e; } .note-ok .ico { color: var(--ok); }
.note-warn { border-color: #6b5220; } .note-warn .ico { color: #f2b14d; }
.savebar { position: sticky; bottom: calc(var(--dock-h) + 10px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: var(--radius-lg); background: rgba(27, 30, 33, .97); border: 1px solid var(--line); box-shadow: var(--shadow); }
.savebar-state { color: var(--muted); font-size: 14px; }
.savebar-state.is-dirty { color: #f2b14d; }
.savebar-btns { display: flex; gap: 8px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); } .tiles-3 { grid-template-columns: repeat(3, 1fr); } .tiles-2 { grid-template-columns: repeat(2, 1fr); } }
.tiles-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles-2 { grid-template-columns: 1fr 1fr; } }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.tiles-2 .tile { flex-direction: row; align-items: center; gap: 12px; }
.tiles-2 .tile > div { flex: 1; min-width: 0; display: grid; }
.tiles-2 .tile strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .ico { color: var(--accent); }
.tile small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.tile-num { font: 800 32px/1 var(--head); color: var(--text); }
.tiles .tile:first-child .tile-num { color: var(--accent); }
.list-tools { display: grid; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .list-tools { grid-template-columns: 2fr 1fr 1fr; } }
.list-tools input, .list-tools select { height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); width: 100%; }
.list-tools input:focus, .list-tools select:focus { border-color: var(--accent); outline: none; }
.list-tools option { background: var(--bg-2); }
.rows { display: grid; }
.row-card { display: grid; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: center; }
@media (min-width: 1100px) { .row-card { grid-template-columns: 220px 1fr auto; } }
.row-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.row-sn { flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.row-ref { display: block; font-family: var(--head); font-size: 20px; letter-spacing: .02em; }
.row-sub { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0; font-size: 13.5px; }
@media (min-width: 640px) { .row-facts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } }
.row-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.row-facts dd { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.row-facts dd small { color: var(--muted); }
.accent { color: var(--accent); font-weight: 700; }
.row-act { justify-self: start; }
@media (min-width: 1100px) { .row-act { justify-self: end; } }
.list-count { padding: 12px 16px; color: var(--muted); font-size: 13px; }
.empty-sm { margin: 16px; padding: 28px 16px; }
.empty-sm h2 { font-size: 24px; }
.box-card { margin: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.box-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #15181b; }
.box-head small, .box-body small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.box-body { display: grid; gap: 16px; padding: 14px; }
@media (min-width: 900px) { .box-body { grid-template-columns: repeat(3, 1fr); } }
.box-body h3 { font-size: 18px; color: var(--accent); margin-bottom: 8px; }
.box-body p { margin: 2px 0 10px; }
.box-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.docs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.docs small { margin-right: 4px; color: var(--muted); }
.box-foot .chip { padding: 5px 10px; font-size: 12.5px; }
.copy { margin-left: 6px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.copy:hover { color: var(--accent); border-color: var(--accent); }
.remarks { display: grid; gap: 10px; padding: 14px; }
.remarks li { padding: 10px 12px; border-radius: 8px; background: var(--bg-2); border-left: 3px solid var(--line); }
.remarks li.is-new { border-left-color: var(--accent); }
.remarks li.is-extra { display: none; }
.box-card.is-open .remarks li.is-extra { display: block; }
.remarks small { color: var(--muted); font-size: 12px; }
.pw-layout { display: grid; gap: 20px; }
@media (min-width: 900px) { .pw-layout { grid-template-columns: 1fr 1fr; } }
.pw-meter { padding: 14px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); align-self: start; }
.pw-meter-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.pw-bar { height: 6px; border-radius: 3px; background: var(--bg-3); margin: 8px 0 12px; overflow: hidden; }
.pw-bar span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.pw-rules { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.pw-rules li::before { content: "○"; display: inline-block; width: 18px; color: #555c63; }
.pw-rules li.is-ok { color: var(--text); }
.pw-rules li.is-ok::before { content: "✓"; color: var(--ok); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 16px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.qr { margin: 12px 0; display: inline-block; padding: 10px; background: #fff; border-radius: 10px; min-height: 40px; }
.qr:empty { display: none; }
.secret { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.secret code { padding: 6px 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); letter-spacing: .1em; overflow-wrap: anywhere; }
.tfa-form { margin-top: 10px; max-width: 280px; }
.tfa-form input { width: 100%; height: 48px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
@media (min-width: 640px) { .codes { grid-template-columns: repeat(4, 1fr); } }
.codes code { padding: 8px; text-align: center; border-radius: 6px; background: var(--bg); border: 1px dashed var(--line); letter-spacing: .08em; }
.subform { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); display: grid; gap: 10px; }
.toast { position: fixed; top: 16px; right: 16px; z-index: 400; padding: 12px 16px; border-radius: 10px; background: #12341f; border: 1px solid #1f6b3e; color: #b9f3cf; box-shadow: var(--shadow); font-weight: 500; }
.toast.is-bad { background: #3a1717; border-color: #7a2b2b; color: #ffb4b4; }
.pad { padding: 10px; }

/* ===== Chat ===== */
.chat { display: grid; height: min(720px, calc(100vh - 220px)); min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); }
@media (min-width: 992px) { .chat { grid-template-columns: 300px minmax(0, 1fr); } }
.chat-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.chat-side-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-side-head h2 { font-size: 22px; }
.chat-list { flex: 1; overflow-y: auto; padding: 10px; display: grid; gap: 6px; align-content: start; }
.chat-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: inherit; text-align: left; cursor: pointer; }
.chat-item:hover { border-color: #4a3426; }
.chat-item[aria-current="true"] { border-color: var(--accent); background: rgba(255, 106, 19, .08); }
.chat-item-img { flex: none; width: 60px; height: 45px; border-radius: 8px; object-fit: cover; background: var(--bg-3); }
.chat-item-general { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font: 800 22px/1 var(--head); }
.noimg { display: inline-block; background: var(--bg-3); }
.chat-item-top { display: flex; justify-content: space-between; gap: 6px; }
.chat-item-title { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-item-meta { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { flex: none; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: var(--accent); }
.chat-main { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.chat-head-icon { flex: none; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); overflow: hidden; }
.chat-head-img { width: 100%; height: 100%; object-fit: cover; }
.chat-title { font: 700 18px/1.2 var(--head); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-sub { color: var(--muted); font-size: 12.5px; }
.chat-back { display: none; flex: none; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.chat-msgs > * { flex-shrink: 0; }
.msg-day { align-self: center; margin: 10px 0 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.msg { max-width: 78%; display: flex; flex-direction: column; margin-top: 6px; }
.msg.is-mine { align-self: flex-end; align-items: flex-end; }
.msg-author { font-size: 12px; color: var(--muted); margin: 0 4px 3px; }
.msg-bubble { padding: 9px 13px; border-radius: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg-3); border-top-left-radius: 4px; }
.msg.is-mine .msg-bubble { background: var(--accent); color: var(--accent-ink); border-top-left-radius: 14px; border-top-right-radius: 4px; }
.msg-time { font-size: 11px; color: var(--muted); margin: 3px 4px 0; }
.msg.is-sending .msg-bubble { opacity: .6; }
.msg.is-failed .msg-time { color: #ff8d8d; }
.msg.is-card { width: 100%; max-width: 440px; }
.msg-card { width: 100%; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.msg-card-tag { display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px; font-size: 12px; font-weight: 600; background: rgba(255, 106, 19, .12); color: var(--accent); }
.msg-card-body { display: flex; gap: 12px; padding: 12px; }
.msg-card-img { flex: none; width: 110px; height: 82px; border-radius: 8px; object-fit: cover; background: var(--bg-3); }
.msg-card-title { font: 700 17px/1.15 var(--head); text-transform: uppercase; margin: 0 0 6px; }
.msg-facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 12.5px; }
.msg-facts dt { color: var(--muted); }
.msg-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.msg-facts-pad { padding: 0 12px 10px; }
.msg-card-note { padding: 0 12px 10px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-card > .msg-card-note:nth-child(2) { padding-top: 10px; }
.msg-card-foot { padding: 8px 12px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; font-size: 13px; }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px 4px; border-top: 1px solid var(--line); background: var(--bg-2); }
.chat-compose textarea { flex: 1; resize: none; max-height: 140px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); line-height: 1.45; }
.chat-compose textarea:focus { border-color: var(--accent); outline: none; }
.chat-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chat-send:disabled { opacity: .5; }
.chat-hint { padding: 2px 16px 10px; background: var(--bg-2); font-size: 12px; color: var(--muted); }
.chat-empty { margin: auto; text-align: center; color: var(--muted); padding: 24px; max-width: 320px; }
.skeleton { height: 54px; margin: 6px 0; border-radius: 12px; background: linear-gradient(90deg, var(--bg-3), #2c3136, var(--bg-3)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 991.98px) {
    .chat { height: min(calc(100svh - 200px), 760px); }
    .chat.is-reading .chat-side { display: none; }
    .chat:not(.is-reading) .chat-main { display: none; }
    .chat-side { border-right: 0; }
    .chat-back { display: inline-flex; }
    .msg { max-width: 90%; }
    .chat-hint { display: none; }
}
@media (max-width: 420px) { .msg-card-body { flex-direction: column; } .msg-card-img { width: 100%; height: 150px; } }
.acct-wrap > *, .acct-main, .acct-side { min-width: 0; }
.list-tools select { appearance: none; -webkit-appearance: none; padding-right: 30px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a13' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; }

/* Notice ticker extras */
.notice-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.notice-sep { margin: 0 18px; opacity: .6; }

/* Banner popup */
.popup { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 16px; }
.popup-scrim { position: absolute; inset: 0; background: rgba(5, 6, 7, .85); }
.popup-box { position: relative; width: min(960px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; outline: none; box-shadow: var(--shadow); }
.popup.is-image .popup-box { width: auto; max-width: min(1200px, 100%); background: transparent; border: 0; box-shadow: none; }
.popup-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.popup-x:hover { background: var(--accent); color: var(--accent-ink); }
.popup-title { padding: 14px 56px 12px 18px; font-size: 22px; }
.popup-media { display: flex; align-items: center; justify-content: center; min-height: 0; }
.popup-media img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: var(--radius); }
.popup-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.popup-frame iframe, .popup-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.popup-foot { padding: 12px 18px; text-align: center; }

/* Content pages */
.prose-grid { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 32px; }
@media (min-width: 992px) { .prose-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .side-contact { position: sticky; top: 140px; } }
.prose { min-width: 0; font-size: 16px; color: #d6d8da; }
.prose p + p { margin-top: 12px; }
.prose .lead { font-size: 19px; color: var(--text); line-height: 1.55; margin-bottom: 14px; }
.prose h2 { font-size: 32px; margin: 28px 0 14px; color: var(--text); }
.values { display: grid; gap: 12px; }
@media (min-width: 640px) { .values { grid-template-columns: 1fr 1fr; } }
.values section { padding: 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.values h3 { font-size: 20px; margin-bottom: 6px; color: var(--text); }
.values p { font-size: 14.5px; }
.ticks { display: grid; gap: 8px; margin: 12px 0; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.bankbox { padding: 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); overflow-x: auto; }
.bankbox table { width: 100%; border-collapse: collapse; }
.bankbox td, .bankbox th { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.contact-lines { display: grid; gap: 14px; margin-bottom: 16px; }
.contact-lines li { display: flex; gap: 12px; align-items: flex-start; }
.contact-lines .ico { color: var(--accent); margin-top: 3px; }
.contact-lines small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-lines a { font-weight: 600; overflow-wrap: anywhere; }
.buy-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .buy-steps { grid-template-columns: repeat(5, 1fr); } }
.buy-steps li { position: relative; padding: 18px 16px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.buy-steps span { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 800 20px/1 var(--head); margin-bottom: 10px; }
.buy-steps h3 { font-size: 21px; margin-bottom: 6px; }
.buy-steps p { font-size: 14px; color: #cfd2d5; }
.team-group { margin-bottom: 28px; scroll-margin-top: 150px; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(5, 1fr); } }
.person { text-align: center; padding: 14px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.person-photo { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo span { font: 800 40px/1 var(--head); color: var(--accent); }
.person h3 { font-size: 19px; }
.person p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.thanks { padding-top: 40px; padding-bottom: 40px; }
.thanks-card { max-width: 640px; margin: 0 auto; text-align: center; padding: 32px 20px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.thanks-icon { display: inline-flex; width: 76px; height: 76px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(60, 207, 122, .15); color: var(--ok); margin-bottom: 14px; }
.thanks-card h1 { font-size: clamp(32px, 7vw, 46px); font-weight: 800; }
.thanks-card > p { color: #cfd2d5; margin-top: 8px; }
.thanks-next { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line); }
.thanks-next h2 { font-size: 24px; }
.thanks-next .hero-cta { justify-content: center; }

/* Status pages (maintenance / work in progress) */
.status-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background:
    radial-gradient(900px 380px at 50% 120%, rgba(255, 106, 19, .25), transparent 60%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px), var(--bg); }
.status-card { width: min(520px, 100%); text-align: center; padding: 36px 24px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); border-top: 4px solid var(--accent); display: grid; justify-items: center; gap: 10px; }
.status-card h1 { font-size: clamp(34px, 7vw, 48px); font-weight: 800; }
.status-text { color: #cfd2d5; white-space: pre-line; }
.status-logo { max-height: 54px; max-width: 220px; }
