:root {
  --orange: #F46C0F;
  --orange-dark: #C9560A;
  --gold: #F8B13A;
  --green: #1f9d55;
  --green-dark: #178045;
  --ink: #111827;
  --muted: #6b7280;
  --border: #e7e5e4;
  --bg: #F7F5F2;
  --card-bg: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

header {
  background: var(--ink);
  color: #fff;
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

header .header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 280px;
  min-width: 0;
}

.brand-row .logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  flex: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

header h1 {
  font-size: 20px;
  margin: 0;
  letter-spacing: 0.01em;
}

header .tagline {
  font-size: 12px;
  color: #FFE7D3;
  margin-top: 2px;
}

.install-btn {
  margin-left: auto;
  flex: none;
  background: #fff;
  color: var(--orange-dark);
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.install-btn[hidden] { display: none; }

.search-box {
  flex: 1 1 260px;
  max-width: 360px;
}

.search-box input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  outline: none;
}

.search-box input:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45); }

nav.tabs {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  padding: 12px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}

nav.tabs::-webkit-scrollbar { display: none; }

nav.tabs button {
  flex: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  white-space: nowrap;
}

nav.tabs button.active {
  background: #fff;
  border-color: #fff;
  color: var(--orange-dark);
  font-weight: 700;
}

.ios-hint {
  max-width: 1100px;
  margin: 12px auto 0;
  padding: 10px 40px 10px 14px;
  background: #FFF4EA;
  border: 1px solid #F9CFAE;
  border-radius: 10px;
  font-size: 13px;
  color: #7A3A08;
  position: relative;
}

.ios-hint[hidden] { display: none; }

