/* Brand colours: change these two to re-theme the site. */
:root {
  --brand: #0b6e4f;
  --brand-dark: #07513a;
  --accent: #f5a524;
  --accent-dark: #d98a0b;
  --ink: #16202a;
  --muted: #5d6b78;
  --line: #e3e8ee;
  --bg: #f4f6f8;
  --card: #fff;
  --danger: #c0392b;
  --wa: #1fa855;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: .4em 0 .3em; }
h2 { font-size: 1.2rem; margin: 0 0 .6em; }
h3 { font-size: 1rem; margin: 0 0 .5em; }
code { background: #eef2f5; padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.ic { width: 18px; height: 18px; flex: none; }
.ic-lg { width: 34px; height: 34px; }
.ic-xl { width: 64px; height: 64px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: var(--brand-dark); }
.btn-sm { padding: 6px 11px; font-size: .88rem; }
.btn-lg { padding: 13px 22px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #1c1400; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #f0f3f6; }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #f0c9c4; }
.btn-danger:hover { background: #fdf0ee; }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: #178a45; }
.btn-call { background: var(--ink); }
.btn-call:hover { background: #000; }
.linkbtn { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; }

/* Header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-row { display: flex; align-items: center; gap: 16px; height: 62px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none !important; white-space: nowrap; }
.logo-tld { color: var(--accent-dark); }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.15rem; }
.top-search { flex: 1; display: flex; align-items: center; gap: 6px; border: 2px solid var(--brand); border-radius: 10px; padding: 3px 3px 3px 10px; max-width: 620px; }
.top-search input { flex: 1; border: 0; outline: 0; font: inherit; min-width: 0; padding: 6px 0; background: transparent; }
.top-search .ic { color: var(--muted); }
.top-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-ic { position: relative; display: flex; align-items: center; gap: 5px; color: var(--ink); padding: 8px; border-radius: 8px; font-weight: 500; }
.nav-ic:hover { background: var(--bg); text-decoration: none; }
.nav-ic .ic { width: 21px; height: 21px; }
.badge { position: absolute; top: 2px; left: 20px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 10px; padding: 0 5px; line-height: 16px; }
.btn-sell { background: var(--accent); color: #1c1400; border-radius: 22px; padding: 8px 18px; }
.btn-sell:hover { background: var(--accent-dark); }
.cats { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { display: flex; align-items: center; gap: 6px; padding: 9px 14px; color: var(--ink); font-weight: 500; border-bottom: 3px solid transparent; white-space: nowrap; }
.cats a:hover { text-decoration: none; color: var(--brand); }
.cats a.on { border-color: var(--brand); color: var(--brand); }

/* Flash */
.flash { margin: 14px 0; padding: 11px 14px; border-radius: 8px; border: 1px solid; }
.flash-ok { background: #e8f6ef; border-color: #b7e2cb; color: #0b4d36; }
.flash-warn { background: #fff7e6; border-color: #f4d9a2; color: #6b4a00; }
.flash-err { background: #fdeeee; border-color: #f2c1bc; color: #8a1f14; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand) 0%, #0e8a63 60%, #16a176 100%); color: #fff; padding: 40px 0 46px; }
.hero h1 { font-size: 2.1rem; margin: 0 0 6px; }
.hero p { margin: 0 0 20px; opacity: .92; font-size: 1.05rem; }
.hero-search { display: grid; grid-template-columns: 170px 170px 1fr auto; gap: 8px; background: #fff; padding: 8px; border-radius: 12px; max-width: 900px; box-shadow: 0 8px 30px rgba(0, 0, 0, .15); }
.hero-search select, .hero-search input { border: 1px solid var(--line); border-radius: 8px; padding: 11px; font: inherit; background: #fff; min-width: 0; color: var(--ink); }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; margin: -26px 0 10px; position: relative; }
.cat-tiles:not(.cat-tiles-2) .cat-tile { align-items: center; text-align: center; padding: 14px 8px; }
.cat-tiles-2 { margin: 18px 0; grid-template-columns: repeat(2, 1fr); }
.cat-tile { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; color: var(--ink); border: 1px solid var(--line); transition: transform .12s; }
.cat-tile:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--brand); }
.cat-tile small { color: var(--muted); }
.cat-ic { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px; }

/* Sections and grid */
.sec { margin: 30px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sec-head h2 { display: flex; align-items: center; gap: 6px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); display: flex; flex-direction: column; border: 1px solid var(--line); transition: box-shadow .12s; }
.card:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(16, 24, 40, .12); }
.card-feat { border: 2px solid var(--accent); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: #eef2f5; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: #aab5c0; }
.noimg-big { aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; }
.tag-feat { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #1c1400; font-size: .75rem; font-weight: 700; padding: 3px 8px 3px 6px; border-radius: 5px; display: flex; align-items: center; gap: 3px; }
.tag-feat .ic { width: 13px; height: 13px; fill: currentColor; }
.tag-sold { position: absolute; top: 8px; right: 8px; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 5px; }
.tag-count { position: absolute; bottom: 8px; right: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .75rem; padding: 2px 7px; border-radius: 5px; display: flex; align-items: center; gap: 4px; }
.tag-count .ic { width: 13px; height: 13px; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.price { font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.price.big { font-size: 1.7rem; }
.card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.specs { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; margin-top: auto; padding-top: 4px; }
.meta .ic { width: 14px; height: 14px; }
.dot { opacity: .6; }
.empty { background: #fff; border: 1px dashed #cfd7df; border-radius: var(--radius); padding: 30px; text-align: center; color: var(--muted); }
.sell-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #102a22; color: #fff; border-radius: 14px; padding: 26px 30px; margin: 36px 0; }
.sell-band h2 { font-size: 1.4rem; }
.sell-band p { margin: 0; opacity: .85; }

/* Listing */
.crumbs { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.list-head p { margin: 0; }
.list-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 120px; }
.f-head { display: flex; justify-content: space-between; }
.filters label { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.filters input, .filters select { font: inherit; font-weight: 400; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 8px; width: 100%; background: #fff; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.show-filters { display: none; }
.sortbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.sortbar a { padding: 5px 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .88rem; }
.sortbar a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.list-layout .grid { grid-template-columns: repeat(3, 1fr); }
.pager { display: flex; justify-content: center; gap: 6px; margin: 24px 0; flex-wrap: wrap; }
.pager a, .pager span { padding: 7px 13px; border-radius: 7px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.pager .on { background: var(--brand); color: #fff; border-color: var(--brand); }
.city-links { margin: 30px 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; }
.city-links h2 { width: 100%; }

/* Ad page */
.item-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; margin-top: 12px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.gallery { background: #111; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.gal-main { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gal-main img { max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.gal-main .noimg { background: #eef2f5; }
.gal-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: #1b1b1b; }
.gal-thumbs button { flex: none; width: 78px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; opacity: .7; }
.gal-thumbs button.on { border-color: var(--accent); opacity: 1; }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.price-row { display: flex; align-items: center; gap: 10px; }
.chip { background: #e8f6ef; color: var(--brand-dark); border-radius: 20px; padding: 2px 10px; font-size: .8rem; font-weight: 600; }
.fav-form { margin-left: auto; }
.fav { display: flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.fav.on { color: var(--danger); border-color: #f2c1bc; }
.fav.on .ic { fill: currentColor; }
.item-title { font-size: 1.35rem; margin: 6px 0; }
.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin: 0; }
.details div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; text-align: right; }
.desc p { margin: 0 0 .8em; overflow-wrap: anywhere; }
.seller { display: flex; flex-direction: column; gap: 10px; }
.seller-head { display: flex; align-items: center; gap: 10px; }
.seller-head small { display: block; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; flex: none; }
.chat-start { display: flex; flex-direction: column; gap: 8px; }
.chat-start textarea, .chat-form textarea { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 9px; resize: vertical; width: 100%; }
.tips h3 { display: flex; align-items: center; gap: 6px; color: var(--brand-dark); }
.tips ul { padding-left: 18px; margin: 0 0 8px; font-size: .9rem; }
.report summary { cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.report form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.report select, .report textarea { font: inherit; border: 1px solid var(--line); border-radius: 7px; padding: 8px; }
.owner-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-top: 12px; }
.owner-bar span { margin-right: auto; font-weight: 600; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form fieldset { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.form legend { font-weight: 700; padding: 0 6px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem; }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; border: 1px solid #cdd5dd; border-radius: 8px; padding: 10px; width: 100%; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus, .filters input:focus, .filters select:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.form label.check input { width: auto; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.req { color: var(--danger); margin-left: 2px; }
.err { color: var(--danger); font-size: .85rem; font-weight: 500; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--danger); }
.hint { color: var(--muted); font-weight: 400; font-size: .83rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #eef2f5; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph:first-child:not(.is-cover):not(.ph-add)::after { content: "Cover"; position: absolute; left: 6px; bottom: 6px; background: var(--brand); color: #fff; font-size: .7rem; padding: 1px 6px; border-radius: 4px; }
.ph-add::after { display: none; }
.ph-add { border: 2px dashed #b9c4ce; display: flex !important; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); background: #fafbfc; font-weight: 500 !important; }
.ph-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ph-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.auth { display: grid; place-items: center; padding: 30px 16px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; width: 100%; max-width: 440px; box-shadow: var(--shadow); }
.auth-card .form fieldset { border: 0; padding: 0; }

/* Plans / payments */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.plan { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.plan-pick { cursor: pointer; position: relative; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick:has(input:checked) { border-color: var(--accent); background: #fffaf0; }
.plan .price { color: var(--brand-dark); }
.pay-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pay-list li { display: grid; grid-template-columns: 130px 1fr; gap: 2px 10px; background: #f7f9fb; border-radius: 8px; padding: 10px; }
.pay-list small { grid-column: 2; color: var(--muted); }
.mini-ad { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; margin-bottom: 12px; }
.mini-ad span { color: var(--muted); }

/* Business packages */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0; }
.pkg { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-weight: 400 !important; }
.pkg ul { margin: 0; padding-left: 18px; font-size: .9rem; color: var(--ink); }
.pkg li { margin-bottom: 3px; }
.pkg-head { display: flex; flex-direction: column; }
.pkg-head strong { font-size: 1.1rem; }
.pkg-head .price { font-size: 1.4rem; color: var(--brand-dark); }
.pkg-head small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.pkg-best { border-color: var(--brand); }
.pkg-ribbon { position: absolute; top: -11px; right: 12px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 10px; }
.pkg .chip { align-self: flex-start; }
.pkg.plan-pick { cursor: pointer; }
.pkg.plan-pick input { position: absolute; opacity: 0; }
.pkg.plan-pick:has(input:checked) { border-color: var(--accent); background: #fffaf0; box-shadow: 0 0 0 2px var(--accent); }
.verified { display: inline-flex; align-items: center; gap: 3px; background: #e6f0ff; color: #1d5fd1; font-size: .75rem; font-weight: 700; padding: 2px 8px 2px 5px; border-radius: 10px; margin-right: 6px; }
.verified .ic { width: 13px; height: 13px; }
.seller-head .verified { margin: 3px 0; }
.verified-line { display: flex; align-items: center; gap: 3px; color: #1d5fd1; font-size: .78rem; font-weight: 700; }
.verified-line .ic { width: 13px; height: 13px; }
.plan-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-size: .92rem; }
.credit-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fffaf0; border: 2px solid var(--accent); border-radius: 12px; padding: 14px; margin: 12px 0 6px; }
.credit-box span { display: block; color: var(--muted); font-size: .88rem; }
.band-btns { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.band-link { color: #cfe9dd; font-size: .9rem; }

/* Payments */
.pay-online { display: flex; gap: 12px; align-items: flex-start; background: #fff7e6; border: 2px solid var(--accent); border-radius: 12px; padding: 14px; }
.pay-online .ic { width: 28px; height: 28px; color: var(--brand); }
.pay-online span { display: block; color: var(--muted); font-size: .9rem; }
.pay-result { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 24px; margin: 24px 0; text-align: center; }
.pay-result.ok { border-color: #b7e2cb; }
.pay-result.ok .ic-xl { color: var(--brand); }
.pay-result.wait { border-color: #f4d9a2; }
.pay-result.fail { border-color: #f2c1bc; }
.pay-result form { display: inline-block; }

/* Profiles and reviews */
.profile-head { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-top: 16px; }
.profile-info { flex: 1; min-width: 0; }
.profile-info h1 { margin-top: 0; }
.avatar-xl { width: 84px; height: 84px; font-size: 2rem; }
.shop-logo { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); }
.shop-about { white-space: pre-line; margin: 8px 0; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.verified-phone { background: #e8f6ef; color: var(--brand-dark); }
.stars { color: #d6dbe0; letter-spacing: 1px; }
.stars .on { color: #f5a524; }
.seller-rating { font-size: .88rem; }
.review-list { display: flex; flex-direction: column; gap: 8px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.review p { width: 100%; margin: 2px 0 0; }
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; }
.star-pick label { font-size: 2rem; color: #d6dbe0; cursor: pointer; font-weight: 400 !important; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: #f5a524; }
.review-form fieldset { max-width: 520px; }
@media (max-width: 640px) { .profile-head { flex-direction: column; align-items: center; text-align: center; } .profile-head .meta, .badges { justify-content: center; } }

/* Alerts */
.save-search { margin-right: auto; }
.save-search .btn { border-radius: 20px; }
.saved-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.saved { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.saved form { margin-left: auto; }
.badge-inline { background: var(--danger); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 10px; padding: 1px 8px; }
.alert-tag { font-size: .75rem; color: var(--muted); }
.alert-tag.new { color: var(--danger); font-weight: 700; }
.mt { margin-top: 24px; }
h1 .ic { width: 26px; height: 26px; vertical-align: -3px; margin-right: 6px; }

/* Banners, inspections, stats */
.banner { position: relative; display: block; margin: 16px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.banner img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; }
.banner-item img { aspect-ratio: 2 / 1; }
.banner-tag { position: absolute; top: 6px; right: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .68rem; padding: 1px 7px; border-radius: 4px; }
.banner-thumb { width: 160px; aspect-ratio: 4 / 1; object-fit: cover; border-radius: 6px; flex: none; }
.tag-insp { position: absolute; bottom: 8px; left: 8px; background: #1d5fd1; color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 8px 2px 5px; border-radius: 5px; display: flex; align-items: center; gap: 3px; }
.tag-insp .ic { width: 13px; height: 13px; }
.inspection h2 { display: flex; align-items: center; gap: 6px; }
.inspection .score { margin-left: auto; background: #1d5fd1; color: #fff; border-radius: 8px; padding: 2px 10px; }
.grade small { display: block; font-weight: 400; color: var(--muted); }
.grade-good { color: var(--brand-dark); } .grade-fair { color: #8a5a00; } .grade-poor { color: var(--danger); } .grade-not { color: var(--muted); }
.check-row { display: grid; grid-template-columns: 200px 140px 1fr; gap: 8px; align-items: center; }
.check-row select, .check-row input { font: inherit; border: 1px solid #cdd5dd; border-radius: 8px; padding: 8px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.bar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.bar-track { height: 14px; }
.bar-fill { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; min-width: 2px; }
.bar-row:hover .bar-fill { background: var(--brand-dark); }
.bar-val { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 3ch; text-align: right; }
@media (max-width: 800px) { .stats-grid { grid-template-columns: 1fr; } .check-row { grid-template-columns: 1fr 1fr; } .check-row input { grid-column: 1 / -1; } }

.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Urdu (right-to-left) */
.lang-switch { font-weight: 700; }
[dir="rtl"] body, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea, [dir="rtl"] button { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; }
[dir="rtl"] body { line-height: 1.9; }
[dir="rtl"] .top-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .badge { left: auto; right: 20px; }
[dir="rtl"] .fav-form, [dir="rtl"] .tabs-logout, [dir="rtl"] .saved form { margin-left: 0; margin-right: auto; }
[dir="rtl"] .owner-bar span, [dir="rtl"] .save-search { margin-right: 0; margin-left: auto; }
[dir="rtl"] .tag-feat, [dir="rtl"] .tag-insp { left: auto; right: 8px; }
[dir="rtl"] .tag-sold, [dir="rtl"] .tag-count { right: auto; left: 8px; }
[dir="rtl"] .fab { right: auto; left: 16px; }
[dir="rtl"] .details dd { text-align: left; }
[dir="rtl"] .tips ul, [dir="rtl"] .prose ul, [dir="rtl"] .pkg ul { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .price, [dir="rtl"] input[type="tel"], [dir="rtl"] input[inputmode="numeric"] { direction: ltr; unicode-bidi: plaintext; text-align: right; }

.danger-zone { border-color: #f2c1bc !important; }

/* Account */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; align-items: center; }
.tabs a { padding: 10px 14px; color: var(--ink); border-bottom: 3px solid transparent; font-weight: 500; white-space: nowrap; }
.tabs a.on { border-color: var(--brand); color: var(--brand); }
.tabs-logout { margin-left: auto; }
.subtabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.subtabs a { padding: 5px 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .88rem; }
.subtabs a.on { background: var(--ink); color: #fff; }
.my-list, .admin-list { display: flex; flex-direction: column; gap: 10px; }
.my-row, .admin-row { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.my-img { width: 110px; height: 82px; border-radius: 8px; overflow: hidden; background: #eef2f5; display: grid; place-items: center; color: #aab5c0; flex: none; }
.my-img img { width: 100%; height: 100%; object-fit: cover; }
.my-info { flex: 1; min-width: 0; }
.my-info strong { color: var(--ink); }
.my-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 380px; }
.st { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 5px; background: #eef2f5; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; text-transform: capitalize; }
.st .ic { width: 12px; height: 12px; }
.st-active { background: #e8f6ef; color: var(--brand-dark); }
.st-pending { background: #fff4de; color: #8a5a00; }
.st-rejected, .st-removed { background: #fdeeee; color: var(--danger); }
.st-sold { background: #e9eef3; color: #34495e; }
.st-feat { background: #fff1cc; color: #7a5300; }
.threads { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.thread { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); align-items: flex-start; }
.thread:hover { background: #f9fbfc; text-decoration: none; }
.thread > div { flex: 1; min-width: 0; }
.thread p { margin: 2px 0 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread.unread p { color: var(--ink); font-weight: 600; }
.thread.unread .avatar { background: var(--accent); color: #1c1400; }
.chat-ad a { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--ink); }
.chat-ad img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.chat-ad small { display: block; color: var(--muted); }
.chat { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; max-height: 60vh; overflow-y: auto; padding: 4px; }
.msg { max-width: 78%; background: #fff; border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; padding: 8px 12px; align-self: flex-start; }
.msg.me { align-self: flex-end; background: #dff5ea; border-color: #c3e8d4; border-radius: 12px 12px 3px 12px; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg small { color: var(--muted); font-size: .72rem; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; }

/* Admin */
.admin-head { display: flex; justify-content: space-between; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); display: flex; flex-direction: column; }
.stat:hover { text-decoration: none; border-color: var(--brand); }
.stat strong { font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: .88rem; }
.stat-warn { border-color: var(--accent); background: #fffaf0; }
.admin-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.admin-filter input, .admin-filter select, .inline-reason input, .inline-reason select { font: inherit; border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; }
.inline-reason { display: flex; gap: 4px; }
.inline-reason input { width: 110px; }

/* Info pages */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 26px 20px; margin: 20px auto; }
.prose h2 { margin-top: 1.2em; }
.prose li { margin-bottom: 4px; }
.center-page { text-align: center; padding: 60px 16px; }
.big-code { font-size: 4rem; font-weight: 800; color: #cfd7df; }
.adslot { margin: 20px 0; min-height: 90px; text-align: center; }

/* Footer */
.foot { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0 80px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; }
.foot-grid div { display: flex; flex-direction: column; gap: 5px; }
.foot-grid a { color: var(--muted); }
.foot-grid p { color: var(--muted); margin: 4px 0; }
.foot-bottom { margin-top: 20px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.fab { display: none; }

/* Tablet */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .list-layout { grid-template-columns: 1fr; }
  .list-layout .grid { grid-template-columns: repeat(3, 1fr); }
  .filters-panel { display: none; }
  .filters-panel.open { display: block; }
  .filters { position: static; margin-bottom: 14px; }
  .show-filters { display: inline-flex; }
  .item-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hero-search input { grid-column: 1 / -1; }
  .hero-search .btn { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  h1 { font-size: 1.35rem; }
  .top-row { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  .top-search { order: 3; flex-basis: 100%; max-width: none; }
  .top-search .btn { display: none; }
  .nav-ic .lbl { display: none; }
  .top-nav .btn-sell { display: none; }
  .logo { font-size: 1.05rem; }
  .cats a { padding: 8px 10px; font-size: .9rem; }
  .hero { padding: 24px 0 40px; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: .95rem; }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-tiles-2 { grid-template-columns: repeat(2, 1fr); }
  .cat-tiles:not(.cat-tiles-2) .cat-ic { width: 44px; height: 44px; }
  .cat-tiles:not(.cat-tiles-2) .cat-tile { padding: 10px 4px; font-size: .88rem; }
  .cat-tile { padding: 12px; }
  .cat-tile small { font-size: .78rem; }
  .grid, .list-layout .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 8px 9px 10px; }
  .price { font-size: 1rem; }
  .card-title { font-size: .9rem; }
  .specs { font-size: .78rem; }
  .card .meta { flex-wrap: nowrap; }
  .card .meta span:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .card .meta .dot, .card .meta span:last-child { display: none; }
  .sell-band { flex-direction: column; align-items: flex-start; padding: 20px; }
  .details { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .plans, .pkgs { grid-template-columns: 1fr; }
  .credit-box { flex-direction: column; align-items: stretch; }
  .band-btns { align-items: flex-start; }
  .my-row, .admin-row { flex-wrap: wrap; }
  .my-img { width: 84px; height: 64px; }
  .my-actions { max-width: none; width: 100%; justify-content: flex-start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .fab { display: flex; align-items: center; gap: 4px; position: fixed; right: 16px; bottom: 16px; z-index: 30; background: var(--accent); color: #1c1400; font-weight: 700; padding: 12px 18px; border-radius: 30px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); text-decoration: none !important; }
  .page-post .fab, .admin .fab { display: none; }
  .pay-list li { grid-template-columns: 1fr; }
  .pay-list small { grid-column: 1; }
  .prose { padding: 6px 16px 16px; }
}

/* Automatic install bar on mobile */
.install-bar{position:fixed;left:10px;right:10px;bottom:10px;z-index:60;display:flex;align-items:center;gap:10px;padding:10px 10px 10px 12px;background:#fff;color:#1a1f1c;border:1px solid #d9e4de;border-radius:14px;box-shadow:0 8px 28px rgba(0,0,0,.18);transform:translateY(140%);transition:transform .3s ease}
.install-bar.show{transform:none}
.install-bar img{border-radius:10px;flex:none}
.install-txt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.install-txt strong{font-size:15px}
.install-txt span{font-size:12.5px;color:#5b6660}
.install-go{flex:none;padding:8px 16px}
.install-x{flex:none;background:none;border:0;font-size:24px;line-height:1;color:#7a857f;padding:4px 6px;cursor:pointer}
[dir=rtl] .install-bar{padding:10px 12px 10px 10px}
@media (min-width:821px){.install-bar{left:auto;right:18px;bottom:18px;max-width:420px}}

/* Mobile bottom menu */
.bnav { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .fab { display: none !important; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .bnav a { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; }
  .bnav a svg { width: 22px; height: 22px; }
  .bnav a.on { color: var(--brand); }
  .bnav .badge { position: absolute; top: 4px; left: 50%; margin-left: 4px; }
  .bnav-sell .bnav-plus { width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: var(--accent); color: #1c1400; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.25); border: 4px solid #fff; }
  .bnav-sell .bnav-plus svg { width: 24px; height: 24px; stroke-width: 2.6; }
  .bnav-sell { color: var(--ink) !important; }
  .admin .bnav { display: none; }
  .admin { padding-bottom: 0; }
  .install-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
/* Share box on ad pages */
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-row .btn { flex: 1; justify-content: center; }
.btn-wa-line { background: #fff; color: var(--wa); border: 1.5px solid var(--wa); }
.btn-wa-line:hover { background: #effaf3; }
.share h3 { margin: 0 0 4px; font-size: 1rem; }
.share p { margin: 0 0 10px; }
/* Near me */
.near-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; font-size: .95rem; }
.near-bar form { display: flex; gap: 6px; align-items: center; }
.near-bar select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.cat-tile small.first { color: var(--brand); font-weight: 600; }
/* Sell page: camera + gallery tiles */
.ph-cam { border-style: solid !important; }
.otp-alt { text-align: center; margin: 14px 0 0; }
@media (min-width: 641px) { .ph-add.ph-cam { display: none !important; } }
.forgot-link { margin: -6px 0 12px; text-align: right; font-size: .9rem; }
[dir=rtl] .forgot-link { text-align: left; }

/* Category colours */
.cat-cars { --cb: #e6f0ff; --cc: #1d5fd1; }
.cat-property { --cb: #e8f6ef; --cc: var(--brand); }
.cat-mobiles { --cb: #fff1e0; --cc: #c26a00; }
.cat-electronics { --cb: #f1eaff; --cc: #6b3fd4; }
.cat-bikes { --cb: #ffe9e6; --cc: #c2410c; }
.cat-solar { --cb: #fff8d6; --cc: #a16207; }
.cat-furniture { --cb: #f3ede6; --cc: #7c4a1e; }
.cat-animals { --cb: #eaf6e3; --cc: #3f7d20; }
.cat-jobs { --cb: #e6f4f8; --cc: #0e7490; }
.cat-fashion { --cb: #fde8f1; --cc: #be185d; }
.cat-kids { --cb: #e0f2fe; --cc: #0369a1; }
.cat-services { --cb: #eef2f6; --cc: #334155; }
.cat-equipment { --cb: #fff1e6; --cc: #c2410c; }
.cat-agriculture { --cb: #edf7e1; --cc: #4d7c0f; }
.cat-autoparts { --cb: #eceff3; --cc: #1f2937; }
.cat-construction { --cb: #fdece6; --cc: #9a3412; }

/* Home category grid: one panel, big coloured icons */
.cat-tiles:not(.cat-tiles-2) { grid-template-columns: repeat(8, 1fr); gap: 6px 4px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 12px 12px; box-shadow: 0 6px 24px rgba(16, 24, 40, .08); }
.cat-tiles:not(.cat-tiles-2) .cat-tile { background: none; border: 0; box-shadow: none; padding: 8px 4px; gap: 3px; border-radius: 12px; }
.cat-tiles:not(.cat-tiles-2) .cat-tile:hover { background: #f6f8fa; transform: none; }
.cat-tiles:not(.cat-tiles-2) .cat-tile:hover .cat-ic { transform: translateY(-3px) scale(1.04); }
.cat-tiles:not(.cat-tiles-2) .cat-ic { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 6px; transition: transform .15s; }
.cat-tiles:not(.cat-tiles-2) .cat-ic svg { width: 32px; height: 32px; stroke-width: 1.9; }
.cat-tiles:not(.cat-tiles-2) .cat-tile strong { font-size: .86rem; line-height: 1.2; min-height: 2.4em; display: flex; align-items: flex-start; justify-content: center; }
.cat-tiles:not(.cat-tiles-2) .cat-tile small { font-size: .72rem; line-height: 1.2; }
.cat-tiles:not(.cat-tiles-2) .cat-tile small.first { color: var(--brand); }
.cat-ic { background: linear-gradient(145deg, #fff 0%, var(--cb, #eef2f6) 55%); color: var(--cc, var(--ink)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04), 0 3px 8px rgba(16,24,40,.08); }
@media (max-width: 980px) { .cat-tiles:not(.cat-tiles-2) { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 640px) {
  .cat-tiles:not(.cat-tiles-2) { grid-template-columns: repeat(4, 1fr); padding: 14px 6px 8px; gap: 2px; border-radius: 14px; }
  .cat-tiles:not(.cat-tiles-2) .cat-ic { width: 54px; height: 54px; border-radius: 17px; }
  .cat-tiles:not(.cat-tiles-2) .cat-ic svg { width: 27px; height: 27px; }
  .cat-tiles:not(.cat-tiles-2) .cat-tile { padding: 6px 2px; }
  .cat-tiles:not(.cat-tiles-2) .cat-tile strong { font-size: .76rem; }
  .cat-tiles:not(.cat-tiles-2) .cat-tile small { font-size: .66rem; }
}
/* v13: placeholders, gallery, lightbox, sticky contact, chips, suggestions, drafts, reminders */
.noimg { background: linear-gradient(145deg, #fff 0%, var(--cb, #eef2f5) 70%); color: var(--cc, #aab5c0); flex-direction: column; gap: 4px; }
.noimg .ic-lg { width: 44px; height: 44px; opacity: .85; }
.noimg small { font-size: .78rem; font-weight: 600; opacity: .8; }
.gal-main .noimg { background: linear-gradient(145deg, #fff 0%, var(--cb, #eef2f5) 70%); }
.gal-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; cursor: zoom-in; }
.gal-count { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; padding: 3px 9px; border-radius: 20px; pointer-events: none; }
.gal-zoom { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 18px; cursor: pointer; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #111; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.gal-prev { left: 10px; } .gal-next { right: 10px; }
@media (hover: none) { .gal-nav { display: none; } }
.gallery .tag-feat { z-index: 2; }
.lb { position: fixed; inset: 0; z-index: 100; background: #000; }
.lb-open { overflow: hidden; }
.lb-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track.locked { overflow: hidden; }
.lb-slide { flex: 0 0 100%; height: 100%; display: flex; overflow: hidden; scroll-snap-align: center; touch-action: pan-x pan-y; }
.lb-slide.zoomed { overflow: auto; touch-action: pan-x pan-y; }
.lb-slide img { margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; }
.lb-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; z-index: 2; }
.lb-count { position: absolute; top: calc(20px + env(safe-area-inset-top)); left: 16px; color: #fff; font-size: .9rem; z-index: 2; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 32px; cursor: pointer; z-index: 2; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
@media (hover: none) { .lb-nav { display: none; } }
.lb-hint { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.6); font-size: .8rem; pointer-events: none; }
/* Sticky Call / WhatsApp / Chat bar on phones (ad page) */
.sticky-contact { display: none; }
@media (max-width: 640px) {
  .sticky-contact { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .sticky-contact .btn { flex: 1; padding: 12px 8px; font-size: .95rem; }
  .has-sticky .bnav { display: none; }
  .has-sticky .install-bar { bottom: calc(74px + env(safe-area-inset-bottom)); }
}
.still-ok { margin-top: 8px; font-size: .85rem; color: var(--brand); display: flex; align-items: center; gap: 5px; }
.still-ok .ic { width: 16px; height: 16px; }
/* Sort chips */
.sortbar { align-items: center; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chips a, .near-chip { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 13px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .88rem; white-space: nowrap; }
.chips a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips .ic { width: 15px; height: 15px; }
.near-chip { padding: 0 4px 0 12px; }
.near-chip select { border: 0; background: transparent; font: inherit; font-size: .88rem; padding: 6px 4px; color: var(--ink); cursor: pointer; }
/* Search suggestions */
.has-sugg { position: relative; }
.sugg { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(16,24,40,.18); z-index: 70; overflow: hidden; text-align: start; max-height: 60vh; overflow-y: auto; }
.sugg-head { display: flex; justify-content: space-between; padding: 8px 12px 4px; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.sugg-head .linkbtn { font-size: .8rem; text-transform: none; }
.sugg-it { display: block; padding: 10px 12px 10px 36px; color: var(--ink); font-size: .95rem; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg-it:hover, .sugg-it.on { background: #f1f6f3; text-decoration: none; }
.sugg-it::before { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; text-align: center; color: var(--muted); font-size: .9rem; }
.sugg-q::before { content: "\2315"; } .sugg-recent::before { content: "\21BA"; } .sugg-cat::before { content: "\25A6"; color: var(--brand); } .sugg-ad::before { content: "\2197"; }
.sugg-cat { color: var(--brand); font-weight: 600; }
[dir=rtl] .sugg-it { padding: 10px 36px 10px 12px; } [dir=rtl] .sugg-it::before { left: auto; right: 12px; }
/* First-ad tips + draft note */
.first-tips { display: flex; gap: 12px; background: #fffbea; border: 1px solid #f5dfa0; border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; }
.first-tips > .ic { flex: none; color: #b7791f; width: 22px; height: 22px; margin-top: 2px; }
.first-tips ul { margin: 6px 0 0; padding-inline-start: 18px; font-size: .92rem; }
.first-tips li { margin: 3px 0; }
.draft-note { background: #e8f6ef; border: 1px solid #b9e2cd; color: var(--brand-dark); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 14px; font-size: .93rem; }
.draft-note[hidden] { display: none; }
/* "Still available?" reminder */
.still-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff8e6; border: 1px solid #f5dfa0; border-radius: var(--radius); padding: 10px 14px; margin: 12px 0 0; }
.still-bar > .ic { color: #b7791f; flex: none; }
.still-bar > div:first-of-type { flex: 1; min-width: 200px; }
.still-bar a { font-weight: 600; }
.still-bar small { display: block; color: var(--muted); }
.still-btns { display: flex; gap: 8px; }
.still-row { margin-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; color: #8a5a00; }
.hero .sugg { z-index: 10; }
/* v14: voice search, quick replies, push box, price drops, photo warnings, share picture, invite, poster */
.mic { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--brand); display: grid; place-items: center; cursor: pointer; padding: 0; }
.mic svg { width: 21px; height: 21px; }
.mic.on { background: #e11d48; color: #fff; animation: micpulse 1.2s infinite; }
@keyframes micpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(225,29,72,.45); } 50% { box-shadow: 0 0 0 8px rgba(225,29,72,0); } }
.hero-search .mic { align-self: center; }
@media (min-width: 981px) { .hero-search { grid-template-columns: 170px 170px 1fr auto auto; } }
@media (max-width: 980px) { .hero-search .mic { display: none; } }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.chip-btn { border: 1px solid #b9e2cd; background: #f1faf5; color: var(--brand-dark); border-radius: 18px; padding: 6px 11px; font: inherit; font-size: .85rem; cursor: pointer; }
.chip-btn:hover { background: #e2f4ea; }
.push-box { display: flex; align-items: center; gap: 12px; background: #eef6ff; border: 1px solid #c8defa; border-radius: var(--radius); padding: 10px 12px; margin: 10px 0 14px; position: relative; }
.push-box[hidden] { display: none; }
.push-box > .ic { color: #1d5fd1; flex: none; }
.push-box > div { flex: 1; } .push-box small { display: block; color: var(--muted); }
.push-x { border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; padding: 0 4px; }
.tag-drop { position: absolute; left: 8px; bottom: 8px; background: #e11d48; color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.chip-drop { background: #ffe4e6; color: #be123c; border-color: #fecdd3; text-decoration: none; }
.ph-warn { position: absolute; left: 4px; right: 4px; bottom: 4px; background: rgba(180, 83, 9, .92); color: #fff; font-size: .72rem; font-weight: 600; text-align: center; border-radius: 5px; padding: 2px 4px; }
.photo-tip { background: #fff8e6; border: 1px solid #f5dfa0; color: #8a5a00; border-radius: 8px; padding: 8px 10px; font-size: .88rem; margin: 8px 0 0; }
.photo-tip[hidden], .price-guide[hidden] { display: none; }
.price-guide { display: block; margin-top: 4px; color: var(--brand-dark); background: #e8f6ef; border-radius: 6px; padding: 5px 8px; font-size: .85rem; }
.btn-pic { margin-top: 8px; background: #fff; color: var(--ink); border: 1.5px dashed var(--brand); }
.btn-pic:hover { background: #f1faf5; }
.grow-links { display: flex; gap: 8px 18px; flex-wrap: wrap; margin: 10px 0; font-size: .92rem; }
.grow-links a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.grow-links .ic { width: 17px; height: 17px; }
.invite-box input { font-weight: 600; }
.invite-box .share-row { margin-top: 10px; }
.invite-progress .steps { display: flex; gap: 10px; margin-bottom: 8px; }
.invite-progress .step { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #eef2f5; font-weight: 700; color: var(--muted); }
.invite-progress .step.done { background: var(--brand); color: #fff; }
/* Printable QR poster */
.poster-page { background: #e9eef1; padding: 16px; }
.poster-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; max-width: 794px; margin: 0 auto 14px; }
.poster { background: #fff; max-width: 794px; aspect-ratio: 210 / 297; margin: 0 auto; border-radius: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.12); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 40px 0; overflow: hidden; }
.poster-top { display: flex; align-items: center; gap: 10px; font-size: 2rem; font-weight: 800; }
.poster-top .logo-mark { width: 52px; height: 52px; font-size: 1.8rem; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.poster h1 { font-size: 2.6rem; margin: 26px 0 6px; line-height: 1.15; }
.poster-sub { font-size: 1.35rem; color: var(--muted); margin: 0 0 18px; }
.poster-qr { width: 58%; max-width: 420px; border: 6px solid var(--brand); border-radius: 18px; padding: 10px; }
.poster-qr svg { width: 100%; height: auto; display: block; }
.poster-scan { font-size: 1.4rem; font-weight: 700; margin: 16px 0 2px; }
.poster-url { font-size: 1.05rem; color: var(--brand); margin: 0; word-break: break-all; }
.poster-phone { font-size: 1.3rem; font-weight: 600; margin: 14px 0 0; display: flex; align-items: center; gap: 6px; }
.poster-foot { margin-top: auto; width: calc(100% + 80px); background: var(--brand); color: #fff; padding: 20px; font-size: 1.1rem; }
@media print {
  @page { size: A4; margin: 0; }
  .poster-page { background: #fff; padding: 0; }
  .poster-tools, .install-bar, .bnav { display: none !important; }
  .poster { box-shadow: none; border-radius: 0; max-width: none; width: 210mm; height: 297mm; aspect-ratio: auto; }
  .poster-foot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .poster-top .logo-mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.invite-box label { display: block; font-size: .9rem; color: var(--muted); }
.invite-box input { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1.5px solid var(--brand); border-radius: 8px; font: inherit; font-weight: 600; color: var(--ink); background: #f7fbf9; }
.poster-qr { width: 66%; max-width: 520px; }
.poster h1 { font-size: 3rem; }
.poster-scan { font-size: 1.6rem; }
/* v15: OLX-style header, promo slider, category grid */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.top-bar { background: #eaf4ef; }
.top-bar .top-row { height: 64px; gap: 18px; }
.quick-links { display: flex; align-items: stretch; gap: 4px; align-self: stretch; }
.quick-links a { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--ink); font-weight: 700; border-radius: 12px 12px 0 0; margin-top: 10px; }
.quick-links a:hover { text-decoration: none; background: rgba(255,255,255,.6); }
.quick-links a.on { background: #fff; }
.quick-links svg { flex: none; }
.nav-login { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; padding: 8px 6px; }
.btn-sell { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; letter-spacing: .03em; color: #1c1400; background: #fff; padding: 9px 22px; border-radius: 30px; border: 4px solid transparent; background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, var(--accent), #0e8a63 55%, #1d5fd1); background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.btn-sell:hover { text-decoration: none; background-image: linear-gradient(#fff8e8, #fff8e8), linear-gradient(90deg, var(--accent), #0e8a63 55%, #1d5fd1); }
.btn-sell .ic { width: 18px; height: 18px; stroke-width: 2.8; }
.search-row { padding-top: 14px; padding-bottom: 12px; }
.top-search { max-width: none; display: grid; grid-template-columns: minmax(200px, 360px) 1fr auto; gap: 14px; border: 0; padding: 0; background: none; }
.top-search .loc { display: flex; align-items: center; gap: 8px; border: 1.5px solid #9aa6b2; border-radius: 6px; padding: 0 12px; background: #fff; height: 48px; margin: 0; }
.top-search .loc .ic { color: #1d5fd1; flex: none; }
.top-search .loc select { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-weight: 500; color: var(--ink); height: 100%; min-width: 0; cursor: pointer; }
.top-search .q-box { display: flex; align-items: center; border: 1.5px solid #9aa6b2; border-right: 0; border-radius: 6px 0 0 6px; background: #fff; height: 48px; padding: 0 6px 0 12px; min-width: 0; }
.top-search .q-box:focus-within, .top-search .loc:focus-within { border-color: var(--brand); }
.top-search .q-box input { flex: 1; border: 0; outline: 0; font: inherit; min-width: 0; background: transparent; padding: 0; height: 100%; }
.top-search > .btn { height: 48px; margin-left: -14px; border-radius: 0 6px 6px 0; padding: 0 20px; background: #06362a; font-weight: 700; }
.top-search > .btn:hover { background: #042a20; }
.top-search > .btn .ic { width: 20px; height: 20px; }
.top-search .sugg { top: 100%; left: 0; right: 0; }
.cats { gap: 2px; align-items: center; padding-bottom: 4px; }
.cats > a { font-weight: 500; padding: 8px 12px; border-bottom: 0; color: #334155; }
.cats > a.on { color: var(--brand); font-weight: 700; }
.all-cats { position: relative; flex: none; }
.all-cats summary { list-style: none; cursor: pointer; font-weight: 800; padding: 8px 12px 8px 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.all-cats summary::-webkit-details-marker { display: none; }
.all-cats summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: 4px; }
.all-cats[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.all-cats-panel { position: absolute; top: 100%; left: 0; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(16,24,40,.18); padding: 10px; display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 2px; min-width: 470px; }
.all-cats-panel a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.all-cats-panel a:hover { background: #f1f6f3; text-decoration: none; }
[dir=rtl] .all-cats-panel { left: auto; right: 0; }
/* Promo slider */
.promo { position: relative; margin: 14px 0 26px; }
.promo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; }
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide { flex: 0 0 100%; scroll-snap-align: start; min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 44px; color: #fff; position: relative; overflow: hidden; }
.promo-slide:hover { text-decoration: none; }
.promo-slide::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 2px, transparent 2px); background-size: 26px 26px; }
.promo-slide > * { position: relative; }
.s-sell { background: linear-gradient(120deg, #07513a, #0b6e4f 45%, #16a176); }
.s-invite { background: linear-gradient(120deg, #7c2d12, #c2410c 50%, #f59e0b); }
.s-dealer { background: linear-gradient(120deg, #1e3a8a, #1d4ed8 50%, #0891b2); }
.s-voice { background: linear-gradient(120deg, #4c1d95, #7c3aed 50%, #db2777); }
.promo-txt { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.promo-txt strong { font-size: 2rem; line-height: 1.15; font-weight: 800; }
.promo-txt span { font-size: 1.05rem; opacity: .92; }
.promo-txt em { font-style: normal; font-weight: 800; background: #fff; color: #16202a; align-self: flex-start; padding: 9px 20px; border-radius: 30px; margin-top: 6px; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.promo-art { display: flex; gap: 14px; flex: none; }
.promo-art svg { background: rgba(255,255,255,.92); border-radius: 22px; padding: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.promo-art svg:nth-child(2) { transform: translateY(-14px) rotate(-4deg); }
.promo-art svg:nth-child(3) { transform: rotate(5deg); }
.promo-paid { padding: 0; min-height: 0; background: #f2f4f5; }
.promo-paid::before { display: none; }
.promo-paid .banner { display: block; width: 100%; margin: 0; }
.promo-paid .banner img { width: 100%; display: block; }
.promo-dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
.promo-dots button { width: 8px; height: 8px; border-radius: 8px; border: 0; background: #cbd5e1; padding: 0; cursor: pointer; transition: width .2s; }
.promo-dots button.on { width: 22px; background: var(--brand); }
/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 22px 12px; margin: 10px 0 30px; }
.cg { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink); text-align: center; }
.cg:hover { text-decoration: none; }
.cg-ic { width: 92px; height: 92px; border-radius: 10px; background: #f2f4f5; display: grid; place-items: center; transition: transform .15s, background .15s; }
.cg:hover .cg-ic { transform: translateY(-3px); background: #e9eef1; }
.cg strong { font-size: .95rem; font-weight: 700; line-height: 1.25; }
.cat-ic-art { background: #f2f4f5 !important; box-shadow: none !important; }
@media (max-width: 980px) {
  .quick-links a span { display: none; }
  .quick-links a { padding: 0 10px; }
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .promo-art svg { width: 80px; height: 80px; }
  .promo-txt strong { font-size: 1.6rem; }
}
@media (max-width: 640px) {
  .top-bar .top-row { height: 54px; gap: 8px; flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
  .quick-links { display: none; }
  .top-nav .btn-sell { display: none; }
  .top-nav .nav-ic[href="/alerts"], .top-nav .nav-ic[href="/favourites"] { display: none; }
  .search-row { padding-top: 10px; padding-bottom: 8px; }
  .top-search { grid-template-columns: 1fr auto; gap: 8px 0; }
  .top-search .loc { grid-column: 1 / -1; height: 38px; border: 0; padding: 0 2px; background: none; }
  .top-search .loc select { font-weight: 700; }
  .top-search .q-box { height: 44px; }
  .top-search > .btn { height: 44px; margin-left: 0; padding: 0 14px; display: inline-flex; }
  .top-search > .btn span { display: none; }
  .cats > a { font-size: .88rem; padding: 7px 9px; }
  .all-cats-panel { position: fixed; left: 10px; right: 10px; top: auto; min-width: 0; grid-template-columns: 1fr 1fr; max-height: 60vh; overflow: auto; }
  .promo { margin: 8px 0 18px; }
  .promo-slide { min-height: 150px; padding: 18px 18px; }
  .promo-txt strong { font-size: 1.2rem; }
  .promo-txt span { font-size: .85rem; }
  .promo-txt em { font-size: .85rem; padding: 7px 14px; }
  .promo-art svg { width: 58px; height: 58px; border-radius: 14px; padding: 6px; }
  .promo-art svg:nth-child(n+2) { display: none; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 16px 6px; }
  .cg-ic { width: 70px; height: 70px; }
  .cg-ic svg { width: 48px; height: 48px; }
  .cg strong { font-size: .8rem; }
}
.top { position: static; }
.cats-row { display: flex; align-items: center; gap: 4px; }
.cats-row .cats { flex: 1; min-width: 0; padding-bottom: 0; }
.top-search > .btn .ic { color: #fff; }
.page-home { background: #fff; }
[dir=rtl] .top-search .q-box { border-right: 1.5px solid #9aa6b2; border-left: 0; border-radius: 0 6px 6px 0; padding: 0 12px 0 6px; }
[dir=rtl] .top-search > .btn { margin-left: 0; margin-right: -14px; border-radius: 6px 0 0 6px; }
[dir=rtl] .all-cats summary { padding: 8px 0 8px 12px; }
@media (max-width: 640px) { [dir=rtl] .top-search > .btn { margin-right: 0; } .all-cats summary { font-size: .92rem; } }
/* v16: login popup + login page choices */
.login-modal { border: 0; border-radius: 14px; padding: 34px 28px 26px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(0,0,0,.3); color: var(--ink); position: relative; }
.login-modal::backdrop { background: rgba(15, 23, 20, .55); }
.lm-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: #0f2d24; padding: 4px 8px; }
[dir=rtl] .lm-x { right: auto; left: 12px; }
.lm-logo { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 1.5rem; margin-bottom: 14px; }
.lm-logo .logo-mark { width: 40px; height: 40px; font-size: 1.3rem; }
.login-modal h2, .auth-choose h1 { text-align: center; font-size: 1.35rem; margin: 0 0 22px; color: #0f2d24; }
.login-choices { display: flex; flex-direction: column; gap: 12px; }
.lc-btn { display: flex; align-items: center; justify-content: center; gap: 12px; border: 1.5px solid #0f2d24; border-radius: 6px; padding: 13px 16px; color: #0f2d24; font-weight: 700; background: #fff; }
.lc-btn:hover { text-decoration: none; background: #f1f6f3; }
.lc-btn .ic { width: 20px; height: 20px; }
.lc-or { text-align: center; color: var(--muted); font-size: .9rem; margin: 4px 0; }
.lc-new { text-align: center; margin: 12px 0 0; font-weight: 600; }
.lc-new a { color: #1d5fd1; }
.auth-choose { max-width: 440px; }
.auth-back { display: inline-block; margin-bottom: 10px; font-weight: 600; font-size: .92rem; }
.auth-card .login-choices { margin: 6px 0 16px; }
.list-layout > * { min-width: 0; }
.sortbar { min-width: 0; }
/* v17: OLX-style ad page */
.page-item { background: #fff; }
.item-page .item-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; }
.item-page .gallery { border-radius: 6px; }
.item-page .gal-main { aspect-ratio: 16 / 10; background: #000; }
.ip-head { padding: 22px 0 6px; }
.ip-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ip-price { font-size: 2.3rem; font-weight: 800; color: #0f2d24; letter-spacing: -.5px; line-height: 1.1; }
.ip-acts, .ip-st-acts { display: flex; align-items: center; gap: 6px; }
.ip-acts .fav-form, .ip-st-acts .fav-form { margin: 0; }
.ip-ic { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: #0f2d24; padding: 0; }
.ip-ic:hover { background: #f1f4f3; }
.ip-ic .ic { width: 23px; height: 23px; }
.ip-ic.on { color: var(--danger); }
.ip-ic.on .ic { fill: currentColor; }
.ip-chips { display: flex; gap: 6px; margin: 6px 0 0; }
.ip-title { font-size: 1.3rem; font-weight: 700; margin: 8px 0 10px; color: #0f2d24; }
.ip-loc { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #475569; font-size: .95rem; }
.ip-loc span:first-child { display: flex; align-items: center; gap: 4px; }
.ip-loc .ic { width: 18px; height: 18px; color: #1d5fd1; }
.ip-ago { white-space: nowrap; }
.ip-sec { padding: 18px 0 8px; scroll-margin-top: 180px; }
.ip-sec h2 { font-size: 1.45rem; font-weight: 800; margin: 0 0 14px; color: #0f2d24; }
.ip-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.ip-kv-row { display: grid; grid-template-columns: 42% 1fr; background: #f7f8f8; color: var(--ink); font-size: .95rem; }
.ip-kv-row span { padding: 10px 12px; color: #475569; }
.ip-kv-row b { padding: 10px 12px; font-weight: 700; background: #fbfbfb; }
.ip-kv-row b i { font-style: normal; font-weight: 700; }
a.ip-kv-row:hover { text-decoration: none; background: #eef4f1; }
.item-page .desc { font-size: 1rem; line-height: 1.6; color: #1f2937; }
.item-page .inspection { margin-top: 14px; }
/* right column */
.ip-seller { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.ip-seller-head { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.ip-seller-head:hover { text-decoration: none; }
.ip-seller-head small { display: block; color: #475569; font-size: .82rem; }
.ip-seller-head strong { display: block; font-size: 1.05rem; }
.ip-seller-sub { display: block; font-size: .8rem; color: var(--muted); }
.ip-see { margin-left: auto; font-weight: 700; color: #1d5fd1; font-size: .88rem; white-space: nowrap; }
[dir=rtl] .ip-see { margin-left: 0; margin-right: auto; }
.ip-av { width: 56px; height: 56px; border-radius: 50%; background: #0f2d24; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; flex: none; object-fit: cover; }
.ip-badges { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ip-badges:empty { display: none; }
.ip-btn-dark { background: #0f2d24; color: #fff; padding: 13px; font-size: 1rem; }
.ip-btn-dark:hover { background: #06201a; }
.ip-btn-line { background: #fff; color: #0f2d24; border: 1.5px solid #0f2d24; padding: 12px; font-size: 1rem; list-style: none; }
.ip-btn-line:hover { background: #f1f6f3; }
.ip-btn-wa .ic { color: #25d366; }
.ip-chat summary { list-style: none; cursor: pointer; }
.ip-chat summary::-webkit-details-marker { display: none; }
.ip-chat[open] summary { margin-bottom: 10px; }
.ip-chat .chat-start { display: flex; flex-direction: column; gap: 8px; }
.ip-idrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; color: #475569; font-size: .9rem; flex-wrap: wrap; }
.ip-report summary { list-style: none; cursor: pointer; font-weight: 700; color: #0f2d24; display: flex; align-items: center; gap: 5px; }
.ip-report summary::-webkit-details-marker { display: none; }
.ip-report[open] { flex-basis: 100%; }
.ip-report form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ip-share { margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; transition: box-shadow .3s; }
.ip-share.flash-hl { box-shadow: 0 0 0 3px var(--accent); }
.item-page .item-side .banner { margin-top: 16px; }
/* related carousel + safety */
.ip-lower { margin-top: 0; }
.ip-carousel { position: relative; }
.ip-car-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; direction: ltr; }
.ip-car-track::-webkit-scrollbar { display: none; }
.ip-car-track .card { flex: 0 0 calc((100% - 28px) / 3); scroll-snap-align: start; direction: initial; }
[dir=rtl] .ip-car-track .card { direction: rtl; }
.ip-car-nav { position: absolute; top: 34%; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #0f2d24; background: #fff; font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.ip-car-prev { left: -20px; } .ip-car-next { right: -20px; }
.ip-car-nav[hidden] { display: none; }
.ip-safety ul { margin: 0 0 10px; padding-inline-start: 20px; color: #334155; line-height: 1.9; }
/* compact sticky header (desktop) */
.ip-sticky { position: fixed; left: 0; right: 0; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.1); transform: translateY(-110%); transition: transform .2s; }
.ip-sticky.show { transform: none; }
.ip-sticky-in { max-width: 1180px; margin: 0 auto; padding: 12px 16px 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; }
.ip-st-top { display: flex; align-items: center; gap: 14px; }
.ip-st-thumb { width: 84px; height: 84px; border-radius: 6px; object-fit: cover; flex: none; display: grid; place-items: center; }
.ip-st-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ip-st-txt strong { font-size: 1.4rem; font-weight: 800; color: #0f2d24; }
.ip-st-txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #334155; }
.ip-st-txt small { color: #475569; }
.ip-tabs { display: flex; gap: 6px; margin-top: 6px; }
.ip-tabs a { padding: 8px 18px 10px; color: #475569; border-bottom: 3px solid transparent; font-weight: 500; }
.ip-tabs a:first-child { padding-left: 0; }
.ip-tabs a.on { color: #0f2d24; font-weight: 800; border-color: #0f2d24; }
.ip-tabs a:hover { text-decoration: none; color: #0f2d24; }
.ip-st-seller { display: flex; align-items: center; gap: 12px; }
.ip-st-seller .ip-av { width: 44px; height: 44px; font-size: 1rem; }
.ip-st-seller small { display: block; color: #475569; font-size: .8rem; }
.ip-st-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.ip-sq { display: grid; place-items: center; height: 40px; border: 1.5px solid #0f2d24; border-radius: 6px; color: #0f2d24; background: #fff; }
.ip-sq-dark { background: #0f2d24; color: #fff; }
.ip-sq-wa { color: #25d366; }
.ip-sq .ic { width: 20px; height: 20px; }
@media (max-width: 980px) {
  .item-page .item-layout { grid-template-columns: 1fr; gap: 10px; }
  .ip-lower > div:last-child { display: none; }
  .ip-sticky { display: none; }
  .ip-car-track .card { flex-basis: calc((100% - 14px) / 2.3); }
  .ip-car-nav { display: none; }
}
@media (max-width: 640px) {
  .ip-price { font-size: 1.7rem; }
  .ip-title { font-size: 1.1rem; }
  .ip-kv { grid-template-columns: 1fr; }
  .ip-sec h2 { font-size: 1.2rem; }
  .item-page .gal-main { aspect-ratio: 4 / 3; }
  .ip-car-track .card { flex-basis: 46%; }
}
.item-page .item-layout > * { min-width: 0; }
/* v18: same photo size on every ad card; filters stick near the top */
.card-img { overflow: hidden; min-height: 0; }
.card-img img, .card-img .noimg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-img img { object-fit: cover; }
.filters { top: 16px; }
/* v19: listing pages without sidebar: Filters button opens the panel above the ads */
.list-layout { grid-template-columns: 1fr; gap: 0; }
.list-layout .grid { grid-template-columns: repeat(4, 1fr); }
.show-filters { display: inline-flex; align-items: center; gap: 6px; }
.show-filters .nf { background: var(--brand); color: #fff; border-radius: 10px; font-size: .75rem; padding: 0 7px; line-height: 18px; }
.filters-panel { display: none; }
.filters-panel.open { display: block; margin-bottom: 16px; }
.filters-panel .filters { position: static; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; align-items: end; }
.filters-panel .filters .f-head { grid-column: 1 / -1; }
.filters-panel .filters .range { grid-column: span 2; }
.filters-panel .filters > .btn { grid-column: -2 / -1; }
@media (max-width: 980px) { .list-layout .grid { grid-template-columns: repeat(3, 1fr); } .filters-panel .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .list-layout .grid { grid-template-columns: repeat(2, 1fr); } .filters-panel .filters { grid-template-columns: 1fr; } .filters-panel .filters .range, .filters-panel .filters > .btn { grid-column: auto; } }
/* Dark mode button */
.theme-btn { background: none; border: 0; cursor: pointer; }
.theme-btn .i-sun { display: none; }
[data-theme=dark] .theme-btn .i-sun { display: block; }
[data-theme=dark] .theme-btn .i-moon { display: none; }
/* ===== Dark mode ===== */
[data-theme=dark] { color-scheme: dark; --ink: #e6edf3; --muted: #9aa7b4; --line: #2c3640; --bg: #0f1419; --card: #182028; --shadow: 0 1px 3px rgba(0,0,0,.5); --brand: #2bb07f; --brand-dark: #1f8c64; }
[data-theme=dark] body, [data-theme=dark] .page-home, [data-theme=dark] .page-item { background: var(--bg); color: var(--ink); }
[data-theme=dark] .top, [data-theme=dark] .box, [data-theme=dark] .card, [data-theme=dark] .cat-tile, [data-theme=dark] .filters,
[data-theme=dark] .sortbar a, [data-theme=dark] .chips a, [data-theme=dark] .near-chip, [data-theme=dark] .pager a, [data-theme=dark] .pager span,
[data-theme=dark] .auth-card, [data-theme=dark] .form fieldset, [data-theme=dark] .plan, [data-theme=dark] .pkg, [data-theme=dark] .plan-bar,
[data-theme=dark] .my-row, [data-theme=dark] .admin-row, [data-theme=dark] .ma-card, [data-theme=dark] .threads, [data-theme=dark] .thread, [data-theme=dark] .stat,
[data-theme=dark] .foot, [data-theme=dark] .bnav, [data-theme=dark] .install-bar, [data-theme=dark] .sugg, [data-theme=dark] .login-modal, [data-theme=dark] .lc-btn,
[data-theme=dark] .ip-seller, [data-theme=dark] .ip-share, [data-theme=dark] .ip-sticky, [data-theme=dark] .all-cats-panel, [data-theme=dark] .top-search .loc,
[data-theme=dark] .top-search .q-box, [data-theme=dark] .empty, [data-theme=dark] .review, [data-theme=dark] .saved, [data-theme=dark] .fav, [data-theme=dark] .btn-ghost,
[data-theme=dark] .ip-btn-line, [data-theme=dark] .ip-sq, [data-theme=dark] .ip-car-nav, [data-theme=dark] .gal-nav, [data-theme=dark] .sticky-contact, [data-theme=dark] .subtabs a,
[data-theme=dark] .mini-ad, [data-theme=dark] .prose, [data-theme=dark] .profile-head, [data-theme=dark] .chat-ad a, [data-theme=dark] .ma-menu, [data-theme=dark] .ma-actions summary,
[data-theme=dark] .btn-pic, [data-theme=dark] .btn-wa-line, [data-theme=dark] .owner-bar, [data-theme=dark] .owner-stats > div, [data-theme=dark] .os-leads > div, [data-theme=dark] .owner-state,
[data-theme=dark] .push-x, [data-theme=dark] .ip-ic, [data-theme=dark] .promo-txt em { background: var(--card); color: var(--ink); border-color: var(--line); }
[data-theme=dark] .top-bar { background: #121a20; }
[data-theme=dark] .top, [data-theme=dark] .foot, [data-theme=dark] .bnav { border-color: var(--line); }
[data-theme=dark] input, [data-theme=dark] select, [data-theme=dark] textarea { background: #10171d; color: var(--ink); border-color: #3a4652; }
[data-theme=dark] .top-search .loc select, [data-theme=dark] .top-search .q-box input { background: transparent; }
[data-theme=dark] .cats > a, [data-theme=dark] .quick-links a, [data-theme=dark] .nav-login, [data-theme=dark] .nav-ic, [data-theme=dark] .all-cats summary, [data-theme=dark] .all-cats-panel a,
[data-theme=dark] .ip-title, [data-theme=dark] .ip-price, [data-theme=dark] .ip-sec h2, [data-theme=dark] .ip-st-txt strong, [data-theme=dark] .ip-tabs a.on, [data-theme=dark] .ip-report summary,
[data-theme=dark] .login-modal h2, [data-theme=dark] .auth-choose h1, [data-theme=dark] .lc-btn, [data-theme=dark] .lm-x, [data-theme=dark] .cg, [data-theme=dark] .card-title, [data-theme=dark] .ma-name { color: var(--ink); }
[data-theme=dark] .quick-links a.on, [data-theme=dark] .quick-links a:hover { background: var(--card); }
[data-theme=dark] .lc-btn, [data-theme=dark] .ip-btn-line, [data-theme=dark] .ip-sq, [data-theme=dark] .ip-car-nav { border-color: #5b6b78; }
[data-theme=dark] .ip-loc, [data-theme=dark] .ip-idrow, [data-theme=dark] .ip-tabs a, [data-theme=dark] .ip-kv-row span, [data-theme=dark] .ip-safety ul, [data-theme=dark] .item-page .desc,
[data-theme=dark] .ip-st-txt span, [data-theme=dark] .ip-st-txt small, [data-theme=dark] .ip-seller-head small, [data-theme=dark] .cats > a { color: #b6c2cd; }
[data-theme=dark] .ip-kv-row { background: #1c252e; } [data-theme=dark] .ip-kv-row b { background: #202a34; color: var(--ink); }
[data-theme=dark] a.ip-kv-row:hover, [data-theme=dark] .lc-btn:hover, [data-theme=dark] .all-cats-panel a:hover, [data-theme=dark] .sugg-it:hover, [data-theme=dark] .sugg-it.on { background: #22303a; }
[data-theme=dark] .cg-ic, [data-theme=dark] .cat-ic-art { background: #1f2a33 !important; }
[data-theme=dark] .cg:hover .cg-ic { background: #26333d; }
[data-theme=dark] .ip-av, [data-theme=dark] .ip-btn-dark, [data-theme=dark] .ip-sq-dark, [data-theme=dark] .top-search > .btn { background: #2bb07f; color: #06201a; }
[data-theme=dark] .ip-sq-dark .ic, [data-theme=dark] .top-search > .btn .ic { color: #06201a; }
[data-theme=dark] .btn-sell { background-image: linear-gradient(var(--card), var(--card)), linear-gradient(90deg, var(--accent), #0e8a63 55%, #1d5fd1); color: var(--ink); }
[data-theme=dark] .noimg, [data-theme=dark] .gal-main .noimg { background: linear-gradient(145deg, #1c252e 0%, #232f3a 70%); }
[data-theme=dark] .card-img { background: #1c252e; }
[data-theme=dark] .flash-ok { background: #123326; border-color: #1f5a41; color: #bfeed6; }
[data-theme=dark] .flash-warn, [data-theme=dark] .still-bar, [data-theme=dark] .first-tips, [data-theme=dark] .photo-tip { background: #332a12; border-color: #5c4a1c; color: #f3dfa6; }
[data-theme=dark] .flash-err { background: #3a1a17; border-color: #6b2b24; color: #f5c3bd; }
[data-theme=dark] .push-box { background: #16263a; border-color: #28446a; }
[data-theme=dark] .draft-note, [data-theme=dark] .price-guide { background: #123326; border-color: #1f5a41; color: #bfeed6; }
[data-theme=dark] .chip-btn { background: #173026; border-color: #2a5a45; color: #bfeed6; }
[data-theme=dark] .sell-band { background: linear-gradient(135deg, #0b3d2d, #0e5a41); }
[data-theme=dark] .foot-bottom { border-color: var(--line); }
[data-theme=dark] .chips a.on, [data-theme=dark] .subtabs a.on, [data-theme=dark] .sortbar a.on { background: var(--ink); color: var(--bg); }
[data-theme=dark] .msg { background: #1f2a33; color: var(--ink); }
[data-theme=dark] .msg.me { background: #1d4a38; }
[data-theme=dark] .logo, [data-theme=dark] .lm-logo { color: var(--ink); }
[data-theme=dark] .login-modal::backdrop { background: rgba(0,0,0,.7); }
[data-theme=dark] .ip-share.flash-hl { box-shadow: 0 0 0 3px var(--accent); }
/* My Ads (OLX-style) */
.ma-title { font-size: 1.5rem; margin: 6px 0 8px; }
.ma-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.ma-tabs::-webkit-scrollbar { display: none; }
.ma-tabs a { flex: none; padding: 10px 16px; color: var(--muted); border-bottom: 3px solid transparent; font-weight: 600; }
.ma-tabs a.on { color: var(--ink); border-color: var(--ink); }
.ma-tabs a:hover { text-decoration: none; color: var(--ink); }
.ma-tabs small { font-size: .75rem; background: var(--line); color: var(--ink); border-radius: 10px; padding: 0 6px; }
.ma-pkg { display: flex; align-items: center; gap: 10px; background: #0b6e4f; color: #fff; border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.ma-pkg:hover { text-decoration: none; background: #095c42; }
.ma-pkg span { flex: 1; }
.ma-pkg i { font-style: normal; font-size: 1.5rem; line-height: 1; }
.ma-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ma-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ma-top { display: flex; gap: 14px; }
.ma-img { width: 120px; height: 120px; border-radius: 8px; overflow: hidden; flex: none; background: #eef2f5; display: grid; place-items: center; position: relative; }
.ma-img img, .ma-img .noimg { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ma-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ma-head { display: flex; gap: 8px; align-items: flex-start; }
.ma-name { flex: 1; min-width: 0; font-weight: 700; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.ma-badge { flex: none; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.ma-price { font-weight: 800; }
.ma-cat { color: var(--muted); font-weight: 600; font-size: .92rem; }
.ma-line { color: var(--muted); font-size: .88rem; }
.ma-line b { color: var(--ink); }
.ma-info .st { align-self: flex-start; margin-top: 3px; }
.ma-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; }
.ma-stats > div { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px; }
.ma-stats > div + div { border-left: 1px solid var(--line); }
.ma-stats .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #eef4ff; color: #1d5fd1; }
.ma-stats span { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); line-height: 1.2; }
.ma-stats b { color: var(--ink); font-size: 1.05rem; }
.ma-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ma-btns > form, .ma-btns > a { display: flex; }
.ma-btns .btn { width: 100%; justify-content: center; padding: 11px; }
.ma-actions { position: relative; }
.ma-actions summary { list-style: none; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); cursor: pointer; width: 100%; justify-content: center; }
.ma-actions summary::-webkit-details-marker { display: none; }
.ma-actions summary i { font-style: normal; font-size: .8rem; }
.ma-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(16,24,40,.18); padding: 6px; z-index: 20; display: flex; flex-direction: column; }
.ma-menu a, .ma-menu button { display: block; text-align: start; padding: 9px 12px; border-radius: 6px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; width: 100%; }
.ma-menu a:hover, .ma-menu button:hover { background: #f1f6f3; text-decoration: none; }
.ma-menu .danger { color: var(--danger); }
.ma-primary { background: #e7ecef; color: #0f2d24; font-weight: 700; }
.ma-primary:hover { background: #d9e1e6; }
.ma-feat { background: var(--accent); color: #1c1400; }
.ma-feat:hover { background: var(--accent-dark); }
[data-theme=dark] .ma-primary { background: #26323c; color: var(--ink); }
[data-theme=dark] .ma-feat { background: var(--accent); color: #1c1400; }
[data-theme=dark] .ma-stats .ic { background: #1c2c44; color: #7fb0ff; }
[data-theme=dark] .ma-pkg { background: #0e5a41; }
[data-theme=dark] .ma-menu a:hover, [data-theme=dark] .ma-menu button:hover { background: #22303a; }
/* Owner view of an ad: stats + state */
.owner-stats { display: grid; grid-template-columns: 1fr 3fr; gap: 10px; margin: 8px 0 10px; }
.owner-stats > div { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.os-views, .os-leads > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; font-size: .85rem; color: var(--muted); }
.os-views b, .os-leads b { color: var(--ink); font-size: 1.2rem; }
.os-views .ic, .os-leads .ic { width: 22px; height: 22px; color: #1d5fd1; }
.os-leads { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.os-leads > div + div { border-left: 1px solid var(--line); background: #f7f9fa; }
[data-theme=dark] .os-leads > div + div { background: #1c252e; }
.owner-state { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.owner-state strong { font-size: 1.1rem; }
.owner-state p { margin: 4px 0 10px; color: var(--muted); }
@media (max-width: 980px) { .ma-list { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ma-img { width: 96px; height: 96px; }
  .owner-stats { grid-template-columns: 1fr; }
  .os-leads { grid-template-columns: repeat(4, 1fr); }
  .os-leads > div { padding: 10px 8px; }
}
/* v19 footer (OLX-style, fixed layout) */
.foot { background: #f2f4f5; border-top: 1px solid var(--line); padding: 0; margin-top: 30px; }
.foot-app { border-bottom: 1px solid #dfe4e8; }
.foot-app-in { display: flex; align-items: flex-end; gap: 24px; min-height: 150px; padding-top: 20px; }
.foot-phones { position: relative; width: 250px; height: 130px; flex: none; align-self: flex-end; overflow: hidden; }
.foot-phones img { position: absolute; bottom: -45px; left: 30px; border: 5px solid #1f2937; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.foot-phones img.ph2 { left: 130px; bottom: -70px; }
.foot-app-txt { flex: 1; align-self: center; display: flex; flex-direction: column; gap: 4px; }
.foot-app-txt strong { font-size: 1.15rem; }
.foot-app-txt span { color: var(--muted); font-size: .92rem; }
.foot-app-btns { display: flex; gap: 10px; align-self: center; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 8px; background: #000; color: #fff; border: 0; border-radius: 7px; padding: 7px 14px; font: inherit; cursor: pointer; min-width: 140px; }
.store-btn:hover { text-decoration: none; background: #1f2937; }
.store-btn[hidden] { display: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 1rem; text-align: start; }
.store-btn small { font-size: .62rem; font-weight: 500; opacity: .85; }
.foot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding: 34px 16px 30px; position: relative; }
.foot-grid > div { display: flex; flex-direction: column; gap: 10px; }
.foot-grid strong { font-size: 1rem; margin-bottom: 6px; color: var(--ink); }
.foot-grid a { color: #334155; }
.foot-grid a:hover { color: var(--brand); text-decoration: none; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #0f2d24; display: grid; place-items: center; color: #0f2d24; }
.socials a:hover { background: #0f2d24; color: #fff; }
.socials .ic { width: 18px; height: 18px; }
.lang-foot { margin-top: 6px; }
.to-top { position: absolute; right: 16px; bottom: 26px; display: inline-flex; align-items: center; gap: 8px; border: 2px solid #0f2d24; background: #fff; color: #0f2d24; border-radius: 30px; padding: 9px 20px; font: inherit; font-weight: 700; cursor: pointer; }
[dir=rtl] .to-top { right: auto; left: 16px; }
.foot-bottom { background: #06362a; color: #e6f2ee; margin: 0; border: 0; padding: 18px 0; text-align: right; font-size: .95rem; }
[dir=rtl] .foot-bottom { text-align: left; }
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: repeat(3, 1fr); padding-bottom: 80px; }
  .foot-phones { display: none; }
  .foot-app-in { flex-direction: column; align-items: flex-start; min-height: 0; padding-bottom: 18px; }
}
@media (max-width: 640px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .foot-follow { grid-column: 1 / -1; }
  .foot-bottom { text-align: center; }
  .store-btn { min-width: 0; }
}
[data-theme=dark] .foot { background: #121a20; }
[data-theme=dark] .foot-grid a, [data-theme=dark] .foot-grid strong { color: #c7d2dc; }
[data-theme=dark] .socials a, [data-theme=dark] .to-top { border-color: #5b6b78; color: var(--ink); background: transparent; }
[data-theme=dark] .foot-app { border-color: var(--line); }
[data-theme=dark] .foot-bottom { background: #041f18; }
@media (max-width: 640px) { .foot-grid > div:first-child { grid-column: auto; } }
.foot-grid .socials { flex-direction: row; }
/* v20: OLX-style inbox */
.inbox { display: grid; grid-template-columns: 380px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; height: calc(100vh - 230px); min-height: 520px; margin: 10px 0 20px; }
.ib-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ib-head { padding: 14px 16px 6px; }
.ib-head h1 { margin: 0; font-size: 1.35rem; }
.ib-filters { display: flex; gap: 6px; padding: 6px 16px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ib-filters a { flex: none; padding: 5px 14px; border-radius: 20px; border: 1px solid var(--line); color: var(--ink); font-size: .88rem; font-weight: 600; }
.ib-filters a.on { background: #0f2d24; color: #fff; border-color: #0f2d24; }
.ib-filters a:hover { text-decoration: none; }
.ib-items { overflow-y: auto; flex: 1; }
.ib-item { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); position: relative; }
.ib-item:hover { background: #f6f8f8; text-decoration: none; }
.ib-item.on { background: #eef6f2; box-shadow: inset 3px 0 0 var(--brand); }
.ib-av { width: 48px; height: 48px; border-radius: 50%; background: #0f2d24; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; overflow: hidden; }
.ib-av img { width: 100%; height: 100%; object-fit: cover; }
.ib-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ib-row { display: flex; justify-content: space-between; gap: 8px; }
.ib-row small { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.ib-ad { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-last { font-size: .88rem; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-item.unread strong, .ib-item.unread .ib-last { font-weight: 800; color: var(--ink); }
.ib-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.ib-empty, .ib-none { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: var(--muted); padding: 30px; }
.ib-empty .ic-xl, .ib-none .ic-xl { width: 56px; height: 56px; color: #b6c2cd; }
.ib-empty strong, .ib-none strong { color: var(--ink); font-size: 1.05rem; }
.ib-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ib-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.ib-back { display: none; font-size: 2rem; line-height: 1; color: var(--ink); padding: 0 6px 4px 0; }
.ib-back:hover { text-decoration: none; }
.ib-top .ib-av { width: 42px; height: 42px; }
.ib-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ib-who small { color: var(--muted); font-size: .8rem; }
.ib-acts { display: flex; gap: 8px; }
.ib-acts .ip-sq { width: 40px; height: 40px; }
.ib-adbar { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: #f7f9fa; color: var(--ink); }
.ib-adbar:hover { text-decoration: none; background: #eef4f1; }
.ib-adbar img, .ib-adbar .noimg { width: 52px; height: 42px; border-radius: 6px; object-fit: cover; flex: none; display: grid; place-items: center; }
.ib-adbar span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ib-adbar strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.ib-adbar em { font-style: normal; }
.ib-safe { font-size: .8rem; color: #8a5a00; background: #fff8e6; padding: 6px 16px; display: flex; align-items: center; gap: 6px; }
.ib-safe .ic { width: 15px; height: 15px; }
.ib-msgs { flex: 1; max-height: none; margin: 0; padding: 14px 16px; overflow-y: auto; background: #f4f6f5; }
.ib-day { align-self: center; font-size: .75rem; color: var(--muted); background: #fff; border-radius: 12px; padding: 2px 10px; margin: 6px 0; }
.ib-msgs .msg small { display: block; text-align: right; }
.ib-compose { border-top: 1px solid var(--line); padding: 10px 16px; }
.ib-compose .quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.ib-compose .chat-form textarea { resize: none; border-radius: 22px; padding: 10px 16px; min-height: 44px; }
.ib-send { width: 46px; height: 44px; border-radius: 50%; padding: 0; flex: none; background: #0f2d24; }
.ib-rate { margin: 6px 0 0; font-size: .85rem; }
@media (max-width: 820px) {
  .inbox { grid-template-columns: 1fr; height: auto; min-height: 0; border: 0; border-radius: 0; margin: 0 -16px; }
  .inbox .ib-none { display: none; }
  .inbox.has-open .ib-list { display: none; }
  .inbox.has-open .ib-pane { height: calc(100vh - 150px); }
  .ib-back { display: block; }
  .ib-list { border-right: 0; }
}
[data-theme=dark] .inbox, [data-theme=dark] .ib-filters a { background: var(--card); border-color: var(--line); color: var(--ink); }
[data-theme=dark] .ib-filters a.on { background: var(--ink); color: var(--bg); }
[data-theme=dark] .ib-item:hover, [data-theme=dark] .ib-adbar { background: #1c252e; }
[data-theme=dark] .ib-item.on { background: #17332a; }
[data-theme=dark] .ib-msgs { background: #121a20; }
[data-theme=dark] .ib-day { background: var(--card); }
[data-theme=dark] .ib-last { color: #b6c2cd; }
[data-theme=dark] .ib-safe { background: #332a12; color: #f3dfa6; }
[data-theme=dark] .ib-send { background: #2bb07f; color: #06201a; }
/* Account hub */
.hub-page { max-width: 640px; }
.hub-profile { display: flex; align-items: center; gap: 14px; padding: 18px 4px; color: var(--ink); border-bottom: 1px solid var(--line); }
.hub-profile:hover { text-decoration: none; }
.hub-profile .ip-av { width: 64px; height: 64px; font-size: 1.5rem; overflow: hidden; }
.hub-profile .ip-av img { width: 100%; height: 100%; object-fit: cover; }
.hub-name { flex: 1; display: flex; flex-direction: column; }
.hub-name strong { font-size: 1.25rem; }
.hub-name small { color: #1d5fd1; font-weight: 600; }
.hub-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.hub-profile > i, .hub-row > i { font-style: normal; font-size: 1.6rem; color: var(--muted); line-height: 1; }
.hub-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.hub-stats a { border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; color: var(--ink); display: flex; flex-direction: column; background: var(--card); }
.hub-stats a:hover { text-decoration: none; border-color: var(--brand); }
.hub-stats b { font-size: 1.3rem; }
.hub-stats span { font-size: .8rem; color: var(--muted); }
.hub-group { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 14px; background: var(--card); }
.hub-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--ink); width: 100%; background: none; border: 0; font: inherit; cursor: pointer; text-align: start; }
.hub-row + .hub-row { border-top: 1px solid var(--line); }
.hub-row:hover { background: #f6f8f8; text-decoration: none; }
.hub-row > .ic { width: 22px; height: 22px; color: #0f2d24; }
.hub-row > span { flex: 1; font-weight: 600; }
.hub-free { flex: none !important; background: var(--accent); color: #1c1400; border-radius: 10px; font-size: .75rem; padding: 1px 8px; font-weight: 800; }
.hub-switch { width: 40px; height: 22px; border-radius: 12px; background: #cbd5e1; position: relative; font-size: 0 !important; }
.hub-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
[data-theme=dark] .hub-switch { background: var(--brand); }
[data-theme=dark] .hub-switch::after { left: 21px; }
[data-theme=dark] .hub-row:hover { background: #1c252e; }
[data-theme=dark] .hub-row > .ic { color: var(--ink); }
.hub-logout { margin: 6px 0 30px; }
/* Mobile: the account tabs row is replaced by the Account page */
@media (max-width: 640px) { .tabs { display: none; } }
/* Owner block on own ad page */
.owner-block { margin: 14px 0 4px; }
.owner-state { display: flex; align-items: center; gap: 14px; }
.owner-state .os-txt { flex: 1; }
.owner-state p { margin: 4px 0 12px; }
.owner-state .os-txt .btn, .owner-state .os-txt form { display: inline-flex; }
.os-art { width: 84px; height: 84px; flex: none; color: #9aa7b4; }
.os-live .os-art { color: var(--brand); }
.os-wait .os-art { color: var(--accent); }
.os-off .os-art { color: #94a3b8; }
.owner-block .owner-bar { margin-bottom: 0; }
@media (max-width: 640px) { .os-art { width: 64px; height: 64px; } }
/* Post an ad: category picker */
.post-cat h1 { text-align: center; margin: 14px 0; }
.pc-box { max-width: 900px; margin: 0 auto 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.pc-head { padding: 14px 18px; font-weight: 800; border-bottom: 1px solid var(--line); }
.pc-cols { display: grid; grid-template-columns: 1fr 1fr; }
.pc-main { border-right: 1px solid var(--line); max-height: 620px; overflow-y: auto; }
.pc-item { display: flex; align-items: center; gap: 12px; padding: 11px 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
.pc-item:hover { background: #f6f8f8; text-decoration: none; }
.pc-item.on { background: #eef6f2; box-shadow: inset 3px 0 0 var(--brand); font-weight: 700; }
.pc-item span { flex: 1; }
.pc-item i { font-style: normal; font-size: 1.4rem; color: var(--muted); line-height: 1; }
.pc-sub-head { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pc-sub-head strong { display: block; }
.pc-sub-head small { color: var(--muted); }
.pc-sub-label { margin: 0; padding: 10px 18px 4px; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.pc-all span { color: var(--brand); font-weight: 700; }
.pc-back { display: none; padding: 12px 18px; font-weight: 700; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) {
  .pc-cols { grid-template-columns: 1fr; }
  .pc-main { border-right: 0; max-height: none; }
  .pc-box:not(.has-sel) .pc-sub { display: none; }
  .pc-box.has-sel .pc-main { display: none; }
  .pc-back { display: block; }
}
/* Post form */
.pf-cat { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; background: var(--card); }
.pf-cat div { flex: 1; display: flex; flex-direction: column; }
.pf-cat small { color: var(--muted); font-size: .78rem; }
.pf-cat a { font-weight: 700; }
.cols .field-chips { grid-column: 1 / -1; }
.field-chips { display: flex; flex-direction: column; gap: 6px; }
.fc-label { font-weight: 600; font-size: .92rem; }
.chips-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-radio label { position: relative; margin: 0; }
.chips-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips-radio span { display: inline-block; padding: 8px 16px; border: 1.5px solid #9aa6b2; border-radius: 22px; cursor: pointer; font-weight: 600; font-size: .92rem; background: var(--card); color: var(--ink); }
.chips-radio input:checked + span { border-color: #0f2d24; background: #0f2d24; color: #fff; }
.chips-radio input:focus-visible + span { outline: 3px solid var(--accent); }
[data-theme=dark] .chips-radio input:checked + span { background: var(--brand); border-color: var(--brand); color: #06201a; }
.char-count { display: block; text-align: right; color: var(--muted); font-size: .75rem; margin-top: 2px; }
[data-theme=dark] .pc-item:hover { background: #1c252e; } [data-theme=dark] .pc-item.on { background: #17332a; }

/* v21: SEO text, price guides, dealer page, growth admin */
.seo-text { margin: 22px 0; }
.seo-text h2 { font-size: 1.15rem; margin: 0 0 8px; }
.seo-text h3 { font-size: 1rem; margin: 16px 0 8px; }
.seo-text p { color: var(--ink); line-height: 1.6; }
.seo-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.seo-links a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .88rem; background: var(--card); }
.faq { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.pg-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.pg-grid > * { min-width: 0; }
.pg-summary { display: flex; flex-direction: column; gap: 8px; }
.pg-range span { display: block; color: var(--muted); font-size: .85rem; }
.pg-range strong { font-size: 1.5rem; color: var(--brand); }
.pg-row { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; }
.box .tbl { display: block; overflow-x: auto; }
.dealer-hero { background: linear-gradient(135deg, #0b6e4f, #0f8f67); color: #fff; padding: 42px 0 36px; margin-bottom: 22px; }
.dealer-hero h1 { font-size: 2.1rem; margin: 0 0 8px; }
.dealer-hero .lead { color: #e6f5ee; max-width: 640px; font-size: 1.08rem; }
.dealer-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.dealer-perks .box svg { width: 30px; height: 30px; color: var(--brand); }
.dealer-perks h3 { margin: 8px 0 4px; font-size: 1.02rem; }
.dealer-perks p { margin: 0; color: var(--muted); font-size: .92rem; }
.dealer-steps { padding-left: 20px; line-height: 1.8; }
.dealer-form { max-width: 720px; margin: 20px 0 30px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 160px; padding: 8px; border: 1px solid #cdd5dd; border-radius: 8px; font: inherit; }
.share-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.share-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.share-item img { object-fit: cover; border-radius: 6px; flex: none; }
.share-item > div { flex: 1; min-width: 0; }
@media (max-width: 800px) {
  .pg-grid { grid-template-columns: minmax(0, 1fr); }
  .dealer-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dealer-hero h1 { font-size: 1.6rem; }
}
@media (max-width: 520px) { .grid2, .dealer-perks { grid-template-columns: minmax(0, 1fr); } }
[data-theme=dark] .dealer-hero { background: linear-gradient(135deg, #0a3d2e, #0b5a42); }
[data-theme=dark] .inline-form input, [data-theme=dark] .inline-form select { background: #151c23; color: var(--ink); border-color: #2a3540; }
/* v21b: cover photo, car model picker, feature ticks */
.photo-grid .ph { position: relative; }
.ph-cover { position: absolute; left: 4px; bottom: 4px; border: 0; border-radius: 6px; padding: 3px 7px; font: 600 .72rem/1.2 inherit; background: rgba(0,0,0,.62); color: #fff; cursor: pointer; }
.ph.is-cover { outline: 3px solid var(--accent); outline-offset: -3px; }
.ph.is-cover .ph-cover { background: var(--accent); color: #1b1300; cursor: default; }
.model-pick { margin-bottom: 6px; }
.cc-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cc-pick:empty { display: none; }
.cc-pick button { border: 1px solid #cdd5dd; background: var(--card); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.cc-pick button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips-check input:checked + span::before { content: '✓ '; }
.orphans { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.orphans a { display: flex; flex-direction: column; font-size: .75rem; color: var(--muted); }
.orphans img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
/* v23: admin analytics */
.an-bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 8px; }
.an-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.an-bar i { display: block; width: 100%; background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; }
.an-bar small { font-size: .62rem; color: var(--muted); margin-top: 3px; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.stat small { display: block; }
/* chat offers + photos */
.offer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 8px; font-size: .85rem; color: var(--muted); }
.chip-offer { border-color: var(--brand) !important; color: var(--brand) !important; font-weight: 700; }
.offer-form { margin: 0; }
.msg-offer p { font-weight: 700; }
.msg-offer { border: 2px solid var(--accent); }
.offer-acts { display: flex; gap: 6px; margin: 6px 0 2px; }
.msg-img img { display: block; max-width: 220px; width: 100%; border-radius: 8px; margin-bottom: 4px; }
.ib-photo { display: flex; align-items: center; justify-content: center; width: 42px; flex: none; cursor: pointer; color: var(--muted); }
.chat-form.sending { opacity: .6; pointer-events: none; }
.active-dot { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); }
.active-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22a06b; }
/* v24: similar cheaper, urgent, compare, map, badges */
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cheaper-wrap { position: relative; }
.save-tag { position: absolute; top: 8px; right: 8px; background: #16a34a; color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; pointer-events: none; }
.verified-id { background: #e8f0ff; color: #1d4ed8; }
[data-theme=dark] .verified-id { background: #16233f; color: #93b4ff; }
.idc { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.idc-imgs { display: flex; gap: 10px; flex-wrap: wrap; }
.idc-imgs img { width: 240px; max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.tag-urgent { position: absolute; top: 8px; left: 8px; background: #dc2626; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 5px; }
.tag-urgent-2 { top: 34px; }
.tag-inline { position: static; display: inline-block; vertical-align: middle; font-size: .9rem; }

/* v25: stats, compare, map, voice, pin, sold post */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-stats td, .tbl-stats th { white-space: nowrap; }
.tbl-stats td:first-child { white-space: normal; min-width: 180px; }
.tip-box ul { margin: 6px 0 0; padding-left: 18px; }
.cmp-add { margin-top: 8px; background: none; border: 1px solid var(--line, #d6dde3); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 14px; cursor: pointer; color: inherit; }
.cmp-add.on { background: #e8f6ef; border-color: #0b6e4f; color: #0b6e4f; }
.cmp-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 78px; z-index: 60; display: flex; gap: 12px; align-items: center; background: #1a1f1c; color: #fff; padding: 8px 10px 8px 16px; border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: 14px; }
.cmp-bar .linkbtn { color: #cfd8d3; }
.cmp-bar .btn.disabled { opacity: .5; pointer-events: none; }
@media (min-width: 900px) { .cmp-bar { bottom: 24px; } }
.cmp-tbl { min-width: 520px; }
.cmp-tbl th { vertical-align: top; text-align: left; width: 30%; }
.cmp-tbl th img { width: 100%; max-width: 220px; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px; }
.cmp-tbl th span { display: block; font-weight: 600; }
.cmp-tbl td:first-child { color: var(--muted, #5d6b78); white-space: nowrap; }
.cmp-best { background: #e8f6ef; }
.map-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.dl-map { height: 68vh; min-height: 380px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line, #d6dde3); z-index: 0; }
.map-pin span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: #0b6e4f; color: #fff; border: 3px solid #fff; border-radius: 50%; font-weight: 700; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.map-pop ul { list-style: none; margin: 6px 0; padding: 0; max-height: 240px; overflow: auto; }
.map-pop li a { display: flex; gap: 8px; align-items: center; padding: 4px 0; color: inherit; text-decoration: none; }
.map-pop img { width: 48px; height: 40px; object-fit: cover; border-radius: 4px; flex: none; }
.map-pop span { font-size: 12px; line-height: 1.3; }
.map-pop span b { display: block; color: #0b6e4f; font-size: 13px; }
.chip-btn { font: inherit; background: none; border: 1px solid var(--line, #d6dde3); border-radius: 999px; padding: 6px 12px; cursor: pointer; color: inherit; display: inline-flex; gap: 4px; align-items: center; }
.chip-btn.err-chip { border-color: #dc2626; }
.voice { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 12px; }
.voice .btn.on { background: #dc2626; color: #fff; border-color: #dc2626; }
.voice-st { color: #0b6e4f; }
.pin-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.cmp-tbl td:first-child, .cmp-tbl th:first-child { position: sticky; left: 0; background: var(--bg, #fff); z-index: 1; }
@media (max-width: 600px) { .cmp-tbl { min-width: 0; font-size: 14px; } .cmp-tbl th { min-width: 130px; } .cmp-tbl td:first-child { max-width: 90px; white-space: normal; } }
[hidden] { display: none !important; }
/* sample ads */
.tag-sample { position: absolute; top: 8px; right: 8px; background: #1a1f1c; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; }
.card-sample { border-style: dashed; }
.sample-line { font-size: 12px; color: #9a4b00; font-weight: 600; margin-top: 4px; }
.sec-samples { border-top: 1px dashed var(--line); padding-top: 14px; }
.tag-sample-inline { background: #1a1f1c; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 6px; vertical-align: middle; }
.sample-cta ul { margin: 6px 0 14px; padding-left: 18px; line-height: 1.7; }
