/* ElArabyat public website — plain CSS, RTL, Cairo. Colors from the logo. */

@font-face {
  font-family: "Cairo"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url("../fonts/cairo-arabic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Cairo"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url("../fonts/cairo-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0c3f71;
  --navy-dark: #082d52;
  --navy-deep: #061f3a;
  --navy-soft: #e8f0f9;
  --red: #b5232e;
  --red-dark: #8f1a23;
  --red-soft: #fbe9ea;
  --gold: #f4b32e;
  --gold-soft: #fff4dc;
  --green: #1f7a4d;
  --green-soft: #e4f4ea;
  --bg: #f4f7fb;
  --surface: #fff;
  --text: #14233a;
  --muted: #64748b;
  --border: #e3e9f1;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(12, 63, 113, .05), 0 6px 20px rgba(12, 63, 113, .06);
  --shadow-hover: 0 2px 4px rgba(12, 63, 113, .06), 0 14px 34px rgba(12, 63, 113, .12);
  --font: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ok { color: var(--green); }
.ico { flex-shrink: 0; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }

/* ---------- buttons & pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(181, 35, 46, .25); }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { background: var(--navy-soft); color: var(--navy); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.pill-gold { background: var(--gold); color: #3a2600; }
.pill-red { background: var(--red); color: #fff; }
.pill-dark { background: rgba(10, 25, 45, .72); color: #fff; }
.pill-green { background: var(--green); color: #fff; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; color: var(--navy); }
.icon-btn:hover { background: var(--navy-soft); }

/* ---------- header */
/* no backdrop-filter here: it would trap the fixed mobile drawer inside the header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.main-nav > a, .nav-more-btn { padding-inline: 10px; }
.site-logo { flex-shrink: 0; display: block; line-height: 0; }
.site-logo img { height: 50px; width: auto; max-width: none; aspect-ratio: 640 / 267; object-fit: contain; }
.nav-toggle { display: none; }
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.main-nav > a, .nav-more-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 10px;
  font-weight: 700; font-size: 15px; color: #334155; border: 0; background: none; cursor: pointer; position: relative; white-space: nowrap;
}
.main-nav > a:hover, .nav-more-btn:hover { color: var(--navy); background: var(--navy-soft); }
.main-nav > a.active { color: var(--navy); }
.main-nav > a.active::after { content: ""; position: absolute; inset-inline: 12px; bottom: -14px; height: 3px; border-radius: 3px; background: var(--red); }
.main-nav .nav-ai { color: var(--red); }
.nav-more { position: relative; }
.nav-more-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 230px; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-hover);
  display: none; flex-direction: column;
}
.nav-more.open .nav-more-menu { display: flex; }
.nav-more-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: #334155; }
.nav-more-menu a:hover { background: var(--navy-soft); color: var(--navy); }
.nav-drawer-head, .nav-drawer-actions { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-login { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); padding: 8px 10px; border-radius: 10px; }
.header-login:hover { background: var(--navy-soft); }
.nav-backdrop { display: none; }

@media (min-width: 1241px) and (max-width: 1400px) {
  .main-nav > a, .nav-more-btn { padding-inline: 7px; font-size: 14.5px; }
  .header-row { gap: 8px; }
}

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .header-row { gap: 8px; }
  .site-logo img { height: 42px; }
  .main-nav {
    position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 60; width: min(340px, 86vw);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 16px; background: #fff; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease; box-shadow: var(--shadow-hover);
  }
  body.nav-open .main-nav { transform: none; }
  body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(6, 31, 58, .45); }
  .nav-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .nav-drawer-head img { height: 44px; width: auto; }
  .main-nav > a, .nav-more-btn { padding: 12px; font-size: 16px; width: 100%; }
  .main-nav > a.active { background: var(--navy-soft); }
  .main-nav > a.active::after { display: none; }
  .nav-more-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 0; min-width: 0; }
  .nav-more-btn { display: none; }
  .nav-drawer-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 16px; }
  .header-actions { margin-inline-start: auto; }
  .header-login span { display: none; }
}
@media (max-width: 520px) {
  .header-sell span { display: none; }
  .header-sell { width: 40px; padding: 0; }
}

/* ---------- hero & search */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 56px 0 76px;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(255, 255, 255, .14), transparent 60%),
    radial-gradient(700px 380px at 0% 120%, rgba(181, 35, 46, .55), transparent 60%),
    linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #165a9a);
}
.hero::after { /* road lines */
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 40px, transparent 40px 70px); opacity: .55;
}
.hero-text { max-width: 720px; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 900; }
.hero h1 span { color: var(--gold); }
.hero p { margin: 10px 0 26px; font-size: clamp(15px, 2vw, 18px); color: rgba(255, 255, 255, .85); }
.search-box { background: #fff; color: var(--text); border-radius: 20px; padding: 10px 10px 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); max-width: 1000px; }
.search-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 10px; background: var(--bg); border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; }
.search-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 16px; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.search-tabs button.active { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.search-panel { display: none; }
.search-panel.active { display: flex; }
form.search-panel { gap: 10px; padding: 0 4px; flex-wrap: wrap; }
form.search-panel select, form.search-panel input {
  flex: 1 1 180px; height: 52px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: #fbfcfe; min-width: 0;
}
form.search-panel input.grow { flex: 3 1 260px; }
form.search-panel select:focus, form.search-panel input:focus { outline: 2px solid var(--navy); outline-offset: -1px; background: #fff; }
form.search-panel .btn { height: 52px; flex: 0 0 auto; padding: 0 28px; }
@media (max-width: 640px) {
  .hero { padding: 32px 0 56px; }
  .search-tabs { width: 100%; }
  .search-tabs button { flex: 1; justify-content: center; padding: 8px 6px; font-size: 14px; }
  form.search-panel .btn { flex: 1 1 100%; }
}

/* ---------- sections */
.section { padding-block: 40px 8px; }
.section-tint { background: linear-gradient(180deg, #fff, var(--bg)); margin-top: 40px; padding-block: 40px 36px; border-block: 1px solid var(--border); }
.section-dark { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; margin-top: 40px; padding-block: 44px 40px; }
.section-dark .section-head h2, .section-dark .see-all { color: #fff; }
.section-dark .video-card h3 { color: #fff; }
.section-dark .muted { color: rgba(255, 255, 255, .65); }
.section-ad { padding-top: 32px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(21px, 3vw, 28px); font-weight: 900; position: relative; padding-inline-start: 14px; }
.section-head h2::before { content: ""; position: absolute; inset-inline-start: 0; top: 18%; bottom: 18%; width: 5px; border-radius: 4px; background: var(--red); }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.see-all { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--navy); white-space: nowrap; font-size: 15px; }
.see-all:hover { color: var(--red); }

/* horizontal rows */
.scroller { position: relative; }
.scroller-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 14px; scrollbar-width: none;
}
.scroller-track::-webkit-scrollbar { display: none; }
.scroller-track > * { scroll-snap-align: start; }
.scroller-btn {
  position: absolute; top: 42%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--navy); box-shadow: var(--shadow-hover); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.scroller-btn.prev { inset-inline-start: -14px; }
.scroller-btn.next { inset-inline-end: -14px; }
[hidden] { display: none !important; }
.scroller-btn[hidden] { display: none; }
@media (max-width: 1100px) { .scroller-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 820px) { .scroller-track { grid-auto-columns: 46%; } .scroller-btn { display: none; } }
@media (max-width: 540px) { .scroller-track { grid-auto-columns: 78%; gap: 12px; } }

/* ---------- new car card */
.car-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; transition: box-shadow .2s, transform .2s; min-width: 0;
}
.car-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.car-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.car-card h3 { font-size: 17px; font-weight: 800; }
.car-card .year { color: var(--red); }
.car-card-top .muted { font-size: 13px; }
.brand-chip { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; }
.car-card-img {
  margin: 12px -6px; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; color: #b6c3d3;
  background: radial-gradient(ellipse at 50% 85%, #e9eef5 0 35%, transparent 70%); border-radius: 12px; overflow: hidden;
}
.car-card-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.car-card-price { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border); display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.car-card-price-main { display: flex; flex-direction: column; min-width: 0; }
.car-card-year { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; padding: 5px 10px; border-radius: 10px;
    background: rgba(200, 16, 46, .07); color: var(--red); border: 1px solid rgba(200, 16, 46, .18); flex-shrink: 0; }
.car-card-year small { font-size: 10px; font-weight: 700; opacity: .8; }
.car-card-year b { font-size: 15px; font-weight: 900; direction: ltr; }
.car-card-price .muted { font-size: 13px; }
.car-card-price strong { font-size: 18px; color: var(--navy); font-weight: 900; }

/* ---------- used / part card */
.ad-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; min-width: 0; }
.ad-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.ad-card-img { position: relative; aspect-ratio: 16 / 10; background: #e9eef5; }
.ad-card-img.square { aspect-ratio: 4 / 3; }
.ad-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-card-img .pill { position: absolute; top: 10px; inset-inline-start: 10px; }
.ad-card-img .pill-end { inset-inline-start: auto; inset-inline-end: 10px; }
.ad-card-img .img-count { top: auto; bottom: 10px; inset-inline-start: auto; inset-inline-end: 10px; }
.ad-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ad-card h3 { font-size: 16px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; }
.ad-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ad-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.ad-card .price { color: var(--red); font-size: 18px; font-weight: 900; white-space: nowrap; }
.ad-card .seller { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- services bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 170px; padding: 20px; border-radius: 20px; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tile h3 { font-size: 19px; font-weight: 900; }
.tile p { margin: 6px 0 0; font-size: 14px; opacity: .85; max-width: 32ch; }
.tile-icon { align-self: flex-end; width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .7); }
.tile::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; inset-inline-end: -60px; bottom: -80px; background: rgba(255, 255, 255, .35); }
.tile-wide { grid-column: span 2; grid-row: span 2; justify-content: flex-end; }
.tile-wide h3 { font-size: 28px; }
.tile-wide .tile-icon { position: absolute; top: 20px; inset-inline-end: 20px; width: 84px; height: 84px; }
.tile-navy { background: linear-gradient(140deg, var(--navy), #2a6cb0); color: #fff; }
.tile-navy .tile-icon { background: rgba(255, 255, 255, .15); color: #fff; }
.tile-navy::after { background: rgba(255, 255, 255, .08); width: 320px; height: 320px; }
.tile-red { background: var(--red-soft); color: var(--red-dark); }
.tile-gold { background: var(--gold-soft); color: #6b4a00; }
.tile-sky { background: #e7f3fd; color: #0b4f86; }
.tile-violet { background: #efeafd; color: #4a2f9a; }
.tile-green { background: var(--green-soft); color: #165c39; }
.tile-slate { background: #edf1f6; color: #2c3e57; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile-wide { grid-row: span 1; } }
@media (max-width: 540px) {
  .bento { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 140px; padding: 14px; }
  .tile p { display: none; }
  .tile h3 { font-size: 16px; }
  .tile-wide p { display: block; }
  .tile-icon { width: 48px; height: 48px; }
}

/* ---------- AI strip */
.ai-strip {
  margin-top: 28px; display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 12px; padding-inline-start: 16px;
  background: #fff; border: 2px solid transparent; border-radius: 18px; box-shadow: var(--shadow);
  background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, var(--red), var(--gold), var(--navy));
  background-origin: border-box; background-clip: padding-box, border-box;
}
.ai-badge { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--red), var(--navy)); }
.ai-strip-body { flex: 1; min-width: 0; }
.ai-strip label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.ai-strip input { width: 100%; border: 0; outline: 0; font-size: 17px; font-weight: 600; padding: 2px 0; background: transparent; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-chips a { padding: 6px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: #334155; }
.ai-chips a:hover { border-color: var(--navy); color: var(--navy); }
@media (max-width: 640px) { .ai-strip { flex-wrap: wrap; } .ai-strip .btn { width: 100%; } }

/* ---------- brands, cities, categories */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.brand-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; background: #fff;
  border: 1px solid var(--border); border-radius: 14px; font-weight: 700; font-size: 14px; transition: border-color .2s, transform .2s;
}
.brand-tile:hover { border-color: var(--navy); transform: translateY(-2px); }
.brand-tile img { width: 64px; height: 64px; object-fit: contain; }
.brand-letter { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); font-size: 24px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.city-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.city-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; font-weight: 700; }
.city-chips a svg { color: var(--red); }
.city-chips a span { background: var(--navy-soft); color: var(--navy); border-radius: 99px; padding: 0 8px; font-size: 13px; }
.city-chips a:hover { border-color: var(--navy); }
.chip-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: none; }
.chip-tabs button { flex-shrink: 0; border: 1px solid var(--border); background: #fff; padding: 8px 18px; border-radius: 99px; font-weight: 700; cursor: pointer; color: #334155; }
.chip-tabs button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.cat-grid { display: none; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.cat-grid.active { display: grid; }
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; font-weight: 700; font-size: 14px; }
.cat-tile:hover { border-color: var(--red); color: var(--red); }
.cat-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-icon img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- price list */
.price-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.price-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.price-row:hover { border-color: var(--navy); }
.price-row img { width: 38px; height: 38px; object-fit: contain; border-radius: 50%; }
.price-row-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.price-row-name .muted { font-size: 13px; }
.price-row-value { text-align: end; display: flex; flex-direction: column; }
.price-row-value strong { color: var(--navy); font-weight: 900; }
.price-row-value .muted { font-size: 12px; }
@media (max-width: 760px) { .price-list { grid-template-columns: 1fr; } }

/* ---------- shops & people */
.shop-card, .person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.shop-card:hover, .person:hover { box-shadow: var(--shadow-hover); }
.shop-card img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 6px; }
.shop-card h3 { font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.shop-card span { display: inline-flex; align-items: center; gap: 4px; }
.rating { color: #b07a00; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.avatar-ring { width: 96px; height: 96px; border-radius: 50%; padding: 4px; background: conic-gradient(var(--red), var(--gold), var(--navy), var(--red)); margin-bottom: 8px; }
.avatar-ring img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; object-fit: cover; }
.person strong { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- videos */
.video-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0d2440; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-thumb .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.video-thumb .play svg { fill: currentColor; margin-inline-start: 3px; }
.video-thumb .pill { position: absolute; top: 10px; inset-inline-start: 10px; }
.video-card h3 { font-size: 16px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-by { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.video-by img { width: 26px; height: 26px; border-radius: 50%; }

/* ---------- reviews (feature) & news */
.feature-grid, .news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.feature-big { position: relative; border-radius: 20px; overflow: hidden; min-height: 380px; background: var(--navy); color: #fff; display: flex; }
.feature-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-overlay { position: relative; margin-top: auto; padding: 24px; width: 100%; background: linear-gradient(transparent, rgba(6, 31, 58, .92) 45%); }
.feature-overlay h3 { font-size: 24px; font-weight: 900; }
.feature-overlay p { margin: 6px 0 0; opacity: .85; }
.score { display: inline-flex; align-items: baseline; gap: 2px; background: var(--gold); color: #3a2600; font-weight: 900; font-size: 22px; padding: 2px 12px; border-radius: 10px; margin-bottom: 10px; }
.score small { font-size: 13px; }
.feature-list, .news-list { display: flex; flex-direction: column; gap: 12px; }
.feature-item, .news-item { display: flex; gap: 12px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.feature-item:hover, .news-item:hover { border-color: var(--navy); }
.feature-item img, .news-item img { width: 130px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.feature-item h3, .news-item h3 { font-size: 15px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-big { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 12px 12px 18px; }
.news-big img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.news-big .pill { align-self: flex-start; margin-top: 6px; }
.news-big h3 { font-size: 22px; font-weight: 900; padding-inline: 6px; }
.news-big p { margin: 0; padding-inline: 6px; }
.news-item .cat { color: var(--red); font-size: 12px; font-weight: 800; }
@media (max-width: 860px) {
  .feature-grid, .news-grid { grid-template-columns: 1fr; }
  .feature-big { min-height: 300px; }
}
@media (max-width: 480px) { .feature-item img, .news-item img { width: 104px; } }

/* ---------- most compared */
.compare-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.compare-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.compare-item:hover { border-color: var(--navy); }
.compare-item .rank { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.compare-item img { width: 84px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.compare-item div { display: flex; flex-direction: column; min-width: 0; }

/* ---------- AI CTA */
.ai-cta {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: 36px; border-radius: 24px; color: #fff;
  background: radial-gradient(500px 300px at 100% 0, rgba(244, 179, 46, .25), transparent 60%), linear-gradient(135deg, var(--navy-deep), var(--navy));
}
.ai-cta h2 { font-size: clamp(22px, 3.2vw, 32px); font-weight: 900; margin: 10px 0 8px; }
.ai-cta p { margin: 0; color: rgba(255, 255, 255, .82); }
.ai-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ai-cta-chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { padding: 12px 16px; border-radius: 16px; max-width: 90%; font-weight: 600; }
.bubble.me { align-self: flex-start; background: #fff; color: var(--text); border-start-start-radius: 4px; }
.bubble.bot { align-self: flex-end; background: var(--red); border-start-end-radius: 4px; }
@media (max-width: 820px) { .ai-cta { grid-template-columns: 1fr; padding: 24px; } }

/* ---------- ads */
.ad-slot { margin: 24px 0 0; text-align: center; }
.ad-slot img { margin-inline: auto; border-radius: 14px; }

/* ---------- simple pages */
.page-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; padding: 40px 0; }
.page-hero h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 900; }
.prose { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin: 28px auto; max-width: 860px; }
.prose h2 { margin: 18px 0 8px; }
.soon { text-align: center; padding: 70px 20px; }
.soon .soon-icon { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 28px; background: var(--navy-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; }

/* ---------- footer */
.site-footer { margin-top: 64px; background: var(--navy-deep); color: rgba(255, 255, 255, .78); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; padding-block: 44px 32px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 8px 12px; border-bottom: 3px solid var(--red); }
.footer-logo img { height: 56px; width: auto; }
.footer-about p { font-size: 14px; margin: 14px 0; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer-grid > div:not(.footer-about) { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: var(--gold); }
.footer-contact { display: inline-flex; align-items: center; gap: 6px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: #fff; }
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ================= inner pages ================= */
.page-head { background: #fff; border-bottom: 1px solid var(--border); padding: 18px 0 20px; }
.page-head h1 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 900; margin-top: 6px; }
.page-head .lead { margin: 12px 0 0; max-width: 80ch; }
.lead { color: #334155; font-size: 16px; }
.en { font-size: .6em; font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.crumbs span:last-child { color: var(--text); font-weight: 700; }
.brand-letter.sm { width: 44px; height: 44px; font-size: 14px; }
.brand-letter.lg { width: 84px; height: 84px; font-size: 34px; }
.brand-head { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.brand-head img { width: 84px; height: 84px; object-fit: contain; }
.brand-head h1 { margin: 0; }

/* brand strip */
.brand-strip { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: thin; }
.brand-strip a { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; padding: 10px 4px; border-radius: 14px; border: 1px solid transparent; font-size: 12px; font-weight: 700; color: #334155; }
.brand-strip a img { width: 44px; height: 44px; object-fit: contain; }
.brand-strip a:hover { background: #fff; border-color: var(--border); }
.brand-strip a.active { background: #fff; border-color: var(--navy); color: var(--navy); }

/* list page: filters + results */
.list-layout { display: grid; grid-template-columns: 290px 1fr; gap: 24px; align-items: start; margin-top: 12px; }
.filters { position: sticky; top: calc(var(--header-h) + 12px); }
.filters-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.filters-box > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 800; cursor: pointer; border-bottom: 1px solid var(--border); }
.filters-box > summary::-webkit-details-marker { display: none; }
.filters-box form { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.f-field label { display: block; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 4px; }
.f-field input, .f-field select, .price-filter select, .price-filter input, .sort-form select {
  width: 100%; height: 42px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: #fbfcfe;
}
.f-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.f-chips label { margin: 0; cursor: pointer; position: relative; }
.f-chips input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; inset: 0; } /* was full width off-screen: page scrolled sideways on phones */
.f-chips span { display: inline-block; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; background: #fff; }
.f-chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.f-chips input:focus-visible + span { outline: 2px solid var(--red); }
.f-more > summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: 8px; }
.f-more { display: flex; flex-direction: column; gap: 12px; }
.f-more[open] > .f-field { margin-top: 10px; }
.f-check { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-top: 10px; }
.f-reset { text-align: center; font-size: 13px; color: var(--red); font-weight: 700; }
.list-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sort-form select { width: auto; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.empty-box { text-align: center; padding: 48px 16px; background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }
.empty-box h3 { color: var(--text); margin: 10px 0 4px; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 24px 0 8px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-weight: 700; }
.pager .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager .disabled { opacity: .4; }
@media (max-width: 900px) {
  .list-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-box:not([open]) > summary { border-bottom: 0; }
}

/* car hero: gallery + summary */
.car-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin-top: 20px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: radial-gradient(ellipse at 50% 80%, #e7edf5, #f7f9fc 70%); border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-video, .gallery-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery-play { position: absolute; inset: 0; border: 0; background-size: cover; background-position: center; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; }
.gallery-play svg, .gallery-thumbs .is-video span { background: var(--red); border-radius: 50%; padding: 14px; width: 64px; height: 64px; fill: currentColor; }
.gallery-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #b6c3d3; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { position: relative; flex-shrink: 0; width: 92px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #e9eef5; cursor: pointer; }
.gallery-thumbs button.active { border-color: var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .is-video span { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; padding: 7px; color: #fff; display: flex; }
.car-summary { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.car-title { display: flex; align-items: center; gap: 12px; }
.car-title img { width: 48px; height: 48px; object-fit: contain; }
.car-title h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; }
.car-title .year { color: var(--red); }
.trim-badge { display: inline-block; background: var(--navy-soft); color: var(--navy); font-size: .55em; padding: 2px 10px; border-radius: 8px; vertical-align: middle; }
.rating-line { display: flex; align-items: center; gap: 6px; }
.stars { display: inline-flex; gap: 1px; color: #d4dbe5; }
.stars .on { color: #f4b32e; fill: #f4b32e; }
.price-box { background: linear-gradient(135deg, var(--navy-soft), #fff); border: 1px solid #d7e3f1; border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.price-box strong { font-size: clamp(22px, 3vw, 30px); font-weight: 900; color: var(--navy); }
.price-box strong small { font-size: .55em; font-weight: 700; }
.chg { display: inline-block; font-size: 13px; font-weight: 700; padding: 1px 8px; border-radius: 8px; }
.chg.up { background: var(--red-soft); color: var(--red-dark); }
.chg.down { background: var(--green-soft); color: var(--green); }
.quick-facts, .spec-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quick-facts li, .spec-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--bg); border-radius: 10px; font-size: 14px; font-weight: 600; }
.quick-facts svg, .spec-chips svg { color: var(--navy); }
.year-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.year-tabs a { padding: 6px 16px; border-radius: 10px; border: 1px solid var(--border); font-weight: 800; }
.year-tabs a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.car-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.car-actions .btn { flex: 1 1 160px; }
.share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.share-icon { height: 40px; min-width: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: var(--navy); font-weight: 700; font-size: 13px; }
.share-icon .copied { display: none; }
.share-icon.done .copied { display: inline; color: var(--green); }
.sibling-trims { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-top: 1px dashed var(--border); padding-top: 12px; }
.sibling-trims a { padding: 4px 10px; border-radius: 8px; background: var(--bg); font-size: 13px; font-weight: 700; }
.sibling-trims a small { color: var(--red); }
.sibling-trims a:hover { background: var(--navy-soft); }
@media (max-width: 900px) { .car-hero { grid-template-columns: 1fr; } }

/* sticky in-page tabs */
.page-tabs { position: sticky; top: var(--header-h); z-index: 20; display: flex; gap: 4px; overflow-x: auto; background: rgba(244, 247, 251, .97); padding: 10px 0; margin-top: 18px; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.page-tabs a { flex-shrink: 0; padding: 7px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; color: #334155; }
.page-tabs a:hover { background: #fff; color: var(--navy); }
.block { padding-top: 32px; scroll-margin-top: calc(var(--header-h) + 60px); }
.block-title { font-size: clamp(19px, 2.6vw, 24px); font-weight: 900; margin-bottom: 14px; }
.block-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.block-head .block-title { margin: 0; }
.sub-title { font-size: 18px; margin: 20px 0 12px; }

/* trims list */
.trim-list { display: flex; flex-direction: column; gap: 10px; }
.trim-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 14px 18px; background: #fff; border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.trim-row:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.trim-name { display: flex; flex-direction: column; min-width: 0; }
.trim-name strong { font-size: 17px; }
.trim-name .muted { font-size: 13px; }
.trim-price { text-align: end; display: flex; flex-direction: column; }
.trim-price strong { color: var(--red); font-size: 18px; font-weight: 900; white-space: nowrap; }
.trim-go { display: inline-flex; align-items: center; gap: 2px; color: var(--navy); font-weight: 800; font-size: 14px; }
@media (max-width: 600px) { .trim-row { grid-template-columns: 1fr auto; } .trim-go { display: none; } }

/* tables */
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.spec-table, .price-table, .history-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td, .price-table th, .price-table td, .history-table th, .history-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: start; white-space: nowrap; }
.spec-table thead th, .price-table thead th, .history-table thead th { background: var(--bg); font-size: 13px; color: var(--muted); }
.spec-table tbody th { font-weight: 700; color: #334155; background: #fbfcfe; }
.spec-table tr:last-child > *, .price-table tr:last-child > * { border-bottom: 0; }
.price-table td a:hover { color: var(--navy); }
.price-table .num { color: var(--navy); }

/* specs dl + features */
.spec-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.spec-group { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.spec-group h3 { font-size: 16px; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
.spec-group dl { margin: 0; }
.spec-group dl div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec-group dl div:last-child { border-bottom: 0; }
.spec-group dt { color: var(--muted); }
.spec-group dd { margin: 0; font-weight: 700; text-align: end; }
.spec-group dd.na { color: #a3afbf; font-weight: 500; }
.feature-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.feature-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fx { width: 18px; height: 18px; border-radius: 50%; display: inline-block; flex-shrink: 0; position: relative; }
.fx.std { background: var(--green); }
.fx.std::after { content: ""; position: absolute; inset: 4px 5px 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.fx.opt { background: var(--gold); }
.fx.opt::after { content: "+"; position: absolute; inset: 0; color: #3a2600; font-size: 14px; font-weight: 900; line-height: 18px; text-align: center; }
.fx.no { background: #e3e9f1; }
.features-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.feature-group { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.feature-group h3 { font-size: 16px; margin-bottom: 8px; }
.feature-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feature-group li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.feature-group li.no { color: #94a3b8; }

/* pros/cons, history, reviews */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pros-cons > div { border-radius: 16px; padding: 16px 18px; }
.pros { background: var(--green-soft); }
.cons { background: var(--red-soft); }
.pros h3, .cons h3 { display: flex; align-items: center; gap: 6px; font-size: 17px; margin-bottom: 8px; }
.pros h3 { color: var(--green); }
.cons h3 { color: var(--red-dark); }
.pros-cons ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
.history-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.history-grid > div:first-child, .price-chart { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.history-grid > div:first-child .price-chart { border: 0; padding: 0; }
.price-chart svg { width: 100%; height: 220px; display: block; }
.price-chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.history-table { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: auto; max-height: 300px; }
@media (max-width: 860px) { .history-grid { grid-template-columns: 1fr; } }
.review-strip { display: flex; gap: 16px; padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 12px; align-items: center; }
.review-strip img { width: 220px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.review-strip h3 { font-size: 18px; margin: 6px 0; }
.review-strip p { margin: 0; }
@media (max-width: 600px) { .review-strip { flex-direction: column; align-items: stretch; } .review-strip img { width: 100%; } }
.user-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.user-review { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.user-review header { display: flex; align-items: center; gap: 10px; }
.user-review header div { flex: 1; display: flex; flex-direction: column; }
.user-review h3 { font-size: 15px; margin: 10px 0 4px; }
.user-review p { margin: 0; color: #334155; font-size: 14px; }
.avatar-letter { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* prices page */
.price-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 6px; }
.price-filter select, .price-filter input { width: auto; flex: 1 1 160px; }
.price-brand { margin-top: 26px; }
.price-brand h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 10px; }
.price-brand h2 img { width: 36px; height: 36px; object-fit: contain; }

/* ================= used cars & dealers ================= */
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #178c45; }
.sold-banner { margin-top: 10px; background: var(--text); color: #fff; text-align: center; padding: 10px; border-radius: 12px; font-weight: 800; }
.fact-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact-grid li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border-radius: 12px; }
.fact-grid svg { color: var(--navy); }
.fact-grid span { display: flex; flex-direction: column; font-weight: 800; line-height: 1.3; }
.fact-grid small { color: var(--muted); font-weight: 600; font-size: 12px; }
.contact-box { display: flex; flex-direction: column; gap: 8px; }
.contact-box a.revealed { direction: ltr; letter-spacing: .5px; }
.seller-box { border-top: 1px dashed var(--border); padding-top: 12px; }
.seller-head { display: flex; align-items: center; gap: 12px; }
.seller-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.seller-head > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.seller-head strong { display: inline-flex; align-items: center; gap: 4px; }
a.seller-head:hover strong { color: var(--navy); }
.detail-cols { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.desc-box { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; color: #334155; }
.model-link { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 14px 18px; border-radius: 16px; background: var(--navy-soft); color: var(--navy); }
.model-link span { flex: 1; display: flex; flex-direction: column; }
.tips { background: var(--gold-soft); border: 1px solid #f6dfa8; border-radius: 16px; padding: 16px 18px; }
.tips h3 { display: flex; align-items: center; gap: 6px; font-size: 16px; color: #6b4a00; }
.tips ul { margin: 10px 0; padding-inline-start: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.report-link { color: var(--red); font-size: 13px; font-weight: 700; }
@media (max-width: 900px) { .detail-cols { grid-template-columns: 1fr; } }

.dealer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 16px; }
.dealer-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.dealer-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.dealer-cover { height: 90px; background: linear-gradient(135deg, var(--navy), #2a6cb0) center / cover; }
.dealer-body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 14px 16px; margin-top: -32px; }
.dealer-body img, .avatar-letter.lg { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; background: #fff; }
.avatar-letter.lg { font-size: 26px; background: var(--navy); }
.dealer-body h3 { font-size: 16px; display: inline-flex; align-items: center; gap: 4px; }
.dealer-stats { display: flex; gap: 14px; margin-top: 6px; font-size: 14px; }
.dealer-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy)) center / cover; color: #fff; padding: 20px 0 28px; }
.dealer-hero .crumbs, .dealer-hero .crumbs span:last-child { color: rgba(255, 255, 255, .85); }
.dealer-hero-row { display: flex; align-items: center; gap: 18px; margin-top: 50px; }
.dealer-hero-row img { width: 96px; height: 96px; border-radius: 20px; background: #fff; padding: 6px; }
.dealer-hero h1 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 900; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dealer-hero p { margin: 4px 0 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; opacity: .9; }
.dealer-cols { margin-top: 20px; }
.tabs-line { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.tabs-line a { padding: 10px 14px; font-weight: 800; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs-line a.active { color: var(--navy); border-color: var(--red); }
.dealer-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--header-h) + 12px); }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.side-card h3 { font-size: 16px; margin-bottom: 4px; }
.footer-social.dark a { background: var(--navy-soft); color: var(--navy); }
.hours { margin: 0; font-size: 14px; }
.hours div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--border); }
.hours div:last-child { border: 0; }
.hours dd { margin: 0; font-weight: 700; direction: ltr; }
.branch { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--border); }
.branch:last-child { border: 0; }
.reply { background: var(--bg); padding: 8px 12px; border-radius: 10px; margin-top: 8px !important; }
.sell-cta { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; }
.sell-cta span { display: flex; flex-direction: column; font-size: 13px; }
.sell-cta strong { font-size: 16px; }
@media (max-width: 900px) { .dealer-side { position: static; } .sell-cta { display: none; } }

/* ================= spare parts ================= */
.parts-search { margin-top: 14px; display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--navy); border-radius: 14px; padding: 6px 6px 6px 6px; padding-inline-start: 14px; max-width: 760px; }
.parts-search svg { color: var(--navy); }
.parts-search input { flex: 1; min-width: 0; border: 0; outline: 0; height: 40px; font-size: 16px; background: transparent; }
.vehicle-bar { background: linear-gradient(90deg, var(--navy), #1a5b9b); color: #fff; padding: 12px 0; }
.vehicle-pick, .vehicle-chosen { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vehicle-pick > strong { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; }
.vehicle-pick > span { opacity: .8; font-size: 14px; }
.vehicle-form { display: flex; gap: 8px; flex-wrap: wrap; margin-inline-start: auto; }
.vehicle-form select { height: 40px; border-radius: 10px; border: 0; padding: 0 10px; min-width: 120px; color: var(--text); }
.vehicle-chosen .vehicle-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .15); display: flex; align-items: center; justify-content: center; }
.vehicle-chosen > div { display: flex; flex-direction: column; line-height: 1.3; }
.vehicle-chosen small { opacity: .8; }
.vehicle-chosen strong { font-size: 17px; }
.vehicle-change { margin-inline-start: auto; }
.vehicle-change > summary { list-style: none; cursor: pointer; }
.vehicle-change > summary::-webkit-details-marker { display: none; }
.vehicle-change[open] .vehicle-form { margin-top: 10px; }
@media (max-width: 700px) { .vehicle-form { margin-inline-start: 0; width: 100%; } .vehicle-form select { flex: 1 1 30%; min-width: 0; } .vehicle-form .btn { flex: 1 1 100%; } .vehicle-change { width: 100%; } }
.tree-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tree-col { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.tree-col a:hover { color: var(--red); }
.tree-root { font-weight: 900; font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.sub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.sub-chips a, .sub-chips span { padding: 6px 14px; background: #fff; border: 1px solid var(--border); border-radius: 99px; font-weight: 700; font-size: 14px; }
.sub-chips a:hover { border-color: var(--navy); color: var(--navy); }
.fit-note { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 8px; background: var(--green-soft); color: var(--green); padding: 2px 10px; border-radius: 99px; font-weight: 700; font-size: 13px; }
.part-title { font-size: clamp(20px, 2.8vw, 26px); font-weight: 900; }
.fit-box { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-weight: 700; margin: 0; }
.fit-box.ok { background: var(--green-soft); color: var(--green); }
.fit-box.no { background: var(--gold-soft); color: #6b4a00; }
.service-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service-chips li { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--bg); color: #94a3b8; }
.service-chips li.on { background: var(--green-soft); color: var(--green); }
.compat-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.compat-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.compat-list li:last-child { border: 0; }
.compat-list li.mine { background: var(--green-soft); }
.shop-search { display: flex; gap: 6px; }
.shop-search input { height: 40px; border: 1px solid var(--border); border-radius: 10px; padding: 0 10px; }
@media (max-width: 540px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-tile { padding: 12px 6px; font-size: 12px; gap: 6px; }
  .cat-icon { width: 46px; height: 46px; }
  .cat-icon svg { width: 22px; height: 22px; }
}

/* ================= content ================= */
.sub-chips a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-top: 18px; }
.article-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.article-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.article-img { position: relative; aspect-ratio: 16 / 9; background: #e9eef5; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-img .score { position: absolute; bottom: 10px; inset-inline-start: 10px; margin: 0; }
.article-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.article-body h3 { font-size: 17px; font-weight: 800; }
.article-body p { margin: 0; font-size: 14px; }
.article-body .cat, .news-lead .cat { color: var(--red); font-size: 12px; font-weight: 800; }
.news-lead { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: center; margin-top: 20px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 14px; }
.news-lead img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.news-lead h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 900; margin: 8px 0; }
@media (max-width: 760px) { .news-lead { grid-template-columns: 1fr; } }
.article-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy)) center / cover; color: #fff; padding: 20px 0 36px; min-height: 340px; display: flex; }
.article-hero .container { display: flex; flex-direction: column; }
.article-hero .crumbs, .article-hero .crumbs span:last-child { color: rgba(255, 255, 255, .85); }
.article-hero-body { margin-top: auto; padding-top: 80px; max-width: 820px; }
.article-hero h1 { font-size: clamp(24px, 4vw, 38px); font-weight: 900; margin: 8px 0; }
.article-hero p { margin: 0 0 8px; opacity: .9; }
.score.big { font-size: 30px; }
.rating-bars { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.rating-bars div { display: grid; grid-template-columns: 150px 1fr 50px; align-items: center; gap: 12px; font-size: 14px; }
.rating-bars .bar { height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.rating-bars .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), #2a6cb0); border-radius: 99px; }
.prose-body { font-size: 17px; line-height: 1.95; color: #1e293b; }
.prose-body h2 { font-size: 22px; margin: 26px 0 10px; }
.prose-body h3 { font-size: 19px; margin: 20px 0 8px; }
.prose-body img { border-radius: 14px; margin: 14px 0; }
.prose-body a, .prose a { color: var(--navy); text-decoration: underline; }
.prose-body ul, .prose-body ol { padding-inline-start: 22px; }
.verdict { background: linear-gradient(135deg, var(--navy), #1c5d9c); color: #fff; border-radius: 18px; padding: 20px 22px; }
.verdict h2 { font-size: 20px; margin-bottom: 6px; }
.verdict p { margin: 0; font-size: 17px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 20px 0; border-radius: 16px; overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 20px; }
.avatar-ring.big { width: 120px; height: 120px; margin: 0; flex-shrink: 0; }
.hero-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 16px; }
.article-main h1 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 900; margin: 10px 0 4px; }
.article-cover { width: 100%; height: auto; border-radius: 18px; margin: 14px 0; display: block; } /* whole picture: the site logo sits in its top corner */
@media (max-width: 600px) { .rating-bars div { grid-template-columns: 110px 1fr 44px; } .dealer-hero-row { flex-direction: column; align-items: flex-start; } }

/* ================= compare / tools / AI ================= */
.compare-picker { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: stretch; margin-top: 20px; }
.slot { position: relative; background: #fff; border: 2px dashed var(--border); border-radius: 16px; padding: 14px; padding-top: 34px; display: flex; flex-direction: column; gap: 8px; }
.slot.filled { border-style: solid; border-color: var(--navy); }
.slot-num { position: absolute; top: 8px; inset-inline-start: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.slot select { height: 40px; border: 1px solid var(--border); border-radius: 10px; padding: 0 8px; background: #fbfcfe; }
.slot-remove { position: absolute; top: 8px; inset-inline-end: 10px; color: var(--red); }
.compare-picker > .btn { align-self: end; height: 100%; min-height: 48px; }
@media (max-width: 860px) { .compare-picker { grid-template-columns: 1fr; } }
.compare-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 10px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.compare-table th, .compare-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
.compare-table thead th { background: #fff; position: sticky; top: 0; }
.compare-table thead th img { width: 150px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.compare-table thead th a { display: block; font-weight: 900; color: var(--navy); }
.compare-table tbody th { width: 200px; color: #334155; background: #fbfcfe; font-weight: 700; }
.compare-table tr.sec th { background: var(--navy); color: #fff; font-size: 15px; }
.compare-table td.best { background: var(--green-soft); color: var(--green); font-weight: 800; }
.compare-table tr:not(.differs):not(.sec) td { color: #64748b; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.tool-form { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.tool-form .error { color: var(--red); font-size: 13px; margin-top: 4px; }
.tool-result { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; border-radius: 18px; padding: 22px; min-height: 260px; }
.big-number small { display: block; opacity: .8; }
.big-number strong { font-size: clamp(30px, 5vw, 44px); font-weight: 900; color: var(--gold); }
.result-list { margin: 16px 0; }
.result-list div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.result-list dd { margin: 0; font-weight: 800; }
.tool-result .muted { color: rgba(255, 255, 255, .7); }
.tool-empty { height: 100%; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; opacity: .8; }
@media (max-width: 760px) { .tool-grid { grid-template-columns: 1fr; } }
.chat { max-width: 820px; margin: 20px auto 0; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-log { display: flex; flex-direction: column; gap: 10px; min-height: 280px; max-height: 60vh; overflow-y: auto; padding: 4px; }
.msg { max-width: 88%; border-radius: 16px; padding: 10px 14px; }
.msg p { margin: 0; }
.msg.me { align-self: flex-start; background: var(--navy); color: #fff; border-start-start-radius: 4px; }
.msg.bot { align-self: flex-end; background: var(--bg); border-start-end-radius: 4px; display: flex; flex-direction: column; gap: 8px; }
.msg.error { background: var(--red-soft); color: var(--red-dark); }
.msg.typing span { display: inline-block; width: 8px; height: 8px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; } .msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.pick { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px; }
.pick:hover { border-color: var(--navy); }
.pick img { width: 96px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.pick span { display: flex; flex-direction: column; }
.pick b { color: var(--red); }
.pick .pick-type { color: var(--red); font-weight: 800; font-size: 11px; }
.pick small { color: var(--muted); }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; height: 50px; border: 2px solid var(--border); border-radius: 14px; padding: 0 14px; font-size: 16px; }
.chat-form input:focus { outline: 0; border-color: var(--navy); }
.chat .ai-chips button { padding: 6px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--border); font-size: 14px; font-weight: 600; cursor: pointer; }
.chat-reset { align-self: center; background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; }

/* ================= accounts ================= */
.flash { margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.flash-ok { background: var(--green-soft); color: var(--green); }
.flash-error { background: var(--red-soft); color: var(--red-dark); }
.error { color: var(--red); font-size: 13px; margin-top: 4px; }
.header-user { position: relative; }
.header-user .dot { position: absolute; top: 0; inset-inline-start: 20px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-style: normal; display: flex; align-items: center; justify-content: center; }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 420px); gap: 28px; justify-content: center; padding: 36px 0; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-head img { margin: 0 auto 10px; height: auto; }
.auth-head h1 { font-size: 24px; font-weight: 900; }
.auth-head p { margin: 4px 0 0; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form .f-field input, .auth-form .f-field select { height: 48px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.auth-row a, .auth-switch a, .auth-form .f-check a { color: var(--navy); font-weight: 700; }
.auth-switch { text-align: center; font-size: 14px; margin: 10px 0 0; }
.link-btn { background: none; border: 0; color: var(--navy); font-weight: 800; cursor: pointer; text-decoration: underline; }
.code-input { text-align: center; letter-spacing: 10px; font-size: 24px !important; font-weight: 900; }
.auth-side { align-self: center; background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; border-radius: 20px; padding: 28px; }
.auth-side h2 { font-size: 22px; margin-bottom: 14px; }
.auth-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-side li { display: flex; gap: 10px; align-items: flex-start; }
.auth-side svg { color: var(--gold); margin-top: 3px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; padding: 20px 0; } .auth-side { display: none; } .auth-card { padding: 20px; } }
.account-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding-top: 24px; align-items: start; }
.account-side { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; position: sticky; top: calc(var(--header-h) + 12px); }
.account-user { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.account-user img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.account-user div { display: flex; flex-direction: column; }
.verify-note { display: flex; gap: 6px; align-items: center; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--gold-soft); color: #6b4a00; font-size: 13px; font-weight: 700; }
.account-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 700; color: #334155; background: none; border: 0; width: 100%; text-align: start; cursor: pointer; font-size: 15px; }
.account-nav a:hover, .account-nav button:hover { background: var(--bg); }
.account-nav a.active { background: var(--navy-soft); color: var(--navy); }
.account-title { font-size: 26px; font-weight: 900; margin-bottom: 16px; }
@media (max-width: 860px) {
  .account-wrap { grid-template-columns: minmax(0, 1fr); }
  .account-wrap > * { min-width: 0; }
  .account-side { position: static; }
  .account-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav a, .account-nav button { width: auto; flex-shrink: 0; }
}
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-tile { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.stat-tile svg { color: var(--navy); }
.stat-tile strong { font-size: 26px; font-weight: 900; }
.stat-tile span { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .stat-tiles { grid-template-columns: 1fr 1fr; } }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.notif-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.notif-list li { border-bottom: 1px solid var(--border); }
.notif-list li:last-child { border: 0; }
.notif-list li > a, .notif-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; }
.notif-list li > a { padding: 0; }
.notif-list li.unread { background: var(--navy-soft); }
.card-form { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card-form textarea, .report-box textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: #fbfcfe; resize: vertical; }
.card-form .btn { align-self: flex-start; }
.pref-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pref-table th, .pref-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: start; }
.pref-table td { text-align: center; }
.pref-table input { width: 18px; height: 18px; }
.fav-list { display: flex; flex-direction: column; gap: 10px; }
.fav-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 8px 12px; }
.fav-link { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.fav-link img { width: 110px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.fav-link span { display: flex; flex-direction: column; }
.fav-link .price { color: var(--red); font-weight: 800; }
.fav-form { display: inline-flex; margin: 0; }
.fav-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--navy); cursor: pointer; font-weight: 700; }
.fav-btn.with-label { flex: 1 1 160px; }
.fav-btn.on { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.fav-btn.on svg { fill: currentColor; }
.car-actions .fav-form { flex: 1 1 160px; }
.car-actions .fav-form .fav-btn { width: 100%; height: 48px; }
.share-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.garage-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.garage-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.garage-item.default { border-color: var(--green); }
.garage-item > svg { color: var(--navy); }
.g-name { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
.g-name .pill { align-self: flex-start; }
.garage-item form { margin: 0; }
.danger-text { color: var(--red); background: none; border: 0; cursor: pointer; }
.review-form-box { margin: 0 0 14px; }
.review-form-box > summary { list-style: none; cursor: pointer; display: inline-flex; }
.review-form-box > summary::-webkit-details-marker { display: none; }
.review-form-box[open] .card-form { margin-top: 10px; }
.star-input { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input legend { font-size: 13px; font-weight: 700; margin-bottom: 4px; float: right; width: 100%; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 30px; color: #d4dbe5; cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--navy); }
.report-box > summary { list-style: none; cursor: pointer; }
.report-box form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.report-box select { height: 40px; border: 1px solid var(--border); border-radius: 10px; padding: 0 8px; }

/* ================= selling ================= */
.sell-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.sell-choice .tile { min-height: 180px; }
.sell-form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; max-width: 980px; }
.sell-step { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.sell-step h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.sell-step h2 span { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.sell-step select, .sell-step input:not([type=checkbox]):not([type=radio]):not([type=file]), .sell-step textarea { width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; background: #fbfcfe; }
.sell-step input[type=file] { width: 100%; padding: 10px; border: 2px dashed var(--border); border-radius: 12px; background: var(--bg); }
.sell-submit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: sticky; bottom: 0; background: rgba(244, 247, 251, .96); padding: 12px 0; }
.previews { display: flex; flex-wrap: wrap; gap: 8px; }
.previews img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.edit-images { display: flex; flex-wrap: wrap; gap: 10px; }
.edit-img { width: 140px; border: 2px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.edit-img.primary { border-color: var(--red); }
.edit-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.edit-img div { display: flex; justify-content: space-between; padding: 4px; }
.compat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; margin-bottom: 8px; border-style: solid; }
@media (max-width: 640px) { .compat-row { grid-template-columns: 1fr 1fr; } }
.check-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sub-chips a.add { background: var(--red); color: #fff; border-color: var(--red); }
.my-listings { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.my-listing { display: flex; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px; }
.ml-img { width: 150px; flex-shrink: 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg); }
.ml-img img { width: 100%; height: 100%; object-fit: cover; }
.ml-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ml-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ml-reject { color: var(--red); }
.ml-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ml-actions form { margin: 0; }
.status { flex-shrink: 0; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--bg); color: var(--muted); }
.status.ok { background: var(--green-soft); color: var(--green); }
.status.info { background: var(--navy-soft); color: var(--navy); }
.status.warn { background: var(--gold-soft); color: #6b4a00; }
.status.bad { background: var(--red-soft); color: var(--red-dark); }
@media (max-width: 560px) { .my-listing { gap: 10px; padding: 10px; } .ml-img { width: 96px; align-self: flex-start; } .ml-top { flex-direction: column; gap: 4px; } }
.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.package { cursor: pointer; }
.package input { position: absolute; opacity: 0; }
.package-body { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 2px solid var(--border); border-radius: 16px; background: #fff; height: 100%; }
.package input:checked + .package-body { border-color: var(--red); background: var(--red-soft); }
.package input:focus-visible + .package-body { outline: 2px solid var(--navy); }
.package-price { font-size: 26px; font-weight: 900; color: var(--navy); }
.checkout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .checkout { grid-template-columns: 1fr; } }
.summary { margin: 0; }
.summary div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.summary dd { margin: 0; font-weight: 800; }
.summary .total dd { color: var(--red); font-size: 18px; }
.methods { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.methods legend { font-weight: 800; margin-bottom: 6px; }
.method { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.method span { display: flex; flex-direction: column; }
.method:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); }

/* ================= messages ================= */
.inbox { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.inbox-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.inbox-row:last-child { border: 0; }
.inbox-row:hover { background: var(--bg); }
.inbox-row.unread { background: var(--navy-soft); }
.inbox-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.inbox-text .preview { color: #334155; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.badge-count { min-width: 22px; height: 22px; border-radius: 99px; background: var(--red); color: #fff; font-style: normal; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.thread { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.thread-listing { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--bg); }
.thread-listing img { width: 72px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.thread-listing span { display: flex; flex-direction: column; }
.thread-listing small { color: var(--red); font-weight: 800; }
.thread-log { height: 55vh; min-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 6px; background: linear-gradient(180deg, #fbfcfe, #f4f7fb); border-radius: 12px; }
.bubble-row { display: flex; justify-content: flex-end; }
.bubble-row.mine { justify-content: flex-start; }
.chat-bubble { max-width: 75%; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 8px 12px; }
.bubble-row.mine .chat-bubble { background: var(--navy); color: #fff; border-color: var(--navy); }
.chat-bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.chat-bubble img { max-width: 220px; border-radius: 10px; margin-bottom: 4px; }
.chat-bubble small { display: block; font-size: 11px; opacity: .7; text-align: end; }
.thread-form { display: flex; gap: 8px; align-items: center; }
.thread-form input[type=text] { flex: 1; height: 48px; border: 2px solid var(--border); border-radius: 14px; padding: 0 12px; }
.thread-form input[type=text]:focus { outline: 0; border-color: var(--navy); }
.attach { width: 48px; height: 48px; border-radius: 14px; background: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--navy); }
.thread-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.thread-actions form { margin: 0; }

/* ================= business panel ================= */
.btn-lg { height: 54px; padding: 0 28px; font-size: 17px; align-self: flex-start; }
.biz-logo { border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--border); }
.verified-badge { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-weight: 800; font-size: 12px; margin-inline-start: 6px; }
.state-box { background: var(--navy-soft); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.state-box.warn { background: var(--gold-soft); }
.state-box p { margin: 0; }
.invite-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--gold-soft); border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; }
.invite-box span { display: flex; flex-direction: column; }
.invite-box form { display: flex; gap: 6px; }
.biz-cards { display: grid; gap: 10px; }
.biz-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; }
.biz-card:hover { border-color: var(--navy); }
.biz-card img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; border: 1px solid var(--border); }
.biz-card > span { flex: 1; display: flex; flex-direction: column; }
.biz-apply { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.biz-apply svg { color: var(--red); }
.biz-apply h3 { margin: 0; }
.biz-apply p { margin: 0; }
.inline-form { flex-direction: row; flex-wrap: wrap; align-items: center; }
.inline-form select, .inline-form input[type=file] { height: 40px; }
.hours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.hours-grid > small { grid-column: 1 / -1; }
.hours-row { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 6px; align-items: center; font-weight: 700; font-size: 14px; }
.hours-row input { min-width: 0; width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 10px; padding: 0 8px; background: #fbfcfe; }
.member-list { background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.member-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.member-row:last-child { border: 0; }
.member-info { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.member-edit { width: 100%; max-width: 520px; }
.member-edit > summary { list-style: none; display: inline-flex; align-items: center; }
.member-edit > summary::-webkit-details-marker { display: none; }
.member-edit[open] .card-form { margin-top: 8px; }
.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 14px 0 8px; }
.package-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.package-card h3 { margin: 0; }
.package-card .price { font-size: 28px; font-weight: 900; color: var(--red); }
.package-card .price small { font-size: 14px; color: var(--muted); }
.package-card ul { margin: 0; padding-inline-start: 18px; color: #334155; }
.package-card .btn { margin-top: auto; }
.search-inline { display: flex; gap: 8px; margin: 10px 0 14px; }
.search-inline input { flex: 1; height: 40px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; background: #fff; }
.bulk-row { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.bulk-row label { display: flex; align-items: center; gap: 6px; }
.bulk-row input { width: 110px; height: 36px; border: 1px solid var(--border); border-radius: 8px; padding: 0 8px; }
.sticky-save { position: sticky; bottom: 12px; display: flex; justify-content: center; margin: 12px 0; }
.sticky-save .btn { box-shadow: 0 10px 24px rgba(181, 35, 46, .3); }
@media (max-width: 640px) {
  .hours-row { grid-template-columns: 64px 1fr 1fr; }
  .inline-form { flex-direction: column; align-items: stretch; }
}

/* ================= contact ================= */
.contact-wrap.solo { grid-template-columns: minmax(0, 760px); }
.contact-wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 20px; }
.contact-info a, .contact-info p { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }

/* ================= video page ================= */
.video-main .video-player { margin-top: 0; }
.video-main h1 { margin: 10px 0 4px; }
.video-author { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 14px 0; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.video-author img { border-radius: 50%; object-fit: cover; }
.video-author > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.video-desc { margin-top: 10px; }

/* ================= glossary ================= */
.glossary-hero { background: var(--bg); padding: 24px 0 32px; text-align: center; border-bottom: 1px solid var(--border); }
.glossary-hero .crumbs { justify-content: center; }
.glossary-hero h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 900; margin: 10px 0; line-height: 1.3; }
.glossary-hero h1 small { font-size: .55em; color: var(--muted); font-weight: 800; }
.glossary-hero p { max-width: 860px; margin: 0 auto; color: #334155; line-height: 1.9; }
.glossary-hero.small { text-align: start; }
.glossary-hero.small .crumbs { justify-content: flex-start; }
.glossary-hero.small p { margin: 0; }
.glossary-search { display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 20px auto 0; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0 14px; color: var(--muted); }
.glossary-search input { flex: 1; height: 54px; border: 0; background: transparent; font-size: 16px; outline: 0; min-width: 0; }
.glossary-search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }
.glossary-wrap { max-width: 1100px; padding-block: 24px 40px; display: flex; flex-direction: column; gap: 18px; }
.glossary-nav { margin: 0; }
.glossary-group { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; scroll-margin-top: 90px; }
.glossary-group h2 { font-size: 20px; padding-bottom: 12px; margin: 0 0 6px; border-bottom: 1px solid var(--border); }
.glossary-terms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.glossary-terms li a { display: block; padding: 12px 4px; color: var(--navy); font-weight: 800; font-size: 17px; border-bottom: 1px dashed transparent; }
.glossary-terms li a:hover { color: var(--red); }
.glossary-term { max-width: 900px; padding-block: 24px 40px; }
.prose-plain { background: transparent; border: 0; padding: 0; font-size: 18px; line-height: 2; }
.term-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 20px; }
.term-pager > a, .term-pager > span { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.term-pager > a:hover { border-color: var(--navy); background: var(--navy-soft); }
.term-pager > .next { justify-content: space-between; flex-direction: row; }
.term-pager > * > span { display: flex; flex-direction: column; gap: 2px; }
.term-pager > .next > span { text-align: start; }
.term-pager strong { color: var(--navy); font-size: 18px; }
.term-pager .disabled { opacity: .5; }
.flip { transform: scaleX(-1); }
@media (max-width: 860px) { .glossary-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .glossary-terms { grid-template-columns: 1fr; } .term-pager { grid-template-columns: 1fr; } .glossary-group { padding: 14px 16px; } }

/* ================= spare parts main sections ================= */
.main-cats, .main-cats.search-panel.active { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 18px; }
.main-cat { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.main-cat-img { width: 100%; height: 128px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #eef1f5;
  border-radius: 48% 48% 22px 22px / 28% 28% 22px 22px; box-shadow: 0 10px 22px -16px rgba(181, 35, 46, .35); transition: transform .2s, box-shadow .2s; color: var(--navy); }
.main-cat-img img { width: 84px; height: 84px; object-fit: contain; }
.main-cat-name { font-weight: 800; font-size: 16px; color: var(--navy-dark, #0a2f55); line-height: 1.4; }
.main-cat:hover .main-cat-img { transform: translateY(-3px); box-shadow: 0 16px 26px -16px rgba(12, 63, 113, .45); border-color: var(--navy-soft); }
.main-cat:hover .main-cat-name { color: var(--red); }
@media (max-width: 1024px) { .main-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .main-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; } .main-cat-img { height: 96px; } .main-cat-img img { width: 64px; height: 64px; } .main-cat-name { font-size: 13px; } }

/* ================= AI assistant answers ================= */
.ai-answer h4 { font-size: 16px; color: var(--navy); margin: 12px 0 4px; }
.ai-answer h4:first-child { margin-top: 0; }
.ai-answer ul { margin: 4px 0 8px; padding-inline-start: 20px; }
.ai-answer li { margin: 3px 0; }
.ai-answer p { margin: 4px 0; }
.ai-more-title { font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
.ai-feature { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.ai-feature-main img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.ai-feature-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; }
.ai-feature-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.ai-feature-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ai-feature-body strong { font-size: 17px; }
.ai-feature-scores { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-score { background: var(--bg); border-radius: 99px; padding: 4px 12px; font-size: 13px; }
.ai-score b { color: var(--red); font-size: 15px; }
.ai-stars { color: #f4b32e; letter-spacing: 1px; }
.ai-bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.ai-bars div { display: grid; grid-template-columns: 90px 1fr 30px; align-items: center; gap: 8px; font-size: 13px; }
.ai-bars i { height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; display: block; }
.ai-bars em { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--red)); border-radius: 99px; }
.ai-feature-links { display: flex; gap: 8px; flex-wrap: wrap; }
.msg.bot:has(.ai-feature) { width: 88%; }

.brand-strip-all .brand-letter { background: var(--red-soft); color: var(--red); }
.all-brands .brand-tile small { font-size: 12px; }
.empty-box > img { display: block; margin: 0 auto 6px; }

/* home sections shown on one kind of device only (admin «الصفحة الرئيسية») */
@media (min-width: 769px) { .hs-only-mobile { display: none !important; } }
@media (max-width: 768px) { .hs-only-desktop { display: none !important; } }

/* «الصنايعية» */
.craft-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.craft-chips a { flex-shrink: 0; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--border); background: #fff; font-weight: 700; font-size: 14px; color: inherit; }
.craft-chips a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.craft-join { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; margin-top: 24px; }
.craft-services { display: grid; gap: 8px; }
.craft-services > div { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.craft-services small { flex-basis: 100%; }
.craft-price { margin-inline-start: auto; color: var(--navy); font-weight: 800; }
.craft-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.craft-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; }
.craft-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.craft-videos figure { margin: 0; }
.craft-video { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.craft-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.craft-map { height: 320px; border-radius: 14px; border: 1px solid var(--border); z-index: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 10px; }
.check-scroll { max-height: 200px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
.hours-edit { display: grid; gap: 6px; margin-bottom: 10px; }
.hours-edit > div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hours-edit .f-check { min-width: 90px; margin: 0; }
.hours-edit input[type=time] { width: auto; }
.service-row { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 6px; margin-bottom: 6px; }
@media (max-width: 640px) { .service-row { grid-template-columns: 1fr; padding-bottom: 8px; border-bottom: 1px dashed var(--border); } }
.media-item { display: flex; flex-direction: column; gap: 4px; }
.video-chip { aspect-ratio: 4/3; border-radius: 10px; background: #0c3f71; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; text-align: center; font-weight: 800; }
.video-chip small { font-weight: 400; font-size: 11px; opacity: .85; word-break: break-all; }

/* «الصنايعية»: craft tiles with stock icons */
.craft-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin: 4px 0 16px; }
.craft-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; background: #fff; border: 1.5px solid var(--border); border-radius: 16px; color: inherit; text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
.craft-tile:hover { border-color: #c9d6e4; box-shadow: 0 6px 18px rgba(12, 63, 113, .08); transform: translateY(-2px); }
.craft-tile.active { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(12, 63, 113, .12); }
.craft-tile-icon { width: 64px; height: 64px; border-radius: 18px; background: #f1f5fa; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.craft-tile.active .craft-tile-icon { background: #e3ecf6; }
.craft-tile-icon img { width: 44px; height: 44px; }
.craft-tile-all { color: var(--navy); }
.craft-tile strong { font-size: 14px; line-height: 1.3; }
.craft-tile small { font-size: 12px; color: var(--muted, #6b7785); }
@media (max-width: 640px) {
    .craft-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 6px; }
    .craft-tiles::-webkit-scrollbar { display: none; }
    .craft-tile { flex: 0 0 104px; scroll-snap-align: start; padding: 12px 6px 10px; }
    .craft-tile-icon { width: 54px; height: 54px; border-radius: 15px; }
    .craft-tile-icon img { width: 38px; height: 38px; }
}
.craft-avatar { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; background: #f1f5fa; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.craft-avatar img { width: 40px; height: 40px; border: 0 !important; border-radius: 0 !important; background: none !important; }
.craft-avatar.xl { width: 96px; height: 96px; flex-shrink: 0; }
.craft-avatar.xl img { width: 60px; height: 60px; }
.craft-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 99px; background: #fff6e0; color: #7a5300; font-size: 13px; font-weight: 700; margin: 2px 0; }
.craft-pill img { width: 18px; height: 18px; border: 0 !important; border-radius: 0 !important; background: none !important; }
.craft-hero-crafts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.craft-hero-crafts > span { opacity: .9; }
@media (max-width: 640px) {
    .craft-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .craft-grid .dealer-cover { height: 56px; }
    .craft-grid .dealer-body { padding: 0 8px 12px; margin-top: -28px; }
    .craft-grid .dealer-body h3 { font-size: 14px; }
    .craft-grid .craft-pill { font-size: 12px; }
    .craft-grid .dealer-body .small { font-size: 11px; }
}

/* «ميكانيكي AI» */
.mx-head { background: linear-gradient(135deg, #1f2937, #0c3f71); color: #fff; padding: 18px 0 22px; }
.mx-head .crumbs, .mx-head .crumbs a { color: rgba(255, 255, 255, .75); }
.mx-head-row { display: flex; gap: 14px; align-items: center; }
.mx-head-icon { width: 76px; height: 76px; border-radius: 22px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mx-head h1 { margin: 0; font-size: clamp(24px, 4vw, 34px); font-weight: 900; color: #fff; }
.mx-head p { margin: 4px 0 0; color: rgba(255, 255, 255, .85); }
.mx-wrap { padding-top: 18px; padding-bottom: 30px; }
.mx-intro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mx-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; width: 100%; }
.mx-features > div { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mx-features svg { color: var(--red); }
.mx-features span { color: var(--muted); font-size: 14px; }
.mx-layout { display: grid; grid-template-columns: 270px 1fr; gap: 16px; align-items: start; }
.mx-side { display: flex; flex-direction: column; gap: 12px; }
.mx-newcar { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.mx-newcar select, .mx-newcar input { width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 10px; padding: 0 10px; background: #fff; font: inherit; }
.mx-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mx-chats { display: flex; flex-direction: column; gap: 6px; }
.mx-chats a { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; color: inherit; display: flex; flex-direction: column; }
.mx-chats a.active { border-color: var(--navy); }
.mx-chats span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-main { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mx-car { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; border-bottom: 1px solid var(--border); }
.mx-car form { margin-inline-start: auto; }
.mx-link { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.mx-log { display: flex; flex-direction: column; gap: 12px; min-height: 320px; max-height: 62vh; overflow-y: auto; padding: 6px; background: #f6f8fb; border-radius: 14px; }
.mx-msg { display: flex; gap: 8px; max-width: 88%; }
.mx-user { align-self: flex-start; flex-direction: column; align-items: flex-start; background: var(--navy); color: #fff; border-radius: 16px 16px 16px 4px; padding: 8px 12px; }
.mx-user p { margin: 0; white-space: pre-wrap; }
.mx-user .muted { color: rgba(255, 255, 255, .75); }
.mx-photo { max-width: 220px; border-radius: 10px; display: block; }
.mx-sound { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.mx-sound audio, .mx-voice { height: 34px; max-width: 100%; }
.mx-heard { font-size: 13px; color: rgba(255, 255, 255, .85); }
.mx-heard summary { cursor: pointer; }
.mx-usta { align-self: flex-end; }
.mx-avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--border); padding: 4px; flex-shrink: 0; }
.mx-bubble { background: #fff; border: 1px solid var(--border); border-radius: 16px 16px 4px 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mx-bubble p { margin: 0; line-height: 1.8; }
.mx-urg { align-self: flex-start; font-size: 13px; font-weight: 800; border-radius: 99px; padding: 3px 10px; }
.mx-urg-ok { background: #e7f6ec; color: #17733a; }
.mx-urg-soon { background: #fff4dc; color: #8a5a00; }
.mx-urg-stop { background: #fde7ea; color: #b4142f; }
.mx-causes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.mx-cause { border-radius: 99px; padding: 2px 10px; background: #f1f5fa; }
.mx-l-high { background: #fde7ea; }
.mx-l-medium { background: #fff4dc; }
.mx-craft { align-self: flex-start; }
.mx-dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin: 0 1px; animation: mxdot 1s infinite; }
.mx-dots i:nth-child(2) { animation-delay: .15s; } .mx-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mxdot { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.mx-composer { display: flex; flex-direction: column; gap: 6px; }
.mx-bar { display: flex; gap: 6px; align-items: center; }
.mx-bar input[type=text] { flex: 1; min-width: 0; height: 48px; border: 2px solid var(--border); border-radius: 14px; padding: 0 12px; font-size: 16px; }
.mx-btn { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; border: 1px solid var(--border); background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mx-mic { background: var(--red); border-color: var(--red); color: #fff; width: 56px; height: 56px; border-radius: 50%; }
.mx-send { background: var(--navy); border-color: var(--navy); color: #fff; }
.mx-attach { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.mx-attach span { background: #eef3f9; border-radius: 99px; padding: 3px 10px; }
.mx-attach button { background: none; border: 0; color: var(--red); cursor: pointer; }
.mx-recording { display: flex; align-items: center; gap: 8px; min-height: 56px; background: #fde7ea; border-radius: 16px; padding: 4px 6px 4px 6px; font-weight: 700; color: var(--red); }
.mx-recording[hidden] { display: none; }
.mx-recording b { font-variant-numeric: tabular-nums; }
.mx-rec-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-rec-cancel { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; background: #fff; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mx-rec-stop { flex-shrink: 0; height: 48px; padding: 0 18px; border-radius: 99px; border: 0; background: var(--red); color: #fff; font: inherit; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; box-shadow: 0 6px 16px rgba(181, 35, 46, .4); animation: mxpulse 1.6s infinite; }
@keyframes mxpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(181, 35, 46, .45); } 50% { box-shadow: 0 0 0 8px rgba(181, 35, 46, 0); } }
.mx-composer.is-rec .mx-bar, .mx-composer.is-rec .mx-hint, .mx-composer.is-rec .mx-attach { display: none; }
.mx-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: mxdot 1s infinite; }
.mx-hint { margin: 0; }
.mx-empty { text-align: center; padding: 40px 10px; }
@media (max-width: 860px) {
    .mx-layout { grid-template-columns: 1fr; }
    .mx-main { order: -1; }
    .mx-log { max-height: 58vh; }
    .mx-msg { max-width: 94%; }
    /* phones: the input / recording bar stays at the bottom of the screen */
    .mx-composer { position: sticky; bottom: 0; z-index: 5; background: #fff; margin: 0 -12px -12px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); border-radius: 0 0 18px 18px; }
}

/* «ميكانيكي AI» in the header: in the bar on wide screens and in the mobile drawer; under «المزيد» in between */
.nav-more-menu a.more-narrow { display: none; }
@media (min-width: 1241px) and (max-width: 1659px) {
  .main-nav a.nav-wide { display: none; }
  .nav-more-menu a.more-narrow { display: flex; }
}
.mx-said { font-weight: 700; }
.mx-details { display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed var(--border); padding-top: 8px; font-size: 15px; }
.mx-details p { margin: 0; }
.mx-point { position: relative; padding-inline-start: 16px; line-height: 1.8; }
.mx-point::before { content: ''; position: absolute; inset-inline-start: 2px; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* «احسب القسط» on the car page */
.inst { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.inst-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inst-pct { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip-btn { border: 1px solid var(--border); background: var(--bg); border-radius: 20px; padding: 3px 10px; font: inherit; font-size: .85rem; cursor: pointer; }
.chip-btn:hover { border-color: var(--navy); color: var(--navy); }
.inst-result { background: var(--navy-soft); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.inst-result > strong { font-size: 1.9rem; color: var(--red); font-weight: 800; line-height: 1.3; }
.inst-result dl { margin: 6px 0; display: grid; gap: 6px; }
.inst-result dl div { display: flex; justify-content: space-between; gap: 10px; }
.inst-result dd { margin: 0; font-weight: 700; }
.inst-result .btn { align-self: flex-start; }
@media (max-width: 760px) { .inst { grid-template-columns: 1fr; } .inst-form { grid-template-columns: 1fr; } }

/* «السلايدر» (home) */
/* «السلايدر»: full width, navy gradient; text slides in first, then the framed picture */
.hs { position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(120% 140% at 100% 0%, #124c86 0%, rgba(18, 76, 134, 0) 55%), linear-gradient(135deg, #041629 0%, var(--navy-deep) 40%, var(--navy-dark) 75%, #0a3866 100%); }
.hs::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), var(--red), transparent); opacity: .85; }
.hs-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 90% at 30% 50%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 90% at 30% 50%, #000 30%, transparent 75%); }
.hs-bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.hs-bg i:nth-child(1) { width: 420px; height: 420px; inset-inline-end: 8%; top: -120px; background: rgba(244, 179, 46, .28); animation: hsFloat 14s ease-in-out infinite alternate; }
.hs-bg i:nth-child(2) { width: 380px; height: 380px; inset-inline-end: 30%; bottom: -200px; background: rgba(181, 35, 46, .35); animation: hsFloat 18s ease-in-out infinite alternate-reverse; }
.hs-bg i:nth-child(3) { width: 300px; height: 300px; inset-inline-start: -80px; top: 20%; background: rgba(30, 120, 210, .35); animation: hsFloat 16s ease-in-out infinite alternate; }
@keyframes hsFloat { to { transform: translate(40px, 30px) scale(1.12); } }
.hs-stage { position: relative; display: grid; padding-block: clamp(28px, 4vw, 52px) 64px; }
.hs-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: clamp(24px, 5vw, 72px); color: #fff; visibility: hidden; opacity: 0; transition: opacity .5s, visibility 0s .5s; }
.hs-slide.on { visibility: visible; opacity: 1; transition: opacity .35s; z-index: 1; }
.hs-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.hs-text > * { opacity: 0; transform: translateY(26px); }
.hs-slide.on .hs-text > * { animation: hsUp .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.hs-slide.on .hs-text > :nth-child(2) { animation-delay: .1s; }
.hs-slide.on .hs-text > :nth-child(3) { animation-delay: .2s; }
.hs-slide.on .hs-text > :nth-child(4) { animation-delay: .3s; }
@keyframes hsUp { to { opacity: 1; transform: none; } }
.hs-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 99px; background: rgba(244, 179, 46, .14); border: 1px solid rgba(244, 179, 46, .45); color: var(--gold); font-weight: 800; font-size: 13.5px; }
.hs-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(244, 179, 46, .2); }
.hs-title { font-size: clamp(26px, 3.4vw, 46px); font-weight: 900; line-height: 1.3; letter-spacing: -.2px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hs-sub { font-size: clamp(15px, 1.35vw, 18px); color: rgba(255, 255, 255, .78); line-height: 1.75; max-width: 560px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hs-cta { margin-top: 8px; display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff; padding: 12px 26px; border-radius: 14px; font-weight: 800; font-size: 16px; box-shadow: 0 10px 26px rgba(181, 35, 46, .45); transition: background .2s, transform .2s, gap .2s; }
.hs-slide:hover .hs-cta { background: var(--red-dark); gap: 14px; }
.hs-media { position: relative; min-width: 0; opacity: 0; transform: translateX(-60px) scale(.94); }
.hs-slide.on .hs-media { animation: hsIn .9s cubic-bezier(.2, .8, .2, 1) .45s forwards; }
@keyframes hsIn { to { opacity: 1; transform: none; } }
.hs-media::before { content: ""; position: absolute; inset: 0; transform: translate(-18px, 18px); border-radius: 22px; border: 2px solid rgba(244, 179, 46, .55); }
.hs-media::after { content: ""; position: absolute; width: 110px; height: 110px; inset-inline-start: -26px; top: -26px; border-radius: 22px; background: radial-gradient(circle, rgba(255, 255, 255, .22) 2px, transparent 2.5px) 0 0 / 14px 14px; }
.hs-frame { position: relative; z-index: 1; display: block; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #0a2a4c; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 6px rgba(255, 255, 255, .05); }
.hs-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hs-slide.on .hs-frame img { transform: scale(1); }
/* the admin's size / position of the picture (per slide, desktop here, phones below) */
.hs-frame img { translate: var(--x, 0) var(--y, 0); scale: var(--s, 1); }
.hs-nav { position: absolute; inset-inline: 0; bottom: 18px; padding-inline: inherit; z-index: 2; display: flex; align-items: center; justify-content: flex-start; gap: 14px; }
.hs-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; backdrop-filter: blur(6px); }
.hs-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.hs-dots { display: flex; gap: 8px; }
.hs-dots button { position: relative; width: 10px; height: 6px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .3); cursor: pointer; overflow: hidden; transition: width .3s; }
.hs-dots button.on { width: 42px; }
.hs-dots button i { position: absolute; inset: 0; width: 0; background: var(--gold); border-radius: inherit; }
.hs-dots button.on i { animation: hsBar 6.5s linear forwards; }
.hs.paused .hs-dots button.on i { animation-play-state: paused; }
@keyframes hsBar { to { width: 100%; } }
/* «من غير خلفية»: a cut-out picture floats on the slide with a glow behind and a shadow under it */
.hs-cutout .hs-media::before { inset: 8% 6% 4%; transform: none; border: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(244, 179, 46, .22), rgba(30, 120, 210, .12) 60%, transparent); }
.hs-cutout .hs-media::after { inset-inline-start: 12%; top: auto; bottom: 2%; width: 76%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.hs-cutout .hs-frame { background: none; border: 0; box-shadow: none; overflow: visible; border-radius: 0; }
.hs-cutout .hs-frame img { object-fit: contain; filter: drop-shadow(0 26px 24px rgba(0, 0, 0, .45)); transform: translateX(-40px) scale(1.02); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1) .45s; }
.hs-cutout.on .hs-frame img { transform: none; }
@media (max-width: 860px) {
  /* phones: text and picture side by side, short */
  .hs-stage { padding-block: 18px 34px; }
  .hs-slide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; align-items: center; min-height: 190px; }
  .hs-text { gap: 6px; }
  .hs-badge { font-size: 11px; padding: 2px 9px; gap: 6px; }
  .hs-badge::before { width: 5px; height: 5px; box-shadow: 0 0 0 3px rgba(244, 179, 46, .2); }
  .hs-title { font-size: clamp(17px, 4.9vw, 24px); -webkit-line-clamp: 2; }
  .hs-sub { font-size: 12.5px; line-height: 1.6; -webkit-line-clamp: 1; }
  .hs-cta { margin-top: 4px; padding: 7px 14px; font-size: 13px; border-radius: 11px; gap: 6px; box-shadow: 0 6px 16px rgba(181, 35, 46, .4); }
  .hs-cta svg { width: 15px; height: 15px; }
  .hs-media { transform: translateX(-40px) scale(.96); }
  .hs-media::before { transform: translate(-7px, 7px); border-radius: 14px; }
  .hs-media::after { width: 46px; height: 46px; inset-inline-start: -10px; top: -10px; background-size: 10px 10px; }
  .hs-frame { border-radius: 14px; box-shadow: 0 16px 30px rgba(0, 0, 0, .4); }
  /* a cut-out car runs off the left edge, bigger */
  .hs-cutout .hs-frame { aspect-ratio: 4 / 3; }
  .hs-cutout .hs-frame img { filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .45)); }
  .hs-frame img { translate: var(--mx, 0) var(--my, 0); scale: var(--ms, 1); }
  .hs-arrow { display: none; }
  .hs-nav { bottom: 12px; justify-content: flex-start; }
  .hs-dots button { height: 5px; width: 7px; }
  .hs-dots button.on { width: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-text > *, .hs-media { opacity: 1; transform: none; }
  .hs-slide.on .hs-text > *, .hs-slide.on .hs-media, .hs-bg i, .hs-dots button.on i { animation: none; }
  .hs-dots button.on i { width: 100%; }
}
/* «العربيات على Claude» page */
.cx-url { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--navy-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.cx-url code { font-size: 16px; font-weight: 700; color: var(--navy); word-break: break-all; }
.cx-tools { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cx-tools th, .cx-tools td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: start; }
.cx-tools td[dir=ltr] { text-align: left; white-space: nowrap; }
.cx-tools code { color: var(--muted); font-size: 12.5px; }
.cx-en { text-align: left; }
/* 👍 / 👎 under the usta's replies */
.mx-rate { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.mx-rate button { border: 1px solid var(--border); background: #fff; border-radius: 99px; padding: 2px 10px; font-size: 15px; cursor: pointer; line-height: 1.6; filter: grayscale(1); opacity: .75; }
.mx-rate button.on { filter: none; opacity: 1; border-color: var(--navy); background: var(--navy-soft); }
