/* THE RECON AAI GARAGE — black & red theme */
:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --surface: #151518;
  --surface-2: #1d1d21;
  --line: #2a2a30;
  --line-2: #3a3a42;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --red: #e10600;
  --red-2: #ff2b1c;
  --red-dark: #8f0400;
  --wa: #25d366;
  --wa-dark: #128c4a;
  --lou: #22c55e;
  --booking: #f59e0b;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --head: 'Saira Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1240px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-2); }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; letter-spacing: .01em; margin: 0 0 .4em; text-transform: uppercase; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 640px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.pre { white-space: pre-line; }
.fine { color: var(--dim); font-size: .82rem; margin: .6em 0 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 20px; border-radius: 10px;
  font: 700 .95rem/1 var(--body); letter-spacing: .02em; border: 1.5px solid transparent; cursor: pointer; transition: .18s ease; white-space: nowrap; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .85rem; border-radius: 8px; }
.btn-red { background: linear-gradient(135deg, var(--red-2), var(--red)); color: #fff; box-shadow: 0 6px 20px rgba(225, 6, 0, .35); }
.btn-red:hover { color: #fff; filter: brightness(1.1); transform: translateY(-1px); }
.btn-outline { border-color: var(--red); color: #fff; background: rgba(225, 6, 0, .06); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { border-color: var(--text); color: #fff; }
.btn-light { background: #fff; color: #0a0a0b; }
.btn-light:hover { color: var(--red); }
.btn-wa { background: var(--wa); color: #06210f; }
.btn-wa:hover { background: #2ee675; color: #06210f; }
.btn-danger { background: transparent; border-color: #7f1d1d; color: #fca5a5; }
.btn-danger:hover { background: #7f1d1d; color: #fff; }
button.btn { font-family: var(--body); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 11, .88); backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red) 70%, transparent); opacity: .7; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: .95; font-family: var(--head); text-transform: uppercase; }
.brand-text small { font-size: .78rem; letter-spacing: .32em; color: var(--muted); font-weight: 600; }
.brand-text strong { font-size: 1.45rem; font-weight: 800; letter-spacing: .04em; font-style: italic; }
.brand-text strong::first-letter { color: var(--red-2); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: .95rem; color: var(--muted); position: relative; }
.nav a:hover, .nav a.active { color: #fff; }
.nav a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); border-radius: 2px; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; cursor: pointer; padding: 0 11px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .header-inner { min-height: 62px; gap: 10px; }
  .header-cta { margin-left: auto; }
  .header-cta .btn span { display: none; }
  .header-cta .btn { width: 44px; padding: 0; min-height: 44px; }
  .nav { position: fixed; inset: 63px 0 auto 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    transform: translateY(-120%); transition: transform .25s ease; margin: 0; gap: 0; z-index: -1; }
  .nav.open { transform: none; }
  .nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a.active::after { display: none; }
  .nav a.active { color: var(--red-2); }
  .brand-text strong { font-size: 1.25rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 0; isolation: isolate;
  background: radial-gradient(1200px 500px at 85% 10%, rgba(225, 6, 0, .28), transparent 60%),
              radial-gradient(800px 400px at 0% 100%, rgba(225, 6, 0, .12), transparent 60%),
              linear-gradient(180deg, #0d0d0f, var(--bg)); }
.hero.has-image .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.hero.has-image::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,11,.95) 15%, rgba(10,10,11,.55) 60%, rgba(10,10,11,.2)), linear-gradient(0deg, var(--bg), transparent 40%); }
.hero-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(-62deg, transparent 0 46px, rgba(255, 43, 28, .07) 46px 48px);
  mask-image: linear-gradient(90deg, transparent 35%, #000 75%); -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 75%); }
.hero-lines::after { content: ''; position: absolute; right: -10%; top: 18%; width: 70%; height: 6px; background: linear-gradient(90deg, transparent, var(--red)); transform: skewX(-40deg); opacity: .8; box-shadow: 0 30px 0 -2px rgba(225,6,0,.35), 0 60px 0 -3px rgba(225,6,0,.15); }
.hero-inner { padding-bottom: 36px; }
.eyebrow { color: var(--red-2); font: 700 .8rem/1 var(--body); letter-spacing: .24em; text-transform: uppercase; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--red); }
.hero h1 { max-width: 14ch; font-style: italic; }
.hero-sub { color: #d4d4d8; font-size: 1.1rem; max-width: 52ch; }
.search-panel { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end; padding: 16px; max-width: 920px;
  background: rgba(21, 21, 24, .82); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.search-panel .btn { min-height: 48px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 12px; }
.hero-stats > div { padding: 18px 0; display: flex; flex-direction: column; gap: 2px; }
.hero-stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-stats strong { font: 800 1.5rem/1.1 var(--head); }
.hero-stats span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
@media (max-width: 760px) {
  .hero { padding-top: 36px; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-panel .field:nth-child(3) { grid-column: 1 / -1; }
  .search-panel .btn { grid-column: 1 / -1; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats strong { font-size: 1.05rem; }
  .hero-stats > div + div { padding-left: 12px; }
  .hero-stats span { font-size: .68rem; letter-spacing: .06em; }
}

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); min-height: 46px; padding: 10px 12px; width: 100%; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(225, 6, 0, .2); }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 24px 0 56px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.link-more { color: var(--red-2); font-weight: 600; }
.page-head { padding: 36px 0 10px; background: radial-gradient(700px 200px at 90% 0, rgba(225, 6, 0, .18), transparent 70%); }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.updated-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: #d4d4d8; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lou); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } html { scroll-behavior: auto; } }

/* ---------- status ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 700 .72rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-available { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.status-lou { background: rgba(34, 197, 94, .14); color: #4ade80; border: 1px solid rgba(34, 197, 94, .45); }
.status-booking { background: rgba(245, 158, 11, .14); color: #fbbf24; border: 1px solid rgba(245, 158, 11, .5); }
.status-hidden { background: rgba(234, 179, 8, .15); color: #fde047; border: 1px solid rgba(234, 179, 8, .5); }

/* ---------- car cards ---------- */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.car-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s ease; }
.car-card:hover { border-color: rgba(225, 6, 0, .6); transform: translateY(-3px); box-shadow: var(--shadow); }
.car-media { position: relative; aspect-ratio: 16 / 10; background: #0e0e10; display: block; overflow: hidden; }
.car-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.car-card:hover .car-media > img { transform: scale(1.04); }
.car-media .status { position: absolute; top: 10px; left: 10px; backdrop-filter: blur(6px); background-color: rgba(10, 10, 11, .7); }
.no-photo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--dim); font-size: .78rem;
  background: repeating-linear-gradient(-45deg, #111114 0 14px, #131317 14px 28px); }
.no-photo img { width: 55%; opacity: .9; }
.no-photo.big { position: relative; aspect-ratio: 16 / 10; text-align: center; padding: 20px; }
.car-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.car-year { color: var(--red-2); font-weight: 700; font-size: .8rem; letter-spacing: .1em; margin: 0 0 2px; text-transform: uppercase; }
.car-name { font-size: 1.35rem; margin: 0; }
.car-variant { color: var(--muted); font-size: .9rem; margin: 2px 0 8px; min-height: 1.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.car-specs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; }
.car-specs li { font-size: .75rem; color: #d4d4d8; background: var(--surface-2); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; }
.car-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.price { font: 800 1.5rem/1.1 var(--head); color: #fff; letter-spacing: .01em; }
.car-foot .price { display: block; }
.stock { color: var(--dim); font-size: .75rem; }
.car-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

/* ---------- price table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.price-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.price-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.price-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table tbody tr { cursor: pointer; transition: background .15s; }
.price-table tbody tr:hover { background: rgba(225, 6, 0, .06); }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table .num { text-align: right; white-space: nowrap; }
.price-table td.price { font-size: 1.15rem; }
.show-sm { display: none; }
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .show-sm { display: block; font-size: .8rem; }
  .price-table th, .price-table td { padding: 10px; }
  .price-table td.price { font-size: 1rem; }
}
.list-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.list-tools input { max-width: 380px; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- inventory ---------- */
.inv-layout { display: grid; grid-template-columns: 290px 1fr; gap: 24px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: sticky; top: 86px; }
.filters summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: '+'; margin-left: auto; font-size: 1.3rem; color: var(--red-2); line-height: 1; }
.filters[open] summary::after { content: '–'; }
.filter-form { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.filter-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .75rem; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: #d4d4d8; }
.chip.on, .chip:hover { border-color: var(--red); color: #fff; background: rgba(225, 6, 0, .15); }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { font-size: .8rem; color: var(--muted); }
.sort-form select { min-height: 40px; width: auto; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 26px; }
.pager a { padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 8px; }
@media (max-width: 900px) {
  .inv-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters:not([open]) summary { border-bottom: 0; }
}
@media (max-width: 480px) {
  .car-grid { grid-template-columns: 1fr; }
  .results-bar { flex-wrap: wrap; }
}

/* ---------- car detail ---------- */
.crumbs { padding-top: 18px; font-size: .85rem; color: var(--dim); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.crumbs a { color: var(--muted); }
.detail-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; padding-top: 16px; padding-bottom: 28px; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: #0e0e10; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.gallery-main > img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main > .status { position: absolute; top: 12px; left: 12px; background-color: rgba(10, 10, 11, .75); }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(10, 10, 11, .7); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.gal-nav:hover { background: var(--red); }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.gal-count { position: absolute; right: 12px; bottom: 12px; font-size: .75rem; background: rgba(10, 10, 11, .75); padding: 4px 10px; border-radius: 999px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 92px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: none; cursor: pointer; opacity: .65; }
.thumb.on { border-color: var(--red); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.summary h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: .15em; }
.variant-lg { color: #d4d4d8; font-size: 1.1rem; margin-bottom: 16px; }
.price-box { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(225, 6, 0, .22), rgba(225, 6, 0, .04)); border: 1px solid rgba(225, 6, 0, .45); margin-bottom: 16px; }
.price-lg { font: 800 clamp(2rem, 5vw, 2.6rem)/1.05 var(--head); }
.otr-mini { color: #d4d4d8; font-size: .92rem; }
.otr-mini strong { color: #fff; }
.key-specs { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.key-specs li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.key-specs span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 600; }
.summary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; padding-bottom: 28px; }
.detail-main { display: grid; gap: 20px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card h2 { font-size: 1.5rem; border-left: 4px solid var(--red); padding-left: 10px; }
.card h3 { margin-top: 18px; color: #fff; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.spec-table > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.spec-table > div:nth-child(odd) { border-right: 1px solid var(--line); }
.spec-table dt { color: var(--muted); font-size: .88rem; }
.spec-table dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.feature-list li { padding-left: 20px; position: relative; font-size: .94rem; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--red-2); border-bottom: 2px solid var(--red-2); transform: rotate(-45deg); }
.detail-side { position: sticky; top: 86px; }
.otr-card { border-color: rgba(225, 6, 0, .45); }
.otr-options { display: grid; gap: 10px; margin: 14px 0; }
.otr-options input, .otr-options select { min-height: 42px; font-size: .92rem; }
.toggles { display: grid; gap: 8px; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: .9rem; cursor: pointer; }
.otr-table { width: 100%; border-collapse: collapse; }
.otr-table th, .otr-table td { padding: 11px 0; border-bottom: 1px dashed var(--line-2); font-size: .95rem; }
.otr-table th { text-align: left; font-weight: 500; color: #d4d4d8; }
.otr-table th small { display: block; color: var(--dim); font-size: .74rem; }
.otr-table td { text-align: right; font-weight: 700; white-space: nowrap; }
.otr-table tr.total th, .otr-table tr.total td { border-bottom: 0; padding-top: 14px; }
.otr-table tr.total th { color: #fff; font: 800 1.15rem/1.1 var(--head); text-transform: uppercase; }
.otr-table tr.total td { color: var(--red-2); font: 800 1.7rem/1 var(--head); }
.otr-table.small th, .otr-table.small td { font-size: .85rem; padding: 7px 0; }
.otr-table.small tr.total td { font-size: 1.1rem; }
.note { color: var(--booking); font-size: .82rem; margin: 6px 0 0; min-height: 0; }
.note:empty { display: none; }
.ins-breakdown { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.ins-breakdown summary { cursor: pointer; color: var(--red-2); font-weight: 600; font-size: .9rem; }
.disclaimer { margin: 14px 0 0; font-size: .76rem; color: var(--dim); }
.enquiry-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.enquiry-bar > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.enquiry-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 980px) {
  .detail-top, .detail-body { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}
@media (max-width: 560px) {
  .spec-table { grid-template-columns: 1fr; }
  .spec-table > div:nth-child(odd) { border-right: 0; }
  .feature-list { grid-template-columns: 1fr; }
  .summary-actions { grid-template-columns: 1fr; }
  .enquiry-bar { margin-left: 16px; margin-right: 16px; width: auto; padding: 16px; }
  .enquiry-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .card { padding: 16px; }
}

/* ---------- CTA & footer ---------- */
.cta-band { background: linear-gradient(120deg, var(--red-dark), var(--red) 55%, #ff3d2e); position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-62deg, transparent 0 40px, rgba(0, 0, 0, .08) 40px 42px); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 .2em; font-style: italic; }
.cta-inner p { margin: 0; color: #ffe4e1; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .cta-actions { width: 100%; } .cta-actions .btn { flex: 1 1 100%; } }
.site-footer { background: #060607; border-top: 1px solid var(--line); padding-top: 44px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; padding-bottom: 30px; }
.footer-grid h3 { font-size: 1rem; letter-spacing: .1em; color: #fff; }
.footer-grid .brand { margin-bottom: 12px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list a, .contact-list li { display: flex; align-items: center; gap: 10px; }
.map { width: 100%; height: 160px; border: 0; border-radius: 10px; filter: grayscale(.4) invert(.9) hue-rotate(180deg); }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 90px; font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .4); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* ---------- admin ---------- */
.admin-body { background: #0c0c0e; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: #060607; border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.admin-side .brand { margin: 0 6px 20px; }
.admin-side a.nav-item { padding: 11px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .93rem; }
.admin-side a.nav-item:hover { background: var(--surface); color: #fff; }
.admin-side a.nav-item.on { background: rgba(225, 6, 0, .15); color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.admin-side .side-foot { margin-top: auto; display: grid; gap: 8px; font-size: .82rem; color: var(--dim); }
.admin-main { padding: 26px 28px 60px; min-width: 0; }
.admin-main h1 { font-size: 2.1rem; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat strong { display: block; font: 800 1.9rem/1.1 var(--head); }
.stat span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.stat.red { border-color: rgba(225, 6, 0, .5); background: linear-gradient(135deg, rgba(225, 6, 0, .18), transparent); }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; font-size: .93rem; }
.alert-ok { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .4); color: #bbf7d0; }
.alert-err { background: rgba(225, 6, 0, .12); border-color: rgba(225, 6, 0, .5); color: #fecaca; }
.alert-warn { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .45); color: #fde68a; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px; border: 2px dashed var(--line-2); border-radius: var(--radius); text-align: center; cursor: pointer; position: relative; }
.dropzone:hover { border-color: var(--red); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.dropzone strong { font-size: 1.05rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.admin-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table input { min-height: 36px; padding: 6px 8px; font-size: .85rem; }
.diff-old { color: var(--dim); text-decoration: line-through; margin-right: 6px; }
.diff-up { color: #fca5a5; } .diff-down { color: #86efac; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: #fff; border-color: var(--red); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.stack { display: grid; gap: 18px; }
.inline { display: inline; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo-grid figure { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.photo-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photo-grid figcaption { display: flex; gap: 6px; padding: 8px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); color: #d4d4d8; text-transform: uppercase; letter-spacing: .06em; }
.badge.pending { color: #fbbf24; border-color: rgba(245, 158, 11, .5); }
.badge.published { color: #4ade80; border-color: rgba(34, 197, 94, .5); }
.badge.discarded { color: var(--dim); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(600px 300px at 50% 0, rgba(225, 6, 0, .25), transparent 70%), var(--bg); }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.login-card .brand { justify-content: center; margin-bottom: 18px; }
.admin-burger { display: none; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 2px; }
  .admin-side .brand { margin: 0 auto 6px 0; width: 100%; }
  .admin-side a.nav-item { padding: 8px 10px; font-size: .85rem; }
  .admin-side .side-foot { margin: 0; width: 100%; grid-template-columns: 1fr auto; align-items: center; padding-top: 8px; }
  .admin-main { padding: 18px 16px 50px; }
  .admin-main h1 { font-size: 1.7rem; }
}
.scroll-x { overflow-x: auto; }
.rt-table input { width: 110px; }
details.card > summary { cursor: pointer; font-weight: 700; }
@media (max-width: 420px) {
  .otr-options select, .otr-options input { font-size: .85rem; padding-left: 10px; padding-right: 26px; background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; }
  .otr-options .field label { font-size: .66rem; }
}
.status-incoming { background: rgba(96, 165, 250, .14); color: #93c5fd; border: 1px solid rgba(96, 165, 250, .45); }
.btn.armed { background: #fff; color: var(--red); border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 6, 0, .35); }
/* Grid children must be allowed to shrink, otherwise a long thumbnail strip stretches the page */
.detail-top, .detail-body { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.gallery, .summary, .detail-side { min-width: 0; }
.thumbs { max-width: 100%; overscroll-behavior-x: contain; scrollbar-width: thin; }
@media (max-width: 980px) { .detail-top, .detail-body { grid-template-columns: minmax(0, 1fr); } }
.cover-box { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); }
.photo-grid figure.is-cover { outline: 2px solid var(--red); }
.status-ready { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
/* Homepage category buttons */
.cat-bar { margin-top: 18px; max-width: 920px; }
.cat-title { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 8px 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(21, 21, 24, .8); color: #fff; font-weight: 600; font-size: .9rem; transition: .15s ease; backdrop-filter: blur(6px); }
.cat-btn small { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .75rem; display: grid; place-items: center; }
.cat-btn:hover { border-color: var(--red); background: rgba(225, 6, 0, .18); color: #fff; }
.cat-btn:hover small { background: var(--red); color: #fff; }
.cat-btn.empty { opacity: .45; }
@media (max-width: 760px) {
  .cat-list { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .cat-list::-webkit-scrollbar { display: none; }
  .cat-btn { flex: none; }
}
/* Variant picker */
.variant-picker { border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); overflow: hidden; }
.variant-picker input[type=search] { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 42px; }
.variant-list { list-style: none; margin: 0; padding: 4px 0; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.variant-opt { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; background: none; border: 0; color: var(--text); font: 500 .88rem/1.3 var(--body); text-align: left; cursor: pointer; }
.variant-opt:hover { background: rgba(225, 6, 0, .1); }
.variant-opt small { color: var(--muted); font-size: .78rem; flex: none; }
.variant-opt.on { background: rgba(225, 6, 0, .18); box-shadow: inset 3px 0 0 var(--red); }
.variant-list li:nth-child(even) .variant-opt:not(.on) { background: rgba(255, 255, 255, .02); }
.variant-hint { margin: 0; }
/* Variant picker: closed button that opens the list */
.variant-toggle { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 34px 8px 12px;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: 500 .95rem/1.3 var(--body);
  text-align: left; cursor: pointer; position: relative; }
.variant-toggle::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.variant-toggle.open::after { transform: translateY(-30%) rotate(-135deg); }
.variant-toggle.open { border-color: var(--red); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.variant-toggle.chosen { border-color: rgba(225, 6, 0, .6); }
.variant-toggle small { color: var(--muted); font-size: .8rem; flex: none; }
.variant-toggle + .variant-picker { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; border-color: var(--red); }
/* Homepage search box: Brand · Model · Variant · Budget · button */
.search-panel { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; max-width: 1100px; }
.search-panel select:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 960px) { .search-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .search-panel .btn { grid-column: 1 / -1; } }
@media (max-width: 760px) { .search-panel .field:nth-child(3) { grid-column: auto; } }
.addon-price { color: var(--red-2); font-weight: 700; white-space: nowrap; }
/* Hero stats: stock, brands, Ready / Incoming / Booking / Sold, last update */
.hero-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hero-stats > a, .hero-stats > div { padding: 18px 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-stats > * + * { padding-left: 18px; border-left: 1px solid var(--line); }
.stat-link { color: inherit; transition: background .15s; }
.stat-link:hover { color: inherit; background: linear-gradient(180deg, rgba(225, 6, 0, .12), transparent); }
.stat-link:hover strong { color: var(--red-2); }
.stat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.stat-dot.ready { background: #fff; }
.stat-dot.incoming { background: #60a5fa; }
.stat-dot.booking { background: var(--booking); }
.stat-dot.sold { background: var(--lou); }
@media (max-width: 1100px) {
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stats > * { border-bottom: 1px solid var(--line); }
  .hero-stats > *:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .hero-stats > *:nth-child(n + 4) { border-bottom: 0; }
}
@media (max-width: 760px) {
  .hero-stats > * + * { padding-left: 12px; }
  .hero-stats > *:nth-child(3n + 1) { padding-left: 0; }
}
/* "Price List Update" line, centred under the stats */
.price-list-update { display: flex; justify-content: center; padding-top: 4px; padding-bottom: 22px; }
.price-list-update .updated-pill { background: rgba(10, 10, 11, .6); font-size: .9rem; text-align: center; }
.price-list-update strong { color: #fff; font-weight: 700; }
@media (max-width: 1100px) { .hero-stats > *:nth-child(n + 4) { border-bottom: 0; } }
@media (max-width: 760px) { .price-list-update .updated-pill { font-size: .82rem; } }

/* ---------- Stock board (homepage stats) ---------- */
.stock-board { display: grid; grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.sb-card { --c: #fff; --c-soft: rgba(255, 255, 255, .08); position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px; min-width: 0;
  color: var(--text); border-radius: 16px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.sb-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); opacity: .9; }
.sb-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--c-soft), transparent 70%); z-index: -1; transition: transform .3s ease; }
.sb-card:hover { color: var(--text); transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.sb-card:hover::after { transform: scale(1.35); }
.sb-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sb-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: var(--c-soft); }
.sb-icon svg { width: 20px; height: 20px; }
.sb-pct { font: 700 .72rem/1 var(--body); color: var(--c); background: var(--c-soft); padding: 5px 8px; border-radius: 999px; letter-spacing: .04em; }
.sb-num { font: 800 clamp(1.9rem, 3vw, 2.4rem)/1 var(--head); letter-spacing: .01em; color: #fff; font-variant-numeric: tabular-nums; }
.sb-label { font: 700 .74rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #d4d4d8; }
.sb-bar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); margin: 10px 0 6px; overflow: hidden; }
.sb-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c); box-shadow: 0 0 10px var(--c); transform-origin: left; animation: sbGrow 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sbGrow { from { transform: scaleX(0); } }
.sb-sub { font-size: .76rem; color: var(--dim); }
.sb-ready { --c: #f4f4f5; --c-soft: rgba(244, 244, 245, .1); }
.sb-incoming { --c: #60a5fa; --c-soft: rgba(96, 165, 250, .14); }
.sb-booking { --c: #f59e0b; --c-soft: rgba(245, 158, 11, .14); }
.sb-sold { --c: #22c55e; --c-soft: rgba(34, 197, 94, .14); }
/* the featured "Cars in stock" card */
.sb-total { --c: var(--red-2); --c-soft: rgba(255, 43, 28, .25); justify-content: center;
  background: linear-gradient(140deg, rgba(225, 6, 0, .55), rgba(143, 4, 0, .35) 55%, rgba(20, 10, 10, .6)); border-color: rgba(255, 43, 28, .45); }
.sb-total::before { display: none; }
.sb-total .sb-icon { color: #fff; background: rgba(255, 255, 255, .14); margin-bottom: 6px; }
.sb-total .sb-num { font-size: clamp(2.6rem, 4.2vw, 3.4rem); }
.sb-total .sb-label { color: #ffe4e1; }
.sb-more { margin-top: 8px; font-size: .8rem; font-weight: 600; color: #fff; opacity: .85; }
.sb-total:hover .sb-more { opacity: 1; text-decoration: underline; }
/* Price list update pill */
.price-list-update { display: flex; justify-content: center; padding-top: 18px; padding-bottom: 28px; }
.plu { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(10, 10, 11, .65); border: 1px solid var(--line-2); color: var(--muted); font-size: .9rem; backdrop-filter: blur(8px); }
.plu strong { color: #fff; font-weight: 700; }
.plu-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(34, 197, 94, .14); color: #4ade80;
  font: 700 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.plu-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
@media (max-width: 1100px) {
  .stock-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sb-total { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; }
  .sb-total .sb-icon { margin: 0; }
  .sb-total .sb-more { margin: 0 0 0 auto; }
}
@media (max-width: 760px) {
  .stock-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sb-card { padding: 14px 12px 12px; border-radius: 14px; }
  .sb-total .sb-num { font-size: 2.4rem; }
  .sb-total .sb-more { flex-basis: 100%; margin: 2px 0 0; }
  .plu { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) { .sb-bar i, .plu-live i { animation: none; } .sb-card, .sb-card::after { transition: none; } }
/* Booking / Sold split chips on the stat cards (the whole card links to "all"; chips link to Ready / Incoming) */
.sb-card .sb-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.sb-split { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 2px; }
.sb-chip { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 9px; border-radius: 9px; font-size: .76rem; color: #d4d4d8;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); transition: .15s; min-width: 0; }
.sb-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-chip b { color: var(--c); font: 800 .95rem/1 var(--head); }
.sb-chip:hover { color: #fff; background: var(--c-soft); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.sb-chip { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 6px 9px 7px; }
.sb-chip span { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); overflow: visible; }
.sb-chip b { font-size: 1.15rem; }
.sb-chip:hover span { color: #fff; }
.addons-note { display: block; margin-top: 4px; font-size: .82rem; color: var(--red-2); font-weight: 600; }
.addons-note[hidden] { display: none; }
/* Admin: Share Models */
.share-tools { margin-bottom: 18px; }
.share-brand { margin-bottom: 26px; }
.share-brand-title { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; border-left: 4px solid var(--red); padding-left: 10px; }
.share-brand-title small { font: 700 .8rem/1 var(--body); color: var(--muted); background: var(--surface-2); padding: 5px 9px; border-radius: 999px; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.share-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.share-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.share-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.share-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.share-meta .status { font-size: .66rem; padding: 3px 8px; }
.share-from { text-align: right; flex: none; }
.share-from span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.share-from strong { font: 800 1.2rem/1.1 var(--head); }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-variants summary, .share-preview summary { cursor: pointer; font-size: .82rem; color: var(--red-2); font-weight: 600; }
.share-variants ul { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; max-height: 260px; overflow-y: auto; }
.share-variants li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: .84rem; }
.share-variants li:last-child { border-bottom: 0; }
.sv-meta { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.sv-wa { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--wa); color: #06210f; }
.sv-wa:hover { color: #06210f; filter: brightness(1.1); }
.share-preview pre { white-space: pre-wrap; font: .8rem/1.5 var(--body); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0 0; color: #d4d4d8; }
@media (max-width: 560px) { .share-grid { grid-template-columns: 1fr; } .share-actions .btn { flex: 1 1 auto; } }
.share-card[hidden], .share-brand[hidden] { display: none; }

/* ---------- Admin on phones & tablets ---------- */
.admin-menu-btn { display: none; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-search { min-width: 240px; }
@media (max-width: 900px) {
  .admin-side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
    padding: 10px 14px; gap: 0; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(6, 6, 7, .96); backdrop-filter: blur(10px); }
  .admin-side .brand { margin: 0; width: auto; }
  .admin-menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2);
    background: transparent; color: #fff; font: 600 .9rem/1 var(--body); cursor: pointer; }
  .admin-menu-btn .bars { display: grid; gap: 3px; }
  .admin-menu-btn .bars i { display: block; width: 16px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
  .admin-menu-btn.open .bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .admin-menu-btn.open .bars i:nth-child(2) { opacity: 0; }
  .admin-menu-btn.open .bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .admin-nav { display: none; width: 100%; padding: 10px 0 4px; }
  .admin-nav.open { display: flex; }
  .admin-side a.nav-item { padding: 12px 12px; font-size: .98rem; }
  .admin-side .side-foot { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; width: 100%; }
  .admin-main { padding: 18px 14px 50px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px; }
  .stat strong { font-size: 1.6rem; }
  .stat span { font-size: .68rem; }
  .admin-top .row-actions { width: 100%; }
  .admin-search { min-width: 0; flex: 1; }
}
/* Vehicles list as cards on phones and tablets (the table is too wide below ~1100px) */
@media (max-width: 1100px) {
  .card.scroll-x:has(.admin-cars) { padding: 10px; overflow: visible; }
  .admin-cars thead { display: none; }
  .admin-cars, .admin-cars tbody { display: block; }
  .admin-cars tr { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "photo car price" "photo stock status" "feat feat actions";
    gap: 4px 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); align-items: center; }
  .admin-cars td { display: block; padding: 0; border: 0; }
  .admin-cars .td-photo { grid-area: photo; align-self: start; }
  .admin-cars .td-photo img { width: 84px !important; height: 60px !important; }
  .admin-cars .td-car { grid-area: car; min-width: 0; }
  .admin-cars .td-car strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-cars .td-car br { display: none; }
  .admin-cars .td-car small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-cars .td-stock { grid-area: stock; font-size: .78rem; color: var(--muted); }
  .admin-cars .td-price { grid-area: price; text-align: right; font-weight: 700; white-space: nowrap; }
  .admin-cars .td-status { grid-area: status; text-align: right; }
  .admin-cars .td-year, .admin-cars .td-type { display: none; }
  .admin-cars .td-feat { grid-area: feat; }
  .admin-cars .td-actions { grid-area: actions; justify-content: flex-end; flex-wrap: nowrap; }
}
@media (max-width: 1100px) {
  .admin-cars .td-car strong { white-space: normal; overflow: visible; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
  .admin-cars .td-car small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
.share-cats { margin-bottom: 26px; }
.share-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.share-cat { border-color: rgba(225, 6, 0, .35); background: linear-gradient(160deg, rgba(225, 6, 0, .08), var(--surface) 60%); }
@media (max-width: 560px) { .share-cat-grid { grid-template-columns: 1fr; } }
/* Discreet "Admin Login" link in the header (low contrast on purpose) */
.admin-link { display: inline-flex; align-items: center; gap: 5px; padding: 6px 4px; font-size: .74rem; font-weight: 600; color: #4a4a52; letter-spacing: .04em; transition: color .15s; }
.admin-link .ico { width: .95em; height: .95em; }
.admin-link:hover, .admin-link:focus-visible { color: var(--muted); }
.nav .nav-admin { display: none; }
@media (max-width: 860px) {
  .admin-link { display: none; }                 /* on phones it sits at the bottom of the menu instead */
  .nav .nav-admin { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: #55555d; border-bottom: 0; }
}

/* ---------- Admin: Quotation / OTR image ---------- */
.q-tools { margin-bottom: 16px; }
.q-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.q-preview img[hidden] { display: none; }
.q-preview img { width: 100%; max-width: 720px; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.q-status { color: var(--muted); padding: 24px; border: 1px dashed var(--line-2); border-radius: 12px; width: 100%; max-width: 720px; text-align: center; margin: 0; }
.ncd-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.ncd-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ncd-opt span { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; min-height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-2); font-weight: 700; cursor: pointer; transition: .15s; }
.ncd-opt input:checked + span { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(225, 6, 0, .35); }
.ncd-opt input:focus-visible + span { outline: 2px solid var(--red-2); outline-offset: 2px; }
/* off-screen card that becomes the image */
.qc-stage { position: fixed; left: -20000px; top: 0; pointer-events: none; }
.qc { width: 1080px; background: radial-gradient(900px 420px at 100% 0, rgba(225, 6, 0, .22), transparent 60%), #0a0a0b; color: #f4f4f5;
  font-family: var(--body); padding: 48px 56px 40px; box-sizing: border-box; }
.qc-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; border-bottom: 2px solid #e10600; }
.qc-brand { display: flex; align-items: center; gap: 16px; }
.qc-brand small { display: block; font: 600 18px/1 var(--head); letter-spacing: .32em; color: #a1a1aa; }
.qc-brand strong { display: block; font: 800 italic 44px/1 var(--head); letter-spacing: .03em; }
.qc-brand strong::first-letter { color: #ff2b1c; }
.qc-doc { text-align: right; display: flex; flex-direction: column; gap: 4px; }
.qc-doc span { font: 800 30px/1 var(--head); letter-spacing: .12em; color: #ff2b1c; }
.qc-doc b { font: 600 18px/1.2 var(--body); color: #d4d4d8; }
.qc-doc i { font: 500 16px/1.2 var(--body); color: #a1a1aa; font-style: normal; }
.qc-hero { position: relative; margin: 28px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid #2a2a30; aspect-ratio: 16 / 10; background: #111114; }
.qc-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.qc-nophoto { display: grid; place-items: center; color: #71717a; font-size: 22px; }
.qc-status { position: absolute; top: 18px; left: 18px; padding: 8px 16px; border-radius: 999px; font: 700 16px/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  background: rgba(10, 10, 11, .8); border: 1px solid rgba(255, 255, 255, .4); }
.qc-st-lou { color: #4ade80; border-color: rgba(34, 197, 94, .6); }
.qc-st-booking { color: #fbbf24; border-color: rgba(245, 158, 11, .6); }
.qc-st-incoming { color: #93c5fd; border-color: rgba(96, 165, 250, .6); }
.qc-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 26px 0 8px; }
.qc-year { margin: 0 0 6px; font: 700 18px/1 var(--body); letter-spacing: .14em; color: #ff2b1c; text-transform: uppercase; }
.qc h2 { margin: 0; font: 800 56px/1 var(--head); text-transform: uppercase; letter-spacing: .01em; }
.qc-variant { margin: 8px 0 0; font: 500 24px/1.25 var(--body); color: #d4d4d8; }
.qc-price { flex: none; text-align: right; padding: 18px 22px; border-radius: 16px; background: linear-gradient(135deg, rgba(225, 6, 0, .35), rgba(225, 6, 0, .08)); border: 1px solid rgba(225, 6, 0, .6); }
.qc-price span { display: block; font: 700 15px/1 var(--body); letter-spacing: .16em; color: #fecaca; }
.qc-price strong { display: block; margin-top: 8px; font: 800 54px/1 var(--head); }
.qc-price em { display: block; margin-top: 6px; font: 600 16px/1.2 var(--body); font-style: normal; color: #fecaca; }
.qc-sec { margin-top: 26px; }
.qc-sec h3 { margin: 0 0 12px; padding-left: 14px; border-left: 5px solid #e10600; font: 800 26px/1 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.qc-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #2a2a30; border-radius: 14px; overflow: hidden; }
.qc-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px solid #2a2a30; font-size: 19px; }
.qc-row:nth-child(odd) { border-right: 1px solid #2a2a30; }
.qc-row span { color: #a1a1aa; }
.qc-row b { text-align: right; }
.qc-desc { margin: 0 0 12px; font-size: 19px; line-height: 1.45; color: #d4d4d8; white-space: pre-line; }
.qc-feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.qc-feat li { position: relative; padding-left: 26px; font-size: 18px; line-height: 1.35; }
.qc-feat li::before { content: '✓'; position: absolute; left: 0; color: #ff2b1c; font-weight: 800; }
.qc-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 30px; padding-top: 22px; border-top: 1px solid #2a2a30; }
.qc-more { display: flex; flex-direction: column; gap: 6px; }
.qc-more span { display: inline-block; padding: 14px 26px; border-radius: 12px; background: linear-gradient(135deg, #ff2b1c, #e10600); font: 800 22px/1 var(--body); color: #fff; box-shadow: 0 8px 22px rgba(225, 6, 0, .35); }
.qc-more small { font-size: 14px; color: #a1a1aa; }
.qc-contact { text-align: right; display: flex; flex-direction: column; gap: 4px; font-size: 17px; color: #d4d4d8; }
.qc-contact b { font: 800 22px/1.1 var(--head); color: #fff; letter-spacing: .04em; }
.qc-note { margin: 18px 0 0; font-size: 14px; color: #71717a; line-height: 1.4; }
/* OTR image */
.qc-otr-car { display: flex; gap: 26px; align-items: center; margin-top: 28px; }
.qc-thumb { width: 340px; height: 220px; object-fit: cover; border-radius: 16px; border: 1px solid #2a2a30; flex: none; }
.qc-stock { margin: 10px 0 0; font-size: 18px; color: #a1a1aa; }
.qc-otr-table { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 24px; }
.qc-otr-table th, .qc-otr-table td { padding: 18px 0; border-bottom: 1px dashed #3a3a42; }
.qc-otr-table th { text-align: left; font-weight: 500; color: #d4d4d8; }
.qc-otr-table th small { display: block; margin-top: 4px; font-size: 16px; color: #a1a1aa; font-weight: 500; }
.qc-otr-table td { text-align: right; font-weight: 700; white-space: nowrap; }
.qc-otr-table .qc-addons th { padding-top: 0; border-bottom: 0; }
.qc-otr-table .qc-addons small { color: #ff6b5f; font-weight: 600; }
.qc-otr-table tfoot th, .qc-otr-table tfoot td { border-bottom: 0; padding-top: 26px; }
.qc-otr-table tfoot th { font: 800 32px/1 var(--head); color: #fff; letter-spacing: .02em; }
.qc-otr-table tfoot td { font: 800 54px/1 var(--head); color: #ff2b1c; }
.btn-quote { background: rgba(225, 6, 0, .12); border-color: rgba(225, 6, 0, .55); color: #fff; }
.btn-quote:hover { background: var(--red); color: #fff; }
.btn-otr { background: rgba(255, 255, 255, .06); border-color: var(--line-2); color: #fff; }
.btn-otr:hover { border-color: #fff; color: #fff; }
.admin-cars .td-feat { flex-wrap: nowrap; }
@media (max-width: 760px) { .admin-cars .td-feat { display: flex; gap: 6px; } .admin-cars .td-feat .btn { padding: 0 10px; } }
.qc-more span { white-space: nowrap; }
.qc-contact span { max-width: 560px; }
@media (max-width: 760px) {
  .admin-cars tr { grid-template-areas: "photo car price" "photo stock status" "feat feat feat" "actions actions actions"; }
  .admin-cars .td-feat, .admin-cars .td-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
  .admin-cars .td-feat .btn, .admin-cars .td-actions .btn { width: 100%; padding: 0 8px; }
}
/* Big "View More Pictures" button in the quotation / OTR card (clickable in the PDF) */
.qc-more-cta { display: flex; align-items: center; gap: 22px; margin-top: 32px; padding: 24px 30px; border-radius: 22px; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, #ff3b2b 0%, #e10600 45%, #9b0400 100%); border: 2px solid rgba(255, 255, 255, .18);
  box-shadow: 0 14px 36px rgba(225, 6, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.qc-cam { flex: none; width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; font-size: 40px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .25); }
.qc-more-text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.qc-more-text b { font: 800 40px/1 var(--head); letter-spacing: .06em; }
.qc-more-text small { font: 600 19px/1.3 var(--body); color: #ffe4e1; }
.qc-arrow { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #e10600; background: #fff; }
.qc-more-cta + .qc-foot { margin-top: 24px; }
.qc-foot { justify-content: flex-end; }
.btn-pdf { background: #fff; color: #0a0a0b; border-color: #fff; }
.btn-pdf:hover { color: #e10600; }
.btn-pdf:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; }

/* v2: compact, clean "View More Pictures" button (drawn well by the image tool: flat colour, no shadows/gradients) */
.qc-more-wrap { display: flex; justify-content: center; margin-top: 34px; }
.qc .qc-more-cta { display: inline-flex; align-items: center; gap: 18px; width: auto; margin: 0; padding: 16px 20px 16px 22px; border-radius: 16px;
  background: #e10600; border: 0; box-shadow: none; color: #fff; text-decoration: none; }
.qc-cam-icon { width: 40px; height: 40px; display: block; flex: none; }
.qc-arrow-icon { width: 40px; height: 40px; display: block; flex: none; }
.qc .qc-more-text { flex: none; display: flex; flex-direction: column; gap: 4px; padding-right: 6px; }
.qc .qc-more-text b { font: 800 28px/1.2 var(--head); letter-spacing: .06em; }
.qc .qc-more-text small { font: 600 16px/1.3 var(--body); color: #ffe1de; }
.qc-more-wrap + .qc-foot { margin-top: 30px; }

/* v2: Selling Price box — balanced spacing, label and price aligned */
.qc .qc-title { align-items: center; }
.qc .qc-price { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 300px; padding: 20px 28px 22px; border-radius: 16px;
  background: #2a0605; border: 1px solid rgba(225, 6, 0, .7); text-align: right; }
.qc .qc-price span { margin: 0; font: 700 15px/1.2 var(--body); letter-spacing: .18em; color: #fecaca; }
.qc .qc-price strong { margin: 0; font: 800 52px/1.15 var(--head); letter-spacing: .01em; color: #fff; }
.qc .qc-price em { margin: 0; font: 600 16px/1.3 var(--body); font-style: normal; color: #fecaca; }
/* other large headings: a little more line height so big letters are not clipped in the image */
.qc h2 { line-height: 1.1; }
.qc-otr-table tfoot td { line-height: 1.15; }
.qc-otr-table tfoot th { line-height: 1.2; }

/* Picture download/share: the More Pictures button only appears in the PDF */
.qc.qc-png .qc-more-wrap { display: none; }

/* Admin → Vehicles smart search */
.vf { margin-bottom: 12px; }
.vf-search { display: flex; gap: 8px; flex-wrap: wrap; }
.vf-search .admin-search { flex: 1 1 320px; min-width: 0; }
.vf-help { margin: 8px 0 12px; }
.vf-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.vf-field { margin: 0; }
.vf-field select { width: 100%; }
.vf-count { margin: 0 0 10px; color: var(--muted, #a1a1aa); }
.vf-count b { color: #fff; }
@media (max-width: 1100px) { .vf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vf-search .btn { flex: 1; } }
.vf-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.vf-bar .vf-count { margin: 0; }
.vf-sort { display: flex; align-items: center; gap: 8px; color: var(--muted, #a1a1aa); font-size: .9rem; }
.vf-sort select { width: auto; min-width: 200px; }

/* Login: Sales Advisor / Admin switch */
.login-role { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line-2, #2a2a2e); border-radius: 12px; background: #0e0e10; }
.login-role input { position: absolute; opacity: 0; pointer-events: none; }
.login-role label { text-align: center; padding: 10px 8px; border-radius: 9px; font-weight: 700; color: #a1a1aa; cursor: pointer; }
.login-role input:checked + label { background: #e10600; color: #fff; }
.login-role input:focus-visible + label { outline: 2px solid #fff; outline-offset: 2px; }
.login-h .h-admin { display: none; }
.login-card:has(#as-admin:checked) .login-h .h-admin { display: inline; }
.login-card:has(#as-admin:checked) .login-h .h-sales { display: none; }

/* Account: Sales Advisor management */
.acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.staff-reset { display: flex; gap: 6px; min-width: 220px; }
.staff-reset input { flex: 1; min-width: 0; }
@media (max-width: 900px) { .acct-grid { grid-template-columns: minmax(0, 1fr); } }

/* Sales Advisor: Markup Price */
.vf-bar .vf-count { margin-right: auto; }
.markup-pick { position: relative; }
.markup-pick > summary { list-style: none; cursor: pointer; }
.markup-pick > summary::-webkit-details-marker { display: none; }
.markup-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(340px, calc(100vw - 32px)); padding: 14px; border: 1px solid var(--line-2, #2a2a2e); border-radius: 14px; background: #141416; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.markup-menu .fine { margin: 0 0 10px; }
.markup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.markup-grid .btn { width: 100%; justify-content: center; }
.alert-markup { border-color: #e10600; background: #2a0605; color: #fff; }
@media (max-width: 640px) { .markup-menu { left: 0; right: auto; } }

/* Settings tabs: on phones show all tabs as wrapped pills instead of a cut-off scrolling row */
@media (max-width: 640px) {
  .tabs { flex-wrap: wrap; overflow: visible; border-bottom: 0; gap: 6px; }
  .tabs a { white-space: normal; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
  .tabs a.on { background: var(--red); border-color: var(--red); color: #fff; }
}

/* Add Shortcut Home Screen */
.a2hs-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid rgba(225, 6, 0, .45); border-radius: 12px;
  background: rgba(225, 6, 0, .08); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.a2hs-btn:hover { background: rgba(225, 6, 0, .16); border-color: #e10600; }
.a2hs-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.a2hs-tile { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #e10600; color: #fff; }
.a2hs-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.a2hs-text b { font-size: .86rem; font-weight: 700; }
.a2hs-text small { font-size: .74rem; color: var(--muted, #a1a1aa); }
@media (max-width: 900px) { .admin-side .side-foot { flex-wrap: wrap; gap: 8px; } .admin-side .side-foot .a2hs-btn { flex: 1 1 100%; } }
.a2hs-btn[hidden], .a2hs-modal[hidden] { display: none !important; }
.a2hs-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.7); }
.a2hs-box { width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border: 1px solid var(--line-2, #2a2a2e); border-radius: 16px; background: #141416; }
.a2hs-box h2 { margin: 0 0 12px; }
.a2hs-box ol { margin: 0 0 12px; padding-left: 20px; line-height: 1.6; }
.a2hs-box .btn { width: 100%; justify-content: center; margin-top: 8px; }
.a2hs-ico { display: inline-block; padding: 0 6px; border: 1px solid var(--line-2, #2a2a2e); border-radius: 6px; }
