/* =========================================================
   QOFTEA — main stylesheet (no build step required)
   ========================================================= */
:root {
  --blue: #168FDB;
  --blue-600: #1179bd;
  --blue-50: #eaf5fc;
  --blue-100: #cfe7f7;
  --navy: #0d1257;
  --ink: #1f2566;
  --muted: #676ea9;
  --line: #e3e9f2;
  --bg: #f5f8fc;
  --card: #ffffff;
  --green: #1c9a4b;  --green-bg: #e3f6e9;
  --amber: #e27a00;  --amber-bg: #fff0dc;
  --red: #e0344a;    --red-bg: #ffe6e9;
  --purple: #6b3fd6; --purple-bg: #efe9ff;
  --grey: #6a7390;   --grey-bg: #eef1f6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 26, 75, .04), 0 6px 24px rgba(14, 26, 75, .05);
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
  --tabbar-h: 0px;     /* nothing is fixed to the bottom of the screen any more */
  --topnav-h: 0px;     /* all menus now live in the hamburger menu */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5;
  color: var(--ink); background: var(--bg);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { color: var(--navy); margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(22, 143, 219, .45); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }
.page { padding-top: 18px; padding-bottom: 28px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 12px; }
.section-title a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(12px);
}
.site-header .container { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.header-left, .header-right { display: flex; align-items: center; gap: 6px; }
.header-right { justify-content: flex-end; }
.logo { display: inline-flex; align-items: center; color: var(--blue); line-height: 0; }
.logo-svg { height: 26px; width: auto; display: block; }
.logo:hover { color: var(--blue-600); }
.logo.white { color: #fff; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent;
  display: inline-grid; place-items: center; color: var(--blue); cursor: pointer; font-size: 1.15rem;
}
.icon-btn:hover { background: var(--blue-50); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; background: var(--red); border-radius: 50%; border: 2px solid #fff; }
.desktop-nav { display: none; }

/* ---------- Drawer (slide-out menu) ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(8, 20, 60, .38); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility 0s linear .25s; z-index: 60; -webkit-tap-highlight-color: transparent; }
.drawer {
  position: fixed; inset: 0 auto 0 0; width: min(390px, 88vw); z-index: 61;
  background: linear-gradient(165deg, #3aabf2 0%, #239ae4 45%, #168FDB 100%); color: #fff;
  transform: translateX(-102%); visibility: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; will-change: transform; padding: 26px 28px 36px 30px; border-radius: 0 16px 16px 0;
}
body.drawer-open .drawer { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s; box-shadow: 8px 0 40px rgba(8, 40, 90, .25); }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s, visibility 0s; }
html:has(body.drawer-open), body.drawer-open { overflow: hidden; }
body.preload *, body.preload *::before, body.preload *::after { transition: none !important; }
html, body { overflow-x: clip; }
.drawer-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin: 4px 0 40px; }
.drawer-top .logo { justify-self: center; color: #fff; }
.drawer-top .logo-svg { height: 25px; }
.drawer-close { width: 44px; height: 44px; margin-left: -8px; border: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
.drawer-close .icon { width: 30px; height: 30px; stroke-width: 2.2; }
.drawer-close:hover { background: rgba(255, 255, 255, .14); }
.drawer-nav a, .drawer-nav summary {
  color: #fff; display: flex; align-items: center; gap: 22px; padding: 13px 0; min-height: 56px;
  font-size: 1.12rem; font-weight: 400; letter-spacing: .06em; cursor: pointer; list-style: none; border-radius: 10px;
}
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav a:hover, .drawer-nav summary:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.drawer-nav .icon { width: 30px; height: 30px; stroke-width: 1.35; flex-shrink: 0; }
.drawer-nav .icon.fill { stroke: none; }
.drawer-nav summary .chev { width: 22px; height: 22px; margin-left: auto; stroke-width: 3.4; transition: transform .2s; }
.drawer-nav details[open] > summary .chev { transform: rotate(90deg); }
.drawer-nav .sub { position: relative; margin: -2px 0 6px 15px; padding-left: 0; }
.drawer-nav .sub::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 20px; width: 1.5px; background: rgba(255, 255, 255, .9); }
.drawer-nav .sub a { position: relative; padding-left: 44px; min-height: 54px; gap: 20px; font-size: 1.05rem; }
.drawer-nav .sub a::before { content: ""; position: absolute; left: -2.5px; top: 50%; width: 6.5px; height: 6.5px; margin-top: -3px; border-radius: 50%; background: #fff; }
.drawer-nav .sub a .icon { width: 28px; height: 28px; }
.drawer-nav hr { border: 0; border-top: 1.5px solid rgba(255, 255, 255, .75); margin: 22px 0 14px; }
.drawer-nav .count { margin-left: auto; background: #fff; color: var(--blue); border-radius: 999px; font-size: .75rem; padding: 1px 9px; letter-spacing: 0; }
.drawer-extra { display: flex; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .3); }
.drawer-extra a, .drawer-extra button { min-height: 0; padding: 4px 0; font: inherit; font-size: .92rem; letter-spacing: .03em; color: rgba(255, 255, 255, .88); background: none; border: 0; cursor: pointer; }
.drawer-extra form { margin: 0; }

/* ---------- Main tabs (mobile): directly under the header ---------- */
.tabbar {
  position: sticky; top: var(--header-h); z-index: 39; height: var(--topnav-h);
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 4px 12px rgba(13, 18, 87, .05);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--blue); font-size: .78rem; font-weight: 400; }
.tabbar a:hover { color: var(--blue-600); background: var(--blue-50); }
.tabbar a .icon { width: 24px; height: 24px; stroke-width: 1.6; }
.tabbar a.active { font-weight: 600; }
.tabbar a.active::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.tabbar .tab-icon { position: relative; line-height: 0; }
.tabbar .tab-icon .dot { position: absolute; top: -1px; right: -3px; width: 10px; height: 10px; background: var(--red); border: 2px solid #fff; border-radius: 50%; }
html { scroll-padding-top: calc(var(--header-h) + var(--topnav-h) + 12px); }

/* ---------- Cards & surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card + .card { margin-top: 14px; }
.card h3 + p { margin-top: 4px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: 12px; border: 1.6px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-50); }
.btn-ghost { background: var(--blue-50); color: var(--blue); }
.btn-ghost:hover { background: var(--blue-100); }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-danger:hover { background: #ffd4da; color: var(--red); }
.btn-block { width: 100%; }
.btn-lg { height: 56px; font-size: 1.1rem; border-radius: 14px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.btn-block.split { justify-content: space-between; padding: 0 22px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; font-weight: 600; }
.link-btn.danger { color: var(--red); }

/* ---------- Pills, chips, badges ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px;
  border-radius: 10px; background: #fff; border: 1px solid #dfe5ee; color: #3d4287; font-weight: 400; font-size: .95rem; cursor: pointer;
  box-shadow: 0 1px 3px rgba(13, 18, 87, .05);
}
.chip:hover { border-color: var(--blue-100); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.sm { height: 34px; padding: 0 12px; font-size: .85rem; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.segmented .chip { justify-content: center; height: 46px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.purple { background: var(--purple-bg); color: var(--purple); }
.badge.blue { background: var(--blue-50); color: var(--blue); }
.badge.grey { background: var(--grey-bg); color: var(--grey); }
.verified-tick { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; }
.verified-tick .icon { width: 12px; height: 12px; stroke-width: 3; }
.stars { color: #f5a623; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.stars .muted { font-weight: 400; }

/* ---------- Stats row ---------- */
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.stats > div { text-align: center; padding: 4px 6px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: 1.45rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.stats span { color: var(--muted); font-size: .9rem; }
.stats .stat-icon { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: left; }
.stats .stat-icon .icon { width: 34px; height: 34px; color: var(--blue); }

/* ---------- Avatars ---------- */
.avatar { border-radius: 50%; object-fit: cover; background: var(--blue-50); flex-shrink: 0; }
.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar-wrap .verified-tick { position: absolute; right: 2px; bottom: 4px; width: 28%; height: 28%; min-width: 18px; min-height: 18px; border: 2.5px solid #fff; }
.avatar-wrap .verified-tick .icon { width: 55%; height: 55%; }

/* ---------- Listing grid & cards ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
/* Card = photo (≈70% of the height) + a separate small text box underneath */
.listing-card {
  position: relative; display: grid; grid-template-rows: minmax(0, 7.2fr) minmax(58px, 2.8fr); gap: 5px;
  aspect-ratio: 3 / 4; color: var(--navy); background: none; border: 0; box-shadow: none;
}
.listing-card:hover { color: var(--navy); }
.listing-card .thumb {
  display: block; min-height: 0; border-radius: 12px; overflow: hidden; background: var(--blue-50);
}
.listing-card .thumb img, .listing-card .thumb .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.listing-card:hover .thumb img { transform: scale(1.03); }
.listing-card .body {
  min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; gap: 1px;
  padding: 2px 2px 0; background: none; color: var(--navy);
}
.listing-card .title { font-weight: 400; font-size: .8rem; line-height: 1.3; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-card .price { font-weight: 500; font-size: .92rem; line-height: 1.3; color: var(--navy); }
.listing-card .meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .7rem; line-height: 1.3; gap: 4px; }
.listing-card .meta span:first-child { display: inline-flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-card .meta span:last-child { white-space: nowrap; flex-shrink: 0; }
.listing-card .meta .icon { width: 12px; height: 12px; stroke-width: 1.7; flex-shrink: 0; }
.listing-card .promo { position: absolute; top: 8px; left: 8px; z-index: 2; }
.listing-card > form { display: contents; }
@media (min-width: 1024px) {
  .listing-card .title { font-size: .88rem; }
  .listing-card .price { font-size: 1rem; }
  .listing-card .meta { font-size: .76rem; }
}
.fav-btn { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; color: var(--blue); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 6px rgba(13, 18, 87, .14); z-index: 2; }
.fav-btn .icon { width: 18px; height: 18px; stroke-width: 2; }
.fav-btn.active .icon, button.active > .icon, .icon-btn.active .icon { fill: currentColor; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #9bb9ee; background: linear-gradient(135deg, #eef5ff, #dceaff); }
.placeholder .icon { width: 38%; height: 38%; stroke-width: 1.2; }

/* ---------- Row items (dashboard lists) ---------- */
.list-items { display: flex; flex-direction: column; gap: 10px; }
.item-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; color: var(--ink); }
.item-row .thumb { width: 116px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--blue-50); }
.item-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.item-row .info .t { font-weight: 500; color: var(--navy); font-size: 1.05rem; line-height: 1.3; }
.item-row .info .d { color: var(--muted); font-size: .88rem; }
.item-row .views { color: var(--muted); font-size: .9rem; white-space: nowrap; }

/* ---------- Dropdown menu ---------- */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--blue-50); color: var(--blue); }
.menu-list { position: absolute; right: 0; top: 42px; z-index: 30; min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(14, 26, 75, .14); padding: 6px; }
.menu-list a, .menu-list button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; font: inherit; color: var(--ink); border-radius: 8px; cursor: pointer; text-align: left; }
.menu-list a:hover, .menu-list button:hover { background: var(--blue-50); color: var(--blue); }
.menu-list .danger { color: var(--red); }
.menu-list form { margin: 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; color: var(--navy); font-size: .95rem; }
.field .hint { color: var(--muted); font-size: .85rem; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22, 143, 219, .12); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--red); }
.error { color: var(--red); font-size: .85rem; }
.form-grid { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.pill-select { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 12px; border-radius: 10px; border: 1px solid #dfe5ee; background: #fff; color: #2e3480; font-weight: 400; font-size: 1.02rem; box-shadow: 0 1px 4px rgba(13, 18, 87, .05); }
.pill-select .icon { color: #2e3480; width: 24px; height: 24px; stroke-width: 1.5; }
.pill-select select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.cat-select { width: 100%; justify-content: flex-start; height: 52px; font-size: 1.18rem; padding: 0 18px 0 16px; gap: 18px; }
.cat-select .icon { width: 28px; height: 28px; }
.cat-select .chev { width: 22px; height: 22px; }
.cat-select .chev { margin-left: auto; }
.upload-drop { border: 2px dashed var(--blue-100); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); background: var(--blue-50); cursor: pointer; display: block; }
.upload-drop:hover { border-color: var(--blue); }
.upload-drop input { display: none; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb-grid label { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; display: block; }
.thumb-grid img { width: 100%; height: 100%; object-fit: cover; }
.thumb-grid .rm { position: absolute; inset: auto 6px 6px auto; background: #fff; border-radius: 6px; padding: 2px 6px; font-size: .75rem; display: flex; gap: 4px; align-items: center; }
.auth-card { max-width: 440px; margin: 20px auto; }

/* ---------- Alerts ---------- */
.flash { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--blue-50); color: var(--navy); border: 1px solid var(--blue-100); display: flex; gap: 10px; align-items: flex-start; }
.flash.error-box { background: var(--red-bg); border-color: #ffc9d0; color: #8a1426; }
.flash ul { margin: 0; padding-left: 18px; }

/* ---------- Home / browse ---------- */
.browse-filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.filter-panel { display: none; }
.filter-panel.open { display: block; }
.filter-panel .form-grid { grid-template-columns: 1fr 1fr; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .icon { width: 48px; height: 48px; color: #a7c3f4; margin: 0 auto 10px; }
.empty h3 { margin-bottom: 6px; }

/* ---------- Listing detail ---------- */
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--blue-50); aspect-ratio: 16 / 10; }
.gallery .slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .slides::-webkit-scrollbar { display: none; }
.gallery .slides img, .gallery .slides .placeholder { flex: 0 0 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.gallery .counter { position: absolute; right: 14px; bottom: 14px; background: rgba(40, 45, 60, .7); color: #fff; border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: .9rem; }
.gallery .dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 7px; }
.gallery .dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .8); }
.gallery .dots span.on { background: var(--blue); }
.price-big { font-size: 2rem; font-weight: 800; color: var(--navy); }
.specs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.specs > div { padding: 2px 16px; }
.specs > div:first-child { padding-left: 0; }
.specs > div + div { border-left: 1px solid var(--line); }
.specs span { color: var(--muted); font-size: .9rem; display: block; }
.specs strong { font-size: 1.1rem; color: var(--navy); font-weight: 600; }
.seller-link { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.seller-link:hover { color: var(--ink); }
.action-bar { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); z-index: 20; background: #fff; padding: 12px 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px -16px 0; }
dialog { border: 0; border-radius: 20px; padding: 22px; width: min(460px, 92vw); box-shadow: 0 30px 80px rgba(14, 26, 75, .25); color: var(--ink); }
dialog::backdrop { background: rgba(9, 20, 60, .45); }
dialog .dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.amounts label { position: relative; }
.amounts input { position: absolute; opacity: 0; }
.amounts span { display: grid; place-items: center; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; cursor: pointer; }
.amounts input:checked + span { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }

/* ---------- Account ---------- */
.profile-card { display: flex; align-items: center; gap: 18px; }
.profile-card .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.profile-card .who h2 { font-size: 1.5rem; }
.meta-line { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.meta-line .icon { width: 18px; height: 18px; }
.manage-card .top { display: flex; gap: 18px; align-items: flex-start; }
.manage-card .tile { width: 96px; height: 96px; border-radius: 16px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.manage-card .tile .icon { width: 56px; height: 56px; stroke-width: 1.6; }
.manage-card .desc { color: var(--muted); margin: 14px 0; }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-links a { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 500; box-shadow: var(--shadow); }
.quick-links a:hover { border-color: var(--blue-100); }
.quick-links .icon { width: 30px; height: 30px; color: var(--blue); }
.quick-links .chev { margin-left: auto; width: 18px; height: 18px; color: var(--muted); }
.quick-links .count { margin-left: auto; background: var(--blue); color: #fff; border-radius: 999px; font-size: .75rem; padding: 1px 8px; font-weight: 700; }
.quick-links .count + .chev { margin-left: 4px; }
.progress { height: 12px; border-radius: 999px; background: var(--blue-50); overflow: hidden; margin-top: 12px; }
.progress span { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.add-choice { display: grid; gap: 14px; }
.add-choice a { display: flex; gap: 18px; align-items: center; padding: 22px; color: var(--ink); }
.add-choice .tile { width: 72px; height: 72px; border-radius: 16px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.add-choice .tile .icon { width: 40px; height: 40px; }

/* ---------- Charts (pure CSS/SVG) ---------- */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.bars span { flex: 1; background: linear-gradient(180deg, #3aa6ec, var(--blue)); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; }
.bars span:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 6px; background: var(--navy); color: #fff; font-size: .75rem; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.bars.tall { height: 190px; gap: 18px; }
.bars.tall span { border-radius: 6px 6px 0 0; }
.bar-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; margin-top: 6px; }
.bar-labels.even { justify-content: space-around; }
.perf { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }
.perf .totals strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.perf .totals span { color: var(--muted); }
.perf .totals div + div { margin-top: 10px; }
.spark svg { width: 100%; height: 110px; overflow: visible; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.donation-box { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.donation-box .ring { width: 64px; height: 64px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.donation-box .ring .icon { width: 34px; height: 34px; }
.donation-box strong { font-size: 1.8rem; color: var(--navy); font-weight: 800; }
.donut { width: 190px; height: 190px; flex-shrink: 0; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; }
.legend b { margin-left: auto; color: var(--navy); }

/* ---------- Blog ---------- */
.feature { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy); color: #fff; }
.feature img, .feature .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(5, 12, 40, .78)); }
.feature .content { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; }
.feature h2 { color: #fff; font-size: clamp(1.4rem, 3.5vw, 2rem); }
.feature p { margin: 4px 0 10px; opacity: .95; }
.feature .byline { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.feature .byline i { opacity: .6; font-style: normal; }
.feature .tag { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--blue); color: #fff; padding: 5px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.feature .save { position: absolute; right: 14px; bottom: 16px; z-index: 2; color: #fff; }
.story { display: flex; gap: 14px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); position: relative; }
.story:hover { color: var(--ink); border-color: var(--blue-100); }
.story .thumb { width: 38%; max-width: 230px; aspect-ratio: 5 / 4; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--blue-50); }
.story .thumb img { width: 100%; height: 100%; object-fit: cover; }
.story .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 4px 4px 4px 0; }
.story .topic { color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .05em; }
.story h3 { font-size: 1.12rem; font-weight: 600; }
.story .sum { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.byline-sm { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; flex-wrap: wrap; }
.byline-sm .name { color: var(--navy); font-weight: 500; }
.sep { width: 1px; height: 12px; background: var(--line); display: inline-block; }
.engage { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .9rem; margin-top: auto; }
.engage span { display: inline-flex; align-items: center; gap: 5px; }
.engage .icon { color: var(--blue); width: 20px; height: 20px; }
.writers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; }
.writers a { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.writers strong { display: block; font-weight: 600; color: var(--navy); }
.fab { position: fixed; right: 18px; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom, 0px)); width: 62px; height: 62px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(22, 143, 219, .45); z-index: 30; }
.fab:hover { color: #fff; background: var(--blue-600); }
.fab .icon { width: 28px; height: 28px; }

.article-head .topic { font-weight: 600; }
.article-head h1 { margin: 4px 0 6px; }
.article-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; margin: 16px 0; background: var(--blue-50); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.08rem; line-height: 1.7; color: #36406a; max-width: 68ch; }
.prose h2 { font-size: 1.4rem; margin: 1.3em 0 .4em; }
.prose p { margin: 0 0 1em; }
.tip { display: flex; gap: 16px; align-items: flex-start; background: var(--blue-50); border-radius: 14px; padding: 16px 18px; margin: 0 0 1.2em; }
.tip .tip-icon { color: var(--blue); padding-right: 16px; border-right: 1px solid var(--blue-100); display: grid; place-items: center; align-self: stretch; }
.tip .tip-icon .icon { width: 30px; height: 30px; }
.tip strong { color: var(--blue); display: block; font-size: 1.05rem; }
.tip p { margin: 2px 0 0; font-size: .98rem; color: var(--muted); }
.comment { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment .who { display: flex; gap: 10px; align-items: baseline; }
.comment .who strong { color: var(--navy); }

/* ---------- Public profile ---------- */
.profile-hero { display: flex; gap: 20px; align-items: center; }
.profile-hero .who { display: flex; flex-direction: column; gap: 2px; }
.profile-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.profile-actions form { display: contents; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.tabs a { text-align: center; padding: 12px; color: var(--muted); font-weight: 500; font-size: 1.05rem; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--blue); border-color: var(--blue); }

/* ---------- Messages ---------- */
.convo { display: flex; gap: 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.convo:hover { background: var(--blue-50); color: var(--ink); }
.convo:last-child { border-bottom: 0; }
.convo .snippet { color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo .unread { background: var(--blue); color: #fff; border-radius: 999px; font-size: .75rem; padding: 1px 8px; font-weight: 700; }
.thread { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.bubble.mine { align-self: flex-end; background: var(--blue); color: #fff; border-color: var(--blue); }
.bubble time { display: block; font-size: .72rem; opacity: .7; margin-top: 4px; }
.bubble .offer { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 4px; }
.composer { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); background: var(--bg); padding: 10px 0; display: flex; gap: 8px; }
.composer .textarea { min-height: 48px; height: 48px; }

/* ---------- Pagination (Laravel default markup) ---------- */
nav[role="navigation"] { margin-top: 20px; }
nav[role="navigation"] svg { width: 18px; height: 18px; }
nav[role="navigation"] .hidden { display: none; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; margin-top: 30px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* =========================================================
   Admin
   ========================================================= */
body.admin { padding-bottom: 0; background: #eef3fb; }
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; gap: 18px; padding: 14px; }
.admin-side { display: none; background: #fff; border-radius: 18px; padding: 22px 14px; box-shadow: var(--shadow); align-self: start; position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow-y: auto; }
.admin-side .logo { display: block; padding: 0 12px 22px; }
.admin-side nav a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; color: #4a567e; font-weight: 500; margin-bottom: 4px; }
.admin-side nav a .icon { width: 24px; height: 24px; }
.admin-side nav a:hover { background: var(--blue-50); color: var(--blue); }
.admin-side nav a.active { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(22, 143, 219, .3); }
.admin-side nav .count { margin-left: auto; background: var(--red); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 8px; font-weight: 700; }
.admin-side nav a.active .count { background: #fff; color: var(--blue); }
.admin-top { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); }
.admin-top form { flex: 1; min-width: 0; }
.admin-top .search { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 46px; }
.admin-top .search input { border: 0; background: none; font: inherit; flex: 1; outline: none; color: var(--ink); min-width: 0; }
.admin-top .me { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); }
.admin-main { min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 22px 0 18px; flex-wrap: wrap; }
.admin-head p { margin: 4px 0 0; color: var(--muted); }
.kpis { display: grid; grid-template-columns: 1fr; gap: 14px; }
.kpi { display: flex; align-items: center; gap: 16px; padding: 18px; }
.kpi .ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.kpi .ring .icon { width: 30px; height: 30px; }
.kpi .ring.blue { background: var(--blue-50); color: var(--blue); }
.kpi .ring.orange { background: #fff1e2; color: #f28a1c; }
.kpi .ring.red { background: var(--red-bg); color: var(--red); }
.kpi .ring.green { background: var(--green-bg); color: var(--green); }
.kpi strong { font-size: 1.6rem; font-weight: 800; color: var(--navy); display: block; line-height: 1.1; }
.kpi .lbl { color: #4a567e; font-size: 1.02rem; }
.kpi .chg { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.kpi .chg b.up { color: var(--green); }
.kpi .chg b.down { color: var(--red); }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
.panel { padding: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.panel-head a { font-weight: 600; font-size: .9rem; display: inline-flex; gap: 4px; align-items: center; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .thumb-sm { width: 44px; height: 36px; border-radius: 8px; overflow: hidden; background: var(--blue-50); flex-shrink: 0; }
.table .thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.table .actions form { margin: 0; }
.cat-pill { display: inline-block; padding: 3px 12px; border-radius: 8px; font-size: .82rem; font-weight: 500; background: var(--blue-50); color: var(--blue); }
.rule { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rule:last-child { border-bottom: 0; }
.rule .icon { width: 26px; height: 26px; color: #4a567e; }
.rule .t { font-weight: 600; color: var(--navy); font-size: .92rem; }
.rule .h { color: var(--muted); font-size: .78rem; }
.rule .v { font-weight: 600; white-space: nowrap; }
.queue-item { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.queue-item .thumb-sm { width: 52px; height: 42px; border-radius: 8px; overflow: hidden; background: var(--blue-50); flex-shrink: 0; }
.queue-item .thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.queue-item .t { font-weight: 600; color: var(--navy); font-size: .92rem; }
.queue-item .h { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.user-line { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .9rem; }
.user-line .muted { font-size: .82rem; }
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.admin-menu-btn { display: inline-grid; }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 640px) {
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .action-bar, .composer { bottom: 0; }
  .fab { bottom: 28px; right: 28px; }
  .site-header .container { grid-template-columns: auto auto 1fr; gap: 20px; }
  .desktop-nav { display: flex; gap: 4px; margin-right: auto; margin-left: 16px; }
  .desktop-nav a { padding: 8px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; }
  .desktop-nav a:hover, .desktop-nav a.active { background: var(--blue-50); color: var(--blue); }
  .listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .browse-filters { flex-direction: row; align-items: center; }
  .browse-filters .cat-select { width: 260px; height: 46px; font-size: 1rem; }
  .listing-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .listing-layout aside { position: sticky; top: calc(var(--header-h) + 18px); }
  .action-bar { position: static; margin: 14px 0 0; padding: 0; border: 0; background: none; }
  .blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
  .blog-layout .writers { grid-auto-flow: row; grid-auto-columns: auto; }
  .admin-shell { grid-template-columns: 250px minmax(0, 1fr); padding: 22px; gap: 22px; }
  .admin-side { display: block; }
  .admin-menu-btn { display: none; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .admin-grid.dash-top { grid-template-columns: 1.15fr 1fr .95fr; }
  .admin-grid.dash-bottom { grid-template-columns: minmax(0, 2.15fr) minmax(0, .95fr); }
  .admin-grid.halves { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .item-row .thumb { width: 96px; }
  .item-row .views { display: none; }
  .manage-card .tile { width: 72px; height: 72px; }
  .manage-card .tile .icon { width: 42px; height: 42px; }
  .stats strong { font-size: 1.25rem; }
  .profile-actions .btn { padding: 0 8px; font-size: .92rem; gap: 6px; }
  .quick-links a { padding: 14px 12px; gap: 10px; }
}

/* Mobile admin sidebar as drawer */
@media (max-width: 1023px) {
  body.admin.drawer-open .admin-side { display: block; position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 61; border-radius: 0 18px 18px 0; max-height: none; top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* visibility helpers */
.only-desktop { display: none; }
@media (min-width: 1024px) { .only-desktop { display: block; } .only-mobile { display: none !important; } }
.search-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.search-bar .input { flex: 1; }

/* ---------- Additions: choices, profile, messages, admin helpers ---------- */
.chip.choice { cursor: pointer; }
.chip.choice:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(22, 143, 219, .2); }
.btn-outline.active { background: var(--blue-50); }
.link-btn.active .icon { fill: currentColor; }
.bio { color: var(--muted); margin: 12px 0 0; text-align: center; }
.star-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-pick input { position: absolute; opacity: 0; }
.star-pick label { cursor: pointer; color: #cfd9ee; }
.star-pick label .icon { width: 32px; height: 32px; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: #f5a623; }
.review { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review .rating { color: #f5a623; display: inline-flex; }
.review .rating .icon { width: 16px; height: 16px; }
.review .rating .off { color: #d8e0f0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.chat-listing { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink); }
.chat-listing .thumb-sm { width: 52px; height: 42px; border-radius: 8px; overflow: hidden; background: var(--blue-50); flex-shrink: 0; }
.chat-listing .thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.convo .thumb-sm { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--blue-50); flex-shrink: 0; }
.convo .thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.day-sep { text-align: center; color: var(--muted); font-size: .78rem; margin: 8px 0; }
.admin-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.admin-filters .input, .admin-filters .select { width: auto; min-height: 40px; padding: 8px 12px; }
.cat-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cat-row:last-child { border-bottom: 0; }
.cat-row .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.cat-row.child { padding-left: 34px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form .input, .inline-form .select { width: auto; min-height: 38px; padding: 6px 10px; font-size: .9rem; }
.mod-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mod-card:last-child { border-bottom: 0; }
.mod-card .thumb-sm { width: 72px; height: 58px; border-radius: 10px; overflow: hidden; background: var(--blue-50); flex-shrink: 0; }
.mod-card .thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.mod-card .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.error-page { text-align: center; padding: 60px 20px; }
.error-page .code { font-weight: 900; font-size: 4.5rem; color: var(--blue); line-height: 1; }
.toggle-box { display: none !important; }
.toggle-box.open { display: flex !important; }

/* ---------- Listings page (matches listingpage mockup) ---------- */
body.listings-page, body.listings-page .site-header { background: #fff; }
.listings-page .page { padding-top: 12px; }
.listings-page .browse-filters { gap: 10px; margin-bottom: 14px; align-items: flex-start; }
.listings-page .loc-select { align-self: flex-start; }
.browse-chips { margin: 0 -16px 12px; padding: 2px 16px 6px; gap: 6px; }
.chip.filter-chip { background: linear-gradient(180deg, #2aa0ea, var(--blue)); border-color: var(--blue); color: #fff; font-weight: 500; box-shadow: 0 3px 10px rgba(22, 143, 219, .35); }
.chip.filter-chip .icon { stroke-width: 2.2; }
.chip.filter-chip[aria-expanded="true"] { background: var(--blue-600); }
.listings-page .listing-grid { gap: 18px 11px; }
.site-header .search-btn { color: #2e3480; }
.site-header .menu-toggle { margin-left: -6px; }
@media (min-width: 1024px) {
  .logo-svg { height: 28px; }
  .listings-page .browse-filters { flex-direction: row; align-items: center; }
  .browse-chips { margin: 0 0 16px; padding: 2px; }
}

/* ---------- Uploaded logo (Admin → Site Settings) ---------- */
.logo-img { display: block; height: var(--logo-h, 30px); width: auto; max-width: min(220px, 55vw); object-fit: contain; }
.logo-img.to-white { filter: brightness(0) invert(1); }
.site-header .logo-img { height: min(var(--logo-h, 30px), 38px); max-width: 48vw; }
.drawer-top .logo-img { height: min(var(--logo-h, 30px), 34px); max-width: 190px; }
.admin-side .logo-img { height: min(var(--logo-h, 30px), 44px); max-width: 200px; }
.only-desktop-inline { display: none; }
@media (min-width: 1024px) {
  .only-desktop-inline { display: inline; }
  .site-header .logo-img { height: min(var(--logo-h, 30px), 52px); max-width: 260px; }
}

/* ---------- Admin → Site Settings page ---------- */
.site-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.site-grid .panel { margin: 0; }
.site-grid .card + .card { margin-top: 0; }
.brand-preview { border-radius: 12px; padding: 18px; display: flex; align-items: center; justify-content: center; min-height: 84px; border: 1px solid var(--line); overflow: hidden; }
.brand-preview.light, .upload-preview.light { background: #fff; }
.brand-preview.blue, .upload-preview.blue { background: linear-gradient(165deg, #3aabf2 0%, #239ae4 45%, #168FDB 100%); border-color: transparent; }
.brand-preview .logo-img, .upload-preview img { max-width: 100%; }
.upload-tile { position: relative;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 14px 16px; min-height: 64px;
  border: 2px dashed var(--blue-100); border-radius: 14px; background: var(--blue-50); color: var(--muted); cursor: pointer;
  transition: border-color .15s, background .15s; -webkit-tap-highlight-color: transparent;
}
.upload-tile:hover, .upload-tile.dragging { border-color: var(--blue); background: #dff0fb; }
.upload-tile input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-tile:focus-within { outline: 3px solid rgba(22, 143, 219, .35); outline-offset: 2px; }
.upload-tile > .icon { width: 30px; height: 30px; color: var(--blue); flex-shrink: 0; }
.upload-tile strong { color: var(--blue); font-weight: 600; }
.upload-tile small { flex-basis: 100%; font-size: .82rem; line-height: 1.35; overflow-wrap: anywhere; }
.upload-tile.has-file small { color: var(--green); font-weight: 600; }
.upload-preview { display: none; margin-top: 10px; border-radius: 12px; border: 1px solid var(--line); padding: 14px; align-items: center; justify-content: center; gap: 10px; min-height: 70px; }
.upload-preview:not(:empty) { display: flex; }
.upload-preview::before { content: "New"; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.upload-preview.blue::before { color: #fff; }
.upload-preview label img { max-height: 56px; width: auto; object-fit: contain; }
.upload-preview.blue label img { filter: none; }
.upload-preview.favicon { justify-content: flex-start; }
.upload-preview.favicon label img { width: 56px; height: 56px; border-radius: 12px; box-shadow: var(--shadow); }
.site-settings .check { margin-top: 12px; font-size: .92rem; }
.favicon-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.browser-tab { display: inline-flex; align-items: center; gap: 8px; background: #eef1f6; border-radius: 10px 10px 0 0; padding: 9px 12px; flex: 1; min-width: 0; max-width: 260px; font-size: .85rem; color: var(--ink); }
.browser-tab img { flex-shrink: 0; object-fit: contain; }
.browser-tab span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-tab .icon { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
.favicon-big { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; box-shadow: var(--shadow); flex-shrink: 0; }
.range { width: 100%; accent-color: var(--blue); height: 32px; }
.range-value { float: right; font-weight: 600; color: var(--blue); }
.save-bar {
  position: sticky; bottom: 0; z-index: 20; margin: 16px -14px -14px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(238, 243, 251, .94); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
}
.save-bar .btn { width: 100%; }

@media (max-width: 639px) {
  .admin-shell { padding: 10px; gap: 10px; }
  .admin-head { margin: 16px 0 12px; }
  .admin-head h1 { font-size: 1.5rem; }
  .site-grid .panel { padding: 14px; }
  .save-bar { margin: 14px -10px -10px; padding-left: 10px; padding-right: 10px; }
  .site-settings .input { font-size: 16px; } /* stops iPhone zooming into the field */
  .admin-top { gap: 6px; padding: 8px 10px; }
  .admin-top .search { height: 42px; padding: 0 10px; }
  .admin-top .search input { font-size: 16px; }
}
@media (min-width: 640px) {
  .save-bar .btn { width: auto; }
}
@media (min-width: 1024px) {
  .site-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "general favicon" "logo menu"; align-items: start; }
  .area-general { grid-area: general; } .area-favicon { grid-area: favicon; } .area-logo { grid-area: logo; } .area-menu { grid-area: menu; }
  .save-bar { margin: 18px 0 0; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .94); padding: 12px 16px; bottom: 14px; box-shadow: var(--shadow); justify-content: space-between; }
}

/* ---------- Listing page: space between the photo, info cards and description ---------- */
.listing-layout > aside { margin-top: 14px; }
.listing-layout > aside > .card { margin-top: 0; }
.listing-layout > aside > .card + .card { margin-top: 14px; }
.listing-description h3 { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.listing-description p { margin: 0; line-height: 1.65; }
@media (min-width: 1024px) {
  .listing-layout > aside { margin-top: 0; }
  .listing-layout .listing-description { margin-top: 16px; }
}

/* ---------- Everything in the hamburger menu (no tab bar / desktop links) ---------- */
.tabbar, .desktop-nav { display: none !important; }
.header-left { gap: 0; }
.menu-toggle .dot { position: absolute; top: 7px; right: 6px; width: 10px; height: 10px; background: var(--red); border: 2px solid #fff; border-radius: 50%; }
.back-btn { color: #2e3480; }
.drawer-nav a.current { background: rgba(255, 255, 255, .16); padding-left: 10px; margin-left: -10px; }
.drawer-nav .sub a.current { margin-left: 0; }
@media (min-width: 1024px) {
  .site-header .container { grid-template-columns: 1fr auto 1fr; }
}

/* =====================================================================
   2026-09 redesign: teal masthead, category bar, hero, popular categories
   ===================================================================== */
:root { --teal: #064763; --teal-600: #053a51; --header-h: 0px; --topnav-h: 0px; }
body { background: #fff; }
.m-only, .d-only { }
@media (max-width: 1023px) { .d-only { display: none !important; } }
@media (min-width: 1024px) { .m-only { display: none !important; } }
.mh-wrap { width: 100%; max-width: 1520px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1024px) { .mh-wrap { padding: 0 32px; } }
main#main > .container:first-child:empty { display: none; }

/* ---------- Masthead ---------- */
.masthead { position: relative; z-index: 40; }
.masthead-bar { background: var(--teal); color: #fff; padding: 12px 0 14px; }
.mh-top { display: flex; align-items: center; gap: 12px; }
.mh-logo { flex-shrink: 0; color: #fff; }
.mh-logo .logo-svg { height: 26px; }
.masthead .logo-img { height: min(var(--logo-h, 30px), 34px); max-width: 42vw; }
.mh-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.mh-act {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 54px; padding: 4px 6px; border: 0; background: none; color: #fff; font: inherit; font-size: .74rem;
  line-height: 1.1; cursor: pointer; border-radius: 10px; white-space: nowrap;
}
.mh-act:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.mh-act .icon { width: 25px; height: 25px; stroke-width: 1.6; }
.mh-ic { position: relative; line-height: 0; }
.mh-badge { position: absolute; top: -5px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ef4c64; color: #fff; font-size: .66rem; font-weight: 700; line-height: 17px; text-align: center; }
.mh-msearch { margin-top: 12px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; background: #fff; border-radius: 6px; }
.mh-msearch .icon { width: 22px; height: 22px; color: var(--navy); stroke-width: 2; flex-shrink: 0; }
.mh-msearch input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--navy); background: none; }
.mh-msearch input::placeholder { color: #8a93ad; }
.mh-msearch:focus-within { box-shadow: 0 0 0 3px rgba(22, 143, 219, .5); }
@media (max-width: 380px) { .mh-act { min-width: 46px; padding: 4px 3px; font-size: .68rem; } .mh-logo .logo-svg { height: 22px; } }

@media (min-width: 1024px) {
  .masthead-bar { padding: 12px 0; }
  .mh-top { gap: 26px; }
  .mh-logo .logo-svg { height: 30px; }
  .masthead .logo-img { height: min(var(--logo-h, 30px), 44px); max-width: 220px; }
  .mh-search {
    flex: 1; max-width: 960px; display: flex; align-items: center; height: 54px; padding: 0 6px 0 18px;
    background: #fff; border-radius: 12px; color: var(--navy);
  }
  .mh-search:focus-within { box-shadow: 0 0 0 3px rgba(22, 143, 219, .45); }
  .mh-search-ic { width: 22px; height: 22px; color: #3d4a6b; flex-shrink: 0; }
  .mh-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1.05rem; padding: 0 12px; color: var(--navy); }
  .mh-search input::placeholder { color: #8a93ad; }
  .mh-divider { width: 1px; height: 30px; background: #dfe4ee; }
  .mh-loc { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 16px; min-width: 170px; max-width: 240px; color: var(--navy); font-size: 1rem; cursor: pointer; }
  .mh-loc .icon { width: 20px; height: 20px; color: var(--navy); flex-shrink: 0; }
  .mh-loc .chev { width: 18px; height: 18px; margin-left: auto; stroke-width: 2.4; }
  .mh-loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mh-loc select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
  .mh-search-btn { height: 42px; padding: 0 22px; border: 0; border-radius: 9px; background: var(--blue); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
  .mh-search-btn:hover { background: var(--blue-600); }
  .mh-actions { gap: 8px; }
  .mh-act { font-size: .84rem; min-width: 64px; }
  .mh-act .icon { width: 26px; height: 26px; }
  .mh-post {
    margin-left: 10px; display: inline-flex; align-items: center; height: 54px; padding: 0 32px; border-radius: 10px;
    background: var(--blue); border: 2px solid #fff; color: #fff; font-weight: 600; font-size: 1.12rem; white-space: nowrap;
  }
  .mh-post:hover { background: var(--blue-600); color: #fff; }
}

/* ---------- Category bar (desktop) ---------- */
.catbar { background: #fff; border-bottom: 1px solid #e8ecf3; }
.catbar-list { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 0; padding: 0; list-style: none; height: 56px; overflow: hidden; }
.catbar-list > li { flex-shrink: 0; }
.catbar-list a, .catbar-more summary { display: flex; align-items: center; gap: 4px; height: 56px; color: #1d2340; font-size: 1.02rem; white-space: nowrap; cursor: pointer; }
.catbar-list a:hover, .catbar-list a.active, .catbar-more summary:hover { color: var(--blue); }
.catbar-list a.active { box-shadow: inset 0 -3px 0 var(--blue); }
.catbar-more summary { list-style: none; }
.catbar-more summary::-webkit-details-marker { display: none; }
.catbar-more summary .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.catbar-more details[open] summary .icon { transform: rotate(180deg); }
.catbar-menu {
  position: fixed; z-index: 60; margin: 0; padding: 8px; list-style: none; min-width: 220px; max-height: 70vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(13, 18, 87, .16);
}
.catbar-menu a { height: auto; padding: 10px 12px; border-radius: 8px; font-size: .98rem; }
.catbar-menu a:hover { background: var(--blue-50); }
.catbar-list.is-measuring { overflow: visible; }

/* ---------- Home: mobile category strip ---------- */
.cat-strip { padding: 14px 0 6px; border-bottom: 1px solid #eef1f6; }
.cat-strip-track { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-strip-track::-webkit-scrollbar { display: none; }
.cat-strip-item { flex: 0 0 auto; width: 78px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #1d2340; font-size: .78rem; text-align: center; line-height: 1.2; }
.cat-strip-pic { width: 58px; height: 50px; display: grid; place-items: center; }
.cat-strip-pic img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.cat-strip-pic .icon { width: 40px; height: 40px; color: var(--blue); stroke-width: 1.4; }
.cat-strip-pic .icon.fill { stroke: none; }
.dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 4px; min-height: 22px; }
.dots i { width: 7px; height: 7px; border-radius: 4px; background: #d3d9e4; transition: width .2s, background .2s; }
.dots i.on { width: 20px; background: var(--blue); }

/* ---------- Home: hero (desktop) ---------- */
.home { padding-bottom: 20px; }
.hero {
  margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 24px;
  background: linear-gradient(100deg, #eef6fd 0%, #e8f3fc 60%, #e1effb 100%); border-radius: 18px; padding: 34px 40px; min-height: 280px; overflow: hidden;
}
.hero h1 { font-size: clamp(2.2rem, 3.2vw, 3rem); font-weight: 800; letter-spacing: -.02em; color: #0a0f3c; line-height: 1.05; }
.hero-sub { font-size: 1.35rem; color: #4a5572; margin: 6px 0 14px; }
.hero-points { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; color: #4a5572; font-size: 1.08rem; }
.hero-points li { display: flex; align-items: center; gap: 12px; }
.hero-points .icon { width: 22px; height: 22px; color: var(--blue); stroke-width: 2.6; }
.hero-btn { min-width: 250px; border-radius: 26px; font-size: 1.2rem; height: 52px; }
.hero-collage { position: relative; height: 250px; }
.hc { position: absolute; overflow: hidden; border-radius: 14px; background: #d8e9f7; box-shadow: 0 10px 28px rgba(13, 30, 70, .14); border: 3px solid #fff; }
.hc img { width: 100%; height: 100%; object-fit: cover; }
.hc-1 { left: 0; top: 50px; width: 34%; height: 150px; z-index: 2; }
.hc-2 { left: 30%; top: 30px; width: 28%; height: 220px; z-index: 3; }
.hc-3 { left: 55%; top: 0; width: 26%; height: 200px; z-index: 2; }
.hc-4 { left: 76%; top: 40px; width: 24%; height: 205px; z-index: 1; }
.hc-icon { display: grid; place-items: center; color: var(--blue); background: #fff; }
.hc-icon .icon { width: 56px; height: 56px; stroke-width: 1.3; }

/* ---------- Home: promo (mobile) ---------- */
.promo { margin-top: 16px; display: flex; align-items: center; gap: 12px; background: #e9f4fd; border-radius: 12px; padding: 16px 14px 16px 16px; overflow: hidden; }
.promo-text { flex: 1 1 58%; min-width: 0; }
.promo h2 { font-size: 1.22rem; font-weight: 700; color: #0a0f3c; line-height: 1.2; }
.promo p { margin: 3px 0 12px; color: #2c3552; font-size: .92rem; }
.promo-btn { width: 100%; max-width: 190px; border-radius: 22px; height: 40px; font-size: 1rem; }
.promo-collage { flex: 0 0 38%; position: relative; height: 104px; }
.pc { position: absolute; overflow: hidden; border-radius: 6px; box-shadow: 0 4px 10px rgba(13, 30, 70, .15); background: #d8e9f7; }
.pc img { width: 100%; height: 100%; object-fit: cover; }
.pc-1 { left: 22%; top: 0; width: 44%; height: 40px; }
.pc-2 { left: 72%; top: 0; width: 28%; height: 34px; }
.pc-3 { left: 0; top: 44px; width: 44%; height: 38px; }
.pc-4 { left: 47%; top: 38px; width: 30%; height: 64px; z-index: 2; }
.pc-5 { left: 80%; top: 40px; width: 20%; height: 38px; }

/* ---------- Home sections ---------- */
.home-section { margin-top: 26px; }
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.home-head h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; color: #0a0f3c; }
.see-all { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--blue); font: inherit; font-size: 1rem; cursor: pointer; white-space: nowrap; }
.see-all .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.home-more { text-align: center; margin-top: 22px; }
.area-select label { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 1rem; cursor: pointer; max-width: 58vw; }
.area-select label span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.area-select .icon { width: 20px; height: 20px; flex-shrink: 0; }
.area-select .icon:first-child { fill: currentColor; stroke: #fff; }
.area-select .chev { stroke-width: 2.4; }
.area-select select { position: absolute; inset: 0; opacity: 0; font-size: 16px; cursor: pointer; }

/* category tiles: swipe row on phones, grid on desktop */
.cat-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 40%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
.cat-tiles::-webkit-scrollbar { display: none; }
.cat-tile { scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid #e6eaf1; border-radius: 10px; overflow: hidden; color: #1d2340; box-shadow: 0 2px 8px rgba(13, 18, 87, .05); }
.cat-tile:hover { color: var(--blue); box-shadow: 0 8px 20px rgba(13, 18, 87, .1); }
.cat-tile-pic { aspect-ratio: 1.6 / 1; background: #eef5fc; display: grid; place-items: center; overflow: hidden; }
.cat-tile-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.cat-tile:hover .cat-tile-pic img { transform: none; }
.cat-tile-pic .icon { width: 44px; height: 44px; color: var(--blue); stroke-width: 1.4; }
.cat-tile-pic .icon.fill { stroke: none; }
.cat-tile-name { padding: 10px 8px 12px; text-align: center; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) {
  .home-section { margin-top: 34px; }
  .home-head h2 { font-size: 1.75rem; }
  .cat-tiles { grid-auto-flow: row; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 16px; }
  .cat-tile-pic { aspect-ratio: 1.5 / 1; }
}

/* ---------- Listing cards (new design) ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 640px) { .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.listing-card {
  position: relative; display: flex; flex-direction: column; aspect-ratio: auto; gap: 0;
  background: #fff; border: 1px solid #e6eaf1; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(13, 18, 87, .05); color: var(--navy);
}
.listing-card:hover { box-shadow: 0 10px 26px rgba(13, 18, 87, .12); color: var(--navy); }
.listing-card .thumb { display: block; aspect-ratio: 1.72 / 1; border: 0; border-radius: 0; box-shadow: none; background: #eef5fc; overflow: hidden; }
.listing-card .thumb img, .listing-card .thumb .placeholder { width: 100%; height: 100%; object-fit: cover; }
.listing-card .body { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px 12px; background: #fff; overflow: visible; }
.listing-card .title { font-size: .95rem; font-weight: 400; color: #0a0f3c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-card .price { font-size: 1.12rem; font-weight: 700; color: #0a0f3c; line-height: 1.3; }
.listing-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 3px; color: #5b6488; font-size: .8rem; }
.listing-card .meta .icon { width: 15px !important; height: 15px !important; stroke-width: 1.6; }
.fav-btn { top: 10px; right: 10px; width: 36px; height: 36px; box-shadow: 0 2px 8px rgba(13, 18, 87, .15); }
.fav-btn .icon { width: 21px; height: 21px; }
@media (min-width: 1024px) {
  .listing-card .thumb { aspect-ratio: 2.1 / 1; }
  .listing-card .body { padding: 12px 14px 14px; }
  .listing-card .title { font-size: 1rem; }
  .listing-card .price { font-size: 1.2rem; }
  .listing-card .meta { font-size: .88rem; }
  .fav-btn { width: 40px; height: 40px; }
}

/* ---------- Results page ---------- */
.results-page .page { padding-top: 16px; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.results-head h1 { font-size: 1.5rem; font-weight: 800; color: #0a0f3c; }
.results-head h1 .muted { font-weight: 400; }
@media (min-width: 1024px) {
  .results-page .container.page { max-width: 1520px; padding: 20px 32px; }
  .results-head h1 { font-size: 1.9rem; }
}
.cat-row .ic { overflow: hidden; }
.cat-row .ic img { width: 100%; height: 100%; object-fit: cover; }
.site-footer { background: #f6f8fb; margin-top: 40px; }
.listing-layout aside { top: 18px !important; }
/* phone fine-tuning */
.cat-tiles { scroll-padding: 0 16px; }
.cat-strip-track { scroll-padding: 0 10px; }
@media (max-width: 1023px) {
  .home-head h2 { font-size: 1.3rem; }
  .mh-actions { gap: 0; margin-right: -6px; }
}
@media (max-width: 430px) {
  .mh-top { gap: 6px; }
  .mh-logo .logo-svg { height: 22px; }
  .mh-act { min-width: 0; padding: 4px 5px; font-size: .68rem; }
  .mh-act .icon { width: 23px; height: 23px; }
}
@media (max-width: 350px) {
  .mh-logo .logo-svg { height: 18px; }
  .mh-act { padding: 4px 3px; font-size: .62rem; }
}

/* =====================================================================
   2026-09 (b): listing cards like the "In your area" design + search page
   ===================================================================== */
/* ---------- Grid card: photo, then price / title / place ---------- */
.listing-card, .listing-card:hover { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.listing-card .thumb { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #eef3f9; }
.listing-card .thumb img { transition: transform .3s; }
.listing-card:hover .thumb img { transform: scale(1.03); }
.listing-card .body { padding: 10px 4px 0; background: none; gap: 2px; }
.listing-card .price { order: 1; font-size: 1.28rem; font-weight: 700; color: var(--blue); line-height: 1.25; }
.listing-card .title { order: 2; font-size: 1.02rem; font-weight: 400; color: #1b2138; line-height: 1.35; white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-card .place { order: 3; color: #8a90a3; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-card .meta { display: none; }
.lc-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 11px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .78rem; font-weight: 700; }
.lc-photos { position: absolute; left: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(10, 15, 40, .6); color: #fff; font-size: .8rem; font-weight: 600; }
.listing-card > form { display: contents; }
.fav-pill {
  position: absolute; top: 10px; right: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 4px;
  height: 36px; min-width: 36px; padding: 0 9px; justify-content: center; border: 0; border-radius: 999px;
  background: #fff; color: #1b2138; font: inherit; font-size: .95rem; cursor: pointer; box-shadow: 0 1px 6px rgba(13, 18, 60, .18);
}
.fav-pill .icon { width: 20px; height: 20px; stroke-width: 1.8; }
.fav-pill.active { color: #e0245e; }
.fav-pill.active .icon { fill: currentColor; }
.fav-pill [data-count]:empty { display: none; }
.fav-btn { display: none; }
@media (min-width: 1024px) {
  .listing-card .price { font-size: 1.35rem; }
  .listing-card .title { font-size: 1.05rem; }
}

/* ---------- Row card (search results) ---------- */
.result-list { display: grid; gap: 22px; }
.lc-row .lc-chips, .lc-row .desc { display: none; }
.lc-row .place .icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 3px; }
.lc-row .when { color: #a3a8b8; }
.lc-row .thumb { aspect-ratio: 4 / 3; }
@media (min-width: 700px) {
  .lc-row { display: grid; grid-template-columns: minmax(200px, 36%) minmax(0, 1fr); grid-template-rows: auto; gap: 0 26px; align-items: stretch; aspect-ratio: auto; }
  .lc-row .thumb { aspect-ratio: 4 / 3; border-radius: 14px; }
  .lc-row .body { padding: 2px 0 0; gap: 8px; min-height: 100%; }
  .lc-row .title { order: 1; font-size: 1.35rem; font-weight: 700; color: #0e1330; padding-right: 50px; -webkit-line-clamp: 2; }
  .lc-row .lc-chips { order: 2; display: flex; flex-wrap: wrap; gap: 6px; }
  .lc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 6px; background: #e8f3fc; color: var(--blue); font-size: .88rem; font-weight: 500; }
  .lc-chip .icon { width: 14px; height: 14px; }
  .lc-chip.grey { background: #f1f3f7; color: #50576e; }
  .lc-row .desc { order: 3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #2a3045; font-size: 1.02rem; line-height: 1.5; }
  .lc-row .place { order: 4; font-size: .98rem; }
  .lc-row .price { order: 5; margin-top: auto; padding-top: 6px; font-size: 1.7rem; }
  .lc-row .fav-pill { top: 0; right: 0; left: auto; box-shadow: none; background: none; height: 40px; }
  .lc-row > form .fav-pill { position: absolute; }
  .lc-row .fav-pill .icon { width: 26px; height: 26px; }
}
@media (max-width: 699px) {
  .lc-row .thumb { aspect-ratio: 16 / 11; }
}

/* ---------- Search results page ---------- */
.results { padding-top: 14px; padding-bottom: 20px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: #6b7390; font-size: .98rem; }
.crumbs a { color: #6b7390; }
.crumbs a:hover { color: var(--blue); }
.crumbs span { color: #0e1330; }
.crumbs .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.results-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0 10px; }
.results-top h1 { font-size: 1.45rem; font-weight: 800; color: #0e1330; letter-spacing: -.01em; line-height: 1.25; }
.loc-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 0; color: var(--blue); font: inherit; font-size: 1.08rem; cursor: pointer; }
.loc-link .icon { width: 20px; height: 20px; fill: currentColor; stroke: #fff; }
.m-toolbar { display: flex; align-items: center; gap: 10px; margin: 14px 0 16px; }
.tool-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border: 1.5px solid #dfe3eb; border-radius: 14px; background: #fff; color: #0e1330; font: inherit; font-size: 1.05rem; font-weight: 600; cursor: pointer; }
.tool-btn .icon { width: 20px; height: 20px; }
.tool-btn.icon-only { margin-left: auto; width: 50px; padding: 0; justify-content: center; background: #eef2f8; border-color: #eef2f8; }
.tool-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.sort-select label { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border: 1.5px solid #dfe3eb; border-radius: 14px; background: #fff; color: #0e1330; font-size: 1.02rem; cursor: pointer; white-space: nowrap; }
.sort-select .icon { width: 20px; height: 20px; }
.sort-select .chev { width: 16px; height: 16px; stroke-width: 2.4; }
.sort-select select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.filter-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 20px; background: #f1f4f9; border-radius: 14px; }
.fb-drop { position: relative; }
.fb-drop summary { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 10px; color: #0e1330; font-size: 1.02rem; font-weight: 500; cursor: pointer; list-style: none; }
.fb-drop summary::-webkit-details-marker { display: none; }
.fb-drop summary:hover, .fb-drop[open] summary { background: #fff; }
.fb-drop summary b { color: var(--blue); font-weight: 600; }
.fb-drop summary .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.fb-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 280px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(13, 18, 60, .15); }
.fb-list { display: grid; padding: 8px; min-width: 220px; }
.fb-list a { padding: 10px 12px; border-radius: 8px; color: #1b2138; }
.fb-list a:hover { background: var(--blue-50); }
.fb-list a.on { color: var(--blue); font-weight: 600; }
.fb-clear { margin-left: auto; color: var(--blue); font-size: .95rem; padding: 0 8px; }
.results-layout { display: block; }
@media (min-width: 1024px) {
  .results { padding-top: 22px; }
  .results-top h1 { font-size: 1.85rem; }
  .results-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; }
}
.side-block { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid #e7eaf0; }
.side-block:last-child { border-bottom: 0; }
.side-block h3 { font-size: 1.3rem; font-weight: 700; color: #0e1330; margin-bottom: 14px; }
.side-select { position: relative; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border: 1.5px solid #dfe3eb; border-radius: 12px; background: #fff; color: #1b2138; cursor: pointer; }
.side-select span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-select .icon { width: 20px; height: 20px; color: #7a8198; flex-shrink: 0; }
.side-select select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.side-update { margin-top: 14px; height: 50px; border-radius: 12px; font-size: 1.1rem; }
.cat-tree { display: grid; }
.cat-tree a, .cat-tree > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; color: #0e1330; font-size: 1.02rem; font-weight: 500; }
.cat-tree a:hover { color: var(--blue); }
.cat-tree .tree-back { justify-content: flex-start; gap: 6px; font-weight: 600; }
.cat-tree .tree-back .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.cat-tree .tree-root { font-weight: 600; }
.cat-tree .current { color: var(--blue); }
.cat-tree .current .icon { width: 22px; height: 22px; stroke-width: 2.6; color: var(--blue); }
.cat-tree .tree-child { padding-left: 22px; }
.cat-tree .n { color: #7a8198; font-weight: 400; font-size: .95rem; }

/* "Post an Ad" banner */
.promo-banner {
  position: relative; display: flex; align-items: center; min-height: 190px; margin-bottom: 24px; padding: 28px;
  border-radius: 16px; overflow: hidden; background: linear-gradient(110deg, #e6f2fc 0%, #d8ebfa 55%, #cce4f7 100%) center / cover no-repeat;
}
.promo-banner.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 30, 50, .55) 0%, rgba(6, 30, 50, .15) 70%, transparent 100%); }
.promo-banner > div { position: relative; }
.promo-banner h2 { font-size: 1.6rem; font-weight: 800; color: #0e1330; line-height: 1.2; }
.promo-banner p { margin: 6px 0 16px; font-size: 1.05rem; color: #2a3045; }
.promo-banner.has-photo h2, .promo-banner.has-photo p { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.promo-banner .btn { height: 48px; padding: 0 26px; border-radius: 10px; font-size: 1.08rem; }
@media (min-width: 1024px) { .promo-banner { min-height: 290px; padding: 40px; } .promo-banner h2 { font-size: 2rem; } }

/* Phones: category text bar under the header on search pages */
.m-catnav { display: flex; gap: 28px; overflow-x: auto; padding: 0 16px; background: #fff; border-bottom: 1px solid #e3e7ee; scrollbar-width: none; }
.m-catnav::-webkit-scrollbar { display: none; }
.m-catnav a { flex-shrink: 0; padding: 15px 0 13px; color: #2c3350; font-size: 1.05rem; font-weight: 600; border-bottom: 3px solid transparent; }
.m-catnav a.active { color: var(--blue); border-bottom-color: var(--blue); }

/* Bottom sheets (filter / sort on phones) */
dialog.sheet { width: min(100%, 520px); max-width: 100%; max-height: 88vh; margin: auto auto 0; border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 640px) { dialog.sheet { margin: auto; border-radius: 20px; } }
.sheet .select, .sheet .input { font-size: 16px; }
.sheet-list { display: grid; }
.sheet-list a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); color: #1b2138; font-size: 1.05rem; }
.sheet-list a:last-child { border-bottom: 0; }
.sheet-list a.on { color: var(--blue); font-weight: 600; }
.sheet-list .icon { width: 20px; height: 20px; stroke-width: 2.6; }

/* Admin helpers */
.cat-icon-preview { width: 48px; height: 48px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.cat-icon-preview img { width: 100%; height: 100%; object-fit: contain; }
.promo-banner-preview { display: grid; gap: 4px; margin-bottom: 4px; padding: 20px; border-radius: 12px; background: linear-gradient(110deg, #e6f2fc, #cce4f7) center / cover; color: #0e1330; }
.promo-banner-preview[style*="background-image"] { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.promo-banner-preview strong { font-size: 1.2rem; }
.promo-banner-preview em { justify-self: start; margin-top: 8px; padding: 8px 16px; border-radius: 8px; background: var(--blue); color: #fff; font-style: normal; font-weight: 600; text-shadow: none; }
.drawer-icon-img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.cat-strip-pic img.photo { object-fit: cover; }
.listing-grid { row-gap: 24px; }
.req { color: #e0245e; font-weight: 700; }

.cat-photo-preview { display: block; width: 100%; max-width: 220px; aspect-ratio: 1.5 / 1; object-fit: cover; border-radius: 10px; margin: 4px 0 8px; }
.cat-tile-pic img.icon-pic { width: 60%; height: 70%; object-fit: contain; }

.move-form .select { min-height: 38px; height: 38px; padding: 4px 30px 4px 10px; font-size: .88rem; width: auto; max-width: 170px; }

/* Popular categories: picture fills its own rounded frame, name sits underneath */
.cat-tile, .cat-tile:hover { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; gap: 8px; }
.cat-tile-pic { border-radius: 14px; overflow: hidden; background: #eef5fc; border: 1px solid #e6eaf1; aspect-ratio: 1.35 / 1; }
.cat-tile:hover .cat-tile-pic { box-shadow: 0 8px 20px rgba(13, 18, 87, .12); }
.cat-tile-pic img, .cat-tile-pic img.icon-pic { width: 100%; height: 100%; object-fit: cover; }
.cat-tile-name { padding: 0 4px; font-size: 1rem; font-weight: 500; color: #1b2138; }
.cat-tile:hover .cat-tile-name { color: var(--blue); }

/* ---------- Slide-out menu (white list with a photo header) ---------- */
.drawer.m2 { background: #fff; color: #1b2138; padding: 0; width: min(340px, 86vw); border-radius: 0; display: flex; flex-direction: column; }
.m2-head {
  position: relative; flex-shrink: 0; min-height: 190px; padding: calc(22px + env(safe-area-inset-top, 0px)) 22px 20px;
  display: flex; align-items: flex-end; color: #fff;
  background: linear-gradient(150deg, var(--teal-light, #0a6b8f) 0%, var(--teal, #064763) 60%, var(--teal-600, #053a51) 100%) center / cover no-repeat;
}
.m2-head.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 40, 58, .35), rgba(4, 40, 58, .7)); }
.m2-head > * { position: relative; }
.m2-close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .18); color: #fff; display: grid; place-items: center; cursor: pointer; }
.m2-close .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.m2-me { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: #fff; }
.m2-me:hover { color: #fff; }
.m2-me .avatar, .m2-me img.avatar { border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); margin-bottom: 8px; }
.m2-me strong { font-size: 1.25rem; font-weight: 500; letter-spacing: .01em; }
.m2-me span { font-size: .95rem; opacity: .9; }
.m2-me .logo { color: #fff; margin-bottom: 6px; }
.m2-me .logo-svg { height: 26px; }
.m2-auth { display: flex; gap: 10px; margin-top: 12px; }
.m2-btn { padding: 8px 18px; border-radius: 999px; border: 1.5px solid #fff; color: #fff; font-weight: 600; font-size: .95rem; }
.m2-btn.solid { background: #fff; color: var(--teal); }
.m2-btn:hover { color: inherit; opacity: .9; }
.m2-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 0 28px; }
.m2-list > a, .m2-list summary, .m2-list form button {
  display: flex; align-items: center; gap: 22px; width: 100%; min-height: 56px; padding: 0 22px; border: 0; background: none;
  color: #1b2138; font: inherit; font-size: 1.08rem; letter-spacing: .02em; text-align: left; cursor: pointer; list-style: none;
}
.m2-list summary::-webkit-details-marker { display: none; }
.m2-list > a:hover, .m2-list summary:hover, .m2-list form button:hover { background: #f4f5f7; color: #1b2138; }
.m2-list .current { background: #ececec; }
.m2-list .icon { width: 27px; height: 27px; flex-shrink: 0; color: var(--ic, #2f6fd6); stroke-width: 1.4; }
.m2-list .icon.fill { stroke: none; }
.m2-img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.m2-list span { flex: 1; }
.m2-chev { width: 20px !important; height: 20px !important; color: #9aa0b0 !important; stroke-width: 2 !important; transition: transform .2s; }
.m2-list details[open] .m2-chev { transform: rotate(180deg); }
.m2-sub { display: grid; padding: 2px 0 8px 71px; }
.m2-sub a { padding: 10px 22px 10px 0; color: #4a5068; font-size: 1rem; }
.m2-sub a:hover, .m2-sub a.on { color: var(--blue); }
.m2-label { margin: 14px 22px 4px; padding-top: 14px; border-top: 1px solid #eceef2; color: #8a90a3; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.m2-count { margin-left: auto; min-width: 24px; padding: 2px 8px; border-radius: 999px; background: #e2475f; color: #fff; font-size: .78rem; text-align: center; letter-spacing: 0; }
.menu-head-preview { position: relative; height: 130px; border-radius: 12px; overflow: hidden; margin-bottom: 4px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; color: #fff; background: linear-gradient(150deg, var(--teal-light, #0a6b8f), var(--teal, #064763) 60%, var(--teal-600, #053a51)) center / cover; }
.menu-head-preview span { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .85); border: 2px solid #fff; }
.m2-me .avatar-wrap { margin-bottom: 8px; } .m2-me .avatar { border: 3px solid #fff; }

/* ---------- Phone filter: full screen with a Categories page ---------- */
dialog.fsheet { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; }
@media (min-width: 640px) { dialog.fsheet { width: 480px; height: min(92vh, 860px); margin: auto; border-radius: 18px; } }
dialog.fsheet form { height: 100%; display: flex; flex-direction: column; }
.fs-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fs-panel[hidden] { display: none; }
.fs-head { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px 20px; border-bottom: 1px solid #e3e6ec; }
.fs-head h3 { flex: 1; font-size: 1.2rem; font-weight: 700; color: #2b2f45; }
.fs-back, .fs-x { width: 42px; height: 42px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
.fs-back { margin-left: -10px; color: var(--blue); }
.fs-x { color: #3a3f55; }
.fs-back .icon, .fs-x .icon { width: 26px; height: 26px; stroke-width: 2; }
.fs-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 20px; }
.fs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 66px; padding: 10px 0; border: 0; border-bottom: 1px solid #eceef2; background: none; font: inherit; text-align: left; cursor: pointer; color: #1b2138; }
.fs-row span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.fs-row small, .fs-block small { color: #7a8198; font-size: .82rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.fs-row strong { font-size: 1.08rem; font-weight: 600; color: var(--blue); }
.fs-row > .icon { width: 22px; height: 22px; color: #9aa0b0; stroke-width: 2; flex-shrink: 0; }
.fs-select { position: relative; }
.fs-select select { border: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; color: #1b2138; padding: 0; appearance: none; -webkit-appearance: none; width: 100%; }
.fs-block { padding: 16px 0; border-bottom: 1px solid #eceef2; display: grid; gap: 10px; }
.fs-price { display: flex; align-items: center; gap: 10px; }
.fs-price .input { flex: 1; font-size: 16px; }
.fs-price span { color: #7a8198; }
.fs-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-pills input { position: absolute; opacity: 0; pointer-events: none; }
.fs-pills span { display: inline-flex; padding: 9px 16px; border: 1.5px solid #dfe3eb; border-radius: 999px; color: #1b2138; font-size: .95rem; cursor: pointer; }
.fs-pills input:checked + span { border-color: var(--blue); background: var(--blue-50); color: var(--blue); font-weight: 600; }
.fs-pills input:focus-visible + span { outline: 3px solid rgba(22, 143, 219, .35); }
.fs-cats { padding-top: 14px; }
.fs-cat { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 8px 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.fs-cat span { flex: 1; min-width: 0; }
.fs-cat em { font-style: normal; color: #7a8198; font-size: 1.02rem; }
.fs-cat .icon { width: 26px; height: 26px; stroke-width: 2; color: #3a3f55; flex-shrink: 0; }
.fs-cat.all { color: #2d6fa8; font-size: 1.2rem; font-weight: 600; }
.fs-cat.parent { color: #2b2f45; font-size: 1.2rem; font-weight: 600; }
.fs-cat.sub { padding-left: 34px; color: #2d6fa8; font-size: 1.15rem; font-weight: 600; }
.fs-cat.on.sub { color: #0e1330; }
.fs-foot { display: flex; align-items: center; gap: 16px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e3e6ec; background: #fff; }
.fs-clear { border: 0; background: none; padding: 10px 14px; font: inherit; font-size: 1.1rem; font-weight: 700; color: #2b2f45; cursor: pointer; }
.fs-go { flex: 1; height: 56px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: inherit; font-size: 1.15rem; font-weight: 700; cursor: pointer; }
.fs-go:hover { background: var(--blue-600); }

/* ---------- Banners: admin colour / photo ---------- */
.hero, .promo, .promo-banner { position: relative; }
.hero.dark::before, .promo.dark::before, .promo-banner.dark::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(4, 20, 40, .55), rgba(4, 20, 40, .15) 70%, transparent); pointer-events: none; }
.hero > *, .promo > *, .promo-banner > * { position: relative; }
.hero.dark h1, .hero.dark .hero-sub, .hero.dark .hero-points, .promo.dark h2, .promo.dark p, .promo-banner.dark h2, .promo-banner.dark p { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.hero.dark .hero-points .icon { color: #fff; }
.promo-banner-preview.dark { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.color-input { width: 56px; height: 44px; padding: 3px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; flex-shrink: 0; }
.setup-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; color: #2a3045; line-height: 1.5; }
.setup-steps code { background: #f1f4f9; padding: 1px 6px; border-radius: 5px; font-size: .88em; word-break: break-all; }

/* ---------- Member dashboard ---------- */
body.dash-page { background: #f6f7fb; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 18px; padding-bottom: 40px; }
@media (min-width: 1024px) { .dash { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding-top: 26px; } }
.dash-side { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) { .dash-side { position: sticky; top: 20px; align-self: start; min-height: calc(100vh - 200px); } }
.dash-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.dash-nav::-webkit-scrollbar { display: none; }
.dash-nav a { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; color: #7a8198; font-size: .95rem; font-weight: 500; white-space: nowrap; background: #fff; }
.dash-nav a .icon { width: 19px; height: 19px; }
.dash-nav a .icon.fill { stroke: none; }
.dash-nav a:hover { color: #1b2138; }
.dash-nav a.on { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(22, 143, 219, .3); }
.dash-count { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #e2475f; color: #fff; font-size: .72rem; text-align: center; }
@media (min-width: 1024px) {
  .dash-nav { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 4px; }
  .dash-nav a { background: none; padding: 11px 14px; }
  .dash-nav a:hover { background: #fff; }
  .dash-nav a.on:hover { background: var(--blue); }
  .dash-count { margin-left: auto; }
}
.upgrade-card { margin-top: auto; display: grid; gap: 4px; padding: 0 16px 16px; border-radius: 16px; background: #fff; color: #1b2138; box-shadow: 0 10px 30px rgba(13, 18, 60, .08); overflow: hidden; }
.upgrade-card:hover { color: var(--blue); }
.upgrade-card strong { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.upgrade-card strong .icon { width: 18px; height: 18px; }
.upgrade-card small { color: #7a8198; }
.upgrade-art { position: relative; height: 92px; margin: 0 -16px 10px; background: linear-gradient(135deg, #168FDB, #6b5bd6); overflow: hidden; }
.upgrade-art i { position: absolute; width: 58px; height: 58px; border-radius: 12px; opacity: .9; }
.upgrade-art i:nth-child(1) { left: 12px; top: 18px; background: #ffc857; transform: rotate(-12deg); }
.upgrade-art i:nth-child(2) { left: 52px; top: 30px; background: #ff8a5b; transform: rotate(8deg); }
.upgrade-art i:nth-child(3) { left: 100px; top: 8px; background: #4fd1c5; transform: rotate(-4deg); }
.upgrade-art i:nth-child(4) { right: 14px; top: 44px; width: 40px; height: 40px; background: #fff3b0; transform: rotate(14deg); }

.dash-main { min-width: 0; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-head h1 { font-size: 1.6rem; font-weight: 800; color: #0e1330; }
.dash-head p { color: #7a8198; margin-top: 2px; }
.dash-main > .container, .dash-main .container.page, .dash-main .container.narrow { max-width: none; padding: 0; margin: 0; }
.dash-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (min-width: 900px) { .dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dstat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px; background: #fff; border-radius: 16px; color: #0e1330; box-shadow: 0 2px 10px rgba(13, 18, 60, .04); }
.dstat:hover { color: #0e1330; box-shadow: 0 8px 20px rgba(13, 18, 60, .08); }
.dstat-ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.dstat-ic .icon { width: 22px; height: 22px; }
.dstat strong { font-size: 1.45rem; font-weight: 800; line-height: 1.1; }
.dstat small { color: #7a8198; font-size: .85rem; }
.dash-grid { display: grid; gap: 18px; }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.dpanel { background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 2px 10px rgba(13, 18, 60, .04); }
.dpanel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dpanel-head h2 { font-size: 1.1rem; font-weight: 700; color: #0e1330; }
.dpanel-head a { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: .92rem; }
.dpanel-head a .icon { width: 16px; height: 16px; }
.drow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #f0f2f6; }
.drow:first-of-type { border-top: 0; }
.drow-thumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: #eef3f9; display: grid; place-items: center; color: #9aa0b0; flex-shrink: 0; }
.drow-thumb img { width: 100%; height: 100%; object-fit: cover; }
.drow-main { flex: 1; min-width: 0; display: grid; color: #0e1330; }
.drow-main strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow-main small { color: #7a8198; }
@media (max-width: 560px) { .drow .badge { display: none; } }
.plan-now { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: #f4f6fa; margin-bottom: 14px; }
.plan-now .icon { width: 28px; height: 28px; color: #7a8198; }
.plan-now.pro { background: linear-gradient(135deg, #e8f3fc, #efeaff); }
.plan-now.pro .icon { color: var(--blue); }
.plan-now strong { display: block; font-size: 1.1rem; color: #0e1330; }
.plan-now small { color: #7a8198; }
.usage { display: grid; gap: 8px; margin-bottom: 14px; }
.usage-top { display: flex; justify-content: space-between; gap: 10px; color: #4a5068; font-size: .95rem; }
.usage-top b { color: #0e1330; }
.usage-bar { height: 8px; border-radius: 99px; background: #eef0f5; overflow: hidden; }
.usage-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #168FDB, #6b5bd6); }
.usage small { color: #7a8198; }
.dash-me { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #f0f2f6; }
.dash-me > div { flex: 1; min-width: 0; display: grid; }
.dash-me strong { color: #0e1330; }
.dash-me small { color: #7a8198; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Boost button */
.boost-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 10px; font: inherit; font-size: .9rem; font-weight: 600; white-space: nowrap; cursor: pointer; background: linear-gradient(135deg, #ff8a3d, #ff5f6d); color: #fff; box-shadow: 0 4px 12px rgba(255, 95, 109, .3); }
.boost-btn:hover { filter: brightness(1.05); }
.boost-btn .icon { width: 17px; height: 17px; }
.boost-btn.sm { height: 32px; padding: 0 10px; font-size: .82rem; }
.boost-btn.lg { height: 46px; padding: 0 20px; font-size: 1rem; }
.boost-btn.done { background: #e8f7ee; color: #1f8a4c; box-shadow: none; cursor: default; }
.boost-btn.waiting { background: #fff4e0; color: #b7791f; box-shadow: none; cursor: default; }
.boost-btn.off { background: #f1f3f7; color: #a3a8b8; box-shadow: none; cursor: not-allowed; }
.drow form, .ad-actions form, .ad-detail-actions form { margin: 0; }

/* My ads */
.dash-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tabs a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: #fff; color: #4a5068; font-weight: 500; font-size: .92rem; }
.dash-tabs a b { min-width: 22px; padding: 0 6px; border-radius: 99px; background: #eef0f5; color: #4a5068; font-size: .78rem; text-align: center; }
.dash-tabs a.on { background: #0e1330; color: #fff; }
.dash-tabs a.on b { background: rgba(255, 255, 255, .2); color: #fff; }
.ads-layout { display: grid; gap: 18px; }
@media (min-width: 1200px) { .ads-layout.has-detail { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } }
.ads-list { display: grid; gap: 10px; align-content: start; }
.ad-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb info status" "thumb actions actions"; gap: 6px 14px; align-items: center; padding: 12px; background: #fff; border-radius: 16px; border: 2px solid transparent; box-shadow: 0 2px 10px rgba(13, 18, 60, .04); }
.ad-row.on { border-color: #cfe7f7; background: #f5fbff; }
.ad-thumb { grid-area: thumb; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #eef3f9; display: grid; place-items: center; color: #9aa0b0; }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-info { grid-area: info; min-width: 0; display: grid; gap: 3px; color: #0e1330; }
.ad-info strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #7a8198; font-size: .85rem; }
.ad-meta b { color: #0e1330; }
.ad-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ad-meta .icon { width: 14px; height: 14px; }
.ad-status { grid-area: status; justify-self: end; }
.ad-actions { grid-area: actions; display: flex; align-items: center; gap: 6px; justify-content: flex-start; }
.icon-btn.sm { width: 38px; height: 38px; border-radius: 10px; background: #f1f4f9; }
@media (min-width: 700px) {
  .ad-row { grid-template-columns: 64px minmax(0, 1fr) auto auto; grid-template-areas: "thumb info status actions"; }
  .ad-actions { justify-content: flex-end; }
}
.ad-detail { background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 2px 10px rgba(13, 18, 60, .04); display: grid; gap: 8px; align-content: start; }
@media (min-width: 1200px) { .ad-detail { position: sticky; top: 20px; } }
@media (max-width: 1199px) { .ad-detail { display: none; } }
.ad-detail-pic { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #eef3f9; display: grid; place-items: center; color: #9aa0b0; margin-bottom: 6px; }
.ad-detail-pic img { width: 100%; height: 100%; object-fit: cover; }
.ad-detail .badge { justify-self: start; }
.ad-detail h2 { font-size: 1.3rem; font-weight: 800; color: #0e1330; line-height: 1.25; }
.ad-facts { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 12px; }
.ad-facts li { display: flex; align-items: center; gap: 12px; }
.ad-facts .icon { width: 20px; height: 20px; color: #9aa0b0; }
.ad-facts div { display: grid; }
.ad-facts b { color: #0e1330; font-weight: 600; }
.ad-facts small { color: #9aa0b0; font-size: .8rem; }
.mini-views { padding: 12px; border-radius: 12px; background: #f6f7fb; }
.mini-views-top { display: flex; justify-content: space-between; color: #7a8198; font-size: .85rem; margin-bottom: 8px; }
.mini-views-top b { color: #0e1330; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; }
.mini-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #62b4ec, var(--blue)); }
.ad-detail-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid #f0f2f6; }

/* Subscription */
.usage-panel { margin-bottom: 18px; }
.usage-panel .usage { margin: 0; }
.plans { display: grid; gap: 16px; }
@media (min-width: 800px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; } }
.plan-card { position: relative; display: grid; gap: 16px; align-content: start; padding: 24px; border-radius: 20px; background: #fff; border: 2px solid transparent; box-shadow: 0 2px 10px rgba(13, 18, 60, .05); }
.plan-card.featured { border-color: #cfe7f7; box-shadow: 0 16px 40px rgba(22, 143, 219, .14); }
.plan-card.current { border-color: var(--blue); }
.plan-tag { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 99px; background: linear-gradient(135deg, #168FDB, #6b5bd6); color: #fff; font-size: .75rem; font-weight: 700; }
.plan-card header { display: grid; gap: 8px; }
.plan-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.plan-ic .icon { width: 24px; height: 24px; }
.plan-card h2 { font-size: 1.3rem; font-weight: 800; color: #0e1330; }
.plan-price b { font-size: 2.2rem; font-weight: 800; color: #0e1330; letter-spacing: -.02em; }
.plan-price span { color: #7a8198; margin-left: 4px; }
.plan-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: #2a3045; }
.plan-card li { display: flex; align-items: center; gap: 10px; }
.plan-card li .icon { width: 18px; height: 18px; color: #1f8a4c; stroke-width: 2.6; flex-shrink: 0; }
.plan-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border-radius: 12px; border: 1.5px solid #dfe3eb; background: #fff; color: #0e1330; font: inherit; font-weight: 700; cursor: pointer; }
.plan-btn.primary { border: 0; background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(22, 143, 219, .3); }
.plan-btn.primary:hover { background: var(--blue-600); }
.plan-btn.current { border-color: var(--blue); color: var(--blue); cursor: default; }
.plan-btn.muted-btn { color: #9aa0b0; cursor: default; }
.plan-note { color: #7a8198; text-align: center; margin-top: -6px; }

.cat-banner-preview { height: 70px; border-radius: 10px; background: #eef3f9 center / cover; margin-bottom: 8px; }

.boost-table .input { min-height: 40px; height: 40px; padding: 6px 10px; max-width: 140px; }
.boost-table tr.child td:first-child { padding-left: 28px; }
.boost-table tr.home-row td { background: #f5fbff; }

/* Boost window */
.boost-dialog { width: min(520px, calc(100vw - 24px)); }
.boost-options { display: grid; gap: 8px; max-height: min(52vh, 420px); overflow-y: auto; padding: 2px; }
.boost-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid #e3e7ee; border-radius: 14px; cursor: pointer; background: #fff; }
.boost-opt:hover { border-color: #b9dcf3; }
.boost-opt:has(input:checked) { border-color: var(--blue); background: #f2f9fe; box-shadow: 0 0 0 3px rgba(22, 143, 219, .12); }
.boost-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bo-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #f1f4f9; color: var(--blue); flex-shrink: 0; }
.bo-ic .icon { width: 20px; height: 20px; }
.bo-text { flex: 1; min-width: 0; display: grid; }
.bo-text b { color: #0e1330; }
.bo-text small { color: #7a8198; }
.bo-tag { justify-self: start; margin-top: 3px; padding: 1px 8px; border-radius: 99px; background: #e8f7ee; color: #1f8a4c; font-size: .72rem; font-style: normal; font-weight: 700; }
.bo-price { font-weight: 800; color: #0e1330; white-space: nowrap; }
.boost-current { padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: #fff7ec; color: #7a4b0b; }
.boost-current small { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.boost-current ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- Colour scheme (Admin → Site Settings) ---------- */
:root { --accent: #168FDB; --accent-600: #1179bd; --accent-text: #fff; --soft: #e9f4fd; --teal-light: #0a6b8f; }
/* main "Post an Ad" style buttons use the accent colour */
.mh-post, .mh-search-btn, .hero-btn, .promo-btn, .promo-banner .btn, .side-update, .fs-go, .plan-btn.primary, .upload-btn-accent {
  background: var(--accent) !important; color: var(--accent-text) !important; border-color: var(--accent) !important;
}
.mh-post { border-color: rgba(255, 255, 255, .85) !important; }
.mh-post:hover, .mh-search-btn:hover, .hero-btn:hover, .promo-btn:hover, .promo-banner .btn:hover, .side-update:hover, .fs-go:hover, .plan-btn.primary:hover {
  background: var(--accent-600) !important; color: var(--accent-text) !important;
}
.dash-nav a.on { background: var(--teal); box-shadow: 0 6px 16px color-mix(in srgb, var(--teal) 30%, transparent); }
.dash-nav a.on:hover { background: var(--teal) !important; }
.dash-tabs a.on { background: var(--teal); }
.chip.filter-chip { background: var(--teal) !important; border-color: var(--teal) !important; }
.m2-btn.solid { color: var(--teal); }

/* Admin: colour scheme picker */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.theme-card { position: relative; display: grid; gap: 8px; padding: 10px; border: 2px solid #e3e7ee; border-radius: 14px; cursor: pointer; background: #fff; }
.theme-card:hover { border-color: #c6d3e3; }
.theme-card:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 143, 219, .15); }
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-mini { height: 78px; border-radius: 10px; overflow: hidden; display: grid; grid-template-rows: 26px 1fr; background: var(--s); }
.theme-mini .tm-head { background: var(--p); display: flex; align-items: center; padding: 0 8px; gap: 4px; }
.theme-mini .tm-head i { width: 26px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .85); }
.theme-mini .tm-body { display: flex; align-items: center; padding: 0 10px; }
.theme-mini .tm-btn { height: 16px; width: 54px; border-radius: 8px; background: var(--a); }
.theme-card b { font-size: .9rem; color: #0e1330; }
.theme-dots { display: flex; gap: 5px; }
.theme-dots i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .08); }
.theme-custom { display: none; margin-top: 14px; gap: 14px; flex-wrap: wrap; }
.theme-custom.show { display: flex; }
.theme-custom label { display: grid; gap: 4px; font-size: .88rem; color: #4a5068; }

/* =====================================================================
   2026-10 (c): sticky header, compact phone home, photo banners,
   listing layouts, payments, stores
   ===================================================================== */

/* 5) Header stays in place while scrolling */
.masthead { position: sticky; top: 0; z-index: 45; }
.listing-layout aside, .dash-side, .ad-detail { top: calc(var(--mh-h, 0px) + 16px) !important; }
html { scroll-padding-top: calc(var(--mh-h, 0px) + 12px); }
.catbar-menu { z-index: 70; }

/* 6) No line between the header and the category icons */
.masthead, .masthead-bar { border: 0 !important; box-shadow: none !important; }
.masthead-bar { margin-bottom: -1px; padding-bottom: 15px; }
.cat-strip { border: 0 !important; }
main#main > .container:first-child:not(:has(.flash)) { display: none; }

/* 4) Phones: everything above “In your area” is smaller so the first cards show */
@media (max-width: 1023px) {
  .masthead-bar { padding: 8px 0 10px; }
  .mh-act .icon { width: 21px; height: 21px; }
  .mh-act { font-size: .64rem; gap: 2px; }
  .mh-msearch { margin-top: 8px; height: 40px; }
  .cat-strip { padding: 8px 0 0; }
  .cat-strip-item { width: 66px; gap: 3px; font-size: .7rem; }
  .cat-strip-pic { width: 46px; height: 38px; }
  .cat-strip-pic .icon { width: 32px; height: 32px; }
  .dots { padding: 5px 0 0; min-height: 12px; }
  .home .home-section { margin-top: 12px; }
  .home .home-head { margin-bottom: 8px; }
  .home .home-head h2 { font-size: 1.15rem; }
}

/* 1–2) Photo banners (each banner independent; text position + photo focus set in admin) */
.pbanner {
  position: relative; display: flex; overflow: hidden; border-radius: 16px; margin: 14px 0 0;
  min-height: 112px; padding: 16px; background: #dfe7ef center / cover no-repeat;
}
.pbanner::before { content: ""; position: absolute; inset: 0; background: rgba(5, 15, 30, .32); pointer-events: none; }
.pbanner.pb-h-left::before { background: linear-gradient(90deg, rgba(5, 15, 30, .6), rgba(5, 15, 30, .12) 70%); }
.pbanner.pb-h-right::before { background: linear-gradient(270deg, rgba(5, 15, 30, .6), rgba(5, 15, 30, .12) 70%); }
.pbanner-text { position: relative; display: grid; gap: 4px; max-width: min(520px, 78%); color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.pbanner-text h2 { font-size: 1.15rem; font-weight: 800; line-height: 1.2; color: #fff; }
.pbanner-text p { margin: 0; font-size: .88rem; color: #fff; }
.pbanner-btn { justify-self: start; margin-top: 6px; height: 36px; padding: 0 18px; border-radius: 999px; background: var(--accent) !important; color: var(--accent-text) !important; font-weight: 700; font-size: .92rem; text-shadow: none; display: inline-flex; align-items: center; border: 0; }
.pbanner-btn:hover { background: var(--accent-600) !important; }
.pb-h-left { justify-content: flex-start; } .pb-h-center { justify-content: center; } .pb-h-right { justify-content: flex-end; }
.pb-h-center .pbanner-text { text-align: center; } .pb-h-center .pbanner-btn { justify-self: center; }
.pb-h-right .pbanner-text { text-align: right; } .pb-h-right .pbanner-btn { justify-self: end; }
.pb-v-top { align-items: flex-start; } .pb-v-middle { align-items: center; } .pb-v-bottom { align-items: flex-end; }
@media (min-width: 1024px) {
  .pbanner { min-height: 240px; padding: 34px 40px; border-radius: 18px; margin-top: 18px; }
  .pbanner-text h2 { font-size: 2.2rem; }
  .pbanner-text p { font-size: 1.15rem; }
  .pbanner-btn { height: 48px; padding: 0 28px; font-size: 1.05rem; }
}
.results-banner { margin: 0 0 20px; }
.hero, .promo, .promo-banner { display: none !important; }

/* Admin: banner preview + position controls */
.bl-preview { position: relative; display: flex; min-height: 130px; padding: 16px; border-radius: 12px; overflow: hidden; margin-bottom: 10px; background: #dfe7ef center / cover no-repeat; }
.bl-preview::before { content: ""; position: absolute; inset: 0; background: rgba(5, 15, 30, .3); }
.bl-preview .pbanner-text h2 { font-size: 1.2rem; }
.banner-layout { margin-top: 6px; }
.bl-grid { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.bl-grid small { display: block; color: #7a8198; font-size: .8rem; margin-bottom: 6px; }
.bl-pos { display: grid; grid-template-columns: repeat(3, 34px); gap: 4px; padding: 6px; border-radius: 10px; background: #f1f4f9; }
.bl-pos label { width: 34px; height: 26px; display: grid; place-items: center; border-radius: 6px; cursor: pointer; background: #fff; }
.bl-pos input { position: absolute; opacity: 0; pointer-events: none; }
.bl-pos i { width: 12px; height: 6px; border-radius: 3px; background: #c8d0dc; }
.bl-pos label:has(input:checked) { background: var(--blue); }
.bl-pos label:has(input:checked) i { background: #fff; }
.bl-photo { display: grid; gap: 6px; min-width: 220px; flex: 1; }
.bl-photo label { display: grid; gap: 2px; font-size: .85rem; color: #4a5068; }
.bl-photo input[type=range] { width: 100%; accent-color: var(--blue); }

/* 8) Listing layouts */
.layout-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.layout-opt { position: relative; display: grid; gap: 4px; padding: 12px; border: 2px solid #e3e7ee; border-radius: 14px; cursor: pointer; }
.layout-opt:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 143, 219, .15); }
.layout-opt input { position: absolute; opacity: 0; }
.layout-opt b { color: #0e1330; } .layout-opt small { color: #7a8198; }
.lo-art { display: grid; gap: 5px; height: 70px; margin-bottom: 6px; }
.lo-art i { border-radius: 5px; background: #dbe6f2; }
.lo-grid2 { grid-template-columns: 1fr 1fr; } .lo-grid2 i:nth-child(n+3) { display: none; }
.lo-single { grid-template-columns: 1fr; } .lo-single i:nth-child(n+3) { display: none; }
.lo-compact { grid-template-columns: 1fr; } .lo-compact i { background: linear-gradient(90deg, #b9cde3 0 28%, #dbe6f2 28%); }

.result-list.layout-single, .result-list.layout-compact { display: grid; gap: 16px; }
.layout-compact { gap: 10px !important; }
.lc-compact { display: grid !important; grid-template-rows: auto !important; aspect-ratio: auto !important; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(13, 18, 60, .06); }
.lc-compact .thumb { aspect-ratio: 1 / 1 !important; border-radius: 10px; }
.lc-compact .body { padding: 0 34px 0 0 !important; gap: 2px; }
.lc-compact .price { order: 2; font-size: 1.05rem; }
.lc-compact .title { order: 1; font-size: .95rem; -webkit-line-clamp: 2; font-weight: 600; }
.lc-compact .place { order: 3; font-size: .82rem; }
.lc-compact .fav-pill { top: 8px; right: 8px; height: 30px; min-width: 30px; padding: 0 6px; box-shadow: none; background: #f4f6fa; }
.lc-compact .fav-pill .icon { width: 17px; height: 17px; }
.lc-compact .lc-badge { top: 6px; left: 6px; font-size: .66rem; padding: 2px 7px; }
@media (min-width: 1024px) {
  .result-list.layout-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-compact { grid-template-columns: 140px minmax(0, 1fr); }
}

/* 7) Monetization + payments */
.mon-table .input { min-height: 38px; height: 38px; padding: 4px 8px; }
.mon-table tr.child td:first-child { padding-left: 26px; }
.mon-table tr.root td { background: #fafbfd; }
.money-in, .days-in { display: flex; align-items: center; gap: 6px; }
.money-in .input { width: 96px; } .days-in .input { width: 76px; }
.money-in span, .days-in span { color: #7a8198; font-size: .9rem; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #cfd6e1; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + span { background: #1f9d55; }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid rgba(22, 143, 219, .35); }
.pay-wrap { max-width: 560px; }
.pay-card { display: grid; gap: 14px; }
.pay-post { display: flex; align-items: center; gap: 12px; }
.pay-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #eef3f9; display: grid; place-items: center; color: #9aa0b0; flex-shrink: 0; }
.pay-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pay-post b { display: block; color: #0e1330; } .pay-post small { color: #7a8198; }
.pay-lines { margin: 0; display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: #f6f7fb; }
.pay-lines div { display: flex; justify-content: space-between; gap: 12px; }
.pay-lines dt { color: #7a8198; } .pay-lines dd { margin: 0; color: #0e1330; font-weight: 600; text-align: right; }
.pay-lines .total { padding-top: 8px; border-top: 1px solid #e3e7ee; }
.pay-lines .total dd { font-size: 1.3rem; font-weight: 800; }
.pay-actions { display: grid; gap: 10px; }
.pay-main { background: var(--accent) !important; color: var(--accent-text) !important; border: 0 !important; }
.consent { align-items: flex-start; gap: 10px; font-size: .92rem; color: #2a3045; line-height: 1.45; }
.consent small { display: block; color: #7a8198; margin-top: 2px; }
.react-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: .9rem; white-space: nowrap; box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent); }
.react-btn:hover { color: var(--accent-text); filter: brightness(1.05); }
.react-btn .icon { width: 17px; height: 17px; }
.react-btn.pay { background: #0e1330; color: #fff; box-shadow: none; }
.react-btn.lg { height: 46px; padding: 0 18px; font-size: 1rem; }
.re-tag { padding: 1px 8px; border-radius: 99px; background: #e8f7ee; color: #1f8a4c; font-weight: 600; font-size: .75rem; }
.pay-history { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: #f6f7fb; }
.pay-history small { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; color: #7a8198; }
.pay-history div { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: .85rem; color: #4a5068; }
.saved-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #f6f7fb; margin-bottom: 12px; }
.saved-card .icon { width: 24px; height: 24px; color: var(--blue); }
.saved-card b { display: block; color: #0e1330; } .saved-card small { color: #7a8198; }

/* 9) Stores */
.store-pitch { max-width: 560px; }
.store-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.store-sub > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.store-form { display: grid; gap: 4px; }
.store-media { position: relative; margin-bottom: 52px; }
.store-cover { display: grid; place-items: center; height: 160px; border-radius: 14px; background: #eef3f9 center / cover no-repeat; border: 2px dashed #cfdbe8; cursor: pointer; color: #7a8198; }
.store-logo { position: absolute; left: 18px; bottom: -42px; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 20px; background: #fff center / cover no-repeat; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(13, 18, 60, .12); cursor: pointer; color: #7a8198; font-size: .75rem; text-align: center; }
.store-cover span, .store-logo span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: rgba(255, 255, 255, .9); }
.store-logo span { padding: 2px 6px; font-size: .7rem; }
.store-types { margin-bottom: 18px; flex-wrap: wrap; }
.store-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 800px) { .store-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.store-card { position: relative; display: grid; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(13, 18, 60, .06); color: #0e1330; }
.store-card:hover { color: #0e1330; box-shadow: 0 10px 24px rgba(13, 18, 60, .12); }
.sc-cover { height: 96px; background: linear-gradient(135deg, var(--teal), var(--accent)) center / cover no-repeat; }
.sc-logo { position: absolute; top: 64px; left: 12px; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; border: 3px solid #fff; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: var(--teal); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.sc-logo img { width: 100%; height: 100%; object-fit: cover; }
.sc-body { display: grid; gap: 2px; padding: 34px 12px 14px; }
.sc-body small { color: #7a8198; font-size: .82rem; }
.store-page { padding-top: 16px; padding-bottom: 30px; }
.sp-cover { height: 170px; border-radius: 18px; background: linear-gradient(135deg, var(--teal), var(--accent)) center / cover no-repeat; }
@media (min-width: 1024px) { .sp-cover { height: 280px; } }
.sp-head { display: flex; align-items: flex-end; gap: 14px; margin: -44px 0 18px 18px; position: relative; }
.sp-logo { width: 96px; height: 96px; border-radius: 22px; overflow: hidden; border: 4px solid #fff; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 2rem; color: var(--teal); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); flex-shrink: 0; }
.sp-logo img { width: 100%; height: 100%; object-fit: cover; }
.sp-head h1 { font-size: 1.6rem; font-weight: 800; color: #0e1330; }
.sp-head p { margin: 0; }
.sp-grid { display: grid; gap: 18px; }
@media (min-width: 1024px) { .sp-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.sp-h2, .dpanel h2 { font-size: 1.15rem; font-weight: 700; color: #0e1330; margin-bottom: 10px; }
.sp-info ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.sp-info li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sp-info li .icon { width: 18px; height: 18px; color: #7a8198; flex-shrink: 0; }
.sp-info li a, .sp-info li span { overflow-wrap: anywhere; }
.sp-info h3 { font-size: .95rem; font-weight: 700; margin: 14px 0 6px; color: #0e1330; }
.sp-socials { display: flex; flex-wrap: wrap; gap: 6px; }
.types-table .input { min-height: 36px; height: 36px; padding: 4px 8px; }

/* Popular categories (back on the home page) — compact on phones so listings still show early */
@media (max-width: 1023px) {
  .home .cat-tiles { grid-auto-columns: 31%; gap: 10px; padding-bottom: 4px; }
  .home .cat-tile-pic { aspect-ratio: 1.5 / 1; border-radius: 12px; }
  .home .cat-tile-name { font-size: .82rem; }
  .home .cat-tile { gap: 5px; }
}

/* =====================================================================
   2026-10 (d): desktop home page laid out like the big classifieds sites
   ===================================================================== */
.pbanner-photo { display: none; }
.pbanner-points { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 6px; }
.pbanner-points li { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; }
.pbanner-points .icon { width: 20px; height: 20px; stroke-width: 2.4; color: var(--accent); }
.listing-card .ago { display: none; }

@media (min-width: 1024px) {
  /* Page: main column + optional sidebar ad */
  .home-page .mh-wrap { max-width: 1440px; }
  .home-layout { display: block; }
  .home-layout.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
  .home-main { min-width: 0; }
  .side-ad { position: sticky; top: calc(var(--mh-h, 0px) + 22px); margin-top: 22px; padding: 10px; background: #fff; border: 1px solid #e3e7ee; border-radius: 6px; }
  .side-ad-label { display: inline-block; margin-bottom: 6px; padding: 0 5px; border: 1px solid #c9ced8; border-radius: 3px; font-size: .72rem; color: #4a5068; }
  .side-ad img { display: block; width: 100%; height: auto; border-radius: 4px; }

  /* Category bar spread across, bigger text */
  .catbar-list a, .catbar-more summary { font-size: 1.12rem; font-weight: 500; height: 60px; }
  .catbar-list { height: 60px; }

  /* Split banner: soft card, text left, photo right */
  .home-banner.pbanner { min-height: 300px; padding: 40px 48px; margin-top: 22px; border-radius: 20px; background: var(--soft) !important; background-image: none !important; }
  .home-banner.pbanner::before { display: none; }
  .home-banner .pbanner-photo { display: block; position: absolute; top: 0; bottom: 0; right: 0; width: 52%; background-size: cover; background-repeat: no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%); mask-image: linear-gradient(90deg, transparent 0, #000 12%); }
  .home-banner.pb-h-right .pbanner-photo { right: auto; left: 0; -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 12%); mask-image: linear-gradient(270deg, transparent 0, #000 12%); }
  .home-banner.pb-h-center .pbanner-photo { width: 100%; opacity: .18; -webkit-mask-image: none; mask-image: none; }
  .home-banner .pbanner-text { max-width: 46%; color: #10162f; text-shadow: none; gap: 8px; }
  .home-banner.pb-h-center .pbanner-text { max-width: 70%; }
  .home-banner .pbanner-text h2 { color: #10162f; font-size: 2.6rem; letter-spacing: -.01em; }
  .home-banner .pbanner-text p { color: #5b6380; font-size: 1.45rem; }
  .home-banner .pbanner-points li { color: #5b6380; }
  .home-banner .pbanner-btn { height: 56px; padding: 0 52px; font-size: 1.35rem; margin-top: 14px; }

  /* Popular categories: 4 per row, photo on top + name in a bordered card */
  .home .home-section { margin-top: 40px; }
  .home .home-head h2 { font-size: 1.9rem; font-weight: 700; }
  .home .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .home .cat-tile { background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; overflow: hidden; gap: 0; }
  .home .cat-tile:hover { box-shadow: 0 10px 26px rgba(13, 18, 60, .1); }
  .home .cat-tile-pic { aspect-ratio: 1.75 / 1; border: 0; border-radius: 0; }
  .home .cat-tile-name { padding: 14px 8px 16px; font-size: 1.1rem; font-weight: 500; }

  /* Listings: 4 per row, square photo, title → price → place → time, card appears on hover */
  .home .listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 22px; }
  .home .lc-grid { padding: 0 0 12px; border-radius: 14px; transition: box-shadow .15s, background .15s; }
  .home .lc-grid:hover { background: #fff; box-shadow: 0 0 0 10px #fff, 0 10px 30px rgba(13, 18, 60, .14); }
  .home .lc-grid .thumb { aspect-ratio: 1 / 1; border-radius: 12px; }
  .home .lc-grid .body { padding: 12px 6px 0; gap: 4px; }
  .home .lc-grid .title { order: 1; font-size: 1.08rem; font-weight: 500; color: #10162f; min-height: 2.7em; }
  .home .lc-grid .price { order: 2; font-size: 1.4rem; font-weight: 700; color: var(--price, var(--blue)); }
  .home .lc-grid .place { order: 3; font-size: .98rem; color: #5b6380; }
  .home .lc-grid .place::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 5px; vertical-align: -1px; border: 1.5px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); opacity: .7; }
  .home .lc-grid .ago { order: 4; display: block; font-size: .95rem; color: #5b6380; }
  .home .lc-grid .fav-pill { top: 10px; right: 10px; height: 32px; min-width: 32px; padding: 0 7px; }
  .home .lc-grid .fav-pill .icon { width: 17px; height: 17px; }
}

/* Popular categories: just the picture (no frame / card / background), name separate below */
.cat-tile, .cat-tile:hover, .home .cat-tile, .home .cat-tile:hover {
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important; gap: 10px !important;
}
.cat-tile-pic, .home .cat-tile-pic {
  border: 0 !important; box-shadow: none !important; background: none !important; border-radius: 0 !important; overflow: visible;
}
.cat-tile:hover .cat-tile-pic { box-shadow: none !important; }
.cat-tile:hover .cat-tile-pic img { transform: none; }
.cat-tile-name, .home .cat-tile-name { padding: 0 4px !important; background: none !important; }
@media (max-width: 1023px) { .home .cat-tile { gap: 6px !important; } }

/* Update 15: show complete category images at every screen size. */
.cat-tile-pic, .home .cat-tile-pic {
  min-width: 0;
  width: 100%;
}
.cat-tile-pic img, .cat-tile-pic img.icon-pic,
.home .cat-tile-pic img, .home .cat-tile-pic img.icon-pic {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  transform: none;
}
.cat-tile:hover .cat-tile-pic img,
.home .cat-tile:hover .cat-tile-pic img { transform: none; }
.cat-strip-pic img.photo { object-fit: contain; }

/* Category images: natural proportions, no clipping */
.home .cat-tiles .cat-tile-pic {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: auto !important;
  height: auto !important;
  overflow: visible !important;
  border-radius: 0 !important;
}
.home .cat-tiles .cat-tile-pic img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 220px !important;
  object-fit: contain !important;
  transform: none !important;
}
@media (max-width: 1023px) {
  .home .cat-tiles .cat-tile-pic img {
    max-height: 110px !important;
  }
}
