:root {
  --primary: #1b5fbf;
  --primary-dark: #144a99;
  --primary-soft: #e9f0fc;
  --accent: #152238;
  --navy: #131f35;
  --yellow: #ffbe2e;
  --yellow-dark: #f0a50c;
  --ink: #1f2937;
  --muted: #64748b;
  --bg: #f4f5f7;
  --card: #ffffff;
  --line: #e6e9ee;

  --green: #16a34a;
  --red: #dc2626;
  --amber: #b45309;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06);
  --shadow-md: 0 4px 14px rgba(16,24,40,.10);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.bx { vertical-align: -0.15em; }

/* ── Topbar ── */
.topbar { background: var(--navy); border-bottom: 1px solid #1e2c44; padding: 0; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { color: #fff; font-size: 25px; font-weight: 800; letter-spacing: -0.8px; display: flex; align-items: center; gap: 6px; }
.logo .bx { font-size: 28px; color: var(--yellow); }
.logo span { color: var(--yellow); }
.logo-img { height: 32px; width: auto; display: block; }
.topbar-search { flex: 1; display: flex; max-width: 460px; align-items: stretch; background: #fff; border-radius: 10px; overflow: hidden; border: 2px solid transparent; transition: border-color .15s, box-shadow .15s; }
.topbar-search:focus-within { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,190,46,.35); }
.topbar-search input[type=search] { flex: 1; min-width: 0; height: 40px; border: 0; border-radius: 0; padding: 0 14px; font-size: 14px; background: transparent; color: var(--ink); }
.topbar-search input[type=search]:focus { outline: none; border-color: transparent; box-shadow: none; }
.topbar-search button { border: 0; background: var(--yellow); color: var(--navy); width: 46px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.topbar-search button .bx { font-size: 19px; vertical-align: 0; }
.topbar-search button:hover { background: var(--yellow-dark); }
.topbar-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-link { color: #dbe3ef; font-size: 14px; font-weight: 600; position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 4px; border-radius: 8px; }
.nav-link:hover { color: var(--yellow); }
.nav-link .bx { font-size: 22px; }
.nav-link .badge { position: absolute; top: -4px; right: -8px; margin-left: 0; box-shadow: 0 0 0 2px var(--navy); }
.user-trigger .bx-chevron-down { font-size: 15px; font-weight: 400; }
.nav-sep { color: var(--line); }
.badge { background: var(--red); color: #fff; border-radius: 10px; font-size: 10px; font-weight: 700; padding: 1px 6px; margin-left: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 8px; padding: 9px 18px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background .15s, color .15s, transform .1s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-sell { background: var(--yellow); color: var(--navy); font-weight: 700; }
.btn-sell:hover { background: var(--yellow-dark); color: var(--navy); }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--yellow-dark); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

main.wrap { padding-top: 22px; padding-bottom: 46px; min-height: 60vh; }

/* ── Alerts ── */
.alert { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.alert-error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, var(--navy), #1e3a6e 55%, var(--primary)); border-radius: 0 0 18px 18px; margin: -22px -16px 26px; padding: 52px 16px 44px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255,190,46,.22), transparent 45%); pointer-events: none; }
.hero h1 { margin: 0 0 8px; font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero .tagline { margin: 0 0 22px; opacity: .85; font-size: 15px; font-weight: 500; }
.hero-search { display: flex; max-width: 660px; margin: 0 auto; background: #fff; border-radius: 12px; padding: 6px; box-shadow: var(--shadow-md); align-items: stretch; }
.hero-search select, .hero-search input { border: 0; font-size: 15px; font-family: inherit; background: transparent; color: var(--ink); }
.hero-search select { width: 150px; flex-shrink: 0; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 0 10px 0 12px; }
.hero-search input, .hero-search input[type=search], .hero-search input[type=text] { flex: 1; min-width: 0; padding: 0 14px; border: 0; border-radius: 0; background: transparent; }
.hero-search input:focus { border-color: transparent; box-shadow: none; }
.hero-search select:focus, .hero-search input:focus { outline: none; }
.hero-search button { border: 0; border-radius: 8px; width: 54px; min-height: 46px; background: var(--yellow); color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-search button .bx { font-size: 21px; vertical-align: 0; }
.hero-search button:hover { background: var(--yellow-dark); }

/* ── Trust strip ── */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.trust-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.trust-item .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.trust-item b { font-size: 14px; display: block; }
.trust-item span { font-size: 12.5px; color: var(--muted); }

/* ── Home layout ── */
.home-grid { display: grid; grid-template-columns: 238px 1fr; gap: 22px; align-items: start; }
.cat-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 6px; position: sticky; top: 80px; box-shadow: var(--shadow-sm); }
.cat-head { display: flex; align-items: center; gap: 9px; padding: 12px 12px 8px; }
.cat-head .bx { font-size: 19px; color: var(--primary); }
.cat-head h3 { margin: 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--ink); flex: 1; }
.cat-total { background: var(--primary-soft); color: var(--primary-dark); font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 12px; }
.cat-list { padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.cat-list:last-of-type { border-bottom: 0; margin-bottom: 0; }
.cat-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 500; }
.cat-item:hover { background: var(--primary-soft); }
.cat-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .15s; }
.cat-ico .bx { font-size: 18px; color: var(--muted); }
.cat-item:hover .cat-ico { background: var(--primary); }
.cat-item:hover .cat-ico .bx { color: #fff; }
.cat-name { flex: 1; }
.cat-cnt { background: var(--bg); color: var(--muted); font-size: 11.5px; font-weight: 700; min-width: 26px; text-align: center; padding: 2px 8px; border-radius: 12px; }
.cat-arrow { color: var(--line); font-size: 17px; opacity: 0; transition: all .15s; }
.cat-item:hover .cat-arrow { opacity: 1; color: var(--primary); transform: translateX(2px); }
.cat-all { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 6px 6px; padding: 11px 12px; border-radius: 9px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; font-size: 13.5px; }
.cat-all:hover { background: var(--primary); color: #fff; }
.cat-all .bx { font-size: 18px; }
[data-theme="dark"] .cat-ico, [data-theme="dark"] .cat-cnt { background: #0f141b; }
.section-title { font-size: 18px; font-weight: 800; margin: 0 0 14px; letter-spacing: -.3px; display: flex; align-items: center; gap: 8px; }
.section-title .bx { color: var(--primary); }

/* ── Listing cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 15px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #b8cff5; }
.card-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: #eceff3; }
.card-body { padding: 11px 13px 13px; }
.card-price { color: var(--primary); font-weight: 800; font-size: 16.5px; }
.card-title { font-size: 14px; font-weight: 600; margin: 4px 0; color: var(--ink); }
.card-desc { font-size: 12.5px; color: var(--muted); height: 34px; overflow: hidden; line-height: 1.4; }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; align-items: center; }
.tag { font-size: 11px; background: var(--bg); border-radius: 5px; padding: 3px 7px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.tag.accent { background: var(--primary-soft); color: var(--primary); }
.verified-pill { color: var(--primary); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.verified-pill .bx { font-size: 14px; }

/* ── Panels / forms ── */
.panel { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.panel h2, .panel h3 { margin-top: 0; letter-spacing: -.3px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 15px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 13px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,95,191,.15); }
textarea { resize: vertical; min-height: 110px; }
input[type=file] { font-size: 13px; }
input[type=file]::file-selector-button { border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 7px 12px; margin-right: 10px; font-family: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.check-line { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 500; }
.check-line input { width: 16px; height: 16px; accent-color: var(--primary); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.auth-box { max-width: 440px; margin: 34px auto; }

/* ── Listing detail ── */
.detail-grid { display: grid; grid-template-columns: 1fr 336px; gap: 20px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: #e8ecf1; position: relative; border: 1px solid var(--line); }
.gallery-main img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 7px; }
.thumbs img { aspect-ratio: 4/3; object-fit: cover; border-radius: 7px; cursor: pointer; border: 2px solid transparent; opacity: .75; transition: opacity .15s, border-color .15s; }
.thumbs img:hover { opacity: 1; }
.thumbs img.active { border-color: var(--primary); opacity: 1; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.specs .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs .row .k { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.specs .row .k .bx { font-size: 16px; color: var(--primary); }
.specs .row .v { color: var(--ink); font-weight: 600; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
.chip { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--bg); border-radius: 8px; padding: 8px 13px; }
.chip .bx { font-size: 19px; color: var(--primary); }
.price-box { position: sticky; top: 80px; }
.price-big { font-size: 27px; font-weight: 800; letter-spacing: -.5px; }
.seller-card { display: flex; gap: 12px; align-items: center; margin: 15px 0; padding: 13px; background: var(--bg); border-radius: 10px; }
.avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--bg); }
.nav-avatar-init { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.avatar-current { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.avatar-current .hint { margin-top: 0; }
.safety { font-size: 13.5px; color: var(--ink); list-style: none; padding: 0; margin: 0; }
.safety li { margin-bottom: 9px; display: flex; gap: 9px; align-items: flex-start; }
.safety .bx { color: var(--primary); font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.report-link { cursor: pointer; color: var(--red); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

/* ── Tables ── */
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 11px 9px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
tbody tr:hover { background: #fafbfc; }
.status { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 12px; display: inline-flex; align-items: center; gap: 4px; }
.status.pending { background: #fef3e2; color: var(--amber); }
.status.approved { background: #ecfdf3; color: #067647; }
.status.rejected { background: #fef3f2; color: #b42318; }
.status.sold, .status.closed { background: #eef1f5; color: var(--muted); }
.status.open { background: #fef3f2; color: #b42318; }

/* ── Chat ── */
.chat-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; height: calc(100vh - 140px); min-height: 480px; }
.conv-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-y: auto; }
.conv-item { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.conv-item:hover, .conv-item.active { background: var(--primary-soft); }
.conv-item .t { font-weight: 600; font-size: 14px; }
.conv-item .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-pane { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 9px; }
.msg { max-width: 70%; padding: 9px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.msg.mine { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
.msg.theirs { align-self: flex-start; background: #eef1f5; border-bottom-left-radius: 5px; }
.msg .tm { display: block; font-size: 10px; opacity: .65; margin-top: 4px; }
.chat-input { display: flex; align-items: center; gap: 9px; padding: 13px; border-top: 1px solid var(--line); }
.chat-input input[type="text"] { flex: 1; min-width: 0; height: 42px; }
.chat-input .attach-btn, .chat-input .btn { align-self: center; flex-shrink: 0; }

/* ── Tabs / stats ── */
.tabs { display: flex; gap: 7px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 8px 15px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tabs a:hover { border-color: var(--primary); color: var(--primary); }
.tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: linear-gradient(140deg, var(--g1, var(--primary)) 0%, var(--g2, var(--primary-dark)) 100%); border: none; border-radius: 18px; padding: 20px 22px; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-md); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--g1, var(--primary)) 55%, transparent); position: relative; overflow: hidden; color: #fff; transition: transform .2s ease, box-shadow .2s ease; text-decoration: none; }
.stat:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(16,24,40,.3); box-shadow: 0 18px 34px -10px color-mix(in srgb, var(--g1, var(--primary)) 65%, transparent); }
.stat::after { content: ''; position: absolute; top: -34px; right: -34px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.10); transition: transform .3s ease; }
.stat::before { content: ''; position: absolute; bottom: -42px; right: 18px; width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.07); }
.stat:hover::after { transform: scale(1.25); }
.stat .ico { width: 54px; height: 54px; border-radius: 15px; background: rgba(255,255,255,.2); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 6px 14px rgba(0,0,0,.14); transition: transform .2s ease; z-index: 1; }
.stat:hover .ico { transform: rotate(-6deg) scale(1.08); }
.stat > div:last-child { min-width: 0; z-index: 1; }
.stat .n { font-size: 29px; font-weight: 800; letter-spacing: -.5px; color: #fff; line-height: 1.1; text-shadow: 0 2px 8px rgba(0,0,0,.18); }
.stat .l { font-size: 13px; color: rgba(255,255,255,.88); font-weight: 600; margin-top: 3px; }

.empty { text-align: center; color: var(--muted); padding: 44px 0; }
.empty .bx { font-size: 40px; color: var(--line); display: block; margin-bottom: 8px; }

/* ── Footer ── */
.footer { background: #141b26; color: #94a3b8; padding: 40px 0 22px; font-size: 13.5px; margin-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; margin-bottom: 26px; }
.footer h4 { color: #fff; font-size: 14px; margin: 0 0 13px; }
.footer a { color: #94a3b8; display: block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer .logo { font-size: 22px; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #26303f; padding-top: 18px; display: flex; justify-content: space-between; font-size: 12.5px; }

/* ── Card extras ── */
.card-imgwrap { position: relative; }
.card-imgwrap .ribbon { position: absolute; top: 10px; left: -30px; background: var(--yellow); color: var(--navy); font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 3px 32px; transform: rotate(-38deg); z-index: 2; }
.badge-new { position: absolute; top: 8px; right: 8px; background: var(--primary); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 5px; z-index: 2; }
.fav-btn { position: absolute; bottom: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); z-index: 2; transition: transform .15s, color .15s; }
.fav-btn:hover { transform: scale(1.12); color: var(--primary); }
.fav-btn.on { color: var(--primary); }
.views-tag { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 5px; display: inline-flex; align-items: center; gap: 4px; }
.card-body-link { display: block; }
.card-body-link:hover .card-title { color: var(--primary); }

/* ── Breadcrumbs ── */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs .bx { font-size: 15px; }

/* ── Contact actions ── */
.contact-actions { display: flex; gap: 8px; }
.contact-actions .btn { flex: 1; }
.btn-dark { background: var(--accent); color: #fff; }
.btn-dark:hover { background: #111827; color: #fff; }
.btn-green { background: var(--primary); color: #fff; }
.btn-green:hover { background: var(--primary-dark); color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1fb858; color: #fff; }

/* ── Make an offer ── */
.offer-box summary { list-style: none; }
.offer-box summary::-webkit-details-marker { display: none; }
.offer-box[open] summary { margin-bottom: 8px; }
.offer-form { display: flex; flex-direction: column; gap: 8px; }
.offer-form input { text-align: center; font-weight: 600; }

/* ── Share row ── */
.share-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.share-row a, .share-row button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 17px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; }
.share-row a:hover, .share-row button:hover { border-color: var(--primary); color: var(--primary); }

/* ── Stars ── */
.stars { color: #f59e0b; font-size: 15px; display: inline-flex; gap: 1px; }
.stars.big { font-size: 26px; }
.stars-input { display: flex; gap: 4px; font-size: 26px; color: #d5dbe3; }
.stars-input .bx { cursor: pointer; }
.stars-input .bx.lit { color: #f59e0b; }

/* ── Pagination ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .cur { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Seller profile ── */
.profile-head { display: flex; gap: 18px; align-items: center; }
.profile-head .avatar { width: 74px; height: 74px; font-size: 32px; }
.profile-meta { font-size: 13.5px; color: var(--muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 12px; }
.profile-meta .bx { color: var(--primary); }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review .who { font-weight: 600; font-size: 14px; }
.review .when { font-size: 12px; color: var(--muted); margin-left: 8px; }

/* ── Lightbox ── */
.lightbox { position: fixed; inset: 0; background: rgba(10,14,20,.92); z-index: 200; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 30px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-prev { left: 22px; }
.lightbox .lb-next { right: 22px; }
.lightbox .lb-close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; }
.gallery-main img { cursor: zoom-in; }

/* ── Featured section ── */
.featured-card { border: 2px solid var(--yellow); }
.recent-strip .cards { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); }

/* ── Static pages ── */
.page-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); border-radius: var(--radius); color: #fff; padding: 34px 30px; margin-bottom: 24px; }
.page-hero h1 { margin: 0; font-size: 26px; }
.page-hero p { margin: 8px 0 0; opacity: .9; }
.prose p { line-height: 1.7; color: #374151; }
.prose h3 { margin-top: 24px; }
.step { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

@media (max-width: 900px) {
  .home-grid, .detail-grid, .chat-layout { grid-template-columns: 1fr; }
  .topbar-search { display: none; }
  .price-box, .cat-card { position: static; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 24px; }
  .hero-search select { width: 112px; }
  .hero-search button { width: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .contact-actions { flex-direction: column; }
}

/* ── Admin sidebar layout ── */
/* ── Admin full-page console ──────────────── */
.admin-body { background: #f0f3f8; }
.admin-side { position: fixed; inset: 0 auto 0 0; width: 248px; background: #141b26; display: flex; flex-direction: column; padding: 0 12px 14px; z-index: 100; }
.admin-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 18px; padding: 18px 10px 16px; border-bottom: 1px solid #232e3f; }
.admin-brand .bx { color: var(--yellow); font-size: 24px; }
.admin-brand span b { color: var(--yellow); }
.admin-brand em { margin-left: auto; font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: 1px; background: var(--primary); color: #fff; padding: 3px 7px; border-radius: 5px; }
.admin-nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.admin-group { color: #5b6b82; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; padding: 14px 12px 6px; }
.admin-side a { display: flex; align-items: center; gap: 10px; color: #94a3b8; font-size: 14.5px; font-weight: 600; padding: 10px 13px; border-radius: 8px; margin-bottom: 2px; }
.admin-side a .bx { font-size: 19px; color: var(--nic, #94a3b8); }
.admin-side a span { flex: 1; }
.admin-side a:hover { background: #1e293b; color: #fff; }
.admin-side a.active { background: linear-gradient(90deg, var(--nic, var(--primary)) 0%, transparent 160%); color: #fff; box-shadow: inset 3px 0 0 var(--nic, var(--primary)); }
.admin-side a.active .bx { color: #fff; }
.admin-side a.active .side-badge { background: rgba(255,255,255,.25); }
.admin-side-foot { border-top: 1px solid #232e3f; padding-top: 12px; }
.admin-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px 2px; }
.admin-user b { color: #e2e8f0; font-size: 13px; display: block; }
.admin-user small { color: #64748b; font-size: 11.5px; }
.admin-main { margin-left: 248px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #e3e8f0; display: flex; align-items: center; gap: 14px; padding: 0 26px; height: 60px; }
.admin-topbar h1 { font-size: 19px; margin: 0; font-weight: 700; }
.admin-top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.admin-top-actions .nav-link { color: #475569; }
.admin-burger { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); padding: 4px; }
.admin-wrap { padding: 28px 30px 46px; flex: 1; width: 100%; }
.side-badge { background: var(--yellow); color: var(--navy); font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 10px; }
.admin-side a.active .side-badge { background: rgba(255,255,255,.25); color: #fff; }
.admin-side a.back-site { margin: 0 0 4px; }
.admin-content { min-width: 0; }
.admin-wrap .panel { margin-bottom: 16px; }
[data-theme="dark"] .admin-body { background: #0d1117; }
[data-theme="dark"] .admin-topbar { background: #161d2b; border-color: #242e40; }

/* ── Announcement bar ── */
.announce-bar { background: var(--yellow); color: var(--navy); font-size: 13.5px; }
.announce-inner { display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.announce-inner .bx-megaphone { font-size: 17px; }
.announce-inner span { flex: 1; font-weight: 600; }
.announce-close { background: rgba(19,31,53,.15); border: 0; color: var(--navy); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.announce-close:hover { background: rgba(19,31,53,.3); }
.announce-bar.hide { display: none; }

/* ── Notifications ── */
.nav-bell .bx { font-size: 19px; }
.notif { display: flex; gap: 13px; align-items: flex-start; padding: 15px 18px 15px 15px; border-bottom: 1px solid var(--line); color: var(--ink); border-left: 3px solid transparent; transition: background .15s, transform .15s; }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--soft, #f8fafc); transform: translateX(2px); }
.notif.unread { background: var(--ncs, var(--primary-soft)); border-left-color: var(--nc, var(--primary)); }
.notif-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--ncs, var(--primary-soft)); color: var(--nc, var(--primary)); font-size: 19px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .15s; }
.notif:hover .notif-ico { transform: scale(1.08) rotate(-4deg); }
.notif.unread .notif-ico { background: var(--nc, var(--primary)); color: #fff; box-shadow: 0 5px 12px -4px var(--nc, var(--primary)); }
.notif-body { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.notif-body strong { display: flex; align-items: center; gap: 7px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nc, var(--primary)); flex-shrink: 0; box-shadow: 0 0 0 3px var(--ncs, transparent); }
.notif-time { white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--soft, #f1f5f9); border: 1px solid var(--line); padding: 3px 10px; border-radius: 20px; }
.notif-count { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; background: var(--yellow); color: #131f35; padding: 3px 11px; border-radius: 20px; margin-left: 8px; vertical-align: middle; }
.notif-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.notif-empty { text-align: center; padding: 46px 24px; }
.notif-empty-ico { display: inline-flex; width: 74px; height: 74px; border-radius: 24px; align-items: center; justify-content: center; font-size: 36px; color: var(--muted); background: linear-gradient(135deg, var(--soft, #eef2f7), var(--card-bg, #fff)); border: 1px solid var(--line); margin-bottom: 14px; }
.notif-empty b { display: block; font-size: 16px; margin-bottom: 4px; }
.notif-empty .hint { margin: 0 auto; max-width: 340px; }
@media (max-width: 560px) { .notif-time { display: none; } }

/* ── Compare ── */
.compare-wrap { overflow-x: auto; }
.compare-table th { width: 120px; vertical-align: top; }
.compare-table td img { width: 100%; max-width: 240px; height: 150px; object-fit: cover; border-radius: 8px; }
.compare-table td { position: relative; }
.cmp-remove { position: absolute; top: 12px; right: 16px; background: #fff; border-radius: 50%; font-size: 20px; color: var(--red); display: flex; }
.cmp-remove:hover { color: #991b1b; }

/* ── Misc ── */
.resp-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 12px; margin-top: 5px; }

@media (max-width: 900px) {
  .admin-side { transform: translateX(-100%); transition: transform .25s; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .admin-side.open { transform: none; }
  .admin-main { margin-left: 0; }
  .admin-burger { display: block; }
  .admin-wrap { padding: 16px; }
}

/* ── Dark mode ── */
[data-theme="dark"] {
  --ink: #e5e7eb;
  --muted: #94a3b8;
  --bg: #0f141b;
  --card: #1a2330;
  --line: #2a3547;
  --primary-soft: #12321f;
}
[data-theme="dark"] .topbar,
[data-theme="dark"] .panel,
[data-theme="dark"] .card,
[data-theme="dark"] .conv-list,
[data-theme="dark"] .chat-pane,
[data-theme="dark"] .cat-card { background: var(--card); }
[data-theme="dark"] .topbar-search { background: #0f141b; border-color: var(--line); }
[data-theme="dark"] .topbar-search:focus-within { border-color: var(--yellow); }
[data-theme="dark"] .hero-search { background: #0f141b; border: 1px solid var(--line); box-shadow: none; }
[data-theme="dark"] .topbar-search input { background: #0f141b; color: var(--ink); }
[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=file]),
[data-theme="dark"] select, [data-theme="dark"] textarea { background: #0f141b; color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .nav-link { color: var(--ink); }
[data-theme="dark"] .topbar { border-color: var(--line); }
[data-theme="dark"] tbody tr:hover, [data-theme="dark"] .notif:hover { background: #212b3a; }
[data-theme="dark"] .msg.theirs { background: #2a3547; }
[data-theme="dark"] .tabs a { background: var(--card); color: var(--ink); }
[data-theme="dark"] .share-row a, [data-theme="dark"] .share-row button { background: var(--card); }
[data-theme="dark"] .btn-outline { background: transparent; color: var(--ink); }
[data-theme="dark"] .suggest-box { background: var(--card); }
.theme-toggle { background: none; border: 0; cursor: pointer; font-size: 19px; padding: 0; }

/* ── Category toggle pills (post ad) ── */
.cat-toggle { display: flex; gap: 10px; margin-bottom: 4px; }
.cat-pill { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border: 2px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; transition: all .15s; }
.cat-pill input { position: absolute; opacity: 0; }
.cat-pill .bx { font-size: 21px; }
.cat-pill:has(:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
[data-theme="dark"] .cat-pill:has(:checked) { color: var(--primary); }

/* ── Category tabs + save-search on browse page ── */
.cat-tabs { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.cat-tabs a { padding: 7px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.cat-tabs a.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-tabs .save-search { margin-left: auto; }
.badge-urgent { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 5px; z-index: 2; letter-spacing: .5px; }
.chip-urgent { background: #fef3f2 !important; color: var(--red) !important; font-weight: 700; }

/* ── Search suggestions ── */
.suggest-box { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md); display: none; overflow: hidden; z-index: 60; }
.suggest-box.open { display: block; }
.suggest-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: var(--ink); font-size: 13.5px; border-bottom: 1px solid var(--line); }
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover { background: var(--primary-soft); }
.suggest-item img { width: 38px; height: 28px; object-fit: cover; border-radius: 4px; }
.suggest-item .bx { font-size: 17px; color: var(--muted); }
.suggest-item span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item em { font-style: normal; font-weight: 700; color: var(--primary); font-size: 12.5px; }

/* ── Saved alerts list ── */
.alert-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.alert-row:last-child { border-bottom: 0; }
.alert-link { flex: 1; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.alert-del { background: none; border: 0; color: var(--red); font-size: 17px; cursor: pointer; }

/* ── Card hover zoom ── */
.card-imgwrap { overflow: hidden; }
.card-img { transition: transform .35s ease; }
.card:hover .card-img { transform: scale(1.06); }

/* ── Back to top ── */
.back-top { position: fixed; bottom: 22px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; transform: translateY(8px); z-index: 90; box-shadow: var(--shadow-md); }
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ── Mobile bottom nav ── */
.bottom-nav { display: none; }
@media (max-width: 900px) {
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--line); z-index: 80; padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 10.5px; font-weight: 600; padding: 6px 0; }
  .bottom-nav a .bx { font-size: 21px; }
  .bottom-nav a:hover { color: var(--primary); }
  .bottom-nav .bn-sell .bx { background: var(--primary); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-top: -18px; box-shadow: var(--shadow-md); border: 3px solid var(--card); }
  body { padding-bottom: 62px; }
  .back-top { bottom: 74px; }
}

/* ── Admin extras ─────────────────────────── */
.bulk-bar{display:flex;align-items:center;gap:14px;padding:10px 14px;margin-bottom:14px;background:var(--soft);border:1px solid var(--line);border-radius:10px}
.bulk-check{width:18px;height:18px;accent-color:var(--primary);flex-shrink:0;margin-top:10px}
.chart7{display:flex;gap:10px;align-items:flex-end;height:120px;padding:10px 4px 0}
.chart-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;justify-content:flex-end}
.chart-num{font-size:11px;font-weight:700;color:var(--ink)}
.chart-bars{display:flex;gap:4px;align-items:flex-end}
.chart-bars .bar{width:14px;border-radius:4px 4px 0 0;transition:height .4s}
.bar-listings{background:var(--primary)}
.bar-users{background:var(--yellow)}
.chart-day{font-size:11px;color:var(--muted);font-weight:600}
.chart-legend{display:flex;gap:18px;font-size:13px;color:var(--muted);margin-top:8px}
.chart-legend .dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px}
.chart-legend a{color:var(--primary);font-weight:600}
.chart-legend .bx{vertical-align:-1px}

/* ── Toasts ───────────────────────────────── */
#toast-host{position:fixed;bottom:80px;left:50%;transform:translateX(-50%);z-index:9999;display:flex;flex-direction:column;gap:8px;align-items:center}
.toast{display:flex;align-items:center;gap:8px;background:var(--ink);color:#fff;padding:10px 18px;border-radius:24px;font-size:14px;font-weight:500;box-shadow:0 8px 24px rgba(0,0,0,.25);opacity:0;transform:translateY(10px);transition:all .3s}
.toast.in{opacity:1;transform:translateY(0)}
.toast.err{background:#b91c1c}
.toast .bx{font-size:18px}
[data-theme="dark"] .toast{background:#fff;color:var(--ink)}

/* ── Presence / read receipts ─────────────── */
.presence-online{color:#16a34a;font-weight:600}
.presence-online .bx{font-size:9px;vertical-align:1px}
.msg .tm .bx{vertical-align:-2px;font-size:13px;opacity:.7}
.msg .tm .bx.read{color:#4fc3f7;opacity:1}

/* ── Scroll reveal ────────────────────────── */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .5s,transform .5s}
.reveal.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

/* ── Mobile collapsible filters ───────────── */
.filters-toggle{display:none;width:100%;margin-bottom:12px;justify-content:center}
@media(max-width:900px){
  .filters-toggle{display:flex}
  .filters{display:none}
  .filters.open{display:block}
  .hero-cat{max-width:110px}
}

/* ── Extra UI polish ──────────────────────── */
.imgs-tag{position:absolute;right:8px;bottom:8px;background:rgba(0,0,0,.55);color:#fff;font-size:11px;padding:2px 8px;border-radius:5px;display:inline-flex;align-items:center;gap:4px}
.price-box{position:sticky;top:76px}
.av-presence{position:relative;display:inline-flex;flex-shrink:0}
.presence-dot{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;background:#16a34a;border:2px solid var(--card,#fff);border-radius:50%}
[data-theme="dark"] .presence-dot{border-color:#1c2437}
.swatches{display:flex;gap:6px;margin-top:8px}
.swatch{width:26px;height:26px;border-radius:50%;border:2px solid var(--line);cursor:pointer;padding:0}
.swatch:hover{transform:scale(1.15);border-color:var(--ink)}
.badge[hidden]{display:none}
@media(max-width:900px){.price-box{position:static}}

/* ── Scroll progress ──────────────────────── */
.scroll-progress{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,var(--yellow),var(--primary));z-index:9998;transition:width .08s linear}

/* ── Filter chips ─────────────────────────── */
.filter-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.fchip{display:inline-flex;align-items:center;gap:5px;background:var(--primary-soft);color:var(--primary);font-size:12.5px;font-weight:600;padding:5px 11px;border-radius:20px;border:1px solid transparent;transition:all .15s}
.fchip:hover{background:#fbe7e7;color:var(--red);border-color:#f3c8c8}
.fchip .bx{font-size:15px}
.fchip-clear{background:transparent;color:var(--muted);border:1px dashed var(--line)}
.fchip-clear:hover{background:#fbe7e7;color:var(--red);border-color:#f3c8c8;border-style:solid}

/* ── View toggle ──────────────────────────── */
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 14px}
.view-toggle{display:flex;background:var(--soft);border:1px solid var(--line);border-radius:9px;overflow:hidden}
.vt-btn{padding:7px 12px;background:none;border:none;cursor:pointer;color:var(--muted);font-size:17px;line-height:1}
.vt-btn.active{background:var(--primary);color:#fff}
.vt-btn:not(.active):hover{color:var(--ink)}

/* ── List view ────────────────────────────── */
.cards.list-view{grid-template-columns:1fr;gap:12px}
.cards.list-view .card{flex-direction:row;align-items:stretch}
.cards.list-view .card-imgwrap{width:230px;flex-shrink:0}
.cards.list-view .card-img{height:100%;aspect-ratio:auto}
.cards.list-view .card-body{flex:1;display:flex;flex-direction:column;justify-content:center}
.cards.list-view .card-desc{height:auto}
@media(max-width:640px){.cards.list-view .card-imgwrap{width:130px}}

/* ── Hero chips + stats strip ─────────────── */
.hero-chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px;justify-content:center}
.hero-chips .hint{color:rgba(255,255,255,.75);font-size:12.5px}
.hero-chips a{background:rgba(255,255,255,.14);color:#fff;font-size:12.5px;font-weight:600;padding:5px 13px;border-radius:20px;border:1px solid rgba(255,255,255,.22);transition:background .15s}
.hero-chips a:hover{background:var(--yellow);color:var(--navy);border-color:var(--yellow)}
.stats-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:26px}
.stat-item{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px;text-align:center}
.stat-item .bx{font-size:26px;color:var(--primary)}
.stat-item b{display:block;font-size:24px;font-weight:800;color:var(--ink);margin:2px 0}
.stat-item span{font-size:12px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.4px}
@media(max-width:760px){.stats-strip{grid-template-columns:repeat(2,1fr)}}

/* ── Image fade-in ────────────────────────── */
.card-img{opacity:0;transition:opacity .35s,transform .35s ease}
.card-img.loaded{opacity:1}
@media(prefers-reduced-motion:reduce){.card-img{opacity:1;transition:none}}

/* ── FAQ accordion ────────────────────────── */
details.faq{border:1px solid var(--line);border-radius:10px;margin-bottom:10px;overflow:hidden}
details.faq summary{padding:14px 16px;font-weight:600;font-size:14.5px;cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;color:var(--ink)}
details.faq summary::after{content:'\ea4a';font-family:'boxicons';font-size:18px;color:var(--muted);transition:transform .2s}
details.faq[open] summary::after{transform:rotate(180deg)}
details.faq summary::-webkit-details-marker{display:none}
details.faq p{margin:0;padding:0 16px 14px;color:var(--muted);font-size:13.5px;line-height:1.6}
details.faq[open]{border-color:var(--primary)}

/* ── Colored stats strip (full-color cards) ── */
.stat-item{color:#fff;border:none;position:relative;overflow:hidden}
.stat-item .bx{color:rgba(255,255,255,.9)}
.stat-item b{color:#fff}
.stat-item span{color:rgba(255,255,255,.85)}
.stat-item::after{content:'';position:absolute;right:-24px;top:-24px;width:90px;height:90px;border-radius:50%;background:rgba(255,255,255,.12)}
.stat-item:nth-child(1){background:linear-gradient(135deg,#1b5fbf,#1448a0)}
.stat-item:nth-child(2){background:linear-gradient(135deg,#16a34a,#15803d)}
.stat-item:nth-child(3){background:linear-gradient(135deg,#f59e0b,#d97706)}
.stat-item:nth-child(4){background:linear-gradient(135deg,#7c3aed,#5b21b6)}

/* ── Mobile sticky CTA on listing page ────── */
.mobile-cta{display:none}
@media(max-width:900px){
  .mobile-cta{display:flex;gap:10px;position:fixed;left:0;right:0;bottom:56px;padding:10px 14px;background:var(--card);border-top:1px solid var(--line);z-index:60;box-shadow:0 -6px 18px rgba(0,0,0,.08)}
  .mobile-cta .btn{flex:1;justify-content:center}
  .mobile-cta .contact-actions{display:flex;gap:10px;flex:1}
  .mobile-cta .contact-actions .btn{flex:1}
}

/* ── Offers ───────────────────────────────── */
.offer-pill{display:inline-block;background:var(--yellow);color:var(--navy);font-size:12px;font-weight:800;padding:3px 10px;border-radius:12px;margin-bottom:5px}
.offer-amt{color:var(--primary);font-size:15px}

/* ── User dropdown menu ───────────────────── */
.user-menu{position:relative}
.user-trigger{display:flex;align-items:center;gap:6px;background:none;border:none;cursor:pointer;font:inherit;font-size:13.5px;font-weight:600;color:#dbe4f0;padding:4px 2px}
.user-trigger:hover{color:#fff}
.user-trigger .bx-chevron-down{transition:transform .2s}
.user-menu.open .bx-chevron-down{transform:rotate(180deg)}
.user-dropdown{position:absolute;right:0;top:calc(100% + 10px);min-width:190px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 40px rgba(0,0,0,.22);padding:6px;opacity:0;visibility:hidden;transform:translateY(-6px);transition:all .18s;z-index:200}
.user-menu.open .user-dropdown{opacity:1;visibility:visible;transform:none}
.user-dropdown a,.user-dropdown button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:none;background:none;font:inherit;font-size:13.5px;font-weight:600;color:var(--ink);border-radius:8px;cursor:pointer;text-align:left}
.user-dropdown a:hover,.user-dropdown button:hover{background:var(--soft)}
.user-dropdown .bx{font-size:18px;color:var(--muted)}
.user-dropdown .dd-danger{color:var(--red)}
.user-dropdown .dd-danger .bx{color:var(--red)}

/* ── Chat attachments + offer actions ─────── */
.attach-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--soft);color:var(--muted);cursor:pointer;font-size:20px;flex-shrink:0;transition:all .15s}
.attach-btn:hover{background:var(--primary-soft);color:var(--primary)}
.msg-img{display:block;margin-bottom:6px}
.msg-img img{max-width:220px;max-height:160px;border-radius:10px;display:block}
.offer-actions{display:flex;gap:8px;margin-top:8px}
.offer-btn{border:none;font-size:12px;font-weight:700;padding:5px 12px;border-radius:14px;cursor:pointer;display:inline-flex;align-items:center;gap:4px}
.offer-btn.ok{background:#16a34a;color:#fff}
.offer-btn.no{background:var(--soft);color:var(--muted)}
.offer-btn.ok:hover{background:#15803d}

/* ── Browse mega-dropdown ─────────────────── */
.browse-menu{position:relative}
.browse-trigger{display:flex;align-items:center;gap:5px}
.browse-dropdown{position:absolute;left:0;top:calc(100% + 12px);display:flex;gap:26px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 50px rgba(0,0,0,.25);padding:18px 20px;opacity:0;visibility:hidden;transform:translateY(-8px);transition:all .18s;z-index:200;min-width:380px}
.browse-menu:hover .browse-dropdown,.browse-menu:focus-within .browse-dropdown{opacity:1;visibility:visible;transform:none}
.bd-head{font-size:10.5px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.browse-dropdown a{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:8px;font-size:13.5px;font-weight:600;color:var(--ink);white-space:nowrap}
.browse-dropdown a:hover{background:var(--soft);color:var(--primary)}
.browse-dropdown a .bx{color:var(--muted)}

/* ── Bottom-nav badge ─────────────────────── */
.bottom-nav a{position:relative}
.bn-badge{position:absolute;top:2px;right:calc(50% - 20px);background:var(--red);color:#fff;font-size:9.5px;font-weight:800;min-width:16px;height:16px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;padding:0 4px}

/* ── Breadcrumbs ──────────────────────────── */
.crumbs{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--muted);margin-bottom:14px;flex-wrap:wrap}
.crumbs a{color:var(--muted)}
.crumbs a:hover{color:var(--primary)}
.crumbs .bx-chevron-right{font-size:12px}
@media(max-width:900px){.browse-dropdown{min-width:0;left:auto;right:0;padding:14px;flex-direction:column;gap:8px}}

/* ── Compare polish ───────────────────────── */
.cmp-btn{right:50px}
.cmp-btn.on{background:var(--primary);color:#fff}
.cmp-best{background:#eafaf0}
[data-theme="dark"] .cmp-best{background:#12281c}
.best-tag{display:inline-block;background:#16a34a;color:#fff;font-size:10px;font-weight:800;padding:2px 7px;border-radius:9px;text-transform:uppercase;letter-spacing:.4px}
.compare-table{min-width:640px}
.compare-wrap{overflow-x:auto}

/* ── Jiji-style category list ─────────────── */
.big-cats{padding:6px 0}
.big-cat{display:flex;align-items:center;gap:11px;padding:8px 14px;border-bottom:1px solid var(--line);transition:background .15s}
.big-cat:last-of-type{border-bottom:none}
.big-cat:hover{background:var(--soft)}
.big-cat.hl{background:var(--soft)}
.big-cat-ico{width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:21px;flex-shrink:0}
.big-cat b{display:block;font-size:13.5px;color:var(--ink);font-weight:700}
.big-cat small{color:var(--muted);font-size:11.5px;font-weight:500}
.subcats{border-bottom:1px solid var(--line)}
.subcats summary{list-style:none;cursor:pointer;padding:10px 14px;font-weight:700;font-size:13px;color:var(--ink);display:flex;align-items:center;justify-content:space-between}
.subcats summary::-webkit-details-marker{display:none}
.subcats summary .bx{transition:transform .2s;color:var(--muted)}
.subcats[open] summary .bx{transform:rotate(180deg)}
.subcats a{display:flex;justify-content:space-between;padding:6px 14px 6px 25px;font-size:12.5px;color:var(--muted);font-weight:600}
.subcats a:hover{color:var(--primary)}
.subcats a em{font-style:normal;color:var(--muted);font-weight:500}
.subcats a:hover em{color:var(--primary)}

/* ── Paid posting ─────────────────────────── */
.pay-fee{display:flex;justify-content:space-between;align-items:center;background:var(--soft);border-radius:12px;padding:14px 18px;margin:14px 0}
.pay-fee span{color:var(--muted);font-weight:600}
.pay-fee b{font-size:22px;color:var(--ink)}
.pay-instructions{display:flex;gap:10px;align-items:flex-start;background:#fffbeb;border:1px solid #fde68a;border-radius:12px;padding:12px 14px;color:#78350f;font-size:13.5px;margin-bottom:14px}
[data-theme="dark"] .pay-instructions{background:#3a2f0b;border-color:#6b5518;color:#fde68a}
.pay-instructions .bx{font-size:20px;flex-shrink:0;margin-top:1px}
.pay-now{color:var(--primary);font-weight:700;font-size:12.5px;text-decoration:none}
.pay-now:hover{text-decoration:underline}
.status.pending_payment{background:#fef9c3;color:#a16207}
.cat-tag{font-size:11px;background:var(--soft);border-radius:8px;padding:2px 7px;color:var(--muted);font-weight:600}

/* ── Back to results + print ──────────────── */
.back-results{font-weight:700;color:var(--primary)}
@media print {
  .topbar, .announce, .crumbs, .mobile-cta, .bottom-nav, .share-row,
  .price-box .btn, .price-box form, details, .scroll-progress, .to-top { display: none !important; }
  .detail-grid { display: block !important; }
  .price-box { position: static !important; }
  body { background: #fff; }
}

/* ── Listing comments ─────────────────────── */
.cmt-form{border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:6px}
.star-rate{display:flex;align-items:center;flex-direction:row-reverse;justify-content:flex-end;margin-bottom:8px}
.star-rate input{position:absolute;opacity:0;width:1px;height:1px}
.star-rate label{font-size:24px;color:#cbd5e1;cursor:pointer;padding:0 2px;transition:color .12s;width:auto;margin:0}
.star-rate input:checked ~ label,
.star-rate label:hover,
.star-rate label:hover ~ label{color:#f59e0b}
.cmt{display:flex;gap:11px;padding:14px 0;border-bottom:1px solid var(--line)}
.cmt:last-child{border-bottom:0;padding-bottom:0}
.cmt-body{flex:1;min-width:0}
.cmt-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cmt-head .hint{margin:0}
.cmt-stars{color:#f59e0b;font-size:14px;letter-spacing:1px}
.cmt-stars .off{color:#dbe1ea}
.cmt-body p{margin:4px 0 6px;font-size:14px;line-height:1.55;white-space:pre-line}
.cmt-reply{margin:10px 0 0;padding:10px 0 0 16px;border:0;border-left:3px solid var(--primary-soft);border-radius:0}
.cmt-replybox summary{cursor:pointer;list-style:none;color:var(--primary);font-size:12.5px;font-weight:700;display:inline-flex;align-items:center;gap:4px}
.cmt-replybox summary::-webkit-details-marker{display:none}

/* ── Comment deep-link highlight (4 flashes, then fades) ── */
@keyframes cmtFlash {
  0%, 100% { background: transparent; box-shadow: none; }
  50% { background: rgba(255,190,46,.5); box-shadow: 0 0 0 8px rgba(255,190,46,.35); }
}
.cmt:target { animation: cmtFlash .65s ease-in-out 4; border-radius: 10px; padding-left: 8px; padding-right: 8px; scroll-margin-top: 90px; }
.cmt-reply:target { margin-left: -8px; }

/* ── Custom chat SVG icon ─────────────────── */
.nav-link .ico-chat { width: 22px; height: 22px; }
.bottom-nav .ico-chat { width: 24px; height: 24px; }
.nav-link .ico-bell { width: 22px; height: 22px; }

/* ── Homepage strips & tiles ─────────────── */
.strip-sec { margin-bottom: 30px; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; flex-shrink: 0; }
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }


.budget-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 30px; }
.budget-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px 12px; text-align: center; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.budget-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.budget-card .bdg-ico { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.budget-card b { font-size: 12.5px; font-weight: 700; }
.budget-card small { font-size: 11px; color: var(--muted); }

.reg-sec { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.reg-sec h3 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 10px; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.reg-sec h3 .bx { font-size: 15px; }
.reg-row { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 10px; color: inherit; text-decoration: none; transition: background .15s; }
.reg-row:hover { background: var(--soft); }
.reg-ico { width: 30px; height: 30px; border-radius: 9px; background: #e8f0fe; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.reg-row:hover .reg-ico { background: var(--primary); color: #fff; }
.reg-name { flex: 1; font-size: 13.5px; font-weight: 600; }
.reg-count { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.reg-row:hover .reg-count { color: var(--primary); border-color: var(--primary); background: transparent; }

/* ── Top sellers & PRO dealers showcase (homepage) ── */
.ts-strip { position: relative; overflow: hidden; background: linear-gradient(135deg, #131f35 0%, #1b3a6b 58%, #1b5fbf 135%); border-radius: 22px; padding: 22px 22px 18px; }
.ts-strip::before { content: ''; position: absolute; inset: 0; background: radial-gradient(560px 210px at 88% -15%, rgba(255,190,0,.22), transparent 62%); pointer-events: none; }
.ts-head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.ts-head .section-title { color: #fff; }
.ts-head .section-title i { color: var(--yellow); }
.ts-all { color: var(--yellow); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ts-all i { transition: transform .15s; }
.ts-all:hover i { transform: translateX(3px); }
.ts-strip .hscroll { position: relative; }
.seller-mini { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 22px 16px 14px; min-width: 168px; text-align: center; color: #fff; text-decoration: none; backdrop-filter: blur(8px); transition: transform .18s, box-shadow .18s, border-color .18s, background .18s; }
.seller-mini:hover { transform: translateY(-4px); background: rgba(255,255,255,.13); border-color: var(--yellow); box-shadow: 0 14px 28px -10px rgba(0,0,0,.55); }
.seller-mini b { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 3px; color: #fff; }
.seller-mini small { font-size: 11px; color: rgba(255,255,255,.62); }
.seller-mini .ts-rate { font-size: 11.5px; display: flex; align-items: center; gap: 4px; }
.seller-mini .ts-rate em { font-style: normal; font-weight: 700; color: #fcd34d; }
.seller-mini .ts-rate.muted { color: rgba(255,255,255,.45); }
.sm-rank { position: absolute; top: 10px; left: 10px; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; color: #131f35; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.sm-rank.r1 { background: linear-gradient(135deg, #fde047, #f59e0b); }
.sm-rank.r2 { background: linear-gradient(135deg, #f1f5f9, #94a3b8); }
.sm-rank.r3 { background: linear-gradient(135deg, #fed7aa, #d97706); }
.sm-av { position: relative; display: inline-flex; }
.sm-av.pro .avatar { box-shadow: 0 0 0 3px #fbbf24, 0 6px 14px -4px rgba(251,191,36,.5); }
.sm-crown { position: absolute; top: -9px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #fde047, #f59e0b); color: #131f35; font-size: 13px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.sm-cta { margin-top: 3px; font-size: 11.5px; font-weight: 700; color: var(--yellow); display: inline-flex; align-items: center; gap: 3px; }
.sm-cta i { transition: transform .15s; }
.seller-mini:hover .sm-cta i { transform: translateX(3px); }

.cta-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 36px 0 8px; padding: 30px 34px; border-radius: 18px; background: linear-gradient(120deg, var(--ink, #131f35), var(--primary, #1b5fbf)); color: #fff; position: relative; overflow: hidden; }
.cta-banner::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,190,46,.18); }
.cta-txt h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.cta-txt p { margin: 0; font-size: 14px; opacity: .85; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 15px; padding: 13px 26px; border-radius: 12px; text-decoration: none; transition: transform .15s, box-shadow .15s; position: relative; z-index: 1; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.cta-btn .bx { font-size: 19px; }

@media (max-width: 800px) {
  .budget-row { grid-template-columns: repeat(3, 1fr); }
  .cta-banner { padding: 24px 20px; text-align: center; justify-content: center; }
}
@media (max-width: 520px) {
  .budget-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Admin charts ────────────────────────── */
.chart-box { position: relative; height: 320px; }
.chart-box-sm { height: 270px; }

.admin-wrap table th, .admin-wrap table td { padding: 11px 10px; }
.admin-wrap .panel h2 { font-size: 18px; }
.admin-wrap .panel h3 { font-size: 15.5px; }

/* ── Admin moderation rows ───────────────── */
.mod-row { display: flex; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; background: var(--card); align-items: flex-start; transition: border-color .15s, box-shadow .15s; }
.mod-row:hover { border-color: #c7d2e0; box-shadow: var(--shadow-sm); }
.mod-check { align-self: center; width: 17px; height: 17px; accent-color: var(--primary); flex-shrink: 0; }
.mod-thumb { width: 176px; height: 122px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--soft); display: block; }
.mod-main { flex: 1; min-width: 0; }
.mod-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.3; }
.mod-title a { color: var(--ink); text-decoration: none; }
.mod-title a:hover { color: var(--primary); }
.mod-meta { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 7px; font-size: 13px; color: var(--muted); align-items: center; }
.mod-meta .bx { font-size: 14px; vertical-align: -2px; margin-right: 3px; }
.mod-meta .price { color: var(--primary); font-weight: 800; font-size: 15.5px; }
.mod-desc { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.mod-actions { display: flex; flex-direction: column; gap: 7px; min-width: 190px; flex-shrink: 0; }
.mod-actions .status { text-align: center; padding: 6px 10px; font-size: 12.5px; }
.mod-actions input[type="text"] { font-size: 13px; padding: 8px 10px; }
.mod-actions .btn { justify-content: center; }

.id-shots { display: flex; gap: 10px; flex-shrink: 0; }
.id-shot { position: relative; width: 190px; height: 126px; border-radius: 10px; overflow: hidden; background: var(--soft); display: block; }
.id-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.id-shot:hover img { transform: scale(1.04); }
.id-shot em { position: absolute; left: 8px; bottom: 8px; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 1px; background: rgba(19,31,53,.82); color: #fff; padding: 3px 8px; border-radius: 6px; }

@media (max-width: 860px) {
  .mod-row { flex-direction: column; }
  .mod-thumb { width: 100%; height: 190px; }
  .mod-actions { min-width: 0; width: 100%; }
  .id-shots { width: 100%; }
  .id-shot { flex: 1; width: auto; }
}
.tabs .tab-n { font-size: 11px; font-weight: 800; background: var(--soft); color: var(--muted); border-radius: 999px; padding: 1px 8px; margin-left: 2px; }
.tabs a.active .tab-n { background: rgba(255,255,255,.25); color: #fff; }

/* ── Post an ad form ─────────────────────── */
.postad-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px 28px; margin-bottom: 22px; border-radius: 18px; background: linear-gradient(120deg, var(--navy), var(--primary)); color: #fff; position: relative; overflow: hidden; }
.postad-hero::after { content: ''; position: absolute; right: -40px; top: -50px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,190,46,.16); }
.postad-hero h2 { margin: 0 0 4px; font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.postad-hero h2 .bx { color: var(--yellow); font-size: 27px; }
.postad-hero p { margin: 0; font-size: 13.5px; opacity: .88; }
.postad-steps { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; position: relative; z-index: 1; }
.postad-steps span { background: rgba(255,255,255,.14); padding: 7px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }

.postad-grid { display: grid; grid-template-columns: 1fr 295px; gap: 22px; align-items: start; }
.postad-side { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 14px; }
.tip-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.tip-card h4 { margin: 0 0 12px; font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.tip-card h4 .bx { color: #f59e0b; font-size: 19px; }
.tip-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.tip-card li { display: flex; gap: 8px; }
.tip-card li .bx { color: #16a34a; font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.tip-card li b { color: var(--ink); }
.tip-trust { display: flex; align-items: center; gap: 12px; background: var(--soft); }
.tip-trust .bx { font-size: 32px; color: var(--primary); flex-shrink: 0; }
.tip-trust b { display: block; font-size: 13.5px; }
.tip-trust small { color: var(--muted); font-size: 12px; }

.fsec { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.fsec h3 { margin: 0 0 16px; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.fsec .fn { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fsec label { font-size: 13px; font-weight: 700; margin-bottom: 6px; display: block; color: var(--ink); }

.cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fsec label.cat-card2, .cat-card2 { position: relative; display: flex !important; flex-direction: row; align-items: center; gap: 12px; padding: 15px 34px 15px 15px; margin: 0 !important; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.cat-card2 input { position: absolute; opacity: 0; pointer-events: none; }
.cat-card2 .cc-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; margin: 0; }
.cat-card2 .cc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-card2 b { display: block; font-size: 14px; font-weight: 800; line-height: 1.25; }
.cat-card2 small { display: block; font-size: 11.8px; color: var(--muted); font-weight: 500; line-height: 1.3; }
.cat-card2 .cc-check { position: absolute; top: 11px; right: 11px; font-size: 20px; color: var(--line); transition: color .15s; }
.cat-card2:hover { border-color: var(--primary); transform: translateY(-1px); }
.cat-card2:has(input:checked) { border-color: var(--primary); background: var(--soft); box-shadow: 0 0 0 3px rgba(27,95,191,.10); }
.cat-card2:has(input:checked) .cc-check { color: var(--primary); }

/* Prefix / suffix input boxes */
.inp-pfx, .inp-sfx { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; margin-bottom: 12px; }
.inp-pfx:focus-within, .inp-sfx:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,95,191,.15); }
.inp-pfx span, .inp-sfx span { background: var(--soft); color: var(--muted); font-weight: 800; font-size: 13px; padding: 0 13px; display: inline-flex; align-items: center; border-right: 1px solid var(--line); }
.inp-sfx span { border-right: 0; border-left: 1px solid var(--line); }
.inp-pfx input, .inp-sfx input { border: 0 !important; margin: 0 !important; box-shadow: none !important; flex: 1; }

/* Body-type icon grid */
.body-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 6px; }
.body-tile { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 6px 9px; border: 1.5px solid var(--line); border-radius: 11px; cursor: pointer; font-size: 12px !important; font-weight: 600 !important; margin: 0 !important; text-align: center; transition: border-color .15s, background .15s, color .15s; }
.body-tile input { position: absolute; opacity: 0; pointer-events: none; }
.body-tile .bx { font-size: 20px; color: var(--muted); }
.body-tile:hover { border-color: var(--primary); }
.body-tile:has(input:checked) { border-color: var(--primary); background: var(--primary); color: #fff; }
.body-tile:has(input:checked) .bx { color: #fff; }

/* Pill pickers (transmission / fuel / condition) */
.pill-pick { display: flex; flex-wrap: wrap; gap: 7px; }
.pill-pick.pill-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.pill-pick label { flex: 1; margin: 0 !important; cursor: pointer; }
.pill-pick input { position: absolute; opacity: 0; pointer-events: none; }
.pill-pick span { display: block; text-align: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 700; transition: border-color .15s, background .15s, color .15s; }
.pill-pick label:hover span { border-color: var(--primary); }
.pill-pick input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }

/* Toggle switches on option cards */
.opt-card { display: flex; align-items: center; }
.opt-line { display: flex !important; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; font-weight: 400 !important; margin: 0 !important; }
.opt-line:hover { border-color: var(--primary); }
.opt-line input { position: absolute; opacity: 0; pointer-events: none; }
.opt-line .sw { width: 38px; height: 22px; border-radius: 999px; background: var(--line); position: relative; flex-shrink: 0; transition: background .18s; }
.opt-line .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.opt-line input:checked + .sw { background: var(--primary); }
.opt-line input:checked + .sw::after { transform: translateX(16px); }
.opt-line span b { display: block; font-size: 13.5px; font-weight: 700; }
.opt-line span small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.opt-line:has(input:checked) { border-color: var(--primary); background: var(--soft); }
.urgent-opt { margin-top: 12px; }
.urgent-opt .opt-line input:checked + .sw { background: var(--red); }
.urgent-opt .opt-line:has(input:checked) { border-color: var(--red); background: #fef2f2; }

/* Dropzone & previews */
.dropzone { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 34px 18px; border: 2px dashed var(--line); border-radius: 14px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; font-weight: 400 !important; }
.dropzone:hover { border-color: var(--primary); background: var(--soft); }
.dropzone .dz-ico { width: 54px; height: 54px; border-radius: 50%; background: #e8f0fe; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 4px; }
.dropzone b { font-size: 15px; font-weight: 700; }
.dropzone small { font-size: 12px; color: var(--muted); }
.imgprev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.imgprev-grid .pv { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); }
.imgprev-grid .pv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgprev-grid .pv em { position: absolute; top: 6px; left: 6px; font-style: normal; font-size: 10px; font-weight: 800; background: var(--yellow); color: var(--navy); padding: 2px 7px; border-radius: 5px; }

.postad-foot { text-align: center; padding: 8px 0 30px; }
.postad-foot .btn-lg { font-size: 16px; padding: 15px 38px; border-radius: 12px; }
.postad-foot .hint { margin-top: 10px; font-size: 12.5px; }

@media (max-width: 900px) {
  .postad-grid { grid-template-columns: 1fr; }
  .postad-side { position: static; }
  .postad-steps { display: none; }
}
@media (max-width: 540px) {
  .body-grid { grid-template-columns: repeat(3, 1fr); }
  .pill-pick.pill-3 { grid-template-columns: 1fr; }
}

/* ── Mobile responsiveness pass ──────────── */
@media (max-width: 900px) {
  /* Force-collapse inline grid-template-columns on detail-grid */
  .detail-grid, .home-grid, .chat-layout { grid-template-columns: 1fr !important; }

  /* Tables scroll instead of overflowing the viewport */
  .panel { overflow-x: auto; }
  .panel table { min-width: 560px; }

  /* Topbar: tighter gaps, hide items duplicated in the bottom nav */
  .topbar-inner { gap: 10px; height: 56px; }
  .topbar-nav { gap: 10px; }
  .browse-menu, .topbar-nav .btn-sell { display: none; }

  /* Tabs scroll horizontally instead of wrapping into 3 rows */
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex-shrink: 0; }
}

@media (max-width: 640px) {
  body { overflow-x: hidden; }
  .wrap { padding: 0 12px; }
  main.wrap { padding-top: 14px; padding-bottom: 76px; }

  /* Topbar on phones: icon + avatar only */
  .logo { font-size: 18px; }
  .logo .bx { font-size: 24px; }
  .topbar-nav { gap: 6px; }
  .user-fname { display: none; }
  .user-dropdown { right: -6px; min-width: 195px; }

  /* Hero search: two selects on row 1, input + button on row 2 */
  .hero { margin: -14px -12px 18px; padding: 30px 14px 26px; }
  .hero h1 { font-size: 22px; }
  .hero .tagline { font-size: 13.5px; margin-bottom: 16px; }
  .hero-search { flex-wrap: wrap; padding: 8px; gap: 6px; }
  .hero-search select { width: calc(50% - 3px); height: 42px; border: 1px solid var(--line) !important; border-radius: 8px !important; background: var(--soft); font-size: 13.5px; }
  .hero-search input, .hero-search input[type=search] { width: calc(100% - 54px); height: 44px; border: 1px solid var(--line) !important; border-radius: 8px !important; font-size: 14px; }
  .hero-search button { width: 48px; min-height: 44px; }
  .hero-chips { gap: 6px; margin-top: 12px; }
  .hero-chips a { font-size: 11.5px; padding: 4px 10px; }

  /* Stats & trust strips */
  .stats-strip, .trust-strip { display: none; }

  /* Listing cards: 2-up tight grid */
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-img { height: 132px; }
  .card-body { padding: 10px; }
  .card-price { font-size: 15px; }
  .card-title { font-size: 13px; }
  .card-desc { display: none; }
  .card-meta { gap: 4px; margin-top: 6px; }
  .card-meta .tag { font-size: 10.5px; padding: 2px 6px; }

  /* Listing detail page */
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .specs { grid-template-columns: 1fr; }
  .panel { padding: 15px; border-radius: 14px; }
  .section-title { font-size: 17px; }

  /* Seller profile header stacks cleanly */
  .profile-head { flex-direction: column; text-align: center; gap: 12px; }
  .profile-meta { justify-content: center; }

  /* Chat: full-bleed height above bottom nav */
  .chat-layout { height: calc(100vh - 130px); min-height: 380px; }
  .chat-messages { padding: 12px; }

  /* Post-ad form */
  .postad-hero { padding: 18px; border-radius: 14px; }
  .postad-hero h2 { font-size: 20px; }
  .fsec { padding: 16px; border-radius: 14px; }
  .cat-cards { grid-template-columns: 1fr; }
  .body-grid { grid-template-columns: repeat(3, 1fr); }
  .postad-foot .btn-lg { width: 100%; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Admin console on phones */
  .admin-topbar { padding: 0 14px; height: 54px; }
  .admin-topbar h1 { font-size: 16px; }
  .admin-wrap { padding: 14px 12px 36px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; gap: 10px; }
  .stat .ico { width: 40px; height: 40px; font-size: 20px; }
  .stat .n { font-size: 21px; }
  .stat .l { font-size: 11.5px; }
  .chart-box { height: 230px; }
  .chart-box-sm { height: 200px; }
  .bulk-bar { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 380px) {
  .cards { grid-template-columns: 1fr; }
  .card-img { height: 175px; }
  .stat-grid { grid-template-columns: 1fr; }
  .body-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Account dashboard ───────────────────── */
.acct-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px 26px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(125deg, var(--navy), var(--primary)); color: #fff; position: relative; overflow: hidden; }
.acct-hero::after { content: ''; position: absolute; right: -50px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,190,46,.16); }
.acct-id { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.acct-id .avatar { border: 3px solid rgba(255,255,255,.35); }
.acct-id h2 { margin: 0 0 5px; font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.acct-id .verified-pill { background: rgba(255,255,255,.18); color: #fff; }
.acct-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; opacity: .88; }
.acct-meta .bx { margin-right: 4px; vertical-align: -2px; }
.acct-cta { display: flex; gap: 9px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }

.myads-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.myads-flt { display: flex; gap: 6px; flex-wrap: wrap; }
.myads-flt a { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.myads-flt a em { font-style: normal; color: var(--muted); margin-left: 3px; }
.myads-flt a:hover { border-color: var(--primary); color: var(--primary); }
.myads-flt a.on { background: var(--primary); color: #fff; }
.myads-flt a.on em { color: rgba(255,255,255,.8); }

.myad { display: grid; grid-template-columns: 168px 1fr; column-gap: 16px; row-gap: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: var(--card); align-items: center; transition: border-color .15s, box-shadow .15s; }
.myad:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.myad-img { grid-row: span 2; position: relative; width: 168px; height: 118px; border-radius: 11px; overflow: hidden; background: var(--soft); display: block; box-shadow: var(--shadow-sm); }
.myad-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.myad:hover .myad-img img { transform: scale(1.05); }
.myad-img em { position: absolute; top: 6px; left: 6px; font-style: normal; font-size: 9.5px; font-weight: 800; background: var(--yellow); color: var(--navy); padding: 2px 6px; border-radius: 5px; }
.myad-body { grid-column: 2; min-width: 0; }
.myad.myad-row { grid-template-columns: auto 1fr auto auto; align-items: center; }
.myad.myad-row .myad-img { grid-row: auto; }
.myad.myad-row .myad-body { grid-column: auto; }
.myad.myad-row.unread { border-color: var(--primary); background: var(--primary-soft); }
.myad.myad-row .badge { align-self: center; }
.myad-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.myad-title { font-size: 15.5px; font-weight: 700; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.myad-title:hover { color: var(--primary); }
.myad-price { font-size: 16.5px; font-weight: 800; color: var(--primary); margin: 5px 0 7px; }
.myad-price small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.myad-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.myad-meta .bx { margin-right: 3px; vertical-align: -2px; }
.myad-meta b { color: var(--ink); }
.myad-reject { margin-top: 6px; font-size: 12.5px; color: var(--red); display: flex; align-items: center; gap: 5px; }
.myad-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; border-top: 1px dashed var(--line); padding-top: 11px; }
.myad-acts > .btn:last-child { margin-left: auto; }

@media (max-width: 720px) {
  .myad { grid-template-columns: 1fr; }
  .myad-img { grid-row: auto; width: 100%; height: 185px; }
  .myad-body { grid-column: 1; }
  .myad-acts > .btn:last-child { margin-left: 0; }
  .myad.myad-row { grid-template-columns: auto 1fr auto; }
  .myad.myad-row .myad-img { width: 92px; height: 70px; }
  .myad-acts .btn { flex: 1 1 auto; justify-content: center; }
  .acct-hero { padding: 18px; }
  .acct-cta { width: 100%; }
  .acct-cta .btn { flex: 1; justify-content: center; }
}

/* ── Jiji-style listing page ─────────────── */
.gallery-main { position: relative; }
.g-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(19,31,53,.55); color: #fff; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.g-arrow:hover { background: rgba(19,31,53,.8); }
.g-prev { left: 10px; }
.g-next { right: 10px; }
.g-count { position: absolute; left: 12px; bottom: 12px; background: rgba(19,31,53,.72); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 7px; display: inline-flex; align-items: center; gap: 5px; }

.jiji-head .jh-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jiji-head .jh-top .hint { margin: 0; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.promoted-tag { font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); padding: 3px 9px; border-radius: 6px; }
.jiji-head .jh-views { font-size: 13px; color: var(--muted); margin: 5px 0 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jiji-head .jh-views .bx { vertical-align: -2px; margin-right: 3px; }
.jiji-head .jh-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.jiji-head h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; }
.jh-save { background: none; border: 0; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 4px 2px; flex-shrink: 0; }
.jh-save .bx { font-size: 20px; }
.jh-save.on, .jh-save:hover { color: var(--primary); }

.jiji-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 22px; }
.jiji-specs b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.jiji-specs small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; }

.jiji-desc p { margin: 0; white-space: pre-line; font-size: 14.5px; line-height: 1.6; }
.jiji-desc p.clamped { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.desc-more { margin-top: 10px; float: right; background: none; border: 0; color: var(--primary); font-weight: 700; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; padding: 0; }
.jiji-desc::after { content: ''; display: block; clear: both; }

/* Inline CTAs (shown on mobile right below description, hidden on desktop where sidebar sits beside) */
.mob-inline-cta { display: none; margin-top: 12px; }
.mic-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mic-btns .btn { justify-content: center; padding: 13px 12px; font-size: 14.5px; font-weight: 700; border-radius: 10px; }
.mic-btns .btn-outline { border-width: 1.5px; border-color: var(--primary); color: var(--primary); }

.jiji-share { display: flex; justify-content: center; gap: 8px; margin: 14px 0 4px; }
.jiji-share a, .jiji-share button { width: 42px; height: 32px; border-radius: 7px; border: 0; color: #fff; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; transition: opacity .15s, transform .15s; }
.jiji-share a:hover, .jiji-share button:hover { opacity: .9; transform: translateY(-1px); }
.jiji-share .sh-fb { background: #3b5998; }
.jiji-share .sh-tw { background: #1da1f2; }
.jiji-share .sh-wa { background: #25d366; }
.jiji-share .sh-tg { background: #0088cc; }
.jiji-share .sh-cp, .jiji-share .sh-pr { background: #64748b; }

@media (max-width: 900px) {
  .mob-inline-cta { display: block; }
  /* Full-bleed hero image on mobile like Jiji */
  .detail-grid .gallery-main { margin: -14px -12px 0; border-radius: 0; border-left: 0; border-right: 0; }
}

/* ── Site-wide polish: empty states, how-it-works, auth, quick-view ── */
.empty-card { background: var(--card); border: 1px dashed var(--line); border-radius: 18px; padding: 40px 24px; text-align: center; margin: 14px 0; }
.empty-card .ec-ico { width: 64px; height: 64px; border-radius: 50%; background: #e8f0fe; color: var(--primary); font-size: 32px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.empty-card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.empty-card p { margin: 0 auto 16px; max-width: 440px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.how-strip { margin: 38px 0 8px; }
.how-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 22px 22px; text-align: center; transition: transform .18s, box-shadow .18s, border-color .18s; }
.how-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 18px 18px 0 0; background: linear-gradient(90deg, var(--hc, var(--primary)), var(--hc2, var(--primary))); }
.how-card::after { content: attr(data-step); position: absolute; top: 10px; right: 16px; font-size: 52px; font-weight: 900; line-height: 1; color: var(--ink); opacity: .12; pointer-events: none; }
.how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--hc, var(--primary)); }
.how-card .hw-ico { width: 58px; height: 58px; border-radius: 18px; font-size: 28px; color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; background: linear-gradient(135deg, var(--hc, var(--primary)), var(--hc2, var(--primary))); box-shadow: 0 10px 20px -7px var(--hc, var(--primary)); transition: transform .18s; }
.how-card:hover .hw-ico { transform: scale(1.12) rotate(-5deg); }
.how-card .hw-step { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--hc, var(--primary)); background: var(--soft, #eef2f7); background: color-mix(in srgb, var(--hc, var(--primary)) 12%, transparent); padding: 3px 11px; border-radius: 20px; margin-bottom: 9px; }
.how-card b { display: block; font-size: 15px; font-weight: 800; margin-bottom: 5px; }
.how-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.hw-arrow { position: absolute; right: -17px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--hc, var(--primary)); font-size: 22px; display: flex; align-items: center; justify-content: center; z-index: 2; box-shadow: var(--shadow-sm, 0 2px 6px rgba(0,0,0,.08)); }
@media (max-width: 840px) { .hw-arrow { display: none; } }

/* Split auth card */
.auth-card { display: grid; grid-template-columns: 1fr 1.25fr; max-width: 820px; margin: 14px auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); }
.auth-brand { background: linear-gradient(145deg, var(--navy), var(--primary)); color: #fff; padding: 34px 28px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-brand::after { content: ''; position: absolute; right: -50px; bottom: -50px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,190,46,.18); }
.auth-brand .ab-ico { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.15); color: var(--yellow); font-size: 28px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.auth-brand h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.auth-brand p { margin: 0 0 18px; font-size: 13.5px; opacity: .88; line-height: 1.5; }
.auth-brand ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.auth-brand li { display: flex; align-items: center; gap: 8px; }
.auth-brand li .bx { color: var(--yellow); font-size: 17px; }
.auth-form { padding: 32px 30px; }
.auth-form h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }

/* Password eye button */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 40px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-60%); background: none; border: 0; color: var(--muted); font-size: 19px; cursor: pointer; padding: 4px; }
.pw-eye:hover { color: var(--ink); }

/* Quick-view button on cards + modal */
.qv-btn { right: 84px; }
.qv-modal { position: fixed; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(3px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.qv-modal.open { display: flex; }
.qv-box { background: var(--card); border-radius: 18px; max-width: 680px; width: 100%; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 20px 50px rgba(0,0,0,.35); position: relative; }
.qv-img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; background: var(--soft); display: block; }
.qv-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.qv-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(19,31,53,.65); color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qv-price { font-size: 22px; font-weight: 800; color: var(--primary); }
.qv-title { font-size: 17px; font-weight: 800; line-height: 1.3; margin: 0; }
.qv-specs { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.qv-desc { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 2px 0 6px; }
.conv-row.unread { border-color: var(--primary); background: var(--soft); }

@media (max-width: 720px) {
  .how-grid, .auth-card, .qv-box { grid-template-columns: 1fr; }
  .auth-brand { padding: 22px; }
  .auth-form { padding: 22px 18px; }
  .qv-img { height: 200px; min-height: 0; }
  .qv-btn { display: none; }
}

/* ── Account sidebar layout ──────────────── */
.acct-layout { display: grid; grid-template-columns: 245px 1fr; gap: 22px; align-items: start; }
.acct-content { min-width: 0; }
.acct-side { position: sticky; top: 78px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-sm); }
.as-profile { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.as-profile b { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-profile small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-post { margin-bottom: 10px; justify-content: center; }
.as-nav { display: flex; flex-direction: column; gap: 3px; }
.as-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; transition: background .15s, color .15s; }
.as-nav a:hover { background: var(--soft); }
.as-nav a.active { background: var(--primary); color: #fff; }
.as-nav a.active .as-ico { color: #fff !important; background: rgba(255,255,255,.18); }
.as-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.as-nav em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; background: var(--yellow); color: var(--navy); padding: 1px 7px; border-radius: 999px; }
.as-nav .as-out { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--red); }
.as-nav .as-out .as-ico { color: var(--red); background: #fef2f2; }

@media (max-width: 900px) {
  .acct-layout { grid-template-columns: 1fr; }
  .acct-side { position: static; }
  .as-profile, .as-post, .as-nav .as-out { display: none; }
  .as-nav { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .as-nav::-webkit-scrollbar { display: none; }
  .as-nav a { flex-shrink: 0; padding: 8px 12px; }
}

/* ── Quick replies, inline price, price history, comment delete ── */
.qr-strip { display: flex; gap: 6px; overflow-x: auto; padding: 6px 12px 2px; border-top: 1px solid var(--line); background: var(--card); scrollbar-width: none; }
.qr-strip::-webkit-scrollbar { display: none; }
.qr-chip { flex-shrink: 0; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); cursor: pointer; font-family: inherit; transition: border-color .15s, color .15s; }
.qr-chip:hover { border-color: var(--primary); color: var(--primary); }

.myad-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qp-pop { position: relative; font-size: 12px; font-weight: 600; }
.qp-pop summary { list-style: none; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.qp-pop summary::-webkit-details-marker { display: none; }
.qp-pop summary:hover { color: var(--primary); }
.qp-form { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.qp-form input { width: 130px; margin: 0 !important; padding: 6px 9px; font-size: 13px; }

.ph-log { margin: 4px 0 8px; font-size: 12.5px; }
.ph-log summary { cursor: pointer; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.ph-log ul { list-style: none; padding: 8px 10px; margin: 6px 0 0; background: var(--soft); border-radius: 9px; display: flex; flex-direction: column; gap: 5px; }
.ph-log li { display: flex; justify-content: space-between; gap: 8px; }
.ph-log small { color: var(--muted); }

.cmt-del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; padding: 2px 4px; }
.cmt-del:hover { color: var(--red); }

/* ── Boost & promotion badges + pricing cards ── */
.badge-boost { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; padding: 3px 9px; border-radius: 6px; color: #fff; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.badge-boost .bx { font-size: 13px; }
.badge-boost.silver { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.badge-boost.gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #131f35; }
.badge-boost.diamond { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.card-imgwrap .badge-boost, .gallery-main .badge-boost, .myad-img .badge-boost { position: absolute; top: 9px; left: 9px; z-index: 3; }

.card.boost-silver { border-color: #93c5fd; }
.card.boost-gold { border: 2px solid #f59e0b; box-shadow: 0 4px 16px rgba(245,158,11,.16); }
.card.boost-diamond { border: 2px solid #8b5cf6; box-shadow: 0 6px 22px rgba(124,58,237,.22); }

.boost-active-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16); padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; position: relative; z-index: 1; }
.boost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.boost-plan { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 24px 20px 20px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.boost-plan input { position: absolute; opacity: 0; pointer-events: none; }
.boost-plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.boost-plan.popular { border-color: #f59e0b; }
.boost-plan .bp-pop { position: absolute; top: -11px; right: 16px; background: #f59e0b; color: #131f35; font-size: 10px; font-weight: 800; letter-spacing: .7px; padding: 3px 10px; border-radius: 999px; }
.boost-plan .bp-pop.bp-top { background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; }
.bp-head { display: flex; align-items: center; gap: 11px; }
.bp-ico { width: 46px; height: 46px; border-radius: 13px; font-size: 24px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bp-head b { display: block; font-size: 16px; font-weight: 800; }
.bp-head small { font-size: 12px; color: var(--muted); }
.bp-price { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.bp-price span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bp-tag { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.bp-perks { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; flex: 1; }
.bp-perks li { display: flex; gap: 7px; align-items: flex-start; }
.bp-perks .bx { color: #16a34a; font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.bp-pick { text-align: center; padding: 9px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 5px; }
.boost-plan:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,95,191,.14); }
.boost-plan:has(input:checked) .bp-pick { background: var(--primary); color: #fff; }

@media (max-width: 820px) {
  .boost-grid { grid-template-columns: 1fr; }
}

/* ── Help & Trust Center (page.php) + Admin CMS editor (admin/pages.php) ── */
.hc-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 34px 32px; margin-bottom: 24px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; box-shadow: 0 12px 32px rgba(19,31,53,.22); }
.hc-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,190,46,.28), transparent 70%); pointer-events: none; }
.hc-hero-main { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; max-width: 760px; }
.hc-hero-ico { width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); color: var(--yellow); font-size: 32px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hc-kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; opacity: .85; margin-bottom: 6px; }
.hc-hero h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.hc-hero p { margin: 0; font-size: 15px; opacity: .92; line-height: 1.45; }

.hc-layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.hc-side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
.hc-nav-card, .hc-support-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-sm); }
.hc-side-head { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); padding: 2px 6px 10px; display: flex; align-items: center; gap: 6px; }
.hc-nav { display: flex; flex-direction: column; gap: 4px; }
.hc-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: none; transition: background .15s, transform .15s; }
.hc-nav a:hover { background: var(--soft); transform: translateX(2px); }
.hc-nav a.active { background: var(--hcc, var(--primary)); color: #fff; box-shadow: 0 6px 16px rgba(19,31,53,.16); }
.hcn-ico { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; background: rgba(255,255,255,.2); color: #fff; }
.hcn-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcn-cnt { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.hc-nav a.active .hcn-cnt { background: rgba(255,255,255,.22); color: #fff; }

.hc-support-card { text-align: center; padding: 20px 16px; background: linear-gradient(180deg, var(--card), var(--soft)); }
.hcs-ico { width: 46px; height: 46px; border-radius: 50%; background: #e8f0fe; color: var(--primary); font-size: 23px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.hc-support-card b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.hc-support-card p { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.hc-alert-banner { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, #ecfdf5, #d1fae5); border: 1px solid #86efac; color: #065f46; margin-bottom: 18px; }
[data-theme="dark"] .hc-alert-banner { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.35); color: #a7f3d0; }
.hab-ico { width: 46px; height: 46px; border-radius: 13px; background: #16a34a; color: #fff; font-size: 24px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hc-alert-banner b { display: block; font-size: 15px; margin-bottom: 2px; }
.hc-alert-banner p { margin: 0; font-size: 13px; line-height: 1.45; opacity: .92; }

/* Cards layout (Safety tips, How to buy, How to sell, Inspection checklist) */
.hc-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hc-tip-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; transition: transform .18s, box-shadow .18s, border-color .18s; display: flex; flex-direction: column; gap: 8px; }
.hc-tip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.htc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.htc-ico { width: 48px; height: 48px; border-radius: 14px; font-size: 24px; display: inline-flex; align-items: center; justify-content: center; }
.htc-num { font-size: 12px; font-weight: 800; color: var(--muted); background: var(--soft); padding: 4px 10px; border-radius: 999px; }
.hc-tip-card h3 { margin: 0; font-size: 16.5px; font-weight: 800; line-height: 1.3; }
.hc-tip-card p { margin: 0; font-size: 13.8px; color: var(--muted); line-height: 1.6; }

/* FAQ layout */
.hc-faq-search { position: relative; margin-bottom: 16px; }
.hc-faq-search .bx { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--muted); }
.hc-faq-search input { padding: 14px 16px 14px 46px; border-radius: 14px; font-size: 14.5px; margin: 0; background: var(--card); box-shadow: var(--shadow-sm); }
.hc-faq-list { display: flex; flex-direction: column; gap: 12px; }
.hc-faq { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.hc-faq[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.hc-faq summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; gap: 14px; font-size: 15.5px; font-weight: 700; }
.hc-faq summary::-webkit-details-marker { display: none; }
.hcf-ico { width: 40px; height: 40px; border-radius: 11px; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hcf-q { flex: 1; line-height: 1.35; }
.hcf-tog { font-size: 22px; color: var(--muted); transition: transform .2s; }
.hc-faq[open] .hcf-tog { transform: rotate(45deg); color: var(--primary); }
.hcf-a { padding: 0 20px 20px 74px; font-size: 14.2px; color: var(--muted); line-height: 1.65; }

/* Legal layout (Terms, Privacy) */
.hc-toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hc-toc-lbl { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-right: 4px; }
.hc-toc a { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; transition: background .15s, color .15s; }
.hc-toc a:hover { background: var(--primary); color: #fff; }
.hc-legal-list { display: flex; flex-direction: column; gap: 14px; }
.hc-legal-sec { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; scroll-margin-top: 86px; }
.hls-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hls-num { width: 42px; height: 42px; border-radius: 12px; font-size: 21px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hls-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.hls-body { font-size: 14.5px; color: var(--muted); line-height: 1.7; padding-left: 54px; }

.hc-bottom-cta { margin-top: 24px; padding: 26px 28px; border-radius: 18px; background: linear-gradient(125deg, var(--navy), var(--primary)); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hc-bottom-cta h3 { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.hc-bottom-cta p { margin: 0; font-size: 13.5px; opacity: .88; }

/* Admin CMS editor rows */
.cms-side-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .15s; }
.cms-side-item.active { border-color: var(--primary); background: var(--soft); }
.csi-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.csi-ico { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.csi-main b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csi-main small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csi-acts { display: flex; gap: 4px; flex-shrink: 0; }
.csi-acts a, .csi-acts button { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; }
.csi-acts a:hover, .csi-acts button:hover { color: var(--primary); border-color: var(--primary); }
.cms-item-row { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.cir-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cir-num { font-size: 12px; font-weight: 800; color: var(--primary); background: var(--card); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); }

@media (max-width: 900px) {
  .hc-layout { grid-template-columns: 1fr; }
  .hc-side { position: static; }
  .hc-support-card { display: none; }
  .hc-nav { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .hc-nav::-webkit-scrollbar { display: none; }
  .hc-nav a { flex-shrink: 0; padding: 8px 12px; }
}
@media (max-width: 640px) {
  .hc-hero { padding: 22px 18px; border-radius: 16px; }
  .hc-hero h1 { font-size: 22px; }
  .hc-hero-ico { width: 50px; height: 50px; font-size: 25px; }
  .hc-cards-grid { grid-template-columns: 1fr; }
  .hcf-a, .hls-body { padding-left: 0; }
}

/* ── 4-Pillar Anti-Theft & Trust Shield ──── */
.trust-shield-card { border: 1.5px solid #bbf7d0; background: linear-gradient(180deg, #f0fdf4 0%, var(--card) 52%); }
[data-theme="dark"] .trust-shield-card { border-color: rgba(34,197,94,.35); background: linear-gradient(180deg, rgba(22,163,74,.10) 0%, var(--card) 55%); }
.tsc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tsc-title { display: flex; align-items: center; gap: 12px; }
.tsc-ico { width: 46px; height: 46px; border-radius: 13px; background: #e2e8f0; color: #475569; font-size: 25px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tsc-ico.mid { background: #fef3c7; color: #b45309; }
.tsc-ico.high { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; box-shadow: 0 4px 12px rgba(22,163,74,.28); }
.tsc-title h3 { margin: 0 0 2px; font-size: 16px; font-weight: 800; }
.tsc-title p { margin: 0; font-size: 12.5px; color: var(--muted); }
.tsc-score { font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: #e2e8f0; color: #334155; }
.tsc-score.s1, .tsc-score.s2 { background: #fef3c7; color: #92400e; }
.tsc-score.s3, .tsc-score.s4 { background: #dcfce7; color: #166534; }
.tsc-bar { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 14px; }
.tsc-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #16a34a, #0ea5e9); transition: width .3s; }

.tsc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tsc-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.tsc-item.ok { border-color: #86efac; background: rgba(240,253,244,.65); }
[data-theme="dark"] .tsc-item.ok { border-color: rgba(34,197,94,.4); background: rgba(22,163,74,.08); }
.tsci-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tsc-item.ok .tsci-ico { background: #dcfce7; color: #15803d; }
.tsc-item b { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.tsc-item small { display: block; font-size: 11.8px; color: var(--muted); line-height: 1.4; }
.tsci-tag { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.tsc-note { margin-top: 12px; padding: 10px 13px; border-radius: 10px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; font-size: 12.8px; display: flex; align-items: center; gap: 8px; }
.tsc-note .bx { font-size: 18px; flex-shrink: 0; }

/* Admin listing moderation Trust Shield bar */
.mod-trust-bar { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }
.mod-trust-bar .mtb-lbl { font-weight: 800; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.mod-trust-bar label { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; margin: 0; cursor: pointer; }
.mod-trust-bar input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: #16a34a; }
.mod-trust-bar input[type="text"] { flex: 1; min-width: 180px; margin: 0; padding: 5px 9px; font-size: 12.5px; }

@media (max-width: 640px) {
  .tsc-grid { grid-template-columns: 1fr; }
}

/* ── VIN Checker, Inspection Booking & Chat Scam Alerts ── */
.vin-result { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 16px; border: 1.5px solid var(--line); }
.vin-result .vr-ico { width: 48px; height: 48px; border-radius: 14px; font-size: 26px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vin-result h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.vin-result p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.5; }
.vin-result.safe { background: #f0fdf4; border-color: #86efac; color: #065f46; }
.vin-result.safe .vr-ico { background: #16a34a; color: #fff; }
.vin-result.danger { background: #fef2f2; border-color: #f87171; color: #991b1b; }
.vin-result.danger .vr-ico { background: #dc2626; color: #fff; }

.tsc-foot { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.insp-book { flex: 1; min-width: 210px; }
.insp-book summary { list-style: none; cursor: pointer; }
.insp-book summary::-webkit-details-marker { display: none; }
.insp-form { margin-top: 10px; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }

.chat-safety-bar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fffbeb; border-bottom: 1px solid #fde68a; color: #92400e; font-size: 12px; line-height: 1.4; }
.chat-safety-bar .bx { font-size: 17px; color: #d97706; flex-shrink: 0; }
.msg-scam-warn { margin-top: 6px; padding: 6px 9px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; gap: 5px; }

/* ── Car Rentals & Booking box ───────────── */
.badge-rental { position: absolute; top: 9px; right: 9px; background: linear-gradient(135deg, #0d9488, #0f766e); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 3px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 3px; z-index: 2; }
.rental-book-box { background: linear-gradient(180deg, #f0fdfa, var(--card)); border: 1.5px solid #99f6e4; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
[data-theme="dark"] .rental-book-box { background: rgba(13,148,136,.10); border-color: rgba(20,184,166,.35); }
.rental-book-box h4 { margin: 0 0 10px; font-size: 14.5px; font-weight: 800; color: #0f766e; display: flex; align-items: center; gap: 6px; }
.rental-book-box label { font-size: 12px; font-weight: 700; margin-bottom: 3px; display: block; }
.rental-book-box input, .rental-book-box select { margin-bottom: 8px; padding: 8px 10px; font-size: 13px; }
.rb-est { font-size: 13.5px; padding: 8px 10px; border-radius: 9px; background: var(--soft); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.rb-est b { color: #0f766e; font-size: 15px; }

/* ── Dealers Directory & Loan Calculator ── */
.dealers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.dealer-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 12px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.dealer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.dc-top { display: flex; align-items: center; gap: 14px; }
.dc-top h3 { margin: 0 0 5px; font-size: 16.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.dc-bio { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.dc-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.dc-stats .bx { margin-right: 3px; vertical-align: -2px; }
.dc-stats b { color: var(--ink); }
.dc-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.dc-cta { font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 3px; }

.loan-calc { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); padding: 10px 12px; font-size: 13px; }
.loan-calc summary { list-style: none; cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.loan-calc summary::-webkit-details-marker { display: none; }
.loan-calc summary .bx { font-size: 17px; color: var(--primary); }
.lc-body { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.lc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.lc-row label { font-size: 11.5px; font-weight: 700; margin: 0 0 2px; }
.lc-row select, .lc-row input[type="number"] { margin: 0; padding: 6px 8px; font-size: 12.5px; }
.lc-out { padding: 9px 11px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); }
.lc-out b { color: var(--primary); font-size: 15px; display: block; }
.lc-out small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── Robust Messenger UI (Split-pane, Online, Typing, Voice Notes, Reactions, Replies) ── */
.msgr-shell { display: grid; grid-template-columns: 310px 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; height: calc(100vh - 132px); min-height: 540px; box-shadow: var(--shadow-md); }
.msgr-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; background: var(--bg); min-width: 0; }
.msgr-side-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: var(--card); }
.msgr-side-head h3 { margin: 0; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.msgr-search { position: relative; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--card); }
.msgr-search .bx { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; }
.msgr-search input { margin: 0; padding: 8px 10px 8px 32px; font-size: 13px; border-radius: 10px; background: var(--soft); }
.msgr-list { flex: 1; overflow-y: auto; padding: 6px; }
.msgr-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; text-decoration: none; color: inherit; transition: background .15s; margin-bottom: 2px; }
.msgr-item:hover { background: var(--soft); }
.msgr-item.active { background: #e8f0fe; }
[data-theme="dark"] .msgr-item.active { background: rgba(59,130,246,.18); }
.mi-body { flex: 1; min-width: 0; }
.mi-top { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.mi-top b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-top small { font-size: 10.5px; color: var(--muted); flex-shrink: 0; }
.mi-ad { font-size: 11.5px; font-weight: 700; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-last { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.presence-dot { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #94a3b8; border: 2px solid var(--card); }
.presence-dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.22); }

.msgr-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--card); }
.msgr-head { display: flex; align-items: center; gap: 11px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--card); }
.msgr-back { display: none; font-size: 22px; color: var(--ink); text-decoration: none; }
.mh-who { flex: 1; min-width: 0; }
.mh-name { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; }
.mh-name a { color: var(--ink); text-decoration: none; }
.mh-pres { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.mh-pres #hdr-presence.on { color: #16a34a; font-weight: 700; }
.mh-typing { color: var(--primary); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.mh-actions { display: flex; align-items: center; gap: 6px; }
.mh-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit; }
.mh-btn:hover { border-color: var(--primary); color: var(--primary); }
.mh-btn.wa { background: #25d366; border-color: #25d366; color: #fff; }

.msgr-adbar { padding: 8px 18px; background: var(--soft); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mab-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.mab-link img { width: 44px; height: 34px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.mab-link b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mab-link span { font-size: 12px; font-weight: 800; color: var(--primary); }
.mab-offer { display: flex; gap: 6px; align-items: center; }
.mab-offer input { width: 185px; margin: 0; padding: 6px 10px; font-size: 12.5px; }

/* Date dividers & message bubbles */
.chat-date-sep { text-align: center; margin: 8px 0; }
.chat-date-sep span { display: inline-block; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--soft); border: 1px solid var(--line); padding: 3px 12px; border-radius: 999px; }
.msg { position: relative; max-width: 74%; border-radius: 16px; padding: 10px 14px; line-height: 1.45; word-break: break-word; }
.msg.mine { border-bottom-right-radius: 4px; }
.msg.theirs { border-bottom-left-radius: 4px; }
.msg.deleted { opacity: .6; font-style: italic; }
.msg .tm .read { color: #38bdf8; }
.msg.theirs .tm .read { color: var(--primary); }

/* Quoted reply inside bubble */
.msg-quote { display: block; font-size: 11.5px; padding: 5px 9px; margin-bottom: 6px; border-left: 3px solid currentColor; border-radius: 6px; background: rgba(0,0,0,.08); color: inherit; text-decoration: none; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.mine .msg-quote { background: rgba(255,255,255,.16); }

/* Hover tools (Reply, Emoji reactions, Delete) & reaction pill */
.msg-tools { position: absolute; top: -15px; right: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 5px; display: none; align-items: center; gap: 2px; box-shadow: var(--shadow-sm); z-index: 5; }
.msg.mine .msg-tools { right: auto; left: 8px; }
.msg:hover .msg-tools { display: inline-flex; }
.msg-tools button { background: none; border: 0; cursor: pointer; font-size: 13px; padding: 2px 4px; border-radius: 6px; color: var(--ink); line-height: 1; }
.msg-tools button:hover { background: var(--soft); transform: scale(1.15); }
.msg-rx { position: absolute; bottom: -10px; right: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; font-size: 12px; box-shadow: 0 2px 5px rgba(0,0,0,.1); }

/* Animated typing dots */
.tdots { display: inline-flex; align-items: center; gap: 3px; margin-left: 3px; }
.tdots span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: tdot 1.2s infinite ease-in-out; }
.tdots span:nth-child(2) { animation-delay: .2s; }
.tdots span:nth-child(3) { animation-delay: .4s; }
@keyframes tdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.typing-msg { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 12.5px; color: var(--muted); }

/* Voice Note Player inside message bubble */
.vn-player { display: flex; align-items: center; gap: 9px; min-width: 230px; padding: 4px 2px; }
.vn-play { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.22); color: inherit; font-size: 22px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.msg.theirs .vn-play { background: var(--primary); color: #fff; }
.vn-wave { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 110px; }
.vn-bars { display: flex; align-items: center; gap: 2px; height: 18px; }
.vn-bars span { flex: 1; height: 35%; background: currentColor; opacity: .45; border-radius: 2px; transition: height .2s; }
.vn-bars span:nth-child(odd) { height: 75%; }
.vn-bars span:nth-child(3n) { height: 95%; }
.vn-player.playing .vn-bars span { opacity: .9; animation: vnw .7s infinite ease-in-out alternate; }
.vn-player.playing .vn-bars span:nth-child(even) { animation-delay: .25s; }
@keyframes vnw { from { transform: scaleY(.45); } to { transform: scaleY(1.1); } }
.vn-scrub { width: 100%; height: 4px; margin: 0 !important; padding: 0 !important; accent-color: currentColor; cursor: pointer; }
.vn-dur { font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .9; }
.vn-spd { background: rgba(0,0,0,.15); color: inherit; border: 0; border-radius: 6px; padding: 2px 6px; font-size: 10.5px; font-weight: 800; cursor: pointer; }

/* Reply preview bar & Voice Recording live bar */
.msgr-replybar { display: flex; align-items: center; gap: 8px; padding: 7px 14px; background: var(--soft); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.msgr-replybar span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgr-replybar button { background: none; border: 0; font-size: 18px; color: var(--muted); cursor: pointer; }
.vn-rec-bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: #fef2f2; border-top: 1px solid #fecaca; color: #b91c1c; font-size: 13.5px; }
.vn-rec-dot { width: 11px; height: 11px; border-radius: 50%; background: #dc2626; animation: vnpulse 1s infinite; }
@keyframes vnpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.5); } 50% { box-shadow: 0 0 0 7px rgba(220,38,38,0); } }
.vn-rec-timer { font-weight: 800; font-variant-numeric: tabular-nums; margin-right: auto; }
.vn-mic-btn { border: 0; cursor: pointer; color: var(--primary); }
.vn-mic-btn:hover { background: #fee2e2; color: #dc2626; }

@media (max-width: 860px) {
  .msgr-shell { grid-template-columns: 1fr; height: calc(100vh - 125px); border-radius: 14px; }
  .msgr-side { display: none; }
  .msgr-back { display: inline-flex; }
  .mh-btn span { display: none; }
  .msg { max-width: 86%; }
}
.urgent-fee-pill { font-style: normal; font-size: 11px; font-weight: 800; background: #fee2e2; color: #b91c1c; padding: 2px 8px; border-radius: 999px; margin-left: 5px; }

/* ── Admin monetization page ────────────── */
.monet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.monet-card { margin: 0; }
.mc-head { display: flex; align-items: flex-start; gap: 12px; }
.mc-head > div { flex: 1; min-width: 0; }
.mc-head b { font-size: 15px; display: block; margin-bottom: 2px; }
.mc-head small { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: block; }
.mc-ico { width: 40px; height: 40px; border-radius: 11px; font-size: 21px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mc-sw { flex-shrink: 0; display: inline-flex; cursor: pointer; margin-top: 3px; }
.mc-sw input { display: none; }
.mc-sw .sw { width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background .18s; }
.mc-sw .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s; }
.mc-sw input:checked + .sw { background: #16a34a; }
.mc-sw input:checked + .sw::after { transform: translateX(18px); }
.mc-plans { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.mc-plan { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; }
.rev-bar { height: 8px; width: 120px; max-width: 100%; background: var(--soft); border-radius: 99px; overflow: hidden; }
.rev-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #16a34a); border-radius: 99px; }
@media (max-width: 860px) { .monet-grid { grid-template-columns: 1fr; } }

/* ── Monetization streams round 2 ───────── */
/* Dealer PRO */
.pro-pill { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg, #f59e0b, #b45309); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; padding: 3px 9px; border-radius: 999px; }
.pro-pill .bx { font-size: 12px; }
.dc-pro { border-color: #f59e0b !important; box-shadow: 0 0 0 2px rgba(245,158,11,.18); }
.dc-pro:hover { box-shadow: 0 0 0 2px rgba(245,158,11,.3), var(--shadow-md) !important; }
.pro-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: linear-gradient(120deg, #131f35, #78350f 130%); border-radius: 14px; padding: 16px 20px; margin-bottom: 18px; color: #fff; }
.pro-cta.pro-active { background: linear-gradient(120deg, #14532d, #166534 130%); }
.pro-cta-l { display: flex; align-items: center; gap: 13px; min-width: 0; }
.pro-cta-l > .bx { font-size: 30px; color: var(--yellow); flex-shrink: 0; }
.pro-cta-l b { font-size: 15.5px; display: block; }
.pro-cta-l span { font-size: 12.5px; opacity: .85; }
.pro-hero { border-color: #f59e0b !important; }
.pro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.pro-perks { display: grid; gap: 12px; }
.pro-perk { display: flex; align-items: flex-start; gap: 12px; }
.pp-ico { width: 40px; height: 40px; border-radius: 11px; background: #fef3c7; color: #b45309; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.pro-perk b { display: block; font-size: 14px; }
.pro-perk small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 760px) { .pro-grid { grid-template-columns: 1fr; } }

/* Sponsor cards */
.sponsor-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 10px 8px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; position: relative; }
.sponsor-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.sp-tag { position: absolute; top: 8px; left: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; background: rgba(19,31,53,.85); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.sp-tag .bx { font-size: 12px; color: var(--yellow); }
.sponsor-card img { width: 100%; height: 110px; object-fit: cover; display: block; }
.sponsor-card .sp-txt { display: block; padding: 9px 12px 11px; }
.sp-txt b { font-size: 13px; display: block; line-height: 1.3; }
.sp-txt small { font-size: 11.5px; color: var(--muted); }
.sp-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sp-row:last-child { border-bottom: 0; }
.sp-thumb { width: 86px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--soft); }
.sp-noimg { display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: var(--muted); }

/* Inspection videos (listing page) */
.lvid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }
.lvid { margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #000; }
.lvid video { width: 100%; aspect-ratio: 16/9; display: block; }
.lvid figcaption { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 12.5px; font-weight: 600; background: var(--card-bg, #fff); color: var(--ink2); }
.lvid figcaption i { color: var(--primary); }
.vid-tag { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 5px; display: inline-flex; align-items: center; gap: 4px; }

/* ── Dealer showroom hero (seller.php) ── */
.sh-hero { border-radius: 20px; overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-md); }
.sh-banner { height: 168px; background: linear-gradient(125deg, var(--navy, #131f35) 0%, var(--sc, var(--primary, #1b5fbf)) 55%, var(--sc, var(--primary, #1b5fbf)) 100%); background-size: cover; background-position: center; position: relative; }
.sh-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,31,53,.02) 15%, rgba(19,31,53,.82)); }
.sh-hero:not([style*="--sc"]) .sh-banner { background-image: radial-gradient(600px 160px at 88% -20%, rgba(255,190,0,.3), transparent 60%), linear-gradient(125deg, var(--navy, #131f35), var(--primary, #1b5fbf)); }
.sh-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 24px; margin-top: -62px; position: relative; z-index: 2; }
.sh-id { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.sh-id > div { padding-top: 22px; }
.sh-hero .acct-cta { padding-top: 26px; }
.sh-av { position: relative; flex-shrink: 0; }
.sh-av .avatar { border: 4px solid var(--card); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.sh-av.pro .avatar { border-color: #fbbf24; }
.sh-crown { position: absolute; top: -8px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #fde047, #f59e0b); color: #131f35; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.3); border: 2px solid var(--card); }
.sh-id h2 { margin: 0 0 3px; font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.sh-sub { padding: 12px 24px 0; }
.sh-tagline { margin: 0 0 5px; font-size: 13.5px; color: var(--muted); font-style: italic; }
.sh-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.sh-meta .bx { margin-right: 4px; vertical-align: -2px; color: var(--sc, var(--primary)); }
.sh-stats { display: flex; flex-wrap: wrap; gap: 8px 0; padding: 14px 24px 16px; margin-top: 14px; border-top: 1px dashed var(--line); }
.sh-stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 18px 6px 0; margin-right: 18px; border-right: 1px solid var(--line); }
.sh-stat:last-child { border-right: 0; }
.sh-stat b { font-size: 18px; font-weight: 800; display: inline-flex; align-items: center; gap: 3px; }
.sh-stat small { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.sh-about .sh-fact { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 9px; }
.sh-about .sh-fact .bx { color: var(--primary); font-size: 16px; }
@media (max-width: 720px) {
  .sh-banner { height: 120px; }
  .sh-bar { padding: 0 16px; margin-top: -56px; }
  .sh-id > div { padding-top: 18px; }
  .sh-hero .acct-cta { padding-top: 20px; }
  .sh-sub { padding: 10px 16px 0; }
  .sh-stats { padding: 12px 16px 14px; }
  .sh-stat { padding-right: 12px; margin-right: 12px; }
  .sh-av .avatar { width: 72px !important; height: 72px !important; }
}
.sh-svcs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.sh-svc { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); border: 1px solid transparent; }
.sh-svc .bx { font-size: 14px; }
.sh-socials { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.sh-soc { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 21px; background: var(--soft); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.sh-soc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ── Admin dashboard mini listing cards ── */
.ad-mini { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 9px; background: var(--card); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ad-mini:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.ad-mini-img { position: relative; width: 118px; height: 84px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--soft); }
.ad-mini-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.ad-mini:hover .ad-mini-img img { transform: scale(1.07); }
.ad-mini-feat { position: absolute; top: 5px; left: 5px; width: 19px; height: 19px; border-radius: 6px; background: var(--yellow); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.ad-mini-urg { position: absolute; bottom: 5px; left: 5px; background: var(--red); color: #fff; font-size: 8.5px; font-weight: 800; font-style: normal; letter-spacing: .4px; padding: 2px 5px; border-radius: 4px; }
.ad-mini-body { flex: 1; min-width: 0; }
.ad-mini-title { display: block; font-weight: 700; font-size: 14.5px; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-mini-title:hover { color: var(--primary); }
.ad-mini-meta { display: flex; align-items: center; gap: 9px; margin-top: 3px; }
.ad-mini-price { font-weight: 800; font-size: 14.5px; color: var(--primary); }
.ad-mini-sub { display: flex; gap: 14px; margin-top: 4px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.ad-mini-sub i { margin-right: 3px; }
.ad-mini-acts { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
@media (max-width: 640px) {
  .ad-mini { flex-wrap: wrap; }
  .ad-mini-acts { flex-direction: row; width: 100%; }
  .ad-mini-acts .btn { flex: 1; }
}

/* ── Admin dashboard hero ── */
.dash-hero { display: flex; gap: 24px; align-items: stretch; justify-content: space-between; padding: 26px 30px; margin-bottom: 18px; border-radius: 20px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #131f35 0%, #1b5fbf 55%, #4f46e5 100%); box-shadow: 0 18px 40px -14px rgba(27,95,191,.55); }
.dash-hero::before { content: ''; position: absolute; top: -60px; right: -40px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,190,46,.16); }
.dash-hero::after { content: ''; position: absolute; bottom: -80px; left: 30%; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.07); }
.dash-hero-main { position: relative; z-index: 1; min-width: 0; }
.dash-hero-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.75); letter-spacing: .3px; text-transform: uppercase; }
.dash-hero h2 { font-size: 27px; font-weight: 800; letter-spacing: -.4px; margin: 6px 0 4px; }
.dash-hero h2 i { color: var(--yellow); }
.dash-hero-sub { font-size: 14px; color: rgba(255,255,255,.8); margin: 0 0 14px; }
.dash-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dh-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 700; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(4px); transition: background .15s, transform .15s; }
a.dh-chip:hover { background: rgba(255,255,255,.26); transform: translateY(-1px); }
.dh-chip i { color: var(--hc, #fff); font-size: 15px; }
.dash-hero-quote { position: relative; z-index: 1; flex-shrink: 0; width: 300px; padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); display: flex; flex-direction: column; }
.dash-hero-quote > i { font-size: 26px; color: var(--yellow); }
.dash-hero-quote p { font-size: 14.5px; font-style: italic; line-height: 1.55; color: rgba(255,255,255,.92); margin: 8px 0 10px; flex: 1; }
.dash-hero-quote span { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.65); }

/* ── Dashboard customize ── */
.dash-cust { margin-bottom: 18px; }
.dash-cust summary { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; color: var(--muted); padding: 7px 14px; border: 1px dashed var(--line); border-radius: 20px; user-select: none; transition: all .15s; }
.dash-cust summary::-webkit-details-marker { display: none; }
.dash-cust summary:hover, .dash-cust[open] summary { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.dash-cust-form { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.dash-cust-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 7px 13px; border: 1px solid var(--line); border-radius: 20px; cursor: pointer; color: var(--muted); }
.dash-cust-item i { display: none; color: #16a34a; font-size: 15px; }
.dash-cust-item:has(input:checked) { color: var(--ink); border-color: var(--primary); background: var(--primary-soft); }
.dash-cust-item:has(input:checked) i { display: inline; }
.dash-cust-item input { display: none; }

@media (max-width: 900px) {
  .dash-hero { flex-direction: column; padding: 22px; }
  .dash-hero-quote { width: 100%; }
}

/* ── Admin feature flags ── */
.flag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.flag-card { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.flag-card:hover { border-color: var(--fc, var(--primary)); box-shadow: var(--shadow-sm); }
.flag-card.on { border-color: color-mix(in srgb, var(--fc, var(--primary)) 45%, var(--line)); background: linear-gradient(0deg, color-mix(in srgb, var(--fc, var(--primary)) 6%, transparent), transparent); }
.flag-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 23px; flex-shrink: 0; color: var(--fc, var(--primary)); background: color-mix(in srgb, var(--fc, var(--primary)) 12%, transparent); }
.flag-card:not(.on) .flag-ico { filter: grayscale(.7); opacity: .55; }
.flag-txt { flex: 1; min-width: 0; }
.flag-txt b { display: block; font-size: 14px; }
.flag-txt small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; line-height: 1.35; }
.flag-txt code { display: inline-block; margin-top: 4px; font-size: 10px; color: var(--muted); background: var(--soft); padding: 1px 7px; border-radius: 6px; }
.flag-sw { flex-shrink: 0; display: inline-flex; cursor: pointer; }
.flag-sw input { display: none; }
.flag-sw .sw { width: 44px; height: 25px; border-radius: 999px; background: var(--line); position: relative; transition: background .18s; }
.flag-sw .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s; }
.flag-sw input:checked + .sw { background: #16a34a; }
.flag-sw input:checked + .sw::after { transform: translateX(19px); }

/* ── Admin staff manager ── */
.staff-row { display: flex; align-items: flex-start; gap: 13px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 10px; background: var(--card); }
.staff-perms { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.staff-perm { font-size: 10.5px; font-weight: 700; padding: 2.5px 9px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 6px; }
.perm-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--muted); transition: all .12s; }
.perm-item:hover { border-color: var(--primary); }
.perm-item:has(input:checked) { color: var(--ink); border-color: var(--primary); background: var(--primary-soft); }
.perm-item input { accent-color: var(--primary); }
@media (max-width: 720px) { .perm-grid { grid-template-columns: 1fr; } }

/* ── Footer socials + app store badges ── */
.footer-socials { display: flex; gap: 8px; margin-top: 16px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: var(--sc, #cbd5e1); padding: 0; transition: all .18s; }
.footer-socials a:hover { background: var(--sc, var(--primary)); color: #fff; border-color: var(--sc, var(--primary)); transform: translateY(-3px); }
.footer-socials a[style*="#25f4ee"]:hover { color: #000; }
.store-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 13px; border-radius: 12px; background: #000; border: 1px solid #3a4356; color: #fff; cursor: default; position: relative; transition: transform .18s, border-color .18s; text-decoration: none; }
a.store-badge { cursor: pointer; }
.store-badge:hover { transform: translateY(-2px); border-color: var(--yellow); }
.store-badge > i { font-size: 27px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small { font-size: 9.5px; color: #94a3b8; letter-spacing: .2px; }
.store-badge b { font-size: 14px; font-weight: 800; }
.store-badge em { position: absolute; top: -7px; right: -7px; font-size: 8.5px; font-weight: 900; font-style: normal; letter-spacing: .6px; background: var(--yellow); color: var(--navy); padding: 2px 7px; border-radius: 8px; transform: rotate(6deg); }

/* ── Admin social links editor ── */
.soc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.soc-field { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .15s; }
.soc-field.on { border-color: color-mix(in srgb, var(--sc) 50%, var(--line)); }
.soc-ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; color: var(--sc); background: color-mix(in srgb, var(--sc) 13%, transparent); }
.soc-field:not(.on) .soc-ico { filter: grayscale(1); opacity: .45; }
.soc-inp { flex: 1; min-width: 0; }
.soc-inp label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.soc-inp input { width: 100%; padding: 7px 10px; font-size: 12.5px; }
.soc-state { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin-left: 4px; }
.soc-field.on .soc-state { color: var(--sc); }
@media (max-width: 640px) { .soc-grid { grid-template-columns: 1fr; } }

/* ── Market price estimate ── */
.mkt-est{display:flex;gap:10px;align-items:flex-start;border-radius:10px;padding:10px 12px;margin:10px 0;font-size:12px;line-height:1.45;border:1px solid}
.mkt-est>i{font-size:20px;line-height:1.1}
.mkt-est b{display:block;font-size:13px}
.mkt-est span{color:var(--muted)}
.mkt-below{background:#f0fdf4;border-color:#bbf7d0;color:#15803d}
.mkt-below span{color:#3f6b52}
.mkt-fair{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.mkt-fair span{color:#5b7194}
.mkt-above{background:#fffbeb;border-color:#fde68a;color:#b45309}
.mkt-above span{color:#8a6d3b}
