/* QuettaWheels — site styles. Plain CSS (no build step needed on cPanel hosting). */
:root {
  --bg: #07090F; --bg-2: #05070C; --surface: #0D1426; --surface-2: #0A1022; --navy: #10224D;
  --line: #1B2640; --line-2: #26324D; --line-3: #22304F;
  --text: #E8EDF5; --text-2: #C9D1DC; --muted: #A7B3C8; --muted-2: #93A1BA; --faint: #7D8AA3;
  --blue: #2563EB; --blue-hover: #1D4ED8; --blue-2: #3B82F6; --blue-3: #5B9BFF; --blue-4: #7FB0FF; --chip: #13234A; --chip-text: #A9C6FF;
  --warn-bg: #2A2410; --warn: #F5C76B; --danger: #F59E9E;
  --radius: 20px; --ease: cubic-bezier(.2,.8,.2,1); --ease-out: cubic-bezier(.16,1,.3,1);
  --display: 'Sora', system-ui, sans-serif; --body: 'Manrope', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-4); }
a:hover { color: #B8D3FF; }
h1, h2, h3 { font-family: var(--display); color: #fff; margin: 0; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--blue-4); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qw-container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.qw-skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.qw-skip:focus { left: 8px; }

/* ── Header ─────────────────────────────────────────── */
.qw-header { position: sticky; top: 0; z-index: 30; background: rgba(7,9,15,.82); backdrop-filter: blur(16px); border-bottom: 1px solid #172036; }
.qw-header__inner { max-width: 1320px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.qw-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; }
.qw-logo span { color: var(--blue-3); }
.qw-logo svg { transition: transform .8s var(--ease); }
.qw-logo:hover svg { transform: rotate(180deg); }
.qw-nav { display: flex; flex-wrap: wrap; flex: 1 1 520px; font-size: 14px; font-weight: 600; }
.qw-nav a { position: relative; color: var(--text-2); text-decoration: none; padding: 12px 10px; transition: color .25s; }
.qw-nav a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--blue-2); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.qw-nav a:hover, .qw-nav a[aria-current="page"] { color: #fff; }
@media (min-width: 1100px) and (max-width: 1420px) { .qw-nav { flex-wrap: nowrap; flex-basis: auto; } .qw-nav a { padding: 12px 7px; font-size: 13.5px; } .qw-nav a::after { left: 7px; right: 7px; } .qw-header__actions .qw-btn svg { display: none; } }
.qw-nav a:hover::after, .qw-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.qw-header__actions { display: flex; gap: 10px; align-items: center; }

/* ── Buttons, chips, cards ──────────────────────────── */
.qw-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font: 700 15px var(--body); text-decoration: none; cursor: pointer; transition: background .25s, transform .25s, box-shadow .25s; }
.qw-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%); transform: translateX(-130%); transition: transform .7s var(--ease); pointer-events: none; }
.qw-btn:hover { background: var(--blue-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(37,99,235,.8); }
.qw-btn:hover::after { transform: translateX(130%); }
.qw-btn--ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text); font-weight: 600; }
.qw-btn--ghost:hover { background: rgba(91,155,255,.1); border-color: var(--blue-3); box-shadow: none; }
.qw-btn--lg { min-height: 52px; padding: 0 24px; border-radius: 14px; }
.qw-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 600; background: transparent; cursor: pointer; transition: border-color .25s, color .25s, background .25s, transform .25s; }
.qw-chip:hover, .qw-chip.is-on { border-color: var(--blue-3); color: #fff; background: rgba(37,99,235,.18); transform: translateY(-2px); }
.qw-chip.is-on { background: var(--blue); border-color: var(--blue); }
.qw-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 7px; background: var(--chip); color: var(--chip-text); }
.qw-badge--blue { background: var(--blue); color: #fff; }
.qw-badge--warn { background: var(--warn-bg); color: var(--warn); }
.qw-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .45s var(--ease), border-color .35s, box-shadow .45s; }
.qw-card:hover { transform: translateY(-6px); border-color: #2F6BFF; box-shadow: 0 30px 70px -28px rgba(47,107,255,.65); }
.qw-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.qw-arrow { display: inline-block; transition: transform .3s var(--ease); }
a:hover .qw-arrow, .qw-card:hover .qw-arrow { transform: translateX(6px); }
.qw-link { text-decoration: none; background: linear-gradient(currentColor,currentColor) 0 100%/0 2px no-repeat; transition: background-size .35s var(--ease); }
.qw-link:hover { background-size: 100% 2px; }
.qw-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-3); }
.qw-section { padding: 40px 0; }
.qw-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.qw-h2 { font-size: clamp(26px, 3.2vw, 42px); font-weight: 800; }
.qw-muted { color: var(--muted-2); }
.qw-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