.ios-hint button {
  position: absolute;
  right: 8px;
  top: 6px;
  border: none;
  background: none;
  font-size: 20px;
  color: #7A3A08;
  cursor: pointer;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.result-count {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 4px 14px;
}

.grade-filters {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 4px 14px;
}

.grade-filters button {
  flex: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #f0d9b5;
  background: #fdf3e7;
  color: #92600c;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.grade-filters button.active {
  background: #92600c;
  border-color: #92600c;
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  main { padding: 12px 10px; }
  .card .model { font-size: 14px; }
  .card .price { font-size: 16px; }
  .card .whatsapp-btn { font-size: 13px; padding: 9px 6px; }
  header h1 { font-size: 18px; }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card .thumb {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}

.card .thumb img,
.card .thumb svg {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.card .body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card .brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.card .model {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.6em;
}

.card .badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef6ee;
  color: var(--green-dark);
  font-weight: 600;
}

.badge.battery { background: #eef2fb; color: #2a4d8f; }
.badge.grade { background: #fdf3e7; color: #92600c; cursor: help; }

.card .price {
  font-size: 18px;
  font-weight: 800;
  margin-top: 2px;
  color: var(--orange-dark);
}

.card .price.contact {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.card .whatsapp-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.card .whatsapp-btn:hover { background: var(--green-dark); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  grid-column: 1 / -1;
}

footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 24px 16px calc(40px + env(safe-area-inset-bottom));
}

.shop-info {
  font-size: 13px;
  margin-bottom: 6px;
}

.shop-info a, footer a {
  font-weight: 600;
  color: var(--orange-dark);
}

.data-status {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

/* ---- stock photos ---- */
.card .thumb { position: relative; overflow: hidden; }
.card .thumb.has-gallery { cursor: zoom-in; background: #fff; }
.card .thumb.has-gallery img { width: 100%; height: 100%; object-fit: cover; }
.photo-count {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0, 0, 0, 0.6); color: #fff;
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
}
.gallery {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
}
.gallery img { max-width: 94vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.gallery button {
  position: absolute; border: none; background: rgba(255, 255, 255, 0.15); color: #fff;
  font-size: 34px; width: 48px; height: 48px; border-radius: 999px; cursor: pointer; line-height: 1;
}
.gallery button[hidden] { display: none; }
.gallery .g-close { top: calc(14px + env(safe-area-inset-top)); right: 14px; font-size: 28px; }
.gallery .g-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.gallery .g-next { right: 10px; top: 50%; transform: translateY(-50%); }
.gallery .g-cap {
  position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); left: 0; right: 0;
  text-align: center; color: #fff; font-size: 14px;
}

/* ---- v3: promise bar, just landed, filters, badges ---- */
.promise { background: #FFF4EA; color: #7A3A08; font-size: 13px; text-align: center; padding: 9px 14px; border-bottom: 1px solid #F9CFAE; }
.just-landed { margin: 4px 0 18px; }
.just-landed h2 { font-size: 18px; margin: 0 4px 10px; }
.just-landed h2 span { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.jl-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; }
.jl-card { flex: none; width: 150px; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.08); border-radius: 12px; overflow: hidden; cursor: pointer; scroll-snap-align: start; }
.jl-card.is-sold { cursor: default; }
.jl-thumb { position: relative; aspect-ratio: 1 / 1; background: #fafafa; display: flex; align-items: center; justify-content: center; }
.jl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jl-thumb svg { width: 65%; height: 65%; }
.jl-card.is-sold .jl-thumb img, .jl-card.is-sold .jl-thumb svg { filter: grayscale(0.6); opacity: 0.7; }
.new-ribbon, .sold-ribbon { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; color: #fff; }
.new-ribbon { background: var(--orange); }
.sold-ribbon { background: #16a34a; }
.jl-body { padding: 8px 10px 10px; }
.jl-model { font-size: 13px; font-weight: 600; line-height: 1.25; }
.jl-bh { font-size: 11px; color: #2a4d8f; margin-top: 3px; }
.jl-price { font-size: 15px; font-weight: 800; color: var(--orange-dark); margin-top: 4px; }
.jl-sold { font-size: 12px; font-weight: 700; color: #16a34a; margin-top: 4px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 4px 12px; position: sticky; top: 62px; z-index: 9; background: var(--bg); padding: 8px 4px; }
.filters select { flex: 1 1 140px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font-size: 14px; }
.badge.new { background: #FFEDD5; color: #C2410C; }
.badge.great { background: #DCFCE7; color: #166534; }
.badge.cash { background: #F5F3FF; color: #5B21B6; }
.card.flash { box-shadow: 0 0 0 3px var(--orange); transition: box-shadow 0.3s; }
.empty-state a { color: var(--orange-dark); font-weight: 700; }

.card .specs { font-size: 13px; color: #4b5563; margin: 6px 0 2px; line-height: 1.4; }
.card .specs .note { color: #166534; font-weight: 600; }

/* v4: loader, brand new, search icon, emi, share, visit */
.loader { grid-column: 1 / -1; text-align: center; padding: 50px 16px; }
.loader img { width: 64px; height: 64px; border-radius: 14px; }
.loader .spin { width: 34px; height: 34px; margin: 16px auto; border: 4px solid #FED7AA; border-top-color: #F46C0F; border-radius: 50%; animation: cmspin .8s linear infinite; }
@keyframes cmspin { to { transform: rotate(360deg); } }
.loader-title { font-weight: 700; font-size: 17px; color: #C2410C; }
.loader-line { margin-top: 10px; font-size: 15px; color: #444; min-height: 44px; transition: opacity .25s; }
.search-box { position: relative; }
.search-box input { padding-right: 48px !important; }
.card .emi { font-size: 13px; color: #5B21B6; margin: -2px 0 8px; }
.share-btn { width: 100%; margin-top: 6px; padding: 9px; border: 1px solid #ddd; background: #fff; border-radius: 10px; font-weight: 600; font-size: 14px; color: #333; cursor: pointer; }
.visit { max-width: 1100px; margin: 24px auto 0; padding: 18px 16px; text-align: center; background: #FFF7ED; border-top: 2px solid #FED7AA; }
.visit h2 { margin: 0 0 6px; font-size: 20px; color: #C2410C; }
.visit p { margin: 0 0 12px; color: #444; font-size: 14px; }
.visit-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.visit-btns a { flex: 1 1 100px; max-width: 180px; padding: 12px; border-radius: 12px; font-weight: 700; text-decoration: none; color: #fff; }
.v-call { background: #2563EB; } .v-wa { background: #16A34A; } .v-map { background: #F46C0F; }

/* v5: highlighted tabs, nicer search, bigger photos, compact details, warranty ribbon */
.search-box input { border-radius: 999px !important; padding: 11px 50px 11px 18px !important; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.search-go { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: none; border-radius: 50%;
  background: linear-gradient(135deg, #1f2937, #111827); color: #FDBA74; display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .15s; }
.search-go:active { transform: translateY(-50%) scale(.92); }
nav.tabs { background: #fff; border-radius: 16px; padding: 8px !important; margin-top: 12px !important; gap: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
nav.tabs button { background: #FFF7ED !important; color: #C2410C !important; border: 1.5px solid #FDBA74 !important; font-weight: 700; font-size: 14px; padding: 9px 16px; }
nav.tabs button.active { background: linear-gradient(135deg, #F46C0F, #C2410C) !important; color: #fff !important; border-color: #C2410C !important; box-shadow: 0 2px 8px rgba(194,65,12,.4); }
.card .thumb img, .card .thumb svg { width: 100%; height: 100%; object-fit: cover; }
.card .thumb svg { width: 70%; height: 70%; object-fit: contain; }
.card .thumb { aspect-ratio: 4 / 5; }
.card .body { padding: 8px 10px 10px; gap: 3px; }
.card .brand { font-size: 10px; }
.card .model { font-size: 14px; min-height: 0; line-height: 1.25; }
.card .badges { gap: 4px; }
.badge { font-size: 10.5px; padding: 2px 7px; }
.card .price { font-size: 18px; margin-top: 2px; }
.card .emi { margin: 0 0 4px; font-size: 12px; }
.card .whatsapp-btn { padding: 9px 6px; font-size: 13px; margin-top: 6px; }
.share-btn { padding: 6px; font-size: 12.5px; margin-top: 4px; }
.card .specs { font-size: 12.5px; margin: 2px 0; line-height: 1.45; }
.warranty-ribbon { position: absolute; left: 0; bottom: 10px; background: #16A34A; color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 12px 5px 8px; border-radius: 0 999px 999px 0; box-shadow: 0 2px 6px rgba(0,0,0,.25); max-width: 92%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jl-row { scroll-snap-type: none !important; }

@font-face { font-family: "Headplane"; src: url("headplane.ttf") format("truetype"); font-display: swap; }
.logo-name { font-family: "Headplane", sans-serif; font-weight: 400; line-height: 1; margin: 0; display: flex; flex-direction: column; }
.logo-name .ln1 { font-size: 26px; color: #fff; letter-spacing: 1px; }
.logo-name .ln2 { font-size: 15px; color: #111; letter-spacing: 7px; margin-top: 3px; }

.sold-banner { margin: 12px 0 16px; padding: 14px; border-radius: 16px; background: #F0FDF4; border: 2px solid #86EFAC; }
.sold-banner h2 { margin: 0 0 4px; font-size: 19px; color: #166534; }
.sold-banner p { margin: 0 0 10px; color: #333; font-size: 14px; }

/* v6: category tabs separate from the orange header */
.tabs-wrap { position: relative; background: #fff; border-bottom: 1px solid #FED7AA; box-shadow: 0 3px 10px rgba(0,0,0,.08); padding: 10px 12px; }
.tabs-wrap nav.tabs { background: transparent; box-shadow: none; border-radius: 0; margin: 0 auto !important; padding: 0 !important; }

/* ===== v7 premium white theme ===== */
:root { --bg: #F7F7F8; --border: #E7E7EA; --ink: #111114; --muted: #6B7280; }
header { background: #fff !important; color: var(--ink); border-bottom: 3px solid var(--orange); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
header .tagline { color: var(--muted); }
.logo-name .ln1 { color: #F46C0F; }
.logo-name .ln2 { color: #111114; }
.search-box input { background: #F3F4F6 !important; border: 1.5px solid #D1D5DB !important; color: var(--ink); box-shadow: none !important; }
.search-box input:focus { border-color: var(--orange) !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(244,108,15,.15) !important; }
.search-go { background: var(--orange) !important; color: #fff !important; box-shadow: none !important; }
.theme-btn { border: 1.5px solid #D1D5DB; background: #fff; border-radius: 999px; width: 38px; height: 38px; font-size: 17px; cursor: pointer; margin-left: auto; flex: none; }
.install-btn { background: var(--orange) !important; color: #fff !important; }
.promise { background: #FFF7ED; }
.card { border-color: var(--border); box-shadow: 0 1px 2px rgba(0,0,0,.04); }

/* ===== dark mode ===== */
html[data-theme="dark"] { --bg: #0B0B0C; --card-bg: #18181B; --ink: #F4F4F5; --muted: #A1A1AA; --border: #2A2A2E; color-scheme: dark; }
html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] header { background: #0B0B0C !important; border-bottom-color: var(--orange); box-shadow: none; }
html[data-theme="dark"] .logo-name .ln2 { color: #fff; }
html[data-theme="dark"] .search-box input { background: #1F1F23 !important; border-color: #3F3F46 !important; color: #fff; }
html[data-theme="dark"] .theme-btn { background: #1F1F23; border-color: #3F3F46; }
html[data-theme="dark"] .tabs-wrap { background: #0B0B0C; border-bottom-color: #2A2A2E; box-shadow: none; }
html[data-theme="dark"] nav.tabs button { background: #18181B !important; color: #FDBA74 !important; border-color: #3F3F46 !important; }
html[data-theme="dark"] nav.tabs button.active { background: var(--orange) !important; color: #fff !important; border-color: var(--orange) !important; }
html[data-theme="dark"] .promise { background: #1C1408; color: #FDBA74; border-bottom-color: #3A2A10; }
html[data-theme="dark"] .card, html[data-theme="dark"] .jl-card { background: var(--card-bg); border-color: var(--border); }
html[data-theme="dark"] .card .thumb, html[data-theme="dark"] .jl-thumb { background: #222226; border-color: var(--border); }
html[data-theme="dark"] .card .model, html[data-theme="dark"] .jl-model { color: #fff; }
html[data-theme="dark"] .card .specs { color: #D4D4D8; }
html[data-theme="dark"] .card .specs .note { color: #86EFAC; }
html[data-theme="dark"] .badge { background: #14291B; color: #86EFAC; }
html[data-theme="dark"] .badge.battery { background: #172033; color: #93C5FD; }
html[data-theme="dark"] .badge.grade { background: #2A2410; color: #E8C468; }
html[data-theme="dark"] .badge.new { background: #3A1A08; color: #FDBA74; }
html[data-theme="dark"] .badge.cash { background: #221A3A; color: #C4B5FD; }
html[data-theme="dark"] .card .price { color: #fff; }
html[data-theme="dark"] .card .emi { color: #C4B5FD; }
html[data-theme="dark"] .share-btn { background: transparent; color: #E4E4E7; border-color: #3F3F46; }
html[data-theme="dark"] .filters select { background: #18181B; color: #fff; border-color: #3F3F46; }
html[data-theme="dark"] .visit { background: #111113; border-top-color: #2A2A2E; }
html[data-theme="dark"] .visit p { color: #D4D4D8; }
html[data-theme="dark"] .sold-banner { background: #0F2417; border-color: #166534; }
html[data-theme="dark"] .sold-banner p { color: #D4D4D8; }
html[data-theme="dark"] .loader-line { color: #D4D4D8; }
html[data-theme="dark"] footer { color: #A1A1AA; }
html[data-theme="dark"] .ios-hint { background: #18181B; color: #fff; }

.brand-row .logo.logo-mark { width: auto; height: 44px; border-radius: 0; box-shadow: none; background: none; }
html[data-theme="dark"] .brand-row .logo.logo-mark { background: #fff; border-radius: 8px; padding: 3px 4px; }

/* v8: balanced logo + sizes (mobile + desktop) */
.logo-name { font-size: 26px; }
.logo-name .ln1 { font-size: 1em; letter-spacing: 0.02em; }
.logo-name .ln2 { font-size: 0.5em; letter-spacing: 0.61em; margin-right: -0.61em; margin-top: 0.28em; }
.brand-row { gap: 10px; }
.brand-row .logo.logo-mark { height: 46px; }
header .tagline { font-size: 12px; margin-top: 4px; }
.search-box input { font-size: 15px; padding-top: 12px !important; padding-bottom: 12px !important; }
nav.tabs button { font-size: 13.5px; }
@media (min-width: 768px) {
  header { padding-top: 18px; padding-bottom: 16px; }
  .logo-name { font-size: 34px; }
  .brand-row .logo.logo-mark { height: 60px; }
  .brand-row { gap: 14px; }
  header .tagline { font-size: 13px; }
  .search-box { max-width: 480px; flex: 1 1 420px; }
  .search-box input { font-size: 16px; padding-top: 13px !important; padding-bottom: 13px !important; }
  .search-go { width: 40px; height: 40px; }
  nav.tabs { justify-content: center; }
  nav.tabs button { font-size: 15px; padding: 10px 20px; }
  .card .model { font-size: 15px; }
  .card .price { font-size: 20px; }
  .jl-card { width: 180px; }
}

/* v9: real logo image (exact match) */
.logo-full { margin: 0; line-height: 0; }
.logo-full img { height: 46px; width: auto; display: block; }
.logo-full .lf-dark { display: none; }
html[data-theme="dark"] .logo-full .lf-light { display: none; }
html[data-theme="dark"] .logo-full .lf-dark { display: block; }
header .tagline { margin-top: 6px; letter-spacing: .02em; }
@media (min-width: 768px) { .logo-full img { height: 60px; } }

/* sealed variants: piece count + coming soon */
.badge.last { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.coming-ribbon { position: absolute; top: 10px; left: 10px; background: #111; color: #fff; font-size: 12px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; z-index: 2; }
.card.is-coming .thumb img { filter: grayscale(.35); opacity: .85; }
.price.coming { color: #111; }
.coming-note { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }

/* offer banner (text + on/off from admin app) */
.offer-banner { background: linear-gradient(90deg, #F46C0F, #F59E0B); color: #fff; text-align: center; font-weight: 700;
  font-size: 14px; padding: 9px 14px; line-height: 1.35; }
.offer-banner[hidden] { display: none; }
.badge.sub { background: #EEF2FF; color: #3730A3; border: 1px solid #C7D2FE; }
.exchange-btn { display: block; text-align: center; margin-top: 8px; padding: 10px; border-radius: 10px; border: 1.5px solid var(--orange);
  color: var(--orange-dark); font-weight: 700; font-size: 14px; text-decoration: none; background: transparent; }
.emi-btn { display: block; width: 100%; margin-top: 8px; padding: 10px; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.emi .emi span, .emi span { color: var(--muted); font-weight: 400; }
.emi-modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.emi-modal[hidden] { display: none; }
.emi-sheet { background: var(--card-bg, #fff); color: inherit; width: 100%; max-width: 440px; border-radius: 18px 18px 0 0; padding: 18px 18px 22px;
  position: relative; max-height: 90vh; overflow-y: auto; }
@media (min-width: 600px) { .emi-modal { align-items: center; } .emi-sheet { border-radius: 18px; } }
.emi-sheet h3 { margin: 0 0 2px; }
.emi-name { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.emi-sheet label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.emi-sheet input { width: 55%; padding: 10px 12px; font-size: 16px; border: 1px solid #ddd; border-radius: 10px; }
.emi-x { position: absolute; top: 10px; right: 12px; border: none; background: none; font-size: 20px; cursor: pointer; color: inherit; }
.emi-table { margin: 10px 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.emi-row { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 15px; }
.emi-row:last-child { border-bottom: none; }
.emi-row.best { background: #FFF7ED; color: #9A3412; }
.emi-note { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.emi-sheet .whatsapp-btn { display: block; text-align: center; padding: 13px; border-radius: 12px; background: #1fa855; color: #fff;
  font-weight: 700; text-decoration: none; }

/* ===== iPhone install guide (3 steps with pictures) ===== */
.ios-modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; }
.ios-modal[hidden] { display: none; }
.ios-sheet { position: relative; background: #fff; color: #111; width: 100%; max-width: 440px; border-radius: 20px 20px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); text-align: center; max-height: 92vh; overflow: auto; animation: iosUp .25s ease-out; }
@keyframes iosUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.ios-x { position: absolute; top: 10px; right: 12px; border: 0; background: #F3F4F6; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
.ios-icon { border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.ios-sheet h3 { margin: 10px 0 2px; font-size: 19px; }
.ios-sub { margin: 0 0 12px; color: #6B7280; font-size: 13px; }
.ios-warn { background: #FFF7ED; border: 1px solid #FDBA74; border-radius: 10px; padding: 8px; font-size: 13px; margin-bottom: 10px; }
.ios-warn[hidden] { display: none; }
.ios-steps { list-style: none; padding: 0; margin: 0; text-align: left; }
.ios-steps li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid #F1F1F3; }
.ios-steps .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center; }
.ios-steps b { font-size: 15px; }
.ios-steps small { color: #6B7280; font-size: 12px; }
.ios-pic { margin: 8px 0 4px; border-radius: 12px; background: #F2F2F7; padding: 8px 10px; font-size: 13px; }
.ios-bar { display: flex; justify-content: space-around; align-items: center; height: 46px; }
.ios-bar span { width: 18px; height: 4px; border-radius: 2px; background: #C7C7CC; }
.ios-bar svg { background: #fff; border-radius: 10px; padding: 4px; box-shadow: 0 0 0 3px rgba(10,132,255,.35); }
.ios-menu .mi { background: #fff; padding: 8px 10px; border-bottom: 1px solid #E5E5EA; color: #8E8E93; }
.ios-menu .mi:first-child { border-radius: 8px 8px 0 0; }
.ios-menu .mi.hl { color: #111; font-weight: 700; display: flex; justify-content: space-between; align-items: center; border-radius: 0 0 8px 8px; box-shadow: 0 0 0 3px rgba(10,132,255,.35); position: relative; }
.ios-add { display: flex; justify-content: space-between; align-items: center; background: #fff; box-shadow: inset 0 0 0 1px #E5E5EA; }
.ios-add span { color: #0A84FF; }
.ios-add .add { font-weight: 800; padding: 4px 10px; border-radius: 8px; box-shadow: 0 0 0 3px rgba(10,132,255,.35); }
.ios-ok { margin-top: 14px; width: 100%; border: 0; border-radius: 12px; padding: 13px; background: var(--orange); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; }
html[data-theme="dark"] .ios-sheet { background: #18181B; color: #fff; }
html[data-theme="dark"] .ios-pic { background: #27272A; }
html[data-theme="dark"] .ios-menu .mi, html[data-theme="dark"] .ios-add { background: #3F3F46; color: #D4D4D8; }
html[data-theme="dark"] .ios-menu .mi.hl { color: #fff; }
html[data-theme="dark"] .ios-steps li { border-top-color: #27272A; }
.first-note { margin-top: 6px; text-align: center; font-size: 12px; color: var(--muted); }
.alert-btn { border: 1.5px solid #D1D5DB; background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 700; cursor: pointer; flex: none; }
.alert-btn[hidden] { display: none; }
.alert-btn.on { border-color: var(--green); color: var(--green); }
html[data-theme="dark"] .alert-btn { background: #18181B; color: #fff; border-color: #3F3F46; }
.alert-btn { width: 38px; height: 38px; padding: 0; font-size: 17px; position: relative; }
.alert-btn .ab-txt { display: none; }
.alert-btn.on::after { content: ""; position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
@media (min-width: 768px) { .alert-btn { width: auto; padding: 8px 14px; font-size: 13px; } .alert-btn .ab-txt { display: inline; } }

/* ===== splash (loading screen) ===== */
.splash { position: fixed; inset: 0; z-index: 100; background: #fff; display: grid; place-items: center; transition: opacity .4s; padding: 24px; }
.splash.gone { opacity: 0; pointer-events: none; }
.sp-in { width: 100%; max-width: 340px; text-align: center; }
.sp-logo { width: 78%; height: auto; }
.splash .lf-dark { display: none; }
html[data-theme="dark"] .splash { background: #0B0B0C; color: #fff; }
html[data-theme="dark"] .splash .lf-light { display: none; }
html[data-theme="dark"] .splash .lf-dark { display: inline; }
.sp-tag { margin-top: 6px; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.sp-del { margin: 22px auto 14px; display: inline-block; background: var(--orange); color: #fff; font-weight: 800; font-size: 16px; padding: 10px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(244,108,15,.3); animation: spPop .6s ease-out; }
@keyframes spPop { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.sp-pts { list-style: none; padding: 0; margin: 0 auto; text-align: left; display: inline-block; font-size: 14px; line-height: 1.9; }
.sp-pts li { opacity: 0; animation: spIn .4s ease-out forwards; }
.sp-pts li:nth-child(1) { animation-delay: .15s; } .sp-pts li:nth-child(2) { animation-delay: .3s; } .sp-pts li:nth-child(3) { animation-delay: .45s; } .sp-pts li:nth-child(4) { animation-delay: .6s; }
@keyframes spIn { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.sp-bar { margin: 22px auto 8px; width: 60%; height: 5px; border-radius: 9px; background: #FED7AA; overflow: hidden; }
.sp-bar span { display: block; width: 40%; height: 100%; background: var(--orange); border-radius: 9px; animation: spBar 1.1s ease-in-out infinite; }
@keyframes spBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.sp-load { font-size: 12px; color: var(--muted); }

/* ===== budget chips + tab counts ===== */
.budget-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.budget-chips::-webkit-scrollbar { display: none; }
.budget-chips button { flex: none; border: 1.5px solid var(--border); background: var(--card-bg, #fff); color: var(--ink); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; }
.budget-chips button span { color: var(--muted); font-weight: 500; font-size: 12px; }
.budget-chips button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.budget-chips button.active span { color: #D4D4D8; }
.tab-n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: rgba(0,0,0,.08); font-size: 11px; font-weight: 700; }
.tabs button.active .tab-n { background: rgba(255,255,255,.25); }
.emi small { color: var(--muted); font-weight: 400; }
html[data-theme="dark"] .budget-chips button { background: #18181B; color: #fff; border-color: #27272A; }
html[data-theme="dark"] .budget-chips button.active { background: #fff; color: #111; }

/* ===== Ask Chennai Mobiles (AI chat) ===== */
.ask-fab { position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; padding: 12px 16px; box-shadow: 0 8px 22px rgba(0,0,0,.25); cursor: pointer; }
.ask-fab[hidden], .ask-box[hidden], .ask-quick[hidden] { display: none; }
.ask-box { position: fixed; right: 10px; left: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45; max-width: 420px; margin-left: auto; height: min(74vh, 560px); background: #fff; color: #111; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden; }
.ask-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px; border-bottom: 3px solid var(--orange); }
.ask-head img { width: 36px; height: 36px; border-radius: 9px; }
.ask-head div { flex: 1; } .ask-head b { display: block; font-size: 15px; } .ask-head small { color: #6B7280; font-size: 12px; }
.ask-x { border: 0; background: #F3F4F6; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.ask-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #F7F7F8; }
.ask-m { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.ask-m.bot { background: #fff; border: 1px solid #E7E7EA; align-self: flex-start; border-bottom-left-radius: 4px; }
.ask-m.me { background: var(--orange); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ask-m.typing { color: #6B7280; font-style: italic; }
.ask-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px 0; background: #F7F7F8; scrollbar-width: none; }
.ask-quick button { flex: none; border: 1.5px solid #FDBA74; background: #FFF7ED; color: #C2410C; border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 700; cursor: pointer; }
.ask-form { display: flex; gap: 8px; padding: 10px; background: #F7F7F8; }
.ask-form input { flex: 1; border: 1.5px solid #D1D5DB; border-radius: 999px; padding: 11px 14px; font-size: 15px; }
.ask-form button { border: 0; width: 44px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 17px; cursor: pointer; }
.ask-wa { display: block; text-align: center; font-size: 12px; padding: 0 0 10px; background: #F7F7F8; color: var(--green); font-weight: 700; }
html[data-theme="dark"] .ask-box { background: #18181B; color: #fff; }
html[data-theme="dark"] .ask-msgs, html[data-theme="dark"] .ask-quick, html[data-theme="dark"] .ask-form, html[data-theme="dark"] .ask-wa { background: #0B0B0C; }
html[data-theme="dark"] .ask-m.bot { background: #27272A; border-color: #3F3F46; }
html[data-theme="dark"] .ask-form input { background: #18181B; color: #fff; border-color: #3F3F46; }
html[data-theme="dark"] .ask-fab { background: var(--orange); }

/* ===== Just Sold: big SOLD stamp on the photo ===== */
.just-sold h2 span { font-weight: 500; }
.jl-thumb { position: relative; }
.sold-stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-18deg); border: 4px solid #DC2626; color: #DC2626; background: rgba(255,255,255,.82);
  font-weight: 900; font-size: 30px; letter-spacing: .12em; padding: 2px 14px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.18); pointer-events: none; }
.jl-card.is-sold img { filter: saturate(.75); }
.jl-card.is-sold .jl-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.12); }
html[data-theme="dark"] .sold-stamp { background: rgba(17,17,17,.78); }

/* ---- Polished card + detail sheet ---- */
.card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.chip { font-size: 11.5px; font-weight: 600; color: var(--ink); background: #F1EEE9; border-radius: 999px; padding: 3px 9px; }
.card .more-btn { width: 100%; margin-top: 6px; background: transparent; border: 0; color: var(--muted); font-size: 13px; font-weight: 600; padding: 8px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.card .more-btn:hover { color: var(--ink); }
.card .thumb { cursor: pointer; }
.detail-overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, 0.55); z-index: 60; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.detail-sheet { position: relative; background: var(--card-bg); width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0,0,0,.2); }
.detail-x { position: absolute; top: 10px; right: 12px; border: 0; background: #F1EEE9; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.detail-brand { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.detail-model { margin: 4px 0 6px; font-size: 20px; color: var(--ink); line-height: 1.25; }
.detail-price { font-size: 26px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.detail-note { font-size: 13.5px; color: #374151; background: #F7F5F2; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.detail-actions { display: grid; gap: 8px; margin-top: 10px; }
.detail-actions > * { width: 100%; text-align: center; }
.detail-sheet .whatsapp-btn { margin-top: 6px; }
.detail-sheet .whatsapp-btn { display: block; background: var(--green); color: #fff; font-weight: 700; font-size: 16px; border-radius: 12px; padding: 14px; text-align: center; text-decoration: none; }
.detail-sheet .whatsapp-btn:hover { background: var(--green-dark); }
.detail-sheet .exchange-btn { display: block; border: 1.5px solid var(--orange); color: var(--orange-dark); font-weight: 700; font-size: 15px; border-radius: 12px; padding: 12px; text-align: center; text-decoration: none; background: #fff; }
.detail-sheet .emi-btn, .detail-sheet .share-btn { display: block; border: 1.5px solid var(--border); color: var(--ink); font-weight: 700; font-size: 15px; border-radius: 12px; padding: 12px; background: #fff; cursor: pointer; font-family: inherit; }
.detail-sheet .emi-btn:hover, .detail-sheet .share-btn:hover { border-color: var(--ink); }

/* ---- Premium glossy orange (plain orange replaced everywhere; AI chat/button left as-is) ---- */
:root {
  --orange-premium: linear-gradient(180deg, #FF9A4D 0%, #F46C0F 52%, #D8560A 100%);
  --orange-gloss: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 12px rgba(244,108,15,.35);
}
header { border-bottom: 3px solid transparent !important; border-image: linear-gradient(90deg, #FF9A4D, #F46C0F, #D8560A) 1 !important; }
html[data-theme="dark"] header { border-image: linear-gradient(90deg, #FF9A4D, #F46C0F, #D8560A) 1 !important; }
.search-box input:focus { border-color: #F46C0F !important; }
/* Price: plain black ₹ amount, no highlight; white in dark mode */
.card .price:not(.contact):not(.coming), .jl-price, .detail-price {
  background: none !important; -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: #111; color: #111 !important; filter: none !important; text-shadow: none !important;
}
html[data-theme="dark"] .card .price:not(.contact):not(.coming), html[data-theme="dark"] .jl-price,
html[data-theme="dark"] .detail-price { -webkit-text-fill-color: #fff; color: #fff !important; }
.detail-photo { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 380px; object-fit: cover; border-radius: 14px; background: #F7F5F2; margin: 0 0 14px; }
.detail-photo.placeholder { display: grid; place-items: center; }
.detail-photo.placeholder svg { width: 60%; height: 60%; }
.detail-photo.zoomable { cursor: zoom-in; }

/* Premium pass: softer cards, clearer hierarchy */
.card { border-radius: 16px; box-shadow: 0 6px 18px rgba(17,24,39,.07); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(17,24,39,.10); }
.card img { aspect-ratio: 4 / 5; object-fit: cover; }
.detail-sheet { font-feature-settings: "tnum" 1; }
.detail-sheet .detail-model { font-weight: 800; letter-spacing: -.2px; }
.chip, .detail-badges span { border-radius: 999px; }

/* ---------- Option A: pre-owned cashback banner (under tagline) ---------- */
.cb-banner { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 10px 12px; border-radius: 14px;
  background: #111; color: #fff; font-size: 13px; line-height: 1.3; }
.cb-banner[hidden] { display: none; }
.cb-shield { color: #FDBA74; display: inline-flex; flex: 0 0 auto; }
.cb-text { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.cb-pill { flex: 0 0 auto; background: linear-gradient(90deg, #FF9A4D, #F46C0F); color: #fff; font-weight: 900; font-size: 11px;
  letter-spacing: .4px; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- Search row: search bar + AI button side by side ---------- */
.search-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.search-row .search-box { flex: 1 1 auto; min-width: 0; max-width: none; }
.ask-fab.ask-inline { position: static !important; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(90deg, #FF9A4D, #F46C0F) !important; color: #fff !important; font-size: 14px;
  padding: 0 14px; height: 44px; border-radius: 999px; box-shadow: 0 4px 14px rgba(244,108,15,.35) !important; }
.ask-fab.ask-inline b { font-weight: 900; letter-spacing: .3px; }
html[data-theme="dark"] .ask-fab.ask-inline { background: linear-gradient(90deg, #FF9A4D, #F46C0F) !important; color: #fff !important; }

/* gallery zoom: pan/pinch handled in JS */
.gallery img { touch-action: none; transform-origin: center center; user-select: none; -webkit-user-drag: none; }
.cb-banner { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.cb-text { font-size: 13px; }
.cb-pill { grid-column: 2; justify-self: start; font-size: 11px; }

/* ---------- Glossy orange + thin edge (black in light mode, white in dark mode) ---------- */
html { --edge: #111; }
html[data-theme="dark"] { --edge: #fff; }
html nav.tabs button.active, html .new-ribbon, html .search-go, html .install-btn, html .ask-fab, html .cb-pill, html .sp-del, html .ios-ok, html .ask-m.me, html .ask-form button, html .offer-banner {
  background-image: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 50%), linear-gradient(180deg, #FF9A4D 0%, #F46C0F 55%, #D9560A 100%) !important;
  background-color: #F46C0F !important;
  border: 0 !important;
  color: #fff !important;
  -webkit-text-stroke: .5px #111;
  paint-order: stroke fill;
}
html[data-theme="dark"] nav.tabs button.active, html[data-theme="dark"] .new-ribbon, html[data-theme="dark"] .search-go, html[data-theme="dark"] .install-btn, html[data-theme="dark"] .ask-fab, html[data-theme="dark"] .cb-pill, html[data-theme="dark"] .sp-del, html[data-theme="dark"] .ios-ok, html[data-theme="dark"] .ask-m.me, html[data-theme="dark"] .ask-form button, html[data-theme="dark"] .offer-banner {
  background-image: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 50%), linear-gradient(180deg, #FF9A4D 0%, #F46C0F 55%, #D9560A 100%) !important;
  background-color: #F46C0F !important;
  border: 0 !important;
  -webkit-text-stroke: .5px #111;
}

/* dark mode: card chips and detail badges need dark fills (was light fill + white text) */
html[data-theme="dark"] .chip, html[data-theme="dark"] .detail-badges span { background: #27272A; color: #F4F4F5; }

/* ---------- v5 filter: All / New / Used, iPhone / Android, brand, price chips, More ---------- */
.tabs-wrap[hidden], .brand-row[hidden], .more-panel[hidden], .cond-wrap select[hidden] { display: none !important; }
.deliv-strip { background: #fff; padding: 7px 14px; font-size: 12px; font-weight: 700; color: #111; border-bottom: 1px solid #E5E7EB; }
.cond-wrap { background: #fff; padding: 8px 12px; border-bottom: 1px solid #E5E7EB; }
.cond-wrap .seg { display: grid; grid-template-columns: 1fr 1fr 1fr; border: 1px solid #D1D5DB; border-radius: 999px; overflow: hidden; height: 36px; background: #fff; }
.cond-wrap .seg button { border: 0; background: transparent; font-size: 13px; font-weight: 800; color: #111; cursor: pointer; }
.cond-wrap .seg button.on, .fam-row button.on, .brand-row button.on, .more-btn-f.on {
  background: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 50%), linear-gradient(180deg, #FF9A4D 0%, #F46C0F 55%, #D9560A 100%) !important;
  color: #fff !important; -webkit-text-stroke: .5px #111; paint-order: stroke fill; border-color: transparent !important; }
.fam-row, .brand-row, .price-row { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; scrollbar-width: none; }
.fam-row::-webkit-scrollbar, .brand-row::-webkit-scrollbar, .price-row::-webkit-scrollbar { display: none; }
.fam-row button, .brand-row button, .more-btn-f { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid #D1D5DB; background: #fff; font-size: 12px; font-weight: 700; color: #111; white-space: nowrap; cursor: pointer; }
.price-row .budget-chips { display: flex; gap: 6px; overflow-x: auto; flex: 1 1 auto; min-width: 0; scrollbar-width: none; }
.price-row .more-btn-f { margin-left: 0; }
.more-panel { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.more-panel select { height: 36px; border: 1px solid #D1D5DB; border-radius: 10px; padding: 0 10px; font-size: 13px; background: #fff; }
.foot-note { font-size: 11px; color: #6B7280; padding: 10px 14px 20px; line-height: 1.4; }
.cb-banner.neutral { background: #fff; color: #111; border: 1px solid #D1D5DB; }
.cb-banner.neutral .cb-text small { display: block; font-size: 11.5px; color: #6B7280; font-weight: 500; margin-top: 2px; }
.cb-banner.neutral .cb-text .cb-tc { font-size: 10px; }
.cb-link { border: 0; cursor: pointer; font: inherit; }
.card.is-sold-card { opacity: .92; }
html[data-theme="dark"] .deliv-strip, html[data-theme="dark"] .cond-wrap { background: #18181B; color: #F4F4F5; border-bottom-color: #2A2A2E; }
html[data-theme="dark"] .cond-wrap .seg, html[data-theme="dark"] .fam-row button, html[data-theme="dark"] .brand-row button, html[data-theme="dark"] .more-btn-f, html[data-theme="dark"] .more-panel select { background: #27272A; color: #F4F4F5; border-color: #3F3F46; }
html[data-theme="dark"] .cond-wrap .seg button { color: #F4F4F5; }
.price-row { align-items: center; }
.price-row .more-btn-f { height: 34px; padding: 0 12px; line-height: 1; flex: none; }
.price-row .budget-chips button { height: 34px; padding: 0 11px; font-size: 12px; line-height: 1; white-space: nowrap; flex: none; }

/* ---------- View complete details: solid pill, clearly tappable ---------- */
.card .more-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; margin-top: 8px; border: 0; border-radius: 999px;
  background: #111; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .2px; text-decoration: none; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.card .more-btn:hover { color: #fff; transform: translateY(-1px); }
.card .more-btn span { font-size: 16px; }
html[data-theme="dark"] .card .more-btn { background: #fff; color: #111; box-shadow: 0 4px 12px rgba(255,255,255,.12); }
html[data-theme="dark"] .card .more-btn:hover { color: #111; }

/* ---------- Banner under tagline: inverse of the page (black on light, white on dark), all three tabs ---------- */
.cb-banner, .cb-banner.neutral { background: #111; color: #fff; border: 0; box-shadow: 0 6px 18px rgba(0,0,0,.14); border-radius: 16px; }
.cb-banner .cb-text small, .cb-banner.neutral .cb-text small { color: rgba(255,255,255,.78); }
.cb-banner .cb-shield { color: #FDBA74; }
html[data-theme="dark"] .cb-banner, html[data-theme="dark"] .cb-banner.neutral { background: #fff; color: #111; box-shadow: 0 6px 18px rgba(255,255,255,.08); }
html[data-theme="dark"] .cb-banner .cb-text small, html[data-theme="dark"] .cb-banner.neutral .cb-text small { color: rgba(17,17,17,.7); }
html[data-theme="dark"] .cb-banner .cb-shield { color: #C2410C; }

/* Category row (second filter) + coming-soon card */
.cat-row { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 2px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-row button { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid #D1D5DB; background: #fff; font-size: 12px; font-weight: 700; color: #111; white-space: nowrap; cursor: pointer; }
.cat-row button.on { background: #111; color: #fff; border-color: #111; }
.cat-row .tab-n { font-weight: 500; opacity: .7; }
.cat-row .tab-n.soon { background: #F26A1B; color: #fff; border-radius: 6px; padding: 0 5px; opacity: 1; font-size: 10px; }
.coming-soon-card { grid-column: 1 / -1; border: 2px dashed #F26A1B; border-radius: 16px; padding: 22px 18px; text-align: center; background: #FFF8F2; }
.coming-soon-card .cs-badge { display: inline-block; background: #111; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; }
.coming-soon-card h3 { margin: 10px 0 4px; font-size: 18px; color: #111; }
.coming-soon-card p { margin: 0; font-size: 13px; color: #444; }
html[data-theme="dark"] .cat-row button { background: #27272A; color: #F4F4F5; border-color: #3F3F46; }
html[data-theme="dark"] .cat-row button.on { background: #F4F4F5; color: #111; }
html[data-theme="dark"] .coming-soon-card { background: #1F1F23; }
html[data-theme="dark"] .coming-soon-card h3 { color: #F4F4F5; }
html[data-theme="dark"] .coming-soon-card p { color: #C4C4CC; }

/* Photo strip in product details (swipe sideways, like Amazon) */
.photo-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 0 14px; padding-bottom: 4px; scrollbar-width: none; }
.photo-strip::-webkit-scrollbar { display: none; }
.photo-strip .ps-item { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; margin: 0; background: #F7F5F2; border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 5; max-height: 380px; }
.photo-strip.multi .ps-item { flex-basis: 86%; }
.photo-strip .ps-item img { width: 100%; height: 100%; object-fit: contain; display: block; }
html[data-theme="dark"] .photo-strip .ps-item { background: #1F1F23; }

/* Share button on the product photo in the grid */
.card .thumb { position: relative; }
.card-share { position: absolute; top: 8px; right: 8px; z-index: 2; border: 0; border-radius: 999px; background: rgba(17,17,17,.85); color: #fff; font-size: 12px; font-weight: 800; padding: 7px 12px; cursor: pointer; }
.card-share:hover { background: #111; }

/* ---------- Buy | Sell | Exchange switch ---------- */
.mode-seg { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 8px 0 2px; border-radius: 14px; background: #F1ECE6; border: 1px solid #E6DBCE; }
.mode-seg button { border: 0; border-radius: 10px; padding: 9px 4px; font: 800 14px/1 inherit; font-family: inherit; color: #3b2f25; background: transparent; cursor: pointer; transition: background .2s, color .2s, transform .1s; }
.mode-seg button:active { transform: scale(.97); }
.mode-seg button.on { color: #fff; background: linear-gradient(180deg, #FF9A4D 0%, #F46C0F 55%, #D9560A 100%); box-shadow: 0 3px 10px rgba(244,108,15,.35); }
html[data-theme="dark"] .mode-seg { background: #1A130D; border-color: #3a2b1f; }
html[data-theme="dark"] .mode-seg button { color: #F3EAE1; }
body.selling main, body.selling .search-row, body.selling #cashback-banner, body.selling #offer-banner, body.selling .tabs-wrap, body.selling .ask-fab { display: none !important; }

/* ---------- card: photo, model, price, warranty; whole card taps ---------- */
.card { cursor: pointer; transition: transform .12s, box-shadow .2s; }
.card:active { transform: scale(.985); }
.card .card-warr { font-size: 11.5px; font-weight: 700; color: #15703F; line-height: 1.3; margin-top: 2px; }
html[data-theme="dark"] .card .card-warr { color: #6EE7A0; }
.detail-lines { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: #FAF7F3; border: 1px solid #EFE6DB; font-size: 14px; line-height: 1.65; }
html[data-theme="dark"] .detail-lines { background: #1F1F23; border-color: #2A2A2E; }
.detail-sheet .share-btn.big { margin-top: 10px; color: #fff !important; border: 0 !important; background: linear-gradient(180deg, #FF9A4D 0%, #F46C0F 55%, #D9560A 100%) !important; font-size: 16px; padding: 14px; }
.detail-sheet .call-btn { display: block; border: 1.5px solid var(--border); color: var(--ink); font-weight: 700; font-size: 15px; border-radius: 12px; padding: 12px; background: var(--card-bg); cursor: pointer; font-family: inherit; }
.detail-sheet .exchange-btn { cursor: pointer; font-family: inherit; }
html[data-theme="dark"] .detail-sheet .exchange-btn, html[data-theme="dark"] .detail-sheet .emi-btn { background: transparent; color: #FDBA74; }

/* ---------- Just Sold row ---------- */
.just-sold h2 .js-count { color: #15703F; font-weight: 800; }
.just-sold .jl-card.is-sold { cursor: pointer; }
.js-notify { margin-top: 6px; font-size: 12px; font-weight: 800; color: var(--orange-dark); }
html[data-theme="dark"] .js-notify { color: #FDBA74; }

/* ---------- SellRight inside the app ---------- */
.sell-view { padding: 12px 14px 40px; }
.sr-wrap { max-width: 560px; margin: 0 auto; }
.sr-hero { padding: 18px 16px; border-radius: 18px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #3a3a40 0%, #1c1c20 45%, #0e0e10 100%); border: 1px solid rgba(212,162,76,.35); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.sr-hero .sr-kicker { color: #E7C27A; }
.sr-hero p { color: #d6d3cf; }
.sr-hero h2 { margin: 6px 0 6px; font-size: 22px; line-height: 1.2; }
.sr-hero p { margin: 0; font-size: 14px; opacity: .95; line-height: 1.45; }
.sr-kicker { font-size: 13px; font-weight: 900; letter-spacing: .3px; }
.sr-kicker span { font-weight: 600; opacity: .85; }
.sr-card { margin-top: 12px; padding: 16px; border-radius: 18px; background: var(--card-bg); border: 1px solid #EFE6DB; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
html[data-theme="dark"] .sr-card { border-color: #2A2A2E; }
.sr-prog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sr-prog span { height: 6px; border-radius: 6px; background: #EDE6DD; transition: background .3s; }
.sr-prog span.on { background: linear-gradient(90deg, #FF9A4D, #F46C0F); }
html[data-theme="dark"] .sr-prog span { background: #2A2A2E; }
html[data-theme="dark"] .sr-prog span.on { background: linear-gradient(90deg, #FF9A4D, #F46C0F); }
.sr-stepname { margin: 8px 0 2px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.sr-l { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 800; }
.sr-l small { font-weight: 500; color: var(--muted); }
.sr-in { width: 100%; padding: 12px 12px; font-size: 16px; font-family: inherit; border-radius: 12px; border: 1.5px solid #E6DBCE; background: #fff; color: var(--ink); outline: none; }
.sr-in:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,108,15,.15); }
html[data-theme="dark"] .sr-in { background: #1F1F23; border-color: #3F3F46; color: #fff; }
.sr-rupee { display: flex; align-items: center; gap: 8px; }
.sr-rupee span { font-weight: 800; color: var(--muted); }
.sr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-chips button { padding: 9px 12px; border-radius: 999px; border: 1.5px solid #E6DBCE; background: #fff; color: var(--ink); font: 700 13.5px/1.2 inherit; font-family: inherit; cursor: pointer; text-align: left; }
.sr-chips button small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.sr-chips button.on { border-color: var(--orange); background: #FDE8D8; color: #B84A05; }
html[data-theme="dark"] .sr-chips button { background: #1F1F23; border-color: #3F3F46; color: #F4F4F5; }
html[data-theme="dark"] .sr-chips button.on { background: #3a1f0b; color: #FDBA74; border-color: var(--orange); }
.sr-err { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #F8E2DE; color: #9B2617; font-size: 14px; font-weight: 700; }
.sr-nav { display: flex; gap: 10px; margin-top: 16px; }
.sr-next { flex: 1; padding: 14px; border: 0; border-radius: 12px; color: #fff; font: 800 16px/1 inherit; font-family: inherit; cursor: pointer; background: linear-gradient(180deg, #FF9A4D 0%, #F46C0F 55%, #D9560A 100%); box-shadow: 0 4px 12px rgba(244,108,15,.3); width: 100%; }
.sr-next:disabled { opacity: .6; }
.sr-back { padding: 14px 18px; border-radius: 12px; border: 1.5px solid #E6DBCE; background: transparent; color: var(--ink); font: 700 15px/1 inherit; font-family: inherit; cursor: pointer; }
.sr-fine { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.sr-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.sr-trust div { padding: 10px 8px; border-radius: 14px; background: var(--card-bg); border: 1px solid #EFE6DB; font-size: 12.5px; font-weight: 800; text-align: center; }
.sr-trust small { display: block; font-weight: 500; color: var(--muted); margin-top: 2px; }
html[data-theme="dark"] .sr-trust div { border-color: #2A2A2E; }
.sr-how { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: #FAF7F3; border: 1px solid #EFE6DB; font-size: 14px; }
.sr-how ol { margin: 6px 0 0; padding-left: 20px; line-height: 1.7; }
html[data-theme="dark"] .sr-how { background: #18181B; border-color: #2A2A2E; }
.sr-done { text-align: center; }
.sr-done h2, .sr-done h3 { margin: 8px 0; }
.sr-done p { color: var(--muted); line-height: 1.5; }
.sr-tick { width: 64px; height: 64px; margin: 4px auto; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 900; color: #fff; background: #15703F; animation: srpop .4s ease-out; }
@keyframes srpop { 0% { transform: scale(.4); opacity: 0; } 80% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.sr-ref { margin: 8px 0; font-size: 15px; }
.sr-sum { margin: 10px 0 14px; padding: 10px 12px; border-radius: 12px; background: #FAF7F3; text-align: left; line-height: 1.7; font-size: 14px; }
html[data-theme="dark"] .sr-sum { background: #1F1F23; }
.sr-wa { display: block; margin: 8px 0; padding: 13px; border-radius: 12px; background: var(--green); color: #fff; font-weight: 800; text-decoration: none; }
.sr-done .sr-back { width: 100%; margin-top: 4px; }
.np-sheet h3 { margin: 4px 0; font-size: 20px; }
.np-sub { margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.np-go { margin-top: 16px; }
.live-at { max-width: 1100px; margin: 6px auto 0; padding: 0 16px; font-size: 12.5px; font-weight: 700; color: #15703F; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #16A34A; margin-right: 4px; animation: livep 2s infinite; }
@keyframes livep { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
html[data-theme="dark"] .live-at { color: #6EE7A0; }
.ask-report { margin-top: 6px; padding: 0; border: 0; background: none; color: #9ca3af; font-size: 11.5px; cursor: pointer; font-family: inherit; }
.ask-go { display: block; margin-top: 8px; padding: 8px 12px; border: 0; border-radius: 10px; background: #F46C0F; color: #fff; font-weight: 800; font-size: 13px; cursor: pointer; font-family: inherit; }
.sr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
select.sr-in { appearance: auto; }
.sr-or { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.sr-or .sr-date { flex: 1; padding: 9px 10px; font-size: 15px; }
.sr-wlist { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; margin-top: 8px; padding: 2px; }
.sr-pick { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; border: 1.5px solid #E6DBCE; background: var(--card-bg); color: var(--ink); text-align: left; cursor: pointer; font-family: inherit; }
.sr-pick img, .sr-noimg { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #f3f0ec; display: grid; place-items: center; font-size: 22px; }
.sr-pick-t b { display: block; font-size: 14px; }
.sr-pick-t small { color: var(--muted); font-size: 12px; }
.sr-pick-p { font-weight: 900; font-size: 14px; }
.sr-pick.on { border-color: var(--orange); background: #FDE8D8; }
.sr-picked { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: #E1F1E7; color: #15703F; font-weight: 800; font-size: 14px; }
html[data-theme="dark"] .sr-pick { border-color: #3F3F46; }
html[data-theme="dark"] .sr-pick.on { background: #3a1f0b; }
html[data-theme="dark"] .sr-picked { background: #0f2a1a; color: #6EE7A0; }
/* detail: round share button on the photo, sticky WhatsApp buy bar */
.detail-media { position: relative; }
.share-fab { position: absolute; top: 10px; left: 10px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.95); color: #111; box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; }
.share-fab span { position: absolute; bottom: -4px; right: -4px; padding: 1px 5px; border-radius: 8px; background: #111; color: #fff; font: 800 9px/1.4 sans-serif; }
.share-fab.busy svg { animation: spin 1s linear infinite; opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
html[data-theme="dark"] .share-fab { background: rgba(30,30,34,.95); color: #fff; }
.buy-bar { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); z-index: 3; order: 99; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin: 14px -20px calc(-22px - env(safe-area-inset-bottom)); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--card-bg); border-top: 1px solid var(--border); box-shadow: 0 -6px 16px rgba(0,0,0,.06); }
.buy-bar-p small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.buy-bar-p b { font-size: 20px; font-weight: 900; white-space: nowrap; }
.buy-wa { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 12px; border-radius: 14px; background: linear-gradient(180deg, #2BD66A 0%, #1FAF55 100%); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; box-shadow: 0 6px 16px rgba(31,175,85,.35); }
.buy-wa:active { transform: scale(.98); }

.detail-x { z-index: 4; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.buy-bar { bottom: calc(-22px - env(safe-area-inset-bottom)); }
/* Share · Save pill on the photo + hint + menu */
.share-pill { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 13px 20px 13px 15px; border: 0; border-radius: 999px; background: #111; color: #fff; font: 800 16px/1 inherit; font-family: inherit; box-shadow: 0 6px 18px rgba(0,0,0,.28); cursor: pointer; }
.share-pill b { font-weight: 800; }
.share-pill.busy svg { animation: spin 1s linear infinite; }
.share-pill:active { transform: scale(.97); }
html[data-theme="dark"] .share-pill { background: #fff; color: #111; }
.share-hint { position: absolute; top: 68px; left: 10px; z-index: 3; max-width: 76%; padding: 8px 12px; border-radius: 12px; background: #F46C0F; color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 6px 16px rgba(244,108,15,.35); opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s; pointer-events: none; }
.share-hint::before { content: ""; position: absolute; top: -6px; left: 24px; border: 6px solid transparent; border-top: 0; border-bottom-color: #F46C0F; }
.share-hint.show { opacity: 1; transform: none; }
.share-menu { z-index: 80; }
.sm-sheet { width: 100%; max-width: 520px; background: var(--card-bg); border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.sm-head b { display: block; font-size: 16px; }
.sm-head small { color: var(--muted); font-size: 13px; }
.sm-opt { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 12px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--card-bg); color: var(--ink); cursor: pointer; font-family: inherit; }
.sm-opt span { grid-row: 1 / 3; font-size: 24px; text-align: center; }
.sm-opt b { font-size: 15px; }
.sm-opt small { color: var(--muted); font-size: 12.5px; }
.sm-main { border-color: #1FAF55; background: #E9F9EF; }
html[data-theme="dark"] .sm-main { background: #0f2a1a; }
.sm-cancel { padding: 12px; border: 0; background: none; color: var(--muted); font: 700 15px/1 inherit; font-family: inherit; cursor: pointer; }
.cm-toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 120; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 999px; background: #111; color: #fff; font-size: 14px; font-weight: 700; opacity: 0; transition: .25s; pointer-events: none; white-space: nowrap; }
.cm-toast.show { opacity: 1; transform: translate(-50%, 0); }
/* wishlist heart, price drop, recently viewed toggle */
.card .heart { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 18px; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; }
html[data-theme="dark"] .card .heart { background: rgba(30,30,34,.9); }
.drop-badge { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: #DCFCE7; color: #15703F; font-size: 11px; font-weight: 800; }
.sv-note { font-size: 12px; color: var(--muted); font-weight: 600; }
.rv-toggle { margin-left: auto; position: relative; display: inline-block; width: 40px; height: 22px; vertical-align: middle; }
.rv-toggle input { opacity: 0; width: 0; height: 0; }
.rv-toggle span { position: absolute; inset: 0; border-radius: 999px; background: #d1d5db; transition: .2s; cursor: pointer; }
.rv-toggle span::before { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.rv-toggle input:checked + span { background: #F46C0F; }
.rv-toggle input:checked + span::before { transform: translateX(18px); }
.recent-row h2 { display: flex; align-items: center; gap: 8px; }
.rv-off { font-size: 13px; color: var(--muted); padding: 4px 2px; }
.upd-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 200; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #111; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.upd-bar button { flex: none; padding: 9px 14px; border: 0; border-radius: 10px; background: #F46C0F; color: #fff; font-weight: 800; font-family: inherit; }
.offline-bar { position: sticky; top: 0; z-index: 9; padding: 8px 14px; background: #FEF3C7; color: #92400E; font-size: 13px; font-weight: 700; text-align: center; }
html[data-theme="dark"] .offline-bar { background: #3a2a05; color: #FCD34D; }
/* account */
.acct-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--card-bg); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.ac-sheet { padding-top: 14px; }
.ac-top { display: flex; align-items: center; gap: 8px; min-height: 36px; margin-bottom: 10px; font-size: 17px; }
.ac-top .ac-x { position: static; margin-left: auto; }
.ac-back { border: 0; background: none; font-size: 26px; line-height: 1; padding: 0 6px 0 0; color: var(--ink); cursor: pointer; }
.ac-prof { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #1c1c20, #0e0e10); color: #fff; }
.ac-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #F46C0F; font-size: 22px; font-weight: 900; }
.ac-who { flex: 1; min-width: 0; }
.ac-who b { display: block; font-size: 17px; }
.ac-who small { color: #d6d3cf; font-size: 12.5px; }
.ac-edit { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(231,194,122,.6); background: transparent; color: #E7C27A; font-weight: 800; font-family: inherit; }
.ac-list { margin-top: 12px; display: grid; }
.ac-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--ink); text-align: left; font-family: inherit; cursor: pointer; }
.ac-ic { font-size: 20px; text-align: center; }
.ac-t b { display: block; font-size: 15px; }
.ac-t small { color: var(--muted); font-size: 12.5px; }
.ac-go { color: var(--muted); font-size: 22px; }
.ac-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ac-grid .jl-card { width: auto; }
.ac-sw { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-weight: 700; }
.ac-req { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ac-req small { color: var(--muted); }
.ac-priv ul { padding-left: 18px; line-height: 1.6; font-size: 14px; }
.ac-priv a { color: var(--orange-dark); font-weight: 700; }
.ac-del { width: 100%; margin-top: 18px; padding: 13px; border-radius: 12px; border: 1.5px solid #DC2626; background: transparent; color: #DC2626; font: 800 15px/1 inherit; font-family: inherit; cursor: pointer; }
.ac-fine { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; text-align: center; }
/* lit heart */
.card .heart { display: grid; place-items: center; color: #6b7280; }
.card .heart.on { background: #fff; box-shadow: 0 0 0 3px rgba(239,68,68,.25), 0 4px 12px rgba(239,68,68,.35); animation: heartpop .35s ease-out; }
@keyframes heartpop { 0% { transform: scale(.7); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.detail-wish.on { border-color: #EF4444 !important; color: #DC2626 !important; background: #FEF2F2 !important; }
/* Bajaj EMI strip after filters */
.emi-strip { max-width: 1100px; margin: 8px auto 0; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; border-radius: 14px; background: linear-gradient(135deg, #0B3B8C, #0a2a63); color: #fff; }
.emi-strip .emi-ic { font-size: 22px; }
.emi-strip b { display: block; font-size: 14px; }
.emi-strip small { color: #cdd9f2; font-size: 12px; }
.emi-ask { padding: 9px 14px; border-radius: 10px; background: #fff; color: #0B3B8C; font-weight: 900; text-decoration: none; font-size: 13px; }
@media (max-width: 1140px) { .emi-strip { margin-left: 12px; margin-right: 12px; } }
.emi-strip[hidden] { display: none; }
.card .thumb svg { width: 78%; height: 86%; margin: auto; } .card .thumb { display: flex; align-items: center; justify-content: center; }

/* =====================================================================
   v10 (24-Nov): compact header that scrolls away, sticky search only,
   line icons, trust + Bajaj Finserv EMI strip, install bar, premium visit card,
   sell form (service / working / address), done screen
   ===================================================================== */
header#top-hdr { position: relative !important; top: auto; padding: calc(10px + env(safe-area-inset-top)) 14px 8px !important; border-bottom: 0 !important; box-shadow: none !important; }
header#top-hdr .header-inner { display: block; }
.top-row { display: flex; align-items: center; gap: 10px; }
.brand-blk { flex: 1 1 auto; min-width: 0; }
header#top-hdr .logo-full img { height: 34px; }
header#top-hdr .tagline { margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
header#top-hdr .tagline span { font-weight: 800; letter-spacing: .02em; background: linear-gradient(90deg, #D9560A, #F46C0F 45%, #C9952B); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="dark"] header#top-hdr .tagline span { background: linear-gradient(90deg, #FF9A4D, #F8B13A 60%, #F3D27A); -webkit-background-clip: text; background-clip: text; }
.top-icons { display: flex; gap: 8px; flex: none; }
.ic-btn { width: 38px; height: 38px; border-radius: 50%; padding: 0; display: inline-grid; place-items: center; cursor: pointer; flex: none; position: relative;
  border: 1px solid #E5E7EB !important; background: #fff !important; color: #1F2937 !important; box-shadow: 0 1px 3px rgba(0,0,0,.06); font-size: 0; margin: 0 !important; }
.ic-btn[hidden] { display: none !important; }
.ic-btn svg { display: block; }
html[data-theme="dark"] .ic-btn { background: #17171A !important; border-color: #2E2E33 !important; color: #F3D27A !important; box-shadow: none; }
.alert-btn.on::after { top: 6px; right: 7px; width: 8px; height: 8px; border-width: 2px; }
html[data-theme="dark"] .alert-btn.on::after { border-color: #17171A; }
.acct-btn { border: 0 !important; padding: 0; background: transparent !important; box-shadow: none; }
.acct-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 900; line-height: 1; font-family: inherit;
  background: radial-gradient(120% 120% at 30% 20%, #FFB067 0%, #F46C0F 50%, #B84A05 100%); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #F46C0F, 0 3px 8px rgba(244,108,15,.35); }
.acct-av svg { margin-top: 4px; opacity: .95; }
html[data-theme="dark"] .acct-av { background: radial-gradient(120% 120% at 30% 20%, #F3D27A 0%, #C9952B 50%, #7A5512 100%); color: #111; box-shadow: 0 0 0 2px #0B0B0C, 0 0 0 3.5px #C9952B; }
.mode-seg { margin: 9px 0 0 !important; padding: 3px !important; border-radius: 12px !important; }
.mode-seg button { padding: 8px 4px !important; font-size: 13.5px !important; border-radius: 9px !important; }
/* only the search bar stays at the top while scrolling */
.search-sticky { position: sticky; top: 0; z-index: 20; padding: 8px 14px; background: #fff; border-bottom: 2px solid var(--orange); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
html[data-theme="dark"] .search-sticky { background: #0B0B0C; }
.search-sticky .search-row { max-width: 1100px; margin: 0 auto; }
.search-sticky .ask-fab.ask-inline { height: 42px; }
body.selling .search-sticky { display: none !important; }
@media (min-width: 768px) { header#top-hdr .logo-full img { height: 48px; } .top-row, .mode-seg { max-width: 1100px; margin-left: auto; margin-right: auto; } }

/* trust line + Bajaj Finserv EMI (below the filters, above the phones) */
.promo { max-width: 1100px; margin: 10px auto 0; padding: 0 12px; display: grid; gap: 8px; }
.promo[hidden] { display: none; }
.promo-trust { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: #111; color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.promo-trust .pt-ic { color: #F8B13A; display: inline-flex; flex: none; }
html[data-theme="dark"] .promo-trust { background: #fff; color: #111; }
html[data-theme="dark"] .promo-trust .pt-ic { color: #C2410C; }
.promo-emi { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: #fff; background: linear-gradient(120deg, #0B3B8C 0%, #0A2A63 70%, #071C44 100%); box-shadow: 0 4px 14px rgba(11,59,140,.25); }
.promo-emi[hidden] { display: none; }
.bf-badge { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: #fff; color: #0B3B8C; }
.promo-emi b { display: block; font-size: 14px; }
.promo-emi small { display: block; font-size: 11.5px; color: #CDD9F2; margin-top: 2px; }

/* install bar */
.install-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45; max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 16px; background: #111; color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); transform: translateY(140%); transition: transform .35s ease; }
.install-bar.show { transform: none; }
.install-bar[hidden] { display: none; }
.install-bar img { border-radius: 10px; flex: none; }
.ib-t { flex: 1 1 auto; min-width: 0; }
.ib-t b { display: block; font-size: 14px; }
.ib-t small { display: block; font-size: 12px; color: #C9C9CF; }
.ib-go { flex: none; border: 0; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 800; line-height: 1; font-family: inherit; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #FF9A4D 0%, #F46C0F 55%, #D9560A 100%); }
.ib-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer; }
html[data-theme="dark"] .install-bar { background: #1C1C20; border: 1px solid #2E2E33; }

/* visit our shop: charcoal card, gold kicker, same buttons */
.visit { background: transparent !important; border: 0 !important; padding: 18px 12px 4px !important; }
.visit-card { max-width: 560px; margin: 0 auto; padding: 20px 16px 16px; border-radius: 20px; text-align: center; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #3a3a40 0%, #1c1c20 45%, #0e0e10 100%); border: 1px solid rgba(212,162,76,.35); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.visit-kicker { font-size: 11.5px; font-weight: 900; letter-spacing: .14em; color: #E7C27A; }
.visit-card h2 { margin: 6px 0 4px !important; font-size: 19px !important; color: #fff !important; }
.visit-card p { margin: 0 0 14px !important; color: #D6D3CF !important; font-size: 13.5px; line-height: 1.5; }
.visit-btns { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.visit-btns .vb { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 4px; border-radius: 14px; max-width: none; flex: none;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; font-weight: 800; font-size: 13px; }
.visit-btns .vb svg { color: #F3D27A; }
.visit-btns .vb-wa { background: linear-gradient(180deg, #FF9A4D 0%, #F46C0F 55%, #D9560A 100%); border-color: transparent; }
.visit-btns .vb-wa svg { color: #fff; }

/* sell form additions */
.sr-note { margin-top: 8px; padding: 9px 11px; border-radius: 10px; background: #FFF7ED; color: #7C2D12; font-size: 12.5px; line-height: 1.45; }
html[data-theme="dark"] .sr-note { background: #1C1408; color: #FDBA74; }
.sr-multi button.on.bad { border-color: #DC2626; background: #FEE2E2; color: #991B1B; }
.sr-multi button.on.ok, .sr-multi button.ok.on { border-color: #15803D; background: #DCFCE7; color: #166534; }
html[data-theme="dark"] .sr-multi button.on.bad { background: #3A1010; color: #FCA5A5; border-color: #B91C1C; }
html[data-theme="dark"] .sr-multi button.ok.on { background: #0F2A1A; color: #86EFAC; border-color: #15803D; }
.sr-addr { resize: vertical; min-height: 70px; font-size: 15px; }
.sr-picked { display: flex !important; align-items: center; gap: 10px; }
.sr-picked > div { flex: 1 1 auto; min-width: 0; }
.sr-picked b { display: block; }
.sr-picked small { display: block; font-weight: 700; opacity: .85; }
.sr-picked button { flex: none; border: 1.5px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 800; line-height: 1; font-family: inherit; cursor: pointer; }
/* done screen */
.sr-done .sr-tick { background: linear-gradient(180deg, #22A35A, #15703F); box-shadow: 0 8px 20px rgba(21,112,63,.3); }
.sr-done p small { color: var(--muted); }
.sr-ref { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #111; color: #fff; font-size: 13px; }
.sr-ref b { color: #F3D27A; }
html[data-theme="dark"] .sr-ref { background: #fff; color: #111; }
html[data-theme="dark"] .sr-ref b { color: #B84A05; }
.sr-sum { display: grid; gap: 0; padding: 4px 12px !important; line-height: 1.35 !important; }
.sr-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 13.5px; }
.sr-sum > div:last-child { border-bottom: 0; }
.sr-sum span { color: var(--muted); flex: none; }
.sr-sum b { text-align: right; }
html[data-theme="dark"] .sr-sum > div { border-bottom-color: #2A2A2E; }
.sr-done-btns { display: grid; gap: 8px; }
.dn-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 14px; font-size: 15px; font-weight: 800; line-height: 1; font-family: inherit; text-decoration: none; cursor: pointer; }
.dn-wa { color: #fff; border: 0; background: linear-gradient(180deg, #FF9A4D 0%, #F46C0F 55%, #D9560A 100%); box-shadow: 0 4px 12px rgba(244,108,15,.3); }
.dn-ghost { background: transparent; color: var(--ink); border: 1.5px solid #D6CCC0; }
html[data-theme="dark"] .dn-ghost { border-color: #3F3F46; }

/* ===== v10.1: premium touches ===== */
/* tagline: quiet, spaced small caps in gold */
header#top-hdr .tagline { margin-top: 6px; font-size: 10.5px; }
header#top-hdr .tagline span { background: none; -webkit-background-clip: initial; background-clip: initial; color: #A87B2D; text-transform: uppercase; letter-spacing: .2em; font-weight: 800; }
html[data-theme="dark"] header#top-hdr .tagline span { background: none; color: #E7C27A; }
/* profile: centred smiley (guest) or first letter */
.acct-av { line-height: 1; }
.acct-av .av-emo { font-size: 22px; line-height: 1; display: block; transform: translateY(1px); }
.acct-av:not(.has-name) { background: radial-gradient(120% 120% at 30% 20%, #FFE7A8 0%, #F8B13A 55%, #C9952B 100%); }
/* search + AI: charcoal and gold (light), gold and charcoal (dark) */
html body .search-go { background: #111 !important; background-image: none !important; color: #F3D27A !important; -webkit-text-stroke: 0; box-shadow: 0 2px 8px rgba(0,0,0,.2) !important; }
html body .ask-fab.ask-inline { background: #111 !important; background-image: none !important; color: #F3D27A !important; -webkit-text-stroke: 0;
  border: 1px solid rgba(201,149,43,.7) !important; box-shadow: 0 4px 14px rgba(0,0,0,.18) !important; }
html[data-theme="dark"] body .search-go { background: linear-gradient(180deg, #F3D27A, #C9952B) !important; color: #111 !important; }
html[data-theme="dark"] body .ask-fab.ask-inline { background: linear-gradient(180deg, #F3D27A, #C9952B) !important; color: #111 !important; border-color: transparent !important; }
/* AI answer: tappable phone chips */
.ask-prod { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin: 3px 2px; padding: 4px 10px 4px 4px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid #F46C0F; background: #FFF4EA; color: #9A3D04; font-size: 13.5px; font-weight: 800; font-family: inherit; vertical-align: middle; text-align: left; }
.ask-prod img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.ask-prod span { white-space: normal; }
.ask-prod i { font-style: normal; font-size: 16px; }
.ask-prod:not(:has(img)) { padding-left: 10px; }
html[data-theme="dark"] .ask-prod { background: #2A1708; color: #FDBA74; }
/* share menu: one big share + two small */
.sm-main { display: flex !important; align-items: center; gap: 12px; text-align: left; }
.sm-main .sm-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.18); }
.sm-main .sm-t b { display: block; font-size: 16px; }
.sm-main .sm-t b em { font-style: normal; font-size: 11px; font-weight: 900; padding: 2px 6px; margin-left: 4px; border-radius: 6px; background: #fff; color: #D9560A; vertical-align: 2px; }
.sm-main .sm-t small { display: block; opacity: .9; }
.sm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sm-mini { display: flex !important; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 14px 8px !important; }
.sm-mini .sm-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #FFF4EA; color: #D9560A; }
html[data-theme="dark"] .sm-mini .sm-ic { background: #2A1708; color: #FDBA74; }
.sm-mini b { font-size: 14px; }
.sm-mini small { font-size: 11.5px; }
.sm-main { background: linear-gradient(180deg, #FF9A4D 0%, #F46C0F 55%, #D9560A 100%) !important; color: #fff !important; border: 0 !important; box-shadow: 0 6px 16px rgba(244,108,15,.3); padding: 14px !important; }
.sm-main .sm-t { font-size: 14px; text-align: left; }
.sm-main small { color: rgba(255,255,255,.9) !important; }
.sm-opt .sm-ic svg { display: block; }
/* v10.2: search + AI = champagne gold (both modes) */
html body .search-go, html[data-theme="dark"] body .search-go { background: linear-gradient(180deg, #FCE3A0 0%, #F2C25A 50%, #D9A031 100%) !important; color: #5A3A06 !important; box-shadow: 0 2px 8px rgba(217,160,49,.45), inset 0 1px 0 rgba(255,255,255,.6) !important; border: 0 !important; }
html body .ask-fab.ask-inline, html[data-theme="dark"] body .ask-fab.ask-inline { background: linear-gradient(180deg, #FCE3A0 0%, #F2C25A 50%, #D9A031 100%) !important; color: #5A3A06 !important; border: 0 !important; box-shadow: 0 4px 14px rgba(217,160,49,.45), inset 0 1px 0 rgba(255,255,255,.6) !important; }
header#top-hdr .tagline span { letter-spacing: .12em; }

/* ===== v10.3: premium polish ===== */
body, button, input, select, textarea { font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; }
:root { --bg: #FAF8F5; }
header#top-hdr { background: #FFFFFF !important; }
.mode-seg { background: #F4F1EC !important; border: 1px solid #ECE5DA !important; }
.mode-seg button { color: #57534E !important; font-weight: 700 !important; letter-spacing: .01em; }
.mode-seg button.on { color: #fff !important; }
html[data-theme="dark"] .mode-seg { background: #17171A !important; border-color: #2A2A2E !important; }
html[data-theme="dark"] .mode-seg button { color: #D6D3D1 !important; }
html[data-theme="dark"] .mode-seg button.on { color: #fff !important; }
.search-sticky { background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid #EFE7DA !important; box-shadow: 0 6px 18px rgba(28,25,23,.06) !important; }
html[data-theme="dark"] .search-sticky { background: rgba(11,11,12,.9); border-bottom-color: #232326 !important; }
.search-box input { background: #fff !important; border: 1px solid #E7E0D5 !important; border-radius: 999px !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.03) !important; }
html[data-theme="dark"] .search-box input { background: #17171A !important; border-color: #2E2E33 !important; }
.deliv-strip { display: flex; align-items: center; justify-content: center; gap: 7px; background: #FFF8EC !important; color: #7A5512 !important; border-bottom: 1px solid #F3E6CC !important;
  font-size: 12px !important; font-weight: 700 !important; letter-spacing: .01em; padding: 8px 12px !important; }
.deliv-strip svg { color: #C9952B; flex: none; }
html[data-theme="dark"] .deliv-strip { background: #15120B !important; color: #E7C27A !important; border-bottom-color: #2A2312 !important; }
/* section titles: gold accent bar instead of emojis */
.just-landed h2 { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.01em; }
.just-landed h2::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: linear-gradient(180deg, #F8B13A, #F46C0F); flex: none; }
.just-landed h2 > span:not(.js-count):not(.sv-note) { font-weight: 600; }
/* cards: softer, rounder */
.card, .jl-card { border-radius: 18px !important; border: 1px solid #EEE8DF !important; box-shadow: 0 1px 2px rgba(28,25,23,.04), 0 8px 24px rgba(28,25,23,.05) !important; }
html[data-theme="dark"] .card, html[data-theme="dark"] .jl-card { border-color: #232326 !important; box-shadow: none !important; }
.cond-wrap { background: transparent !important; border-bottom: 0 !important; }
.cond-wrap .seg { background: #fff !important; border-color: #E7E0D5 !important; }
.fam-row button, .brand-row button, .more-btn-f, .cat-row button, .price-row .budget-chips button { border-color: #E7E0D5 !important; font-weight: 700; }
html[data-theme="dark"] .cond-wrap .seg { background: #17171A !important; border-color: #2E2E33 !important; }
.promo-trust { border-radius: 14px; }
.promo-emi { border-radius: 14px; }

/* ===== v10.4: phone's own font everywhere, calm standard colours ===== */
body, button, input, select, textarea { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; }
/* only the slogan gets the elegant font */
header#top-hdr .tagline { margin-top: 3px; font-size: 15px; }
header#top-hdr .tagline span { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; text-transform: none; letter-spacing: .01em; color: #9A6B1E; }
html[data-theme="dark"] header#top-hdr .tagline span { color: #E7C27A; }
/* profile: brand orange circle, white figure with a smile */
.acct-av, .acct-av:not(.has-name) { background: linear-gradient(180deg, #FF8A3D 0%, #E8590C 100%) !important; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #F1D9C4, 0 2px 6px rgba(232,89,12,.25) !important; overflow: hidden; }
.acct-av svg { margin: 0 !important; display: block; }
html[data-theme="dark"] .acct-av, html[data-theme="dark"] .acct-av:not(.has-name) { color: #fff; box-shadow: 0 0 0 2px #0B0B0C, 0 0 0 3px #3a2a1c !important; }
.ic-btn { color: #44403C !important; }
html[data-theme="dark"] .ic-btn { color: #E7E5E4 !important; }
/* search + AI: one brand orange, matte, no outline text */
html body .search-go, html[data-theme="dark"] body .search-go { background: #F46C0F !important; background-image: none !important; color: #fff !important; box-shadow: none !important; -webkit-text-stroke: 0 !important; }
html body .ask-fab.ask-inline, html[data-theme="dark"] body .ask-fab.ask-inline { background: #fff !important; background-image: none !important; color: #E8590C !important; border: 1.5px solid #F46C0F !important; box-shadow: none !important; -webkit-text-stroke: 0 !important; }
html[data-theme="dark"] body .ask-fab.ask-inline { background: #17171A !important; color: #FF8A3D !important; }
/* fewer colours on cards: neutral text */
.jl-bh { color: #78716C !important; }
.card .specs .note { color: #57534E !important; font-weight: 600; }
html[data-theme="dark"] .jl-bh, html[data-theme="dark"] .card .specs .note { color: #A8A29E !important; }
.badge, .badge.battery, .badge.grade, .badge.new, .badge.cash { background: #F5F5F4 !important; color: #44403C !important; }
html[data-theme="dark"] .badge, html[data-theme="dark"] .badge.battery, html[data-theme="dark"] .badge.grade, html[data-theme="dark"] .badge.new, html[data-theme="dark"] .badge.cash { background: #232326 !important; color: #D6D3D1 !important; }
.promo-trust { background: #fff !important; color: #292524 !important; border: 1px solid #EEE8DF; }
.promo-trust .pt-ic { color: #E8590C !important; }
html[data-theme="dark"] .promo-trust { background: #17171A !important; color: #E7E5E4 !important; border-color: #2A2A2E; }
.deliv-strip { background: #fff !important; color: #57534E !important; border-bottom-color: #F1ECE4 !important; }
.deliv-strip svg { color: #E8590C; }
html[data-theme="dark"] .deliv-strip { background: #0F0F11 !important; color: #A8A29E !important; border-bottom-color: #1F1F22 !important; }
/* Bajaj Finserv tab: logo on white */
.bf-badge { width: auto; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px; background: #fff; }
.bf-badge img { height: 24px; width: auto; display: block; }
/* v10.5: dark mode header was forced white */
html[data-theme="dark"] header#top-hdr { background: #0B0B0C !important; }
/* v10.6: real Bajaj Finance logo in the EMI tab */
.bf-badge { padding: 4px 8px; height: 40px; border-radius: 10px; }
.bf-badge img { height: 30px; width: auto; }
.sm-main.sm-wait { opacity: .85; }
.sm-main.sm-wait .sm-t small::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 6px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: smspin .8s linear infinite; vertical-align: -1px; }
@keyframes smspin { to { transform: rotate(360deg); } }

/* Sold cards: last updated + confirm on WhatsApp */
.sold-upd { font-size: 11px; color: #78716C; margin-top: 4px; }
.sold-wa { display: block; margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: #25D366; color: #fff !important; font-size: 12px; font-weight: 800; text-align: center; text-decoration: none; }
html[data-theme="dark"] .sold-upd { color: #A8A29E; }

/* 🙋 phone request */
.req-btn { display: inline-block; margin: 6px 0 10px; padding: 12px 18px; border: 0; border-radius: 12px; background: var(--orange, #F97316); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
.req-end { grid-column: 1 / -1; text-align: center; padding: 8px 0 16px; }

/* 🔍 Searching: show only the results */
body.searching .deliv-strip, body.searching #offer-banner, body.searching .tabs-wrap,
body.searching #just-landed, body.searching #saved-row, body.searching #recent-row, body.searching #just-sold,
body.searching .cond-wrap, body.searching #cat-row, body.searching #fam-row, body.searching #brand-row,
body.searching .price-row, body.searching #more-panel, body.searching #promo, body.searching #live-at { display: none !important; }

/* Search box tapped (nothing typed yet): filters only, straight under the search box */
body.search-focus .deliv-strip, body.search-focus #offer-banner, body.search-focus .tabs-wrap,
body.search-focus #just-landed, body.search-focus #saved-row, body.search-focus #recent-row,
body.search-focus #just-sold, body.search-focus #promo, body.search-focus #live-at { display: none !important; }

/* search: recent chips (only while the box is tapped and empty), result count + close */
.recent-q { display: none; gap: 6px; padding: 6px 12px 8px; overflow-x: auto; white-space: nowrap; align-items: center; }
body.search-focus .recent-q:not(:empty) { display: flex; }
.recent-q .rq-l { font-size: 12px; color: #78716C; font-weight: 700; }
.recent-q button { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid #d6d3d1; background: #fff; font-size: 13px; font-weight: 600; color: #111; cursor: pointer; }
html[data-theme="dark"] .recent-q button { background: #1c1917; color: #f5f5f4; border-color: #44403c; }
body.searching .result-count { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; }
.search-x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #e7e5e4; font-size: 15px; font-weight: 800; cursor: pointer; color: #111; }
html[data-theme="dark"] .search-x { background: #44403c; color: #fff; }
