/* =========================================================
   TruckWorldMotors — Page-specific styles
   ========================================================= */

/* page split pay */
@media (max-width: 860px){ .pay-split { grid-template-columns: 1fr !important; } }

/* catalog page */
.catalog-head { padding: 56px 0 24px; text-align: center; }
.catalog-head h1 { font-size: clamp(30px, 5vw, 56px); margin: 12px 0; }
.catalog-head p { color: var(--text-dim); max-width: 600px; margin: 0 auto; }
.count-pill { display:inline-flex; align-items:center; gap:8px; padding:8px 16px; border-radius:999px; background:var(--gold-grad-soft); border:1px solid rgba(224,165,38,.25); color:var(--amber); font-weight:700; font-size:13px; margin-top:16px; }

/* detail page */
.detail-head { padding: 40px 0 8px; }
.detail-breadcrumb { font-size: 13px; color: var(--text-mute); margin-bottom: 18px; }
.detail-breadcrumb a { color: var(--amber); }
.detail-title h1 { font-size: clamp(26px, 4vw, 42px); }
.detail-price { font-size: 34px; font-weight: 900; color: #fff; }
.detail-price small { font-size: 14px; color: var(--text-dim); }
.calc-box { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.calc-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; font-size:14px; }
.calc-result { margin-top:16px; padding:18px; border-radius:var(--radius-sm); background:var(--gold-grad-soft); border:1px solid rgba(224,165,38,.25); text-align:center; }
.calc-result .big { font-size:30px; font-weight:900; background:var(--gold-grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.range-wrap { margin: 14px 0; }
input[type="range"] { -webkit-appearance:none; width:100%; height:6px; border-radius:6px; background:var(--bg-3); outline:none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance:none; width:22px; height:22px; border-radius:50%; background:var(--gold-grad); cursor:pointer; box-shadow:0 0 12px rgba(224,165,38,.5); }
input[type="range"]::-moz-range-thumb { width:22px; height:22px; border:none; border-radius:50%; background:var(--amber); cursor:pointer; }

/* tracking page */
.track-hero { padding: 60px 0 20px; text-align:center; }
.track-box { max-width: 720px; margin: 0 auto; }
.track-result { margin-top: 30px; }
.dispatch-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:18px; }
@media (max-width:600px){ .dispatch-grid { grid-template-columns:1fr; } }
.dispatch-grid .di { padding:14px; border-radius:12px; background:rgba(6,9,18,.5); border:1px solid var(--line); }
.dispatch-grid .di .k { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-mute); }
.dispatch-grid .di .v { font-weight:700; margin-top:4px; }

/* auth pages */
.auth-split { display:grid; grid-template-columns:1fr 1fr; min-height:100vh; }
.auth-art { position:relative; overflow:hidden; }
.auth-art img { width:100%; height:100%; object-fit:cover; }
.auth-art::after { content:""; position:absolute; inset:0; background:linear-gradient(135deg, rgba(224,165,38,.25), rgba(6,9,18,.6)); }
.auth-art .quote { position:absolute; bottom:40px; left:40px; right:40px; z-index:2; color:#fff; }
.auth-art .quote h3 { font-size:28px; margin-bottom:10px; }
@media (max-width: 860px){ .auth-split { grid-template-columns:1fr; } .auth-art { display:none; } }

/* dashboard */
.dash-greet { font-size: 14px; color: var(--text-dim); }
.order-card { display:flex; gap:18px; padding:18px; border-radius:var(--radius); border:1px solid var(--line); background:var(--glass); margin-bottom:14px; align-items:center; }
.order-card img { width:120px; height:80px; object-fit:cover; border-radius:10px; }
.order-card .oc-main { flex:1; }
.order-card .oc-title { font-weight:800; }
.order-card .oc-meta { font-size:13px; color:var(--text-dim); margin-top:4px; }
@media (max-width:600px){ .order-card { flex-direction:column; align-items:flex-start; } .order-card img { width:100%; height:140px; } }

/* transcript */
.transcript-doc { background:var(--panel-solid); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.transcript-head { padding:24px 28px; background:var(--gold-grad); color:#1a1305; }
.transcript-head h2 { font-size:22px; }
.transcript-sec { padding:22px 28px; border-bottom:1px solid var(--line); }
.transcript-sec h4 { font-size:13px; text-transform:uppercase; letter-spacing:.1em; color:var(--amber); margin-bottom:12px; }
.transcript-imgs { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:10px; margin-top:12px; }
.transcript-imgs img { width:100%; height:100px; object-fit:cover; border-radius:8px; border:1px solid var(--line); }

/* admin forms */
.admin-vehicle-form .field { margin-bottom:14px; }
.dropzone { border:2px dashed var(--line); border-radius:var(--radius); padding:30px; text-align:center; color:var(--text-mute); cursor:pointer; transition:var(--t); }
.dropzone:hover, .dropzone.drag { border-color:var(--amber); color:var(--amber); background:var(--gold-grad-soft); }
.dropzone input { display:none; }
.preview-thumbs { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.preview-thumbs img { width:80px; height:60px; object-fit:cover; border-radius:8px; border:1px solid var(--line); }

/* verification form */
.ver-section { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; background: var(--glass); }
.ver-section h4 { margin-bottom: 16px; color: var(--amber); font-size: 16px; }
.checklist { display:grid; gap:8px; margin-top:10px; }
.checklist label { display:flex; align-items:center; gap:10px; font-size:14px; color:var(--text-dim); cursor:pointer; }
.checklist input { width:18px; height:18px; accent-color: var(--amber); }

/* about */
.about-hero { padding:80px 0 40px; text-align:center; }
.about-hero h1 { font-size:clamp(34px,5vw,60px); margin:14px 0; }
.feat-card { padding:24px; }
.feat-card .fi { width:54px; height:54px; border-radius:14px; background:var(--gold-grad-soft); display:grid; place-items:center; font-size:26px; margin-bottom:14px; border:1px solid rgba(224,165,38,.25); }

/* =========================================================
   TruckWorldMotors — REAL DEALERSHIP UPGRADE
   Trustbar · Upgrade Event · Deal Badges · Swipe Carousels
   Multi-Angle Viewer · Category Chips · Chat Widget
   ========================================================= */

/* ---------- Trustpilot-style trust bar ---------- */
.trustbar { padding: 14px 0; background: rgba(6,9,18,.6); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); position: relative; z-index: 5; }
.trustbar-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.trustbar-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); }
.trustbar-item .ti-ico { font-size: 18px; }
.trustbar-stars { display: inline-flex; gap: 2px; color: #00b67a; letter-spacing: 1px; }
.trustbar-score { font-weight: 800; color: #fff; }
.trustbar-divider { width: 1px; height: 22px; background: var(--line); }
.trustbar-logo { font-weight: 800; font-size: 12px; letter-spacing: .08em; color: #00b67a; text-transform: uppercase; }
@media (max-width: 720px){ .trustbar-divider { display:none; } .trustbar-item { font-size: 12px; } }

/* ---------- Upgrade Event banner ---------- */
.upgrade-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #1a0f04 0%, #2b1607 55%, #1a1305 100%);
  border: 1px solid rgba(224,165,38,.3); padding: 46px 48px;
  box-shadow: var(--shadow-lg), inset 0 0 60px rgba(224,165,38,.08);
}
.upgrade-banner::before {
  content: ""; position: absolute; top: -40%; right: -10%; width: 60%; height: 200%;
  background: radial-gradient(closest-side, rgba(224,165,38,.22), transparent 70%);
  pointer-events: none;
}
.upgrade-banner .ub-tag { display:inline-flex; align-items:center; gap:8px; padding:7px 16px; border-radius:999px;
  background: var(--gold-grad); color:#1a1305; font-weight:800; font-size:12px; letter-spacing:.12em; text-transform:uppercase; }
.upgrade-banner h2 { font-size: clamp(28px, 4vw, 46px); margin: 16px 0 8px; }
.upgrade-banner p { color: var(--text-dim); max-width: 560px; font-size: 16px; }
.upgrade-banner .ub-countdown { display:flex; gap:10px; margin: 22px 0 4px; }
.upgrade-banner .ub-cd-box { background: rgba(6,9,18,.7); border:1px solid var(--line); border-radius:12px;
  padding: 10px 14px; text-align:center; min-width: 62px; }
.upgrade-banner .ub-cd-box .num { font-size: 26px; font-weight: 900; color: var(--amber); line-height: 1; }
.upgrade-banner .ub-cd-box .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); margin-top: 4px; }
@media (max-width: 600px){ .upgrade-banner { padding: 32px 24px; } .upgrade-banner .ub-cd-box { min-width: 54px; padding: 8px 10px; } .upgrade-banner .ub-cd-box .num { font-size: 22px; } }

/* ---------- Deal badges ---------- */
.deal-badge { position: absolute; top: 14px; left: 14px; z-index: 3;
  padding: 7px 13px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.badge-new { background: linear-gradient(135deg,#2fae6b,#1f8a52); color:#04210f; }
.badge-offer { background: var(--gold-grad); color:#1a1305; }
.badge-hot { background: linear-gradient(135deg,#d64545,#a52a2a); color:#fff; animation: badgePulse 2s ease-in-out infinite; }
.badge-stock { background: rgba(91,122,153,.22); color: #8fb0d0; border: 1px solid rgba(91,122,153,.4); }
.badge-used { background: rgba(63,93,126,.22); color: #8fb0d0; border: 1px solid rgba(91,122,153,.4); }
@keyframes badgePulse { 0%,100% { box-shadow: 0 6px 18px rgba(214,69,69,.45); } 50% { box-shadow: 0 6px 26px rgba(214,69,69,.75); } }

/* photo count chip on cards */
.v-photo-count { position: absolute; bottom: 12px; right: 12px; z-index: 3;
  background: rgba(6,9,18,.78); color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); }

/* savings tag on cards */
.cc-savings { display:inline-block; margin-top:6px; padding:5px 11px; border-radius:8px;
  background: rgba(214,69,69,.15); color:#e88080; font-size:12px; font-weight:800;
  border:1px solid rgba(214,69,69,.3); }

/* was/now/save price block on detail — prices clean white, savings in red */
.dp-was { font-size: 16px; color: var(--text-mute); text-decoration: line-through; }
.dp-now { font-size: 38px; font-weight: 900; color: #fff; letter-spacing: -0.02em; }
.dp-save { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; border-radius:999px;
  background: rgba(214,69,69,.15); color:#e88080; font-weight:800; font-size:13px; border:1px solid rgba(214,69,69,.3); margin-left:10px; }

/* ---------- Swipe carousels ---------- */
.deal-drop-eyebrow { background: linear-gradient(90deg, rgba(214,69,69,.18), rgba(214,69,69,.18)) !important;
  border-color: rgba(214,69,69,.35) !important; color:#e8a866 !important; }
.section-carousel { padding: 56px 0; position: relative; }
.section-carousel .sec-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom: 24px; flex-wrap: wrap; }
.section-carousel .sec-head h2 { font-size: clamp(24px, 3.4vw, 38px); margin-top: 10px; }
.section-carousel .sec-head .sec-link { color: var(--amber); font-weight: 700; font-size: 14px; display:inline-flex; align-items:center; gap:6px; }
.section-carousel .sec-head .sec-link:hover { text-decoration: underline; }

.carousel-wrap { position: relative; }
.carousel-track { display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth;
  padding: 6px 4px 22px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { flex: 0 0 auto; width: 300px; }
.carousel-track.is-dragging { scroll-behavior: auto; cursor: grabbing; user-select: none; }

.carousel-card { position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--glass); border: 1px solid var(--line); transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex; flex-direction: column; }
.carousel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(224,165,38,.35); }
.carousel-card .cc-img { position: relative; height: 180px; overflow: hidden; }
.carousel-card .cc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.carousel-card:hover .cc-img img { transform: scale(1.07); }
.carousel-card .cc-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.carousel-card .cc-cat { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-mute); font-weight: 700; }
.carousel-card .cc-name { font-weight: 800; font-size: 16px; line-height: 1.2; }
.carousel-card .cc-spec { font-size: 12px; color: var(--text-dim); }
.carousel-card .cc-price { font-size: 20px; font-weight: 900; color: #fff; margin-top: auto; }
.carousel-card .cc-price-was { font-size: 12px; color: var(--text-mute); text-decoration: line-through; margin-left: 6px; -webkit-text-fill-color: var(--text-mute); }

.carousel-nav { position: absolute; top: 38%; transform: translateY(-50%); z-index: 6;
  width: 46px; height: 46px; border-radius: 50%; background: var(--panel-solid);
  border: 1px solid var(--line); color: #fff; font-size: 20px; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.5); transition: var(--t); cursor: pointer; }
.carousel-nav:hover { background: var(--gold-grad); color: #1a1305; border-color: transparent; transform: translateY(-50%) scale(1.08); }
.carousel-nav.prev { left: -14px; }
.carousel-nav.next { right: -14px; }
@media (max-width: 720px){ .carousel-track > * { width: 260px; } .carousel-nav { width: 40px; height: 40px; font-size: 17px; } .carousel-nav.prev { left: -6px; } .carousel-nav.next { right: -6px; } }

/* ---------- Category filter chips ---------- */
.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 18px 0 26px; }
.cat-chip { padding: 10px 20px; border-radius: 999px; background: var(--glass);
  border: 1px solid var(--line); color: var(--text-dim); font-weight: 700; font-size: 13px;
  transition: var(--t); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.cat-chip:hover { border-color: rgba(224,165,38,.4); color: #fff; }
.cat-chip.active { background: var(--gold-grad); color: #1a1305; border-color: transparent; }
.cat-chip .chip-count { font-size: 11px; opacity: .75; }

/* ---------- Multi-angle viewer (detail page) ---------- */
.viewer-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: #050810; border: 1px solid var(--line); }
.viewer-stage { position: relative; width: 100%; aspect-ratio: 16/10; background: radial-gradient(ellipse at center, #131c33 0%, #050810 80%); overflow: hidden; cursor: grab; }
.viewer-stage.is-dragging { cursor: grabbing; }
.viewer-stage img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease, opacity .3s ease; will-change: transform; }
.viewer-stage img.swap { opacity: 0; }
.viewer-stage .tilt-hint { position: absolute; bottom: 12px; left: 14px; z-index: 3;
  font-size: 11px; color: var(--text-mute); background: rgba(6,9,18,.6); padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(6px); display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); }

.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; background: rgba(6,9,18,.7); border: 1px solid var(--line);
  color: #fff; font-size: 22px; display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: var(--t); cursor: pointer; }
.viewer-nav:hover { background: var(--gold-grad); color: #1a1305; border-color: transparent; }
.viewer-nav.vprev { left: 14px; }
.viewer-nav.vnext { right: 14px; }

.viewer-angle-label { position: absolute; top: 14px; right: 14px; z-index: 4;
  background: var(--gold-grad); color: #1a1305; font-weight: 800; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.viewer-counter { position: absolute; top: 14px; left: 14px; z-index: 4;
  background: rgba(6,9,18,.7); color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); border: 1px solid var(--line); }

/* category tabs (Exterior / Interior / Details) */
.angle-tabs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.angle-tab { padding: 9px 18px; border-radius: 10px; background: var(--glass);
  border: 1px solid var(--line); color: var(--text-dim); font-weight: 700; font-size: 13px;
  transition: var(--t); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.angle-tab:hover { color: #fff; border-color: rgba(224,165,38,.35); }
.angle-tab.active { background: var(--gold-grad); color: #1a1305; border-color: transparent; }
.angle-tab .at-count { font-size: 11px; opacity: .7; }

/* thumbnail strip with angle grouping */
.thumb-strip { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 6px; scrollbar-width: none; }
.thumb-strip::-webkit-scrollbar { display: none; }
.thumb-angle { flex: 0 0 auto; position: relative; width: 110px; height: 72px; border-radius: 12px;
  overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: var(--t); background: var(--bg-3); }
.thumb-angle img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.thumb-angle:hover img { transform: scale(1.08); }
.thumb-angle.active { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(224,165,38,.2); }
.thumb-angle .ta-label { position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 12px 6px 4px; text-align: center; }

.viewer-swipe-hint { text-align: center; font-size: 12px; color: var(--text-mute); margin-top: 10px; }

/* ---------- Floating chat widget ---------- */
#chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; }
.chat-launcher { position: relative; width: 62px; height: 62px; border-radius: 50%;
  background: var(--gold-grad); box-shadow: 0 12px 34px rgba(224,165,38,.45); cursor: pointer;
  display: grid; place-items: center; transition: transform var(--t); border: none; }
.chat-launcher:hover { transform: scale(1.08) rotate(-4deg); }
.chat-launcher.is-hidden { display: none; }
.chat-launcher-icon { font-size: 27px; }
.chat-launcher-pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--amber); animation: chatPulse 2.2s ease-out infinite; }
.chat-launcher-badge { position: absolute; top: -4px; right: -4px; background: #d64545; color: #fff;
  font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 5px; box-shadow: 0 4px 12px rgba(214,69,69,.5); }
@keyframes chatPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

.chat-panel { position: absolute; bottom: 76px; right: 0; width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 130px); background: var(--panel-solid);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; animation: chatIn .32s cubic-bezier(.2,.8,.2,1); }
@keyframes chatIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }

.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  background: linear-gradient(120deg, #1a0f04, #16203a); border-bottom: 1px solid var(--line); }
.chat-head-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-grad);
  display: grid; place-items: center; font-size: 19px; }
.chat-head-title { font-weight: 800; font-size: 15px; }
.chat-head-status { font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.chat-close { width: 30px; height: 30px; border-radius: 50%; color: var(--text-dim); font-size: 15px; transition: var(--t); }
.chat-close:hover { background: rgba(214,69,69,.18); color: #e88080; }

.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.chat-body::-webkit-scrollbar { width: 5px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.chat-msg { max-width: 82%; animation: chatBubble .28s ease; }
@keyframes chatBubble { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-msg.is-user { align-self: flex-end; }
.chat-msg.is-agent { align-self: flex-start; }
.chat-bubble { padding: 11px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; }
.chat-msg.is-user .chat-bubble { background: var(--gold-grad); color: #1a1305; border-bottom-right-radius: 4px; }
.chat-msg.is-agent .chat-bubble { background: var(--bg-3); color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-time { font-size: 10px; color: var(--text-mute); margin-top: 4px; padding: 0 4px; }
.chat-msg.is-user .chat-time { text-align: right; }

.chat-typing .chat-bubble { display: flex; gap: 4px; align-items: center; }
.typing-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); animation: typingBounce 1.2s infinite ease-in-out; }
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce { 0%,80%,100% { transform: scale(.7); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

.chat-quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px 4px; border-top: 1px solid var(--line); }
.chat-quick-chip { padding: 7px 12px; border-radius: 999px; background: var(--gold-grad-soft);
  border: 1px solid rgba(224,165,38,.3); color: var(--amber); font-size: 12px; font-weight: 600;
  transition: var(--t); cursor: pointer; }
.chat-quick-chip:hover { background: var(--gold-grad); color: #1a1305; }

.chat-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: rgba(6,9,18,.4); }
.chat-input { flex: 1; background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 16px; color: var(--text); font-size: 13.5px; outline: none; transition: var(--t); }
.chat-input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(224,165,38,.15); }
.chat-send { width: 42px; height: 42px; border-radius: 50%; background: var(--gold-grad);
  color: #1a1305; font-size: 16px; display: grid; place-items: center; transition: var(--t); flex: 0 0 auto; }
.chat-send:hover { transform: scale(1.08); }
@media (max-width: 480px){ .chat-panel { width: calc(100vw - 32px); height: 70vh; } #chat-widget { bottom: 16px; right: 16px; } }

/* ---------- Catalog pagination ---------- */
.load-more-wrap { display: flex; justify-content: center; margin: 34px 0 10px; }
.load-more-btn { padding: 14px 30px; font-weight: 700; letter-spacing: .3px; }
.load-more-done { color: var(--text-dim); font-size: 13.5px; letter-spacing: .4px; }

/* ---------- Cookie consent ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
  background: linear-gradient(180deg, rgba(10,15,28,.97), rgba(6,9,18,.99));
  border-top: 1px solid rgba(224,165,38,.35); backdrop-filter: blur(14px);
  box-shadow: 0 -18px 50px rgba(0,0,0,.55); transform: translateY(120%);
  transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cookie-ico { font-size: 30px; flex: 0 0 auto; }
.cookie-text { flex: 1 1 420px; min-width: 260px; }
.cookie-text h4 { font-size: 15.5px; margin-bottom: 4px; color: var(--text); }
.cookie-text p { font-size: 13px; color: var(--text-dim); line-height: 1.55; margin: 0; }
.cookie-text a { color: var(--amber); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 22px; font-size: 13.5px; }
.cookie-pref { position: fixed; left: 18px; bottom: 18px; z-index: 9000; width: 40px; height: 40px;
  border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line); color: var(--text-dim);
  display: grid; place-items: center; font-size: 17px; cursor: pointer; transition: var(--t); }
.cookie-pref:hover { color: var(--amber); border-color: var(--amber); }
@media (max-width: 640px){ .cookie-inner { padding: 16px; gap: 14px; } .cookie-actions { width: 100%; } .cookie-actions .btn { flex: 1; } }

/* ---------- Currency switcher ---------- */
.currency-select { background: var(--bg-3); border: 1px solid var(--line); color: var(--text); border-radius: 10px; }

/* ---------- Save (heart) + Compare on cards ---------- */
.v-save { position: absolute; top: 12px; right: 12px; z-index: 4; width: 36px; height: 36px; border-radius: 50%;
  background: var(--glass-strong); border: 1px solid var(--line); color: var(--text-dim); font-size: 18px;
  display: grid; place-items: center; cursor: pointer; transition: var(--t); }
.v-save:hover { color: var(--red); border-color: var(--red); transform: scale(1.08); }
.v-save.on { color: var(--red); border-color: var(--red); background: rgba(214,69,69,.15); }
.v-compare { position: absolute; top: 12px; left: 12px; z-index: 4; display: flex; align-items: center; gap: 6px;
  background: var(--glass-strong); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  font-size: 11.5px; font-weight: 600; color: var(--text-dim); cursor: pointer; transition: var(--t); }
.v-compare input { width: auto; accent-color: var(--amber); }
.v-compare:hover { color: var(--amber); border-color: var(--amber); }

/* ---------- Compare bar ---------- */
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9997;
  background: linear-gradient(180deg, rgba(10,15,28,.97), rgba(6,9,18,.99));
  border-top: 1px solid rgba(224,165,38,.35); backdrop-filter: blur(14px); box-shadow: 0 -14px 40px rgba(0,0,0,.5); }
.compare-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.compare-label { font-weight: 700; color: var(--amber); font-size: 13.5px; }
.compare-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.compare-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; font-size: 12.5px; }
.compare-chip button { background: none; border: none; color: var(--text-dim); font-size: 16px; cursor: pointer; line-height: 1; }
.compare-chip button:hover { color: var(--red); }
.compare-actions { display: flex; gap: 8px; }

/* ---------- Compare page table ---------- */
.compare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table th { color: var(--amber); font-weight: 700; background: rgba(224,165,38,.05); position: sticky; top: 0; }
.compare-table td.k { color: var(--text-dim); font-weight: 600; width: 180px; }
.compare-table img { width: 100%; border-radius: 10px; margin-bottom: 8px; }
.compare-col-head { font-weight: 800; font-size: 14px; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.review-card { display: flex; flex-direction: column; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-grad); color: #1a1305;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.review-summary { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.review-score { font-size: 52px; font-weight: 800; color: var(--amber); line-height: 1; }
.review-dist { flex: 1; min-width: 220px; }
.review-dist-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; margin-bottom: 5px; }
.review-dist-bar { flex: 1; height: 8px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.review-dist-fill { height: 100%; background: var(--gold-grad); }

/* ---------- Forms (finance / trade-in) ---------- */
.form-page { max-width: 760px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px){ .form-grid { grid-template-columns: 1fr; } }
.form-note { font-size: 12.5px; color: var(--text-dim); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.blog-card { overflow: hidden; cursor: pointer; }
.blog-card .b-media { height: 190px; overflow: hidden; }
.blog-card .b-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .b-media img { transform: scale(1.06); }
.blog-card .b-body { padding: 20px; }
.blog-card .b-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--amber); font-weight: 700; }
.blog-card h3 { font-size: 18px; margin: 8px 0; }
.blog-article { max-width: 780px; margin: 0 auto; }
.blog-article h1 { font-size: clamp(26px,4vw,40px); margin-bottom: 14px; }
.blog-article h2 { font-size: 24px; margin: 28px 0 12px; color: var(--amber); }
.blog-article p { line-height: 1.8; margin-bottom: 16px; color: var(--text-dim); }
.blog-article ul { margin: 0 0 16px 20px; color: var(--text-dim); line-height: 1.8; }
.blog-article img { width: 100%; border-radius: 14px; margin: 18px 0; }

/* ---------- Analytics (admin) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.stat-card { padding: 20px; }
.stat-card .s-num { font-size: 30px; font-weight: 800; color: var(--amber); }
.stat-card .s-lbl { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 10px 0; }
.bar-chart .bar { flex: 1; background: var(--gold-grad); border-radius: 6px 6px 0 0; min-height: 3px; position: relative; transition: var(--t); }
.bar-chart .bar:hover { filter: brightness(1.2); }
.bar-chart .bar span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--text-dim); white-space: nowrap; }
.hbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.hbar .hb-fill { height: 22px; background: var(--gold-grad); border-radius: 6px; min-width: 4px; }
.hbar .hb-lbl { width: 130px; color: var(--text-dim); }

/* ---------- WhatsApp button ---------- */
.chat-wa { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px;
  background: #25D366; color: #062b16; font-weight: 700; font-size: 13.5px; cursor: pointer; border: none; width: 100%; }
.chat-wa:hover { filter: brightness(1.08); }

/* ---------- Finance estimate rows ---------- */
.fin-rows { display: flex; flex-direction: column; gap: 2px; }
.fin-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fin-row span { color: var(--text-dim); }
.fin-row b { font-weight: 800; }
.fin-row.total { border-bottom: none; border-top: 2px solid var(--amber); margin-top: 6px; padding-top: 14px; font-size: 16px; }
.fin-row.total b { color: var(--amber); font-size: 20px; }

/* ---------- Tick list ---------- */
.tick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tick-list li { position: relative; padding-left: 26px; font-size: 13.5px; color: var(--text-dim); }
.tick-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--amber); font-weight: 800; }

/* ---------- Blog cover (emoji tile) ---------- */
.blog-cover { height: 150px; display: grid; place-items: center; font-size: 56px;
  background: radial-gradient(circle at 30% 20%, rgba(224,165,38,.18), transparent 60%), var(--bg-3); }

/* ---------- Review distribution bars ---------- */
.rev-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.rev-bar-row .tiny { width: 26px; text-align: right; }
.rev-bar { flex: 1; height: 9px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.rev-bar i { display: block; height: 100%; background: var(--gold-grad); border-radius: 999px; }

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; background: var(--amber); color: #1a1305;
  padding: 12px 20px; font-weight: 800; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== Support chat: attachments, channels, previews ===== */
.chat-attach { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-3); color: var(--text-dim); font-size: 17px; cursor: pointer; transition: var(--t); flex: 0 0 auto; }
.chat-attach:hover { color: var(--amber); border-color: var(--amber); }
.chat-channels { display: flex; gap: 8px; padding: 10px 14px 0; }
.chat-channels .chat-wa, .chat-channels .chat-tg { flex: 1; }
.chat-tg { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px;
  border-radius: 10px; border: 1px solid #2aabee; background: rgba(42,171,238,.12); color: #7fd0ff;
  font-weight: 700; font-size: 13px; cursor: pointer; transition: var(--t); }
.chat-tg:hover { background: #2aabee; color: #fff; }
.chat-preview { display: none; gap: 8px; flex-wrap: wrap; padding: 10px 14px 0; }
.chat-prev-item { position: relative; width: 56px; height: 56px; }
.chat-prev-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.chat-prev-x { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
  border: none; background: #e5484d; color: #fff; font-size: 12px; line-height: 1; cursor: pointer; }
.chat-bubble-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chat-bubble-imgs img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); }

/* Message attachments in dashboard / admin */
.msg-atts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.msg-att { display: block; }
.msg-att img { width: 110px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); transition: var(--t); }
.msg-att:hover img { border-color: var(--amber); transform: scale(1.03); }
.prev-item { position: relative; width: 80px; height: 60px; }
.prev-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.prev-x { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
  border: none; background: #e5484d; color: #fff; font-size: 12px; line-height: 1; cursor: pointer; }

/* ===== Dashboard Inbox ===== */
.inbox-list { display: flex; flex-direction: column; gap: 14px; }
.inbox-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.inbox-item.unread { border-color: rgba(224,165,38,.45); box-shadow: 0 0 0 1px rgba(224,165,38,.12); }
.inbox-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.inbox-subj { font-weight: 800; font-size: 16px; }
.inbox-meta { font-size: 12px; color: var(--text-mute); white-space: nowrap; }
.inbox-body { color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.inbox-body h2 { color: var(--amber); font-size: 17px; margin: 14px 0 8px; }
.inbox-body a { color: var(--amber); }
.inbox-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.inbox-body th, .inbox-body td { padding: 8px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.inbox-body ul { padding-left: 18px; }
.inbox-read { margin-top: 12px; }

/* ===== Copy buttons (payment details) ===== */
.copy-btn { border: 1px solid var(--line); background: var(--bg-3); color: var(--text-dim);
  border-radius: 6px; padding: 2px 7px; font-size: 12px; cursor: pointer; transition: var(--t); margin-left: 6px; }
.copy-btn:hover { color: var(--amber); border-color: var(--amber); }