/* ── Forms ──────────────────────────────────────────── */
.qw-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted-2); }
.qw-input, .qw-select, .qw-textarea { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: #fff; padding: 0 14px; font: 500 15px var(--body); appearance: none; }
.qw-textarea { padding: 12px 14px; line-height: 1.6; resize: vertical; }
.qw-input::placeholder, .qw-textarea::placeholder { color: var(--faint); }
.qw-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--text); }
.qw-check input { width: 20px; height: 20px; accent-color: var(--blue); }
.qw-error { color: var(--danger); font-size: 13px; font-weight: 600; }
.qw-alert { padding: 14px 16px; border-radius: 14px; background: var(--chip); color: var(--chip-text); font-weight: 600; }

/* ── Hero (home) ────────────────────────────────────── */
.qw-hero { position: relative; overflow: hidden; background: radial-gradient(1100px 600px at 50% 0%, var(--navy) 0%, var(--bg) 65%); border-bottom: 1px solid #141C30; }
.qw-hero__grid { position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(#1A2744 1px, transparent 1px), linear-gradient(90deg, #1A2744 1px, transparent 1px); background-size: 56px 56px; }
.qw-hero__copy { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 64px 24px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.qw-hero__pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid #23365F; border-radius: 999px; background: rgba(37,99,235,.12); font-size: 13px; font-weight: 600; color: var(--chip-text); }
.qw-hero h1 { font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-4); }
.qw-hero__slogan { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.04em; color: #fff; }
.qw-shine { background: linear-gradient(100deg, var(--blue-3) 0%, #fff 30%, var(--blue-3) 50%, var(--chip-text) 70%, var(--blue-3) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: qwShine 5s linear infinite; }
.qw-words { display: inline-block; height: 1.08em; overflow: hidden; vertical-align: bottom; }
.qw-words > span { display: flex; flex-direction: column; color: var(--blue-3); animation: qwWords 10s cubic-bezier(.7,0,.3,1) infinite; }
.qw-words > span > span { height: 1.08em; }
.qw-hero__lead { margin: 0; max-width: 620px; font-size: 18px; color: var(--muted); }
.qw-scene { position: relative; height: 380px; margin-top: 8px; }
.qw-layer { position: absolute; left: 0; right: 0; transition: transform .6s var(--ease); }
.qw-loop { width: 200%; height: 100%; animation: qwLoop linear infinite; }
.qw-poles { background: linear-gradient(to right, #25324F 0 3px, transparent 3px) 0 0/280px 100% repeat-x; animation: qwPoles .9s linear infinite; }
.qw-lamps { background: radial-gradient(circle at 2px 6px, rgba(127,176,255,.9) 0 3px, rgba(91,155,255,.25) 4px, transparent 22px) 0 0/280px 100% repeat-x; animation: qwPoles .9s linear infinite; }
.qw-road { position: absolute; left: 0; right: 0; bottom: 0; height: 112px; background: linear-gradient(#0D1428, #070A14); border-top: 2px solid #1E2A44; }
.qw-road__glow { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #2F6BFF; animation: qwGlow 2.2s ease-in-out infinite; }
.qw-road__dash { position: absolute; left: 0; right: 0; top: 52px; height: 4px; background: linear-gradient(to right, var(--text-2) 0 54px, transparent 54px) 0 0/120px 4px repeat-x; animation: qwDash .32s linear infinite; }
.qw-speed { position: absolute; left: 0; height: 2px; border-radius: 2px; animation: qwSpeed linear infinite; }
.qw-car { position: absolute; left: 50%; bottom: 42px; width: min(760px, 92vw); transform: translateX(-50%); }
.qw-car__drive { animation: qwArrive 1.8s var(--ease-out) both; }
.qw-car__bounce { animation: qwBounce .5s ease-in-out infinite alternate; }
.qw-wheel { transform-box: fill-box; transform-origin: center; animation: qwSpin .45s linear infinite; }
.qw-draw { stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: qwDraw 2.4s .4s cubic-bezier(.65,0,.35,1) forwards; }
.qw-beam { transform-box: fill-box; transform-origin: left center; animation: qwBeam 3s ease-in-out infinite; }
.qw-search { position: relative; z-index: 3; max-width: 1272px; margin: -20px auto 56px; width: calc(100% - 48px); padding: 18px; background: rgba(15,22,40,.9); backdrop-filter: blur(12px); border: 1px solid var(--line-3); border-radius: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.qw-search form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; }

/* ── Listing pages ──────────────────────────────────── */
.qw-pagehead { border-bottom: 1px solid #141C30; background: radial-gradient(900px 300px at 80% 0%, var(--navy) 0%, var(--bg) 70%); }
.qw-pagehead .qw-container { padding-top: 28px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.qw-pagehead h1 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -.03em; }
.qw-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted-2); }
.qw-breadcrumbs li { display: flex; gap: 8px; }
.qw-breadcrumbs a { color: var(--muted); text-decoration: none; }
.qw-breadcrumbs a:hover { color: #fff; }
.qw-breadcrumbs [aria-current] { color: var(--text); }
.qw-listing { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding: 28px 0; }
.qw-filters { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.qw-filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.qw-filters legend { font-size: 12px; font-weight: 600; color: var(--muted-2); margin-bottom: 8px; }
.qw-results { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.qw-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.qw-listing-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.qw-listing-card__media { position: relative; aspect-ratio: 16/10; background: radial-gradient(circle at 50% 70%, #16295A 0%, var(--surface-2) 70%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.qw-listing-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.qw-card:hover .qw-listing-card__media img { transform: scale(1.05); }
.qw-listing-card__media .qw-badge { position: absolute; top: 10px; left: 10px; }
.qw-listing-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.qw-listing-card__title { font-family: var(--display); font-size: 17px; font-weight: 700; color: #fff; }
.qw-price { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--blue-4); }
.qw-specs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-2); }
.qw-specs span { padding: 4px 8px; border-radius: 6px; background: #141D33; }
.qw-listing-card__foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-2); padding-top: 8px; border-top: 1px solid var(--line); }
.qw-empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: 20px; color: var(--muted-2); }
.qw-pagination nav { display: flex; justify-content: center; }
.qw-pagination ul, .qw-pager { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.qw-pager a, .qw-pager span { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--text-2); text-decoration: none; }
.qw-pager [aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }

/* ── Ad page ────────────────────────────────────────── */
.qw-ad { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding: 24px 0 40px; }
.qw-ad__main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.qw-ad__side { flex: 1 1 340px; min-width: 0; position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.qw-gallery__main { aspect-ratio: 16/9; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 50% 75%, #1A3270 0%, var(--surface-2) 65%); display: flex; align-items: center; justify-content: center; }
.qw-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.qw-gallery__thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.qw-gallery__thumbs button { aspect-ratio: 4/3; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.qw-gallery__thumbs button[aria-current="true"] { border: 2px solid var(--blue-2); }
.qw-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.qw-spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.qw-spec-grid div { padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid #172036; display: flex; flex-direction: column; gap: 4px; }
.qw-spec-grid dt { font-size: 12px; color: var(--muted-2); }
.qw-spec-grid dd { margin: 0; font-weight: 700; color: #fff; }
.qw-pricecard { padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-3); display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 70px -30px rgba(37,99,235,.45); }
.qw-pricecard__price { font-family: var(--display); font-size: 34px; font-weight: 800; color: #fff; }
.qw-sold { padding: 12px 14px; border-radius: 12px; background: #3A1A1A; color: var(--danger); font-weight: 700; }

/* ── FAQ, related links, intro ──────────────────────── */
.qw-faq { max-width: 1000px; margin: 0 auto; padding: 40px 0; display: flex; flex-direction: column; gap: 10px; }
.qw-faq h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-bottom: 8px; }
.qw-faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 20px; transition: border-color .3s; }
.qw-faq details[open] { border-color: #2B3B60; }
.qw-faq summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.qw-faq summary::-webkit-details-marker { display: none; }
.qw-faq summary::after { content: '+'; font-size: 22px; color: var(--blue-4); transition: transform .3s; }
.qw-faq details[open] summary::after { transform: rotate(45deg); }
.qw-faq summary h3 { font-family: var(--body); font-size: 16px; font-weight: 700; letter-spacing: 0; }
.qw-faq__answer { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.qw-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding: 16px 0 48px; }
.qw-related__title { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-3); margin-bottom: 10px; }
.qw-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.qw-related a { color: var(--text-2); text-decoration: none; font-size: 14px; transition: color .25s, padding-left .3s; }
.qw-related a:hover { color: #fff; padding-left: 6px; }
.qw-seo-intro { max-width: 860px; padding: 24px 0; color: var(--muted); line-height: 1.75; }
.qw-seo-intro h2 { font-size: 26px; margin-bottom: 12px; }

/* ── Blog ───────────────────────────────────────────── */
.qw-article { max-width: 760px; margin: 0 auto; padding: 32px 24px 48px; font-family: 'Source Serif 4', Georgia, serif; font-size: 19px; line-height: 1.8; color: #D3DAE6; }
.qw-article h2 { font-size: 28px; margin: 36px 0 12px; }
.qw-article h3 { font-size: 22px; margin: 28px 0 10px; }
.qw-article blockquote { margin: 24px 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--blue-2); font-style: italic; color: #fff; font-size: 24px; }
.qw-article img { border-radius: 16px; margin: 20px 0; }
.qw-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--blue-2); transform: scaleX(0); transform-origin: left; z-index: 50; }
@supports (animation-timeline: scroll()) { .qw-progress { animation: qwGrow linear both; animation-timeline: scroll(root); } }

/* ── Footer ─────────────────────────────────────────── */
.qw-footer { border-top: 1px solid #141C30; background: var(--bg-2); margin-top: 24px; }
.qw-footer-hubs { max-width: 1320px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.qw-footer-hubs h2 { font-family: var(--body); font-size: 14px; color: #fff; margin-bottom: 10px; letter-spacing: 0; }
.qw-footer-hubs ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.qw-footer-hubs a { position: relative; color: var(--muted); text-decoration: none; font-size: 14px; transition: color .25s, padding-left .3s var(--ease); }
.qw-footer-hubs a:hover { color: #fff; padding-left: 14px; }
.qw-footer-hubs a::before { content: ''; position: absolute; left: 0; top: 50%; width: 0; height: 2px; background: var(--blue-2); transition: width .3s var(--ease); }
.qw-footer-hubs a:hover::before { width: 8px; }
.qw-footer__company { max-width: 1320px; margin: 0 auto; padding: 18px 24px 28px; border-top: 1px solid #141C30; font-size: 13px; color: var(--faint); }

/* ── Assistant (free, rule-based) ───────────────────── */
.qw-chat-fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; animation: qwPulse 2.4s ease-out infinite; }
.qw-chat { position: fixed; right: 24px; bottom: 100px; z-index: 40; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 130px)); display: flex; flex-direction: column; border-radius: 22px; background: #0B1122; border: 1px solid #2B3B60; box-shadow: 0 30px 80px -20px rgba(0,0,0,.85); overflow: hidden; }
.qw-chat[hidden] { display: none; }
.qw-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(120deg, var(--navy), #0B1838); border-bottom: 1px solid #1F3466; }
.qw-chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.qw-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; white-space: pre-line; animation: qwIn .35s var(--ease-out); }
.qw-msg--bot { align-self: flex-start; background: #131C33; border: 1px solid var(--line-3); border-bottom-left-radius: 4px; }
.qw-msg--me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.qw-chat__cards { display: flex; flex-direction: column; gap: 6px; align-self: stretch; }
.qw-chat__card { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13px; }
.qw-chat__quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-top: 1px solid #172036; }
.qw-chat__quick button { flex: none; }
.qw-chat__form { display: flex; gap: 8px; padding: 10px 12px 12px; }

/* ── Car cursor ─────────────────────────────────────── */
.qw-cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .3s; filter: drop-shadow(0 0 10px rgba(59,130,246,.65)); }
.qw-cursor .qw-cwheel { transform-box: fill-box; transform-origin: center; }
.qw-cursor.is-moving .qw-cwheel { animation: qwSpin .3s linear infinite; }
.qw-trail { position: fixed; left: 0; top: 0; z-index: 59; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--blue-3); opacity: 0; pointer-events: none; }

/* ── Motion ─────────────────────────────────────────── */
.qw-up { opacity: 0; animation: qwUp .9s var(--ease-out) forwards; }
@supports (animation-timeline: view()) { .qw-reveal { animation: qwReveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; } }
@keyframes qwUp { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes qwIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes qwReveal { from { opacity: 0; transform: translateY(60px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes qwShine { to { background-position: -250% 0; } }
@keyframes qwWords { 0%,18% { transform: translateY(0); } 25%,43% { transform: translateY(-20%); } 50%,68% { transform: translateY(-40%); } 75%,93% { transform: translateY(-60%); } 100% { transform: translateY(-80%); } }
@keyframes qwLoop { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes qwPoles { to { background-position: -280px 0; } }
@keyframes qwDash { to { background-position: -120px 0; } }
@keyframes qwSpeed { from { transform: translateX(110vw); } to { transform: translateX(-40vw); } }
@keyframes qwArrive { from { transform: translateX(-110vw); } to { transform: translateX(0); } }
@keyframes qwBounce { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes qwSpin { to { transform: rotate(360deg); } }
@keyframes qwDraw { to { stroke-dashoffset: 0; } }
@keyframes qwBeam { 0%,100% { opacity: .55; transform: scaleX(1); } 50% { opacity: .9; transform: scaleX(1.08); } }
@keyframes qwGlow { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes qwPulse { 0% { box-shadow: 0 0 0 0 rgba(47,107,255,.6); } 100% { box-shadow: 0 0 0 18px rgba(47,107,255,0); } }
@keyframes qwGrow { to { transform: scaleX(1); } }



/* ── Accounts ───────────────────────────────────────── */
.qw-auth { min-height: calc(100vh - 160px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: radial-gradient(800px 400px at 50% 0%, var(--navy) 0%, var(--bg) 70%); }
.qw-auth__card { width: min(460px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 32px 28px; box-shadow: 0 40px 90px -40px rgba(37,99,235,.55); }
.qw-auth__form { display: flex; flex-direction: column; gap: 14px; }
.qw-pagehead--slim .qw-container { padding-top: 22px; padding-bottom: 18px; }
.qw-acctnav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qw-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: #EF4444; color: #fff; font-size: 11px; font-weight: 800; }
.qw-iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: var(--text-2); border: 1px solid var(--line-2); }
.qw-iconbtn:hover { color: #fff; border-color: var(--blue-3); }
.qw-iconbtn .qw-count { position: absolute; top: -6px; right: -8px; margin: 0; }
.qw-acctlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 14px; border-radius: 12px; }
.qw-acctlink:hover, .qw-acctlink[aria-current] { color: #fff; }
.qw-statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
@media (max-width: 720px) { .qw-statgrid { grid-template-columns: 1fr 1fr; } .qw-stat strong { font-size: 26px; } }
.qw-stat { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--muted-2); font-size: 13px; padding: 20px; }
.qw-stat strong { font-family: var(--display); font-size: 32px; color: #fff; }
a.qw-stat:hover { border-color: var(--blue-3); }
.qw-myads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.qw-myad { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 16px; }
.qw-myad__img { flex: 0 0 160px; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; }
.qw-myad__img img { width: 100%; height: 100%; object-fit: cover; }
.qw-myad__body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.qw-myad__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qw-btn--danger { color: var(--danger) !important; border-color: rgba(245,158,158,.4) !important; }
.qw-sellform { display: flex; flex-direction: column; gap: 18px; }
.qw-sellform h2 { font-size: 20px; margin-bottom: 14px; }
.qw-formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.qw-sellform__bar { position: sticky; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.qw-dropzone { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 2px dashed var(--line-2); border-radius: 16px; cursor: pointer; transition: border-color .25s; }
.qw-dropzone:hover, .qw-dropzone:focus-within { border-color: var(--blue-3); }
.qw-dropzone input { font: 500 14px var(--body); color: var(--text-2); }
.qw-photogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.qw-photo-item { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.qw-photo-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.qw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.qw-steps li { display: flex; flex-direction: column; gap: 6px; }
.qw-steps strong { color: #fff; font-family: var(--display); }
.qw-contact { display: flex; flex-direction: column; gap: 10px; }
.qw-contact__chat { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.qw-inbox { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.qw-inbox__row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .25s; }
.qw-inbox__row:hover { border-color: var(--blue-3); }
.qw-inbox__row.is-unread { border-color: var(--blue); background: #0F1A36; }
.qw-inbox__avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--chip); color: var(--blue-4); display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; }
.qw-inbox__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.qw-inbox__text strong { color: #fff; }
.qw-inbox__snippet { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qw-inbox__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: var(--muted-2); }
.qw-thread { display: flex; flex-direction: column; gap: 14px; }
.qw-thread__head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.qw-thread__log { list-style: none; margin: 0; padding: 4px; display: flex; flex-direction: column; gap: 8px; max-height: 55vh; min-height: 200px; overflow-y: auto; }
.qw-bubble { align-self: flex-start; max-width: min(78%, 520px); padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; animation: qwUp .35s var(--ease-out); }
.qw-bubble span { white-space: pre-line; word-wrap: break-word; }
.qw-bubble time { font-size: 11px; color: var(--muted-2); align-self: flex-end; }
.qw-bubble.is-mine { align-self: flex-end; background: var(--blue); border-color: var(--blue); border-radius: 16px 16px 4px 16px; color: #fff; }
.qw-bubble.is-mine time { color: rgba(255,255,255,.75); }
.qw-thread__form { display: flex; gap: 10px; align-items: flex-end; }
.qw-thread__form textarea { min-height: 52px; padding-top: 12px; }
.qw-legal h2 { font-size: 20px; margin-bottom: 10px; }
.qw-legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 720px) { .qw-acctlink__name { display: none; } .qw-myad__img { flex-basis: 100%; } .qw-acctnav .qw-btn { margin-left: 0 !important; } }

/* ── Hero car: detailed vector car + optional photo ── */
.qw-realcar { overflow: visible; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.qw-realcar__sweep { animation: qwCarSweep 4.5s 2s ease-in-out infinite; }
@keyframes qwCarSweep { 0% { transform: skewX(-18deg) translateX(0); } 55%, 100% { transform: skewX(-18deg) translateX(1150px); } }
.qw-realcar__led { animation: qwLed 3s ease-in-out infinite; }
@keyframes qwLed { 0%,100% { opacity: .85; } 50% { opacity: 1; } }
.qw-car--photo { width: min(900px, 100vw); bottom: 20px; }
.qw-photo { position: relative; aspect-ratio: 2.3 / 1; }
.qw-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; -webkit-mask-image: radial-gradient(ellipse 50% 62% at 50% 52%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 62% at 50% 52%, #000 62%, transparent 100%); }
.qw-photo__sweep { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 42%, rgba(220,232,255,.22) 50%, transparent 58%) no-repeat; background-size: 300% 100%; animation: qwPhotoSweep 4.5s 2s ease-in-out infinite; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(ellipse 45% 40% at 50% 52%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 45% 40% at 50% 52%, #000 50%, transparent 100%); }
@keyframes qwPhotoSweep { 0% { background-position: 120% 0; } 55%, 100% { background-position: -20% 0; } }
.qw-photo__wheel { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; mix-blend-mode: screen; opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0) 0deg 22deg, rgba(210,225,255,.22) 30deg, rgba(255,255,255,0) 40deg 72deg);
  -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 70%); mask-image: radial-gradient(circle, #000 52%, transparent 70%); filter: blur(1.2px); animation: qwSpin .35s linear infinite; }
.qw-photo__credit { position: absolute; right: 8px; bottom: -14px; font-size: 10px; color: var(--faint); }

/* ── New cars catalogue ─────────────────────────────── */
.qw-brandbar { display: flex; flex-wrap: wrap; gap: 6px; }
.qw-modelcard { display: flex; flex-direction: column; }
.qw-modelcard__link { text-decoration: none; color: var(--text); display: flex; flex-direction: column; flex: 1; }
.qw-modelcard__media { position: relative; aspect-ratio: 16/9; padding: 18px 14px 0; background: radial-gradient(circle at 50% 75%, #16295A 0%, var(--surface-2) 72%); display: flex; align-items: center; }
.qw-modelcard__media .qw-badge { position: absolute; top: 10px; left: 10px; }
.qw-modelcard .qw-carart { transition: transform .6s var(--ease); }
.qw-modelcard:hover .qw-carart { transform: translateX(8px); }
.qw-modelcard__foot { margin: 0 16px 14px; align-items: center; }
.qw-compare-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-weight: 600; color: var(--text-2); transition: border-color .25s, background .25s; }
.qw-compare-toggle input { width: 16px; height: 16px; accent-color: var(--blue); }
.qw-compare-toggle.is-picked { border-color: var(--blue); background: rgba(37,99,235,.18); color: #fff; }
.qw-compare-tray { position: sticky; bottom: 16px; z-index: 20; margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(13,20,38,.92); backdrop-filter: blur(14px); border: 1px solid var(--blue); box-shadow: 0 20px 60px -20px rgba(37,99,235,.7); animation: qwUp .5s var(--ease-out); }
.qw-compare-tray[hidden] { display: none; }
.qw-btn[disabled] { opacity: .45; pointer-events: none; }
.qw-badge--ok { background: #12301F; color: #8EE3A8; }
.qw-pricenote { font-size: 12px; margin: 22px 0 0; max-width: 820px; }
.qw-carart { display: block; overflow: visible; }
.qw-carart__wheel { transform-box: fill-box; transform-origin: center; animation: qwCatSpin 3s linear infinite; }
@keyframes qwCatSpin { to { transform: rotate(360deg); } }
.qw-float { animation: qwFloat 5s ease-in-out infinite; }
@keyframes qwFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.qw-modelhero { border-bottom: 1px solid #141C30; background: radial-gradient(1000px 420px at 70% 20%, var(--navy) 0%, var(--bg) 70%); }
.qw-modelhero__grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding-top: 28px; padding-bottom: 40px; }
.qw-modelhero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.qw-modelhero__copy h1 { font-size: clamp(30px, 4.2vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.qw-modelhero__price { font-family: var(--display); font-size: clamp(24px, 3vw, 38px); font-weight: 800; color: var(--blue-4); }
.qw-modelhero__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qw-modelhero__art { flex: 1 1 420px; min-width: 0; margin: 0; }
.qw-modelpage { display: flex; flex-direction: column; gap: 28px; padding-top: 32px; padding-bottom: 48px; }
.qw-modelpage > * { min-width: 0; }
.qw-panel--flush { padding: 0; overflow: hidden; max-width: 100%; }
.qw-panel__head { padding: 22px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.qw-panel__head h2 { font-size: 22px; }
.qw-panel__foot { padding: 16px 24px 22px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; border-top: 1px solid var(--line); }
.qw-tablewrap { overflow-x: auto; position: relative; }
.qw-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.qw-table th, .qw-table td { padding: 14px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.qw-table thead th { border-top: 0; color: var(--muted-2); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding-top: 10px; padding-bottom: 10px; }
.qw-table tbody th { color: #fff; font-weight: 700; }
.qw-table tr > :first-child { padding-left: 24px; }
.qw-table tr > :last-child { padding-right: 24px; }
.qw-table tbody tr { transition: background .25s; }
.qw-table tbody tr:hover, .qw-table tbody tr.is-picked { background: #111B33; }
.qw-table__price { font-family: var(--display); font-weight: 800; color: var(--blue-4); white-space: nowrap; }
.qw-table--compare { min-width: 640px; }
.qw-table--compare tbody th { color: var(--muted); font-weight: 600; width: 220px; }
.qw-table--compare td { color: #fff; }
.qw-tick { width: 20px; height: 20px; accent-color: var(--blue); }
.qw-rownote { display: block; font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--muted-2); margin-top: 4px; white-space: normal; }
.qw-pstatus { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 7px; background: var(--chip); color: var(--chip-text); cursor: help; }
.qw-pstatus--confirmed { background: #12301F; color: #8EE3A8; }
.qw-pstatus--reported { background: #13234A; color: #A9C6FF; }
.qw-pstatus--dealer_quote { background: #1E2A1A; color: #A6E3A1; }
.qw-pstatus--estimate { background: var(--warn-bg); color: var(--warn); }
.qw-alert--warn { background: var(--warn-bg); color: var(--warn); }
.qw-twocol { display: flex; flex-wrap: wrap; gap: 24px; }
.qw-twocol > * { flex: 1 1 420px; min-width: 0; }
.qw-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.qw-history li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid #172036; }
.qw-history time { font-size: 12px; color: var(--muted-2); }
.qw-history em { font-style: normal; font-weight: 700; margin-left: 6px; }
.qw-history em.is-up { color: var(--danger); } .qw-history em.is-down { color: #8EE3A8; }
.qw-rival { display: flex; flex-direction: column; gap: 6px; padding: 20px; text-decoration: none; color: #fff; position: relative; }
.qw-rival .qw-arrow { position: absolute; right: 20px; top: 50%; color: var(--blue-4); }
.qw-quote { display: flex; flex-wrap: wrap; gap: 28px; background: linear-gradient(140deg, #0B1838, #0A1022); border-color: #1F3466; }
.qw-quote__copy { flex: 1 1 300px; min-width: 0; }
.qw-quote__form { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.qw-sources ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.qw-verdict ul { margin: 12px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.qw-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items: end; }
.qw-addcar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.qw-compare-heads { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.qw-compare-head { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.qw-compare-head:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .qw-up { opacity: 1; } .qw-draw { stroke-dashoffset: 0; }
  .qw-modelcard:hover .qw-carart { transform: none; }
  .qw-realcar__sweep, .qw-photo__sweep { display: none; }
}
@media (max-width: 720px) {
  .qw-scene { height: 260px; }
  .qw-ad__side { position: static; }
  .qw-gallery__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .qw-table--compare tbody th { width: 140px; }
  .qw-table--variants { min-width: 0; }
  .qw-table--variants thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .qw-table--variants, .qw-table--variants tbody { display: block; }
  .qw-table--variants tr { display: grid; grid-template-columns: 32px 1fr auto; gap: 4px 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
  .qw-table--variants th, .qw-table--variants td { border: 0; padding: 0 !important; }
  .qw-table--variants td:first-child { grid-row: span 3; }
  .qw-table--variants tbody th { grid-column: 2; }
  .qw-table--variants .qw-table__price { grid-column: 3; grid-row: 1; text-align: right; }
  .qw-table--variants td[data-label] { grid-column: 2 / -1; font-size: 13px; color: var(--muted); }
  .qw-table--variants td[data-label]::before { content: attr(data-label) ': '; color: var(--muted-2); }
  .qw-table--variants td.qw-table__status { grid-column: 2 / -1; }
  .qw-modelhero__price { font-size: 26px; }
  .qw-table--variants .qw-table__price { white-space: normal; max-width: 150px; }
  .qw-compare-tray { bottom: 8px; }
}
