/* iranian.am — public site styles.
   Look and layout follow Govazdner (header, search bar, category grid, cards, ad page),
   simplified. Plain CSS, no build step. */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Armenian letters (Vazirmatn has none). Only downloaded when a page has Armenian text. */
@font-face {
  font-family: "Noto Sans Armenian";
  src: url("../fonts/NotoSansArmenian-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0530-058F, U+FB13-FB17;
}

:root {
  /* Design tokens (owner request 2026-11-01): Iran's flag colours, white stays the main colour.
     brand = green (buttons, links, icons, selected states); accent = red (emphasis, badges, alerts only). */
  --brand: #168B50;
  --brand-hover: #12763F;
  --brand-active: #0E6134;
  --brand-soft: #E8F4ED;
  --brand-line: #BFDFCB;
  --brand-ring: rgba(22, 139, 80, .18);
  --accent: #D92332;
  --accent-hover: #BB1B29;
  --accent-soft: #FDECEE;
  --accent-line: #F3C0C5;
  --white: #FFFFFF;
  --ink: #17231D;
  --ink-2: #33433A;
  --muted: #5F6E66;
  --faint: #98A59E;
  --line: #DCE4DF;
  --line-soft: #E8EEEA;
  --bg: #F5F7F6;
  --surface-2: #F8FAF9;
  --card: #ffffff;
  --disabled-bg: #E3E9E5;
  --disabled-ink: #9AA79F;
  --call: var(--brand);
  --call-dark: var(--brand-hover);
  --pin: var(--accent);
  --featured: var(--accent);
  --featured-bg: var(--accent-soft);
  --featured-line: var(--accent-line);
  --danger: #C81E2C;
  --ok: var(--brand);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 35, 29, .04), 0 4px 14px rgba(23, 35, 29, .05);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip; /* full-width bands (home hero) never add a sideways scroll */
  font-family: "Vazirmatn", "Noto Sans Armenian", Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.5; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
/* Armenian site (left to right): arrows that point "forward"/"back" turn around. */
[dir="ltr"] .dir-flip, [dir="ltr"] .crumbs .sep, [dir="ltr"] .photo-tools button[data-act="left"], [dir="ltr"] .photo-tools button[data-act="right"] { display: inline-block; transform: scaleX(-1); }
[dir="ltr"] .photo-tools button[data-act="left"], [dir="ltr"] .photo-tools button[data-act="right"] { display: inline-flex; }
html[lang="hy"] body { line-height: 1.6; }
/* language switch in the header */
.lang-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.cur-menu .cur-sign { display: none; }
.lang-btn:hover { border-color: #B7C6BD; color: var(--ink); }
.site-footer nav a.on { font-weight: 800; text-decoration: underline; }
/* ad text in the other language */
.tr-box { margin-top: 6px; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface-2); }
.tr-box > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--brand-hover); }
.tr-box[open] > summary { margin-bottom: 8px; }
.tr-hint { font-size: 12.5px; margin: 0 0 8px; }
.tr-actions { margin: 0 0 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.original-text { margin-top: 12px; font-size: 13.5px; }
.original-text > summary { cursor: pointer; color: var(--muted); }
.original-text > div { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.muted { color: var(--muted); }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: #C2CFC7; color: var(--ink); }
.btn-soft { background: var(--brand-soft); color: var(--brand-hover); }
.btn-call { background: var(--call); color: #fff; }
.btn-call:hover { background: var(--call-dark); color: #fff; }
.btn-grey { background: #EEF2EF; color: var(--ink-2); }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
/* States from the tokens: hover / active (pressed) / focus / disabled. */
.btn { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-primary:active, .btn-call:active { background: var(--brand-active); }
.btn-outline:hover { border-color: var(--brand-line); color: var(--brand-hover); }
.btn-outline:active { background: var(--brand-soft); }
.btn-soft:hover { background: #DCEEE3; color: var(--brand-active); }
.btn-grey:hover { background: #E4EAE6; color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn:focus-visible, .round-btn:focus-visible, .chip:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand-ring); outline-offset: 2px;
}
.btn:disabled, .btn[aria-disabled="true"], .btn.disabled {
  background: var(--disabled-bg); border-color: transparent; color: var(--disabled-ink); cursor: not-allowed; box-shadow: none;
}
input[type="checkbox"], input[type="radio"], input[type="range"], progress { accent-color: var(--brand); }
::selection { background: #CDE8D8; color: var(--ink); }

/* ---------- header (Govazdner style) ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line-soft); position: relative; z-index: 20; }
.header-bar { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; font-size: 21px; min-width: 0; }
.logo > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800;
}
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1; margin-top: 2px; }
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav > a, .menu-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 600; background: none; border: 0; cursor: pointer;
}
.header-nav > a:hover, .menu-toggle:hover { background: var(--bg); color: var(--ink); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.avatar {
  width: 40px; height: 40px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-hover);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}

/* step-by-step categories menu (details/summary + public/js/menu.js), like Govazdner */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > .menu-toggle { background: var(--brand-soft); color: var(--brand-hover); }
.menu:not([open]) > .cat-panel { display: none; } /* a closed sheet must not widen the page (left-to-right Armenian site) */
.cat-panel {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 60; width: 380px; max-width: 92vw;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(16, 24, 40, .16);
  display: flex; flex-direction: column; max-height: min(72vh, 620px); overflow: hidden;
}
.cp-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.cp-title { flex: 1; font-size: 16px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-btn { width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--bg); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.cp-btn:hover { background: var(--line-soft); color: var(--ink); }
.cp-btn svg { width: 18px; height: 18px; }
.cp-list { list-style: none; margin: 0; padding: 6px 10px 10px; overflow-y: auto; overscroll-behavior: contain; }
.cp-list li + li a { border-top: 1px solid var(--line-soft); }
.cp-list a { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 6px; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.cp-list a:hover, .cp-list a:focus-visible { color: var(--brand-hover); background: var(--bg); border-radius: 10px; outline: none; }
.cp-list a span { flex: 1; }
.cp-list .cat-icon { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px; }
.cp-list .cat-icon svg { width: 18px; height: 18px; }
.cp-chev { color: var(--muted); flex-shrink: 0; }
.cp-list a.cp-all { color: var(--brand); font-weight: 700; }

/* search bar under the header, full width like Govazdner */
.search-row { padding: 14px 0; background: #fff; border-bottom: 1px solid var(--line-soft); }
.searchbar {
  display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 6px 0 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.searchbar:focus-within { border-color: var(--brand-line); box-shadow: 0 0 0 4px var(--brand-ring); }
.searchbar .icon { color: var(--muted); margin-inline-start: 10px; }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; height: 100%; font-size: 15px; }
.searchbar select {
  border: 0; border-inline-start: 1px solid var(--line); background: transparent; height: 32px; padding: 0 10px;
  color: var(--ink-2); font-size: 14px; max-width: 170px; cursor: pointer;
}
.searchbar .btn { min-height: 40px; }

/* ---------- category tiles (Govazdner home grid) ---------- */
.section { margin: 28px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; font-weight: 800; }
.section-head a { font-size: 14px; font-weight: 600; }
/* Home: a thin line in Iran's flag colours between a section's title and "see all" (owner request, like Govazdner). */
/* Thin and soft (owner request): green → white → red blending into each other, fading out at the far end. */
:root { --flag-fade: linear-gradient(to left, var(--brand) 0%, #8CC9A6 26%, #E6ECE8 50%, #F0A3AA 74%, rgba(217, 35, 50, .7) 100%); }
.flag-rule { flex: 1 1 40px; align-self: center; height: 2px; border-radius: 1px; background: var(--flag-fade); }
[dir="ltr"] .flag-rule { background: linear-gradient(to right, var(--brand) 0%, #8CC9A6 26%, #E6ECE8 50%, #F0A3AA 74%, rgba(217, 35, 50, .7) 100%); }
.section-head:has(.flag-rule) { flex-wrap: nowrap; gap: 14px; }
.section-head:has(.flag-rule) h2, .section-head:has(.flag-rule) a { flex: none; white-space: nowrap; }
.home-title { text-align: center; font-size: 26px; font-weight: 800; margin: 0; }
/* Home hero: slogan in Iran's flag colours over a faint line drawing of Armenia (Ararat, Yerevan). */
.home-hero {
  position: relative; margin: 0 calc(50% - 50vw); padding: 18px 16px 26px; text-align: center; contain: paint;
  background: #fff url("../images/hero-armenia.svg") center bottom / min(620px, 96%) auto no-repeat; border-bottom: 1px solid var(--line-soft);
}
.home-hero + .section { margin-top: 18px; }
.iran-slogan .ir-g { color: var(--brand); }
.iran-slogan .ir-r { color: var(--accent); }
.iran-slogan .ir-w { color: var(--ink); }
.iran-slogan::after {
  content: ''; display: block; width: 210px; max-width: 60%; height: 3px; margin: 12px auto 0; border-radius: 2px;
  background: linear-gradient(to left, var(--brand) 0%, #8CC9A6 28%, #E3EAE6 50%, #F0A3AA 72%, var(--accent) 100%);
}
[dir="ltr"] .iran-slogan::after { background: linear-gradient(to right, var(--brand) 0%, #8CC9A6 28%, #E3EAE6 50%, #F0A3AA 72%, var(--accent) 100%); }
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cat-tile {
  --tile: var(--brand); --tile-soft: var(--brand-soft);
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--line-soft); border-top: 3px solid var(--tile); border-radius: 12px;
  color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.5; box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
}
.cat-tile:nth-child(even) { --tile: var(--accent); --tile-soft: var(--accent-soft); }
.cat-tile:hover { color: var(--ink); border-color: #C7D4CC; border-top-color: var(--tile); transform: translateY(-1px); }
.cat-tile:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; }
.cat-tile .cat-icon { background: var(--tile-soft); color: var(--tile); }
/* Home: 9 quick tiles (3×3, icon above the name) like the owner's design; the 9th opens every category. */
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 820px; margin: 0 auto; }
/* Desktop / tablet: compact tiles (icon beside the name); phones keep the larger icon-above tiles below. */
.quick-grid .cat-tile { flex-direction: row; justify-content: center; gap: 10px; min-height: 60px; padding: 8px 12px; text-align: center; font-size: 14.5px; }
.quick-grid .cat-tile .cat-icon { width: 30px; height: 30px; background: transparent; }
.quick-grid .cat-tile .cat-icon svg { width: 22px; height: 22px; }
.quick-grid .cat-tile.is-all { --tile: var(--brand); --tile-soft: var(--brand-soft); }
@media (max-width: 560px) {
  /* Phones: compact enough that "latest ads" and the top of its photos show on the first screen (owner request). */
  .quick-grid { gap: 7px; }
  .quick-grid .cat-tile { flex-direction: column; gap: 3px; min-height: 70px; padding: 7px 6px; font-size: 13px; }
  .quick-grid .cat-tile .cat-icon { width: 34px; height: 34px; }
  .quick-grid .cat-tile .cat-icon svg { width: 25px; height: 25px; }
  .home-title { font-size: 20px; }
  .home-page .home-hero + .section { margin-top: 12px; }
  .home-page .section { margin: 18px 0; }
  .home-page .section-head { margin-bottom: 10px; }
  .home-page .banner-phone { margin-top: 12px; }
  .home-page .hb-bar { padding: 7px 12px; }
  /* Slim band (owner request): the drawing sits behind the slogan's lower half. */
  .home-hero { padding: 12px 12px 16px; background-size: 100% auto; }
  .iran-slogan::after { margin-top: 9px; height: 3px; }
}
.cat-icon {
  width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cat-icon svg { width: 22px; height: 22px; }

/* ---------- listing cards (Govazdner card) ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s;
}
.card:hover { box-shadow: 0 8px 26px rgba(16, 24, 40, .09); border-color: #D1DCD5; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: #E9EEEB; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--faint); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 15px; font-weight: 700; line-height: 1.6; min-height: 48px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); }
.card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card-meta { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.card-meta .pin { color: var(--pin); }
.card-attrs { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price { font-size: 17px; font-weight: 800; margin-top: auto; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; }
.card-time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.fav-btn {
  position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 999px;
  border: 0; background: rgba(255, 255, 255, .94); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.fav-btn.on { color: var(--accent); }
.fav-btn.on svg { fill: currentColor; }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-featured { background: var(--featured); color: #fff; }
.badge-count { top: auto; bottom: 10px; background: rgba(17, 24, 32, .72); color: #fff; }
/* Promoted cards (featured / highlight): a 2px red accent frame (1px border + 1px ring, no layout shift), card stays white. */
.card.is-featured, .card.is-highlight {
  border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 4px 14px rgba(217, 35, 50, .10);
}
.card.is-featured:hover, .card.is-highlight:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(217, 35, 50, .18); }

/* compact horizontal card (similar ads, mobile lists) */
.row-card { display: flex; gap: 12px; padding: 10px; background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; position: relative; }
.row-card .thumb { width: 110px; aspect-ratio: 4/3; border-radius: 9px; overflow: hidden; background: #E9EEEB; flex-shrink: 0; }
.row-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin: 18px 0 14px; }
.crumbs a { color: var(--brand); }
.crumbs .sep { color: var(--faint); font-size: 12px; }

/* ---------- search / category page ---------- */
.search-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.filters { flex: 1 1 280px; max-width: 300px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; position: sticky; top: 12px; }
.results { flex: 999 1 560px; min-width: 0; }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.results-head h1 { font-size: 22px; font-weight: 800; }
.results-head .count { font-size: 14px; color: var(--muted); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.chip:hover { border-color: #B7C6BD; color: var(--ink); }
.chip.active { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-hover); }
.chip .n { color: var(--muted); font-weight: 500; }
.filter-group { border-top: 1px solid var(--line-soft); padding: 12px 0; }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group > summary, .filter-label { list-style: none; cursor: pointer; font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-hint { font-size: 13px; margin: 8px 0 0; }
.filter-group > summary::after { content: "▾"; color: var(--muted); font-size: 12px; }
.filter-group[open] > summary::after { content: "▴"; }
.opt-list { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; max-height: 240px; overflow: auto; }
.opt { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 2px; cursor: pointer; }
.opt input { width: 18px; height: 18px; accent-color: var(--brand); }
.opt .n { margin-inline-start: auto; color: var(--muted); font-size: 12.5px; }
.range { display: flex; gap: 8px; margin-top: 8px; }
.input, .range input, .select {
  width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; outline: none;
}
.input:focus, .range input:focus, .select:focus, textarea.input:focus { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-ring); }
textarea.input { padding: 10px 12px; min-height: 120px; resize: vertical; }
.filters .actions { display: flex; gap: 8px; margin-top: 12px; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 20px; text-align: center; color: var(--muted); }
.mobile-filter-btn { display: none; }

/* pagination */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 26px 0 8px; }
.pager a, .pager span { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; }
.pager .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .disabled { color: var(--faint); }

/* ---------- ad page (Govazdner layout) ---------- */
.ad-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ad-top .tools { display: flex; gap: 8px; }
.round-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.round-btn:hover { border-color: #B7C6BD; color: var(--ink); }
.round-btn.on { color: var(--accent); }
.round-btn.on svg { fill: currentColor; }
.ad-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ad-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ad-side { flex: 1 1 320px; max-width: 380px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; }
.panel { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; }
.panel h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.gallery { background: #111813; border-radius: var(--radius); overflow: hidden; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 16 / 10; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure { margin: 0; flex: 0 0 100%; scroll-snap-align: center; position: relative; }
.gallery-track img { width: 100%; height: 100%; object-fit: contain; background: #111813; }
.gallery-track .num { position: absolute; bottom: 14px; inset-inline-start: 14px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 8px; }
.thumbs { display: flex; gap: 8px; padding: 10px; background: #fff; overflow-x: auto; }
.thumbs a { flex: 0 0 84px; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.thumbs a:hover { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ad-facts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 13.5px; color: var(--muted); }
.ad-facts span { display: inline-flex; align-items: center; gap: 6px; }
.ad-facts .icon-sm { color: #7D8B83; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.spec { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.spec .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.spec b { display: block; font-weight: 700; color: var(--ink); }
.spec small { display: block; color: var(--muted); font-size: 12.5px; }
.description { white-space: pre-line; color: var(--ink-2); line-height: 2; }
.ad-title { font-size: 21px; font-weight: 800; line-height: 1.6; }
.ad-price { font-size: 28px; font-weight: 800; margin-top: 6px; }
.ad-price-alt { color: var(--muted); font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.ad-price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.seller { display: flex; align-items: center; gap: 12px; }
.seller .avatar { width: 52px; height: 52px; font-size: 20px; }
.seller b { display: block; font-size: 16px; }
.seller small { color: var(--muted); font-size: 13px; }
.contact-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.phone-reveal > summary { list-style: none; }
.phone-reveal > summary::-webkit-details-marker { display: none; }
.phone-reveal[open] > summary { display: none; }
.phone-number { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--call); font-weight: 800; font-size: 17px; direction: ltr; }
.promote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.promote-grid a { min-height: 66px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--surface-2); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 600; text-align: center; padding: 6px; }
.promote-grid a:hover { border-color: var(--brand-line); }
.safety { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); border-radius: var(--radius); padding: 12px 16px; font-size: 13px; line-height: 1.9; }
.history-row { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.history-row:last-child { border-bottom: 0; }
.history-row .down { color: var(--ok); font-weight: 700; }
.history-row .up { color: var(--danger); font-weight: 700; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.mobile-contact-bar { display: none; }

/* ---------- forms / auth ---------- */
.auth-card { max-width: 440px; margin: 40px auto; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 14px; }
.error { color: var(--danger); font-size: 13px; }
.alert { border-radius: 12px; padding: 12px 16px; margin: 14px 0; font-size: 14px; }
.alert-ok { background: var(--brand-soft); color: #0E4F2D; border: 1px solid var(--brand-line); }
.alert-err { background: var(--accent-soft); color: #8A1621; border: 1px solid var(--accent-line); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C5D0CA; margin-top: 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: #E6ECE9; }

/* ---------- mobile bottom navigation (Govazdner plugin) ---------- */
.bottom-nav { display: none; }

@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid, .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-side { position: static; max-width: none; }
  .filters { position: static; max-width: none; }
}
@media (max-width: 720px) {
  body { padding-bottom: 68px; }
  /* phones: the menu opens from the bottom bar as a full-height sheet */
  .menu-toggle { display: none; }
  .header-nav .explore-link { display: none; } /* phones: in the bottom bar */
  .menu[open]::before { content: ''; position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 59; }
  .cat-panel { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; inset-inline-end: auto; width: min(420px, 100vw); max-width: 100vw; max-height: none; border-radius: 0; border: 0; z-index: 60; }
  html.cat-menu-open { overflow: hidden; }
  .cat-panel .cp-list { padding-bottom: 84px; } /* room above the bottom bar */
  .header-bar { min-height: 60px; gap: 10px; }
  .header-actions .hide-sm { display: none; }
  /* phones: currency as its sign, login as an icon (the bottom bar has both too), so the switches fit next to the logo */
  .cur-menu .cur-name, .header-actions .btn-label { display: none; }
  .lang-btn, .cur-menu > summary { min-width: 40px; padding: 0 8px; }
  .logo small { display: none; }
  .logo { font-size: 18px; flex: 0 1 auto; }
  .header-actions { flex-shrink: 0; gap: 6px; }
  .cat-tile span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
  .cur-menu .cur-sign { display: inline; }
  .home-title { font-size: 20px; }
  .grid, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cat-tile { min-height: 54px; padding: 8px 10px; font-size: 13px; }
  .card-body { padding: 10px; }
  .card-title { font-size: 14px; min-height: 44px; }
  .card-price { font-size: 15px; }
  .searchbar select { display: none; }
  .filters { display: none; }
  .filters.open { display: block; }
  .mobile-filter-btn { display: inline-flex; }
  .spec-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { border-radius: 0; margin: 0 -16px; }
  .ad-layout { gap: 14px; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 40; height: 64px;
    background: #fff; border-top: 1px solid var(--line); justify-content: space-around; align-items: stretch;
  }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
  .bottom-nav a.active { color: var(--brand); }
  .bottom-nav .post { color: #fff; }
  .bottom-nav .post span.plus { width: 42px; height: 42px; border-radius: 14px; background: var(--brand); display: flex; align-items: center; justify-content: center; margin-top: -18px; box-shadow: 0 6px 16px rgba(22, 139, 80, .35); }
  .bottom-nav .post small { color: var(--brand); }
  body.has-contact-bar .bottom-nav { display: none; }
  .mobile-contact-bar {
    display: flex; gap: 10px; position: fixed; bottom: 0; inset-inline: 0; z-index: 41; padding: 10px 14px 14px;
    background: #fff; border-top: 1px solid var(--line);
  }
  .mobile-contact-bar .btn { flex: 1; }
  .mobile-contact-bar .btn-icon { flex: 0 0 52px; }
  /* The seller's own live ad: number + promotion end dates + edit, in the bottom bar instead of the top. */
  .owner-bar.owner-bar-top { display: none; }
  body:has(.mcb-owner) { padding-bottom: 130px; } /* the bar is taller with promotion dates */
  .mobile-contact-bar { align-items: center; }
  .mcb-owner { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.5; }
  .mcb-owner b { font-size: 13.5px; }
  .mcb-promo { display: flex; align-items: center; gap: 3px; color: var(--accent); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-contact-bar .mcb-edit { flex: none; padding: 0 16px; }
}

/* ---------- admin panel ---------- */
.admin-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-top: 20px; }
.admin-menu { flex: 1 1 200px; max-width: 220px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.admin-menu a { padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.admin-menu a:hover { background: var(--bg); color: var(--ink); }
.admin-menu a.active { background: var(--brand-soft); color: var(--brand-hover); }
.admin-main { flex: 999 1 600px; min-width: 0; }
.admin-main h1 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-size: 26px; font-weight: 800; }
.stat span { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: start; vertical-align: middle; }
.table th { background: var(--surface-2); font-weight: 700; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.field-note { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.cat-fields tr.inherited td { background: var(--surface-2); color: var(--muted); }
.cat-fields .opt { margin: 0; }
.add-fields > summary { list-style: none; display: inline-flex; }
.add-fields > summary::-webkit-details-marker { display: none; }
.add-fields[open] > summary { margin-bottom: 8px; }
.table .input { min-height: 38px; }
.tag { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--ink-2); }
.tag-ok { background: var(--brand-soft); color: #0E4F2D; }
.tag-warn { background: #EEF2EF; color: var(--ink-2); }
.tag-off { background: var(--accent-soft); color: #8A1621; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .input { max-width: 280px; }
.tree details { border-bottom: 1px solid var(--line-soft); }
.tree summary { padding: 9px 4px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.tree .kids { padding-inline-start: 22px; }
.tree .leaf { padding: 9px 4px; border-bottom: 1px solid var(--line-soft); display: flex; gap: 8px; align-items: center; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; max-height: 420px; overflow: auto; border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 14px 0; }
@media (max-width: 720px) {
  .admin-menu { max-width: none; flex-direction: row; overflow-x: auto; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- post / edit ad ---------- */
[hidden] { display: none !important; }
.post-wrap { max-width: 860px; margin: 20px auto 40px; }
.post-h1 { font-size: 24px; font-weight: 800; margin: 6px 0 16px; }
.post-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 14px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.post-steps li, .post-steps a { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.post-steps li + li::before { content: ""; width: 28px; height: 2px; background: var(--line); border-radius: 2px; }
.post-steps span { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); }
.post-steps .on { color: var(--ink); }
.post-steps .on span { background: var(--brand); border-color: var(--brand); color: #fff; }
.post-steps .done span { background: var(--brand-soft); border-color: var(--brand-line); color: var(--ok); }

.pick-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin-bottom: 18px; }
.pick-search:focus-within { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-ring); }
.pick-search .icon { color: var(--muted); }
.pick-search input { flex: 1; min-height: 50px; border: 0; outline: 0; background: transparent; font-size: 15px; }
.pick-roots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick-list { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.pick-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.pick-list a:last-child { border-bottom: 0; }
.pick-list a:hover { background: var(--surface-2); color: var(--ink); }
.pick-list b { font-weight: 700; font-size: 15px; }
.pick-list small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pick-list .icon-sm { color: var(--muted); flex-shrink: 0; }

.post-section { margin-bottom: 14px; }
.post-section h2 { font-size: 17px; }
.post-hint { font-size: 13.5px; margin: -6px 0 12px; }
.post-cat { display: flex; align-items: center; gap: 12px; }
.post-cat > div { flex: 1; min-width: 0; }
.post-cat small { display: block; font-size: 12.5px; }
.post-cat b { font-size: 15px; }
.post-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.post-fields .pf-wide { grid-column: 1 / -1; }
.field > .label { font-weight: 600; font-size: 14px; }
.field .counter { align-self: flex-end; font-size: 12px; margin-top: -2px; }
.select-filter { min-height: 36px; font-size: 13.5px; background: var(--surface-2); }
.check-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pill:hover span { border-color: #B7C6BD; }
.pill input:checked + span { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-hover); }
.pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(22, 139, 80, .28); }
.price-row { margin-top: 14px; }
/* price calculator: one box per currency, the typed one is the ad's currency, the others are calculated */
.price-calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cur-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 8px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.cur-box.active { background: #fff; border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-ring); cursor: default; }
.cur-pick { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; cursor: pointer; }
.cur-pick input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.cur-box .input { font-size: 17px; font-weight: 700; }
.cur-box:not(.active) .input { background: transparent; border-style: dashed; color: var(--muted); cursor: pointer; }
.cur-state { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.cur-state::before { content: '🔒 '; }
.cur-box.active .cur-state { color: var(--brand-hover); font-weight: 600; }
.cur-box.active .cur-state::before { content: '✍️ '; }
.price-hint { font-size: 12.5px; margin: 8px 0 0; }

.photo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; border-radius: 12px; }
.photo-grid.drop { outline: 2px dashed var(--brand); outline-offset: 4px; }
.photo, .photo-add { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.photo { background: var(--bg); border: 1px solid var(--line-soft); cursor: grab; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.dragging { opacity: .4; }
.photo.is-uploading img { opacity: .45; filter: grayscale(.4); }
.photo-progress { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--ink); }
.photo:not(.is-uploading) .photo-progress { display: none; }
.cover-badge { position: absolute; top: 6px; inset-inline-start: 6px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; display: none; }
.photo:first-child .cover-badge { display: block; }
.photo-tools { position: absolute; inset-inline: 0; bottom: 0; display: flex; justify-content: center; gap: 4px; padding: 5px; background: linear-gradient(transparent, rgba(16, 24, 40, .55)); }
.photo-tools button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 17px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.photo-tools button:hover { background: #fff; }
.photo-tools button[data-act="remove"] { color: var(--danger); }
.photo:first-child .photo-tools [data-act="cover"] { display: none; }
.photo-add { border: 2px dashed #C2CFC7; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; cursor: pointer; color: var(--brand); padding: 8px; }
.photo-add:hover { border-color: var(--brand); background: var(--brand-soft); }
.photo-add b { font-size: 14px; }
.photo-add small { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.photo-grid .photo-add:first-child { grid-column: 1 / -1; aspect-ratio: auto; min-height: 150px; }
.alert-info { background: var(--brand-soft); color: var(--ink-2); border: 1px solid var(--line); }

.post-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 16px 20px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.post-submit p { margin: 0; font-size: 13px; }
.post-submit .btn { min-width: 200px; min-height: 48px; font-size: 16px; }
.post-submit .btn:disabled { opacity: .6; cursor: wait; }

.owner-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }

@media (max-width: 720px) {
  .post-wrap { margin-top: 12px; }
  .post-h1 { font-size: 20px; }
  .pick-roots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pick-roots .cat-tile { flex-direction: column; text-align: center; justify-content: center; gap: 6px; padding: 12px 8px; font-size: 13px; }
  .post-fields { grid-template-columns: minmax(0, 1fr); }
  .price-calc { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .photo-tools { gap: 6px; }
  .photo-tools button { width: 32px; height: 32px; }
  body.has-post-bar .bottom-nav { display: none; }
  .post-submit { position: sticky; bottom: 0; z-index: 30; margin: 18px -16px 0; border-radius: 0; border-inline: 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 16px 14px; box-shadow: 0 -4px 14px rgba(16, 24, 40, .06); }
  .post-submit .btn { width: 100%; }
}

/* currency switcher (header) */
.cur-menu { position: relative; }
.cur-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.cur-menu > summary::-webkit-details-marker { display: none; }
.cur-list { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 60; min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.cur-list small { padding: 6px 10px 4px; font-size: 12px; }
.cur-list a { padding: 9px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
.cur-list a:hover { background: var(--bg); color: var(--ink); }
.cur-list a.on { background: var(--brand-soft); color: var(--brand-hover); }
.price-label { cursor: default; flex-wrap: wrap; gap: 6px; }
.cur-toggle { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-soft); }
.cur-toggle label { position: relative; cursor: pointer; }
.cur-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.cur-toggle span { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cur-toggle input:checked + span { background: #fff; color: var(--brand-hover); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.cur-toggle input:focus-visible + span { box-shadow: 0 0 0 3px rgba(22, 139, 80, .28); }

/* auth: phone login, code entry */
.auth-h1 { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.auth-sub { font-size: 14px; margin: 0 0 16px; line-height: 1.9; }
.auth-note { font-size: 13px; margin: 12px 0 0; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 12px; margin-bottom: 18px; }
.auth-tabs a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 9px; color: var(--muted); font-weight: 700; font-size: 14px; }
.auth-tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }
.phone-input { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 8px; direction: ltr; }
.phone-input { position: relative; }
/* Country-code picker with flags (public/js/phone-picker.js); the native select stays for the form and no-JS. */
.cc-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cc-btn { display: flex; align-items: center; gap: 8px; text-align: start; cursor: pointer; font: inherit; }
.cc-flag { flex: none; width: 24px; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  background: url(/images/flags.webp) 0 calc(var(--row, 0) * -18px) / 24px auto no-repeat; }
.cc-code { font-variant-numeric: tabular-nums; }
.cc-panel { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: min(340px, 100%);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .16); padding: 8px; }
.cc-search { margin-bottom: 6px; }
.cc-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.cc-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.cc-list li.on { background: var(--brand-soft); }
.cc-list li[aria-selected="true"] .cc-name { font-weight: 700; }
html[dir="rtl"] .cc-panel { direction: rtl; }
.cc-name { flex: 1; }
.cc-dial { color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.cc-list .cc-none { color: var(--muted); cursor: default; }
.otp-input { font-size: 24px; letter-spacing: .5em; text-align: center; font-weight: 700; min-height: 54px; }
.otp-resend { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 14px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; cursor: pointer; }
.btn-link:disabled { color: var(--muted); cursor: default; }
.phone-fixed { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.phone-fixed b { font-size: 15px; }

.auth-or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { gap: 10px; font-weight: 700; }

/* static pages (privacy, terms) */
.page-text { max-width: 820px; margin: 24px auto; line-height: 2; }
.page-text h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.page-text h2 { font-size: 17px; margin: 22px 0 6px; }
.page-text ul { padding-inline-start: 22px; margin: 0; }

/* ---------- user panel ---------- */
.acc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; margin: 20px 0 40px; }
.acc-side { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 10px; }
.acc-me { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; color: var(--ink); }
.acc-me b { display: block; font-size: 14.5px; }
.acc-me small { font-size: 12px; }
.acc-menu { display: flex; flex-direction: column; gap: 2px; }
.acc-menu a, .acc-soon { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.acc-menu a:hover { background: var(--bg); color: var(--ink); }
.acc-menu a.active { background: var(--brand-soft); color: var(--brand-hover); }
.acc-soon { color: var(--faint); cursor: default; }
.acc-soon small { margin-inline-start: auto; font-size: 11px; background: var(--bg); padding: 0 8px; border-radius: 999px; }
.acc-badge { margin-inline-start: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.acc-main { min-width: 0; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.acc-head h1 { font-size: 22px; font-weight: 800; }
.acc-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.acc-tabs a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.acc-tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.acc-tabs a .n { opacity: .7; font-weight: 500; }
.acc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acc-section { margin-bottom: 14px; }
.acc-section h2 { font-size: 17px; }
.acc-note { font-size: 13.5px; margin: -6px 0 12px; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-link.danger { color: var(--danger); font-size: 13px; }
.ok { color: var(--ok); }

.my-ads { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.my-ad { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 10px; }
.my-ad .thumb { width: 112px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--faint); }
.my-ad .thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-ad .title { color: var(--ink); font-weight: 700; display: block; line-height: 1.6; }
.my-ad .price { font-weight: 800; margin: 2px 0; }
.my-ad .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; }
.my-ad .meta span { display: inline-flex; align-items: center; gap: 4px; }
.my-ad .reject { color: var(--danger); font-size: 13px; margin-top: 4px; }
.my-ad .actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; max-width: 260px; }

.acc-list { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.acc-list.plain { border: 0; border-radius: 0; margin: 0; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.acc-row:last-child { border-bottom: 0; }
.acc-list.plain .acc-row { padding-inline: 0; }
.acc-row .grow { flex: 1; min-width: 0; color: var(--ink); }
.acc-row .grow b { display: block; font-size: 14.5px; }
.acc-row .grow small { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-row .dot { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.acc-row.conv .thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--bg); flex-shrink: 0; }
.acc-row.conv .thumb img { width: 100%; height: 100%; object-fit: cover; }
.acc-row.conv .preview { color: var(--ink-2); }
.acc-row.conv.unread { background: var(--brand-soft); }
.acc-row.conv.unread b, .acc-row.conv.unread .preview { font-weight: 800; color: var(--ink); }
.acc-row .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.acc-row:hover { background: var(--surface-2); }

.chat { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.chat-head .grow { flex: 1; min-width: 0; }
.chat-head b { display: block; }
.chat-head small { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-thumb img { width: 52px; height: 40px; object-fit: cover; border-radius: 8px; display: block; }
.chat-body { height: min(56vh, 520px); overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.msg { max-width: 75%; align-self: flex-start; background: #fff; border: 1px solid var(--line-soft); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.msg.mine { align-self: flex-end; background: var(--brand-soft); border-color: var(--brand-line); border-radius: 14px 14px 4px 14px; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; font-size: 14.5px; }
.msg time { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.chat-empty { margin: auto; font-size: 14px; }
.chat-form { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line-soft); align-items: flex-end; }
.chat-form textarea { flex: 1; min-height: 46px; height: 46px; }
.chat-form .error { flex-basis: 100%; }
.chat-quick { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.chat-quick .chip { cursor: pointer; }
.chat-safety { font-size: 12.5px; margin: 0; padding: 0 14px 12px; }

.seller-head { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.seller-head .grow { flex: 1; min-width: 0; }
.seller-head h1 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seller-head p { margin: 4px 0 0; font-size: 14px; }
.seller-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.seller-stats span { white-space: nowrap; }
.seller-stats span + span::before { content: '·'; margin: 0 7px; color: var(--faint, #9AA8A0); }
.seller-desc { color: var(--ink-2); white-space: pre-line; }
.avatar.big { width: 64px; height: 64px; font-size: 26px; }
.seller-ads-title { font-size: 18px; font-weight: 800; }
.user-chip { position: relative; }
.chip-badge { position: absolute; top: -4px; inset-inline-start: 24px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 900px) {
  .acc-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
  .acc-side { position: static; padding: 6px; }
  .acc-me { display: none; }
  .acc-menu { flex-direction: row; overflow-x: auto; }
  .acc-menu a, .acc-soon { white-space: nowrap; padding: 8px 12px; }
  .acc-soon { display: none; }
  .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .my-ad { grid-template-columns: 88px minmax(0, 1fr); }
  .my-ad .thumb { width: 88px; }
  .my-ad .actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .seller-head { flex-wrap: wrap; gap: 12px 14px; }
  /* Phones: name and the stats in one line beside the photo; the follow button gets its own row (owner request). */
  .seller-head > form, .seller-head > .btn { flex: 1 0 100%; }
  .seller-head > form .btn, .seller-head > .btn { width: 100%; }
  .seller-head h1 { font-size: 19px; }
  .seller-head .avatar.big { width: 54px; height: 54px; font-size: 22px; }
  .seller-stats { flex-wrap: nowrap; font-size: 12px !important; overflow-x: auto; scrollbar-width: none; }
  .seller-stats::-webkit-scrollbar { display: none; }
  .seller-stats span + span::before { margin: 0 4px; }
  .chat-body { height: 55vh; }
  .msg { max-width: 88%; }
}

.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; }
.mail-icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); font-size: 30px; display: flex; align-items: center; justify-content: center; }
.verify-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 0; }

/* promotions and orders */
.promote-ad { display: flex; align-items: center; gap: 12px; }
.promote-ad .thumb { width: 72px; height: 54px; border-radius: 10px; overflow: hidden; background: var(--bg); flex-shrink: 0; }
.promote-ad .thumb img { width: 100%; height: 100%; object-fit: cover; }
.promote-ad > div { flex: 1; min-width: 0; }
.promote-ad b { display: block; }
.promote-ad small { display: block; font-size: 13px; }
.promote-ad .amount { flex: 0 0 auto; font-size: 18px; }
.promote-h2 { font-size: 17px; margin: 22px 0 10px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px; }
.plan-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.plan-head b { display: block; }
.plan-head small { display: block; font-size: 12.5px; line-height: 1.7; }
.plan-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.plan-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; cursor: pointer; }
.plan-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.plan-option input { accent-color: var(--brand); width: 18px; height: 18px; }
.plan-option .days { font-weight: 700; }
.plan-option .price { margin-inline-start: auto; font-weight: 800; text-align: end; }
.plan-option .price small { display: block; font-weight: 500; font-size: 11.5px; }
.pay-methods { display: flex; flex-direction: column; gap: 8px; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.pay-method:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-method input { accent-color: var(--brand); width: 18px; height: 18px; }
.pay-method b { display: block; }
.pay-method small { display: block; font-size: 12.5px; }
.pay-method.off { opacity: .55; cursor: not-allowed; }
.promote-submit { margin-top: 18px; min-width: 220px; min-height: 48px; }
.order-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 14px 0 0; font-size: 14px; }
.order-meta dt { color: var(--muted); }
.order-meta dd { margin: 0; font-weight: 600; }
.instructions { white-space: pre-line; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; line-height: 2; }
.receipt-form { margin-top: 14px; }
.order-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tag.order-paid { background: var(--brand-soft); color: #0E4F2D; }
.tag.order-review { background: #EEF2EF; color: var(--ink-2); }
.tag.order-pending { background: var(--brand-soft); color: var(--brand-hover); }
.tag.order-rejected, .tag.order-failed { background: var(--accent-soft); color: #8A1621; }
.tag.order-cancelled { background: var(--bg); color: var(--muted); }
@media (max-width: 720px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } .promote-submit { width: 100%; } }

/* notifications */
.round-btn.bell { position: relative; }
.round-btn.bell .chip-badge { inset-inline-start: auto; inset-inline-end: -4px; top: -4px; }
.acc-row.notice.unread { background: var(--brand-soft); }
.acc-row.notice.unread b { color: var(--ink); }
.acc-row .grow small.wrap { white-space: normal; line-height: 1.8; }
.acc-row .dot.n-messages { background: var(--brand-soft); color: var(--ok); }
.acc-row .dot.n-orders { background: var(--featured-bg); color: var(--featured); }
.acc-row .dot.n-searches { background: #EEF2EF; color: var(--ink-2); }
.notify-prefs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.notify-prefs .opt { align-items: flex-start; }
.notify-prefs small { display: block; font-size: 12.5px; }

/* real estate: map in the post form, above the results, on the ad page */
.map-pick { margin-top: 6px; }
.map-pick .label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.map-hint { font-size: 12.5px; margin: 0 0 8px; }
.map-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; }
.map-canvas { height: 320px; border-radius: 12px; border: 1px solid var(--line); background: #EEF2EF; }
.map-pick:not(.has-point) .map-canvas { border-color: var(--accent-line); }
.map-exact { margin-top: 10px; }
.map-box { position: relative; margin-bottom: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-soft); background: #EEF2EF; }
.map-preview { display: block; width: 100%; height: 190px; object-fit: cover; cursor: pointer; }
.map-open { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; box-shadow: var(--shadow); }
.map-box.open .map-preview, .map-box.open .map-open { display: none; }
.map-live { height: min(70vh, 560px); }
.map-close { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 999px; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 22px; line-height: 1; cursor: pointer; }
.map-box:not(.open) .map-close { display: none; }
.map-pin { background: #fff; color: var(--ink); border: 1px solid #C7D3CC; border-radius: 999px; padding: 2px 8px; font: 700 12px/1.6 "Vazirmatn", "Noto Sans Armenian", sans-serif; box-shadow: 0 2px 6px rgba(16, 24, 40, .18); white-space: nowrap; }
.map-card { display: flex; gap: 8px; align-items: center; color: var(--ink); max-width: 260px; font-family: "Vazirmatn", "Noto Sans Armenian", sans-serif; }
.map-card img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: 0 0 72px; }
.map-card span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.map-card em { font-style: normal; font-weight: 800; color: var(--brand-hover); }
.map-card small { color: var(--muted); font-size: 11.5px; }
.map-error { padding: 12px; color: var(--danger); }
.ad-map .map-static img { display: block; width: 100%; height: auto; border-radius: 12px; }
.map-note { font-size: 12.5px; margin: 8px 0 0; }
@media (max-width: 720px) {
  .map-canvas { height: 280px; }
  .map-preview { height: 150px; }
}

/* invisible reCAPTCHA: badge hidden, notice in the footer (allowed by Google when the notice is shown) */
.grecaptcha-badge { visibility: hidden !important; }
.rc-note { display: block; margin-top: 4px; font-size: 11.5px; opacity: .75; }
.rc-note a { color: inherit; text-decoration: underline; }

/* two-step verification */
.setup-steps { padding-inline-start: 20px; line-height: 2; }
.qr-box { width: 210px; height: 210px; margin: 10px 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.setup-key { display: inline-block; margin: 4px 0 8px; padding: 6px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; font-size: 15px; letter-spacing: 1px; user-select: all; }
.otp-input { font-size: 22px; letter-spacing: 6px; text-align: center; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.recovery-codes code { padding: 6px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 15px; }
.staff-row { display: grid; gap: 10px; }
.perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
@media (max-width: 720px) { .perm-grid { grid-template-columns: minmax(0, 1fr); } }
.restore-box > summary { list-style: none; display: inline-flex; }
.restore-box > summary::-webkit-details-marker { display: none; }
.restore-box[open] form { margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); max-width: 300px; }

/* ---------- editable pages and contact ---------- */
.page-text ol { padding-inline-start: 22px; margin: 0; }
html[lang="fa"] .page-text ol { list-style-type: persian; }
.page-text p { margin: 0 0 10px; }
.fplan-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 10px 0 18px; }
.fplan-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; }
.fplan-head b { display: block; font-size: 15.5px; }
.fplan-head small { display: block; line-height: 1.8; margin-top: 2px; }
.fplan-prices { list-style: none; padding: 0 !important; margin: 10px 0 0 !important; }
.fplan-prices li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 6px 0; border-top: 1px dashed var(--line-soft); }
.fplan-prices li b { margin-inline-start: auto; }
.fplan-prices li small { flex-basis: 100%; text-align: end; font-size: 11.5px; }
.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: start; margin: 24px 0 40px; }
.contact-page .page-text { margin: 0; }
.contact-channels { list-style: none; padding: 0 !important; margin: 14px 0 0 !important; display: grid; gap: 8px; }
.contact-channels a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 12px; color: var(--ink); }
.contact-channels a:hover { border-color: var(--brand); }
.contact-channels small { display: block; font-size: 12px; line-height: 1.6; }
.contact-channels b { display: block; font-size: 14.5px; line-height: 1.6; }
.ch-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-hover); flex: none; }
.ch-icon svg { width: 21px; height: 21px; }
.ch-whatsapp { background: #e6f7ee; color: #128c4a; }
.ch-telegram { background: #e5f3fb; color: #1b8ad1; }
.ch-instagram { background: #fbe9f1; color: #c1306b; }
.ch-facebook { background: #e8eefb; color: #1f5fd6; }
.ch-youtube { background: #fdeaea; color: #d32020; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.contact-form h2 { font-size: 18px; margin: 0 0 12px; }
.contact-ad { background: var(--bg); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer-social { display: flex; gap: 10px; flex-basis: 100%; justify-content: center; }
.footer-social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.footer-social a:hover { background: rgba(255, 255, 255, .18); }
.footer-social svg { width: 19px; height: 19px; }
@media (max-width: 860px) {
  .contact-page { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
.md-help { margin-bottom: 14px; font-size: 13.5px; }
.md-help summary { cursor: pointer; font-weight: 700; }
.md-help ul { margin: 8px 0 0; line-height: 2; }
.page-edit .panel { margin-bottom: 14px; }
.page-edit h2 { font-size: 16px; margin: 0 0 10px; }
.md-text { font-family: inherit; line-height: 1.9; min-height: 260px; }
.contact-msg { margin-bottom: 12px; }
.contact-msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 14px; }
.contact-msg-body { background: var(--bg); border-radius: 10px; padding: 10px 12px; margin: 8px 0 10px; line-height: 1.9; white-space: normal; overflow-wrap: anywhere; }
.logo-img { height: 40px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.brand-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 14px; }
.brand-row h2 { font-size: 16px; margin: 0 0 6px; }
.brand-row p { font-size: 13px; line-height: 1.9; }
.brand-preview { background: var(--bg); border-radius: 12px; padding: 16px; display: flex; justify-content: center; align-items: center; min-height: 100px; }
.brand-preview.icons { gap: 14px; align-items: flex-end; }
.og-preview { width: 100%; border-radius: 8px; border: 1px solid var(--line-soft); }
@media (max-width: 760px) { .brand-row { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .logo-img { height: 32px; max-width: 150px; } }
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.app-head img { border-radius: 18px; flex: none; }
.app-android { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px; margin: 6px 0 4px; border-radius: 12px; background: var(--brand-soft); }
.app-android p { flex-basis: 100%; }
.app-head h1 { margin: 0; }
.app-head p { margin: 4px 0 0; }

/* ---------- Card photo preview on hover (public/js/card-gallery.js) ---------- */
.card-dots { position: absolute; bottom: 10px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.card-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .75); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.card-dots i.on { background: var(--brand); box-shadow: 0 0 0 2px #fff; }
@media (hover: hover) and (pointer: fine) { .card:hover .card-dots { opacity: 1; } }
.card-media[data-imgs] img { transition: none; }

/* ---------- Ad page gallery: arrows, viewer, all-photos grid (public/js/ad-gallery.js) ---------- */
.gallery { position: relative; }
.gallery-track figure { cursor: zoom-in; }
.g-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff;
  color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); z-index: 2; }
.g-arrow svg { width: 22px; height: 22px; }
.g-prev { inset-inline-start: 16px; }
.g-next { inset-inline-end: 16px; }
.gallery > .g-arrow { top: calc(50% - 30px); }
.gallery:has(.thumbs) > .g-arrow { top: calc(50% - 52px); }
.g-expand { position: absolute; top: 14px; inset-inline-end: 14px; width: 42px; height: 42px; border-radius: 10px; border: 0; background: #fff;
  color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.g-expand svg { width: 18px; height: 18px; }
html.g-locked, html.g-locked body { overflow: hidden; }

.gv { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; flex-direction: column; outline: none; }
.gv-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: #fff; font-weight: 700; }
.gv-close { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gv-close svg { width: 22px; height: 22px; }
.gv-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gv-track::-webkit-scrollbar { display: none; }
.gv-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 0 70px; }
.gv-track img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.gv-dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 22px; }
.gv-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .4); cursor: pointer; }
.gv-dots button.on { background: #fff; }
.gv .g-arrow { background: rgba(255, 255, 255, .92); }

.gg { position: fixed; inset: 0; z-index: 90; background: #fff; overflow-y: auto; }
.gg-head { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; padding: 8px 10px; background: #fff; border-bottom: 1px solid var(--line-soft); }
.gg-head b { text-align: center; font-size: 15px; }
.gg-back { width: 44px; height: 44px; border: 0; background: none; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gg-back svg { width: 24px; height: 24px; }
.gg-fav button { width: 44px; height: 44px; padding: 0; border: 0; background: none; }
.gg-fav button.on { color: var(--accent); }
.gg-fav button.on svg { fill: currentColor; }
.gg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; }
.gg-item { position: relative; border: 0; padding: 0; background: #E9EEEB; aspect-ratio: 4 / 3; cursor: pointer; overflow: hidden; }
.gg-item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.gg-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gg-num { position: absolute; bottom: 8px; inset-inline-start: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }

@media (max-width: 720px) {
  .g-arrow { width: 38px; height: 38px; }
  .g-prev { inset-inline-start: 10px; }
  .g-next { inset-inline-end: 10px; }
  .gv-track figure { padding: 0; }
  .gv .g-arrow { display: none; }
}

/* ---------- Cart button (delivery not connected yet) ---------- */
.cart-soon { position: relative; }
.cart-soon > summary { list-style: none; }
.cart-soon > summary::-webkit-details-marker { display: none; }
.cart-pop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 20; width: 260px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 10px 28px rgba(15, 23, 42, .16); padding: 12px 14px; font-size: 13.5px; line-height: 1.8; color: var(--ink); }

/* ---------- Favourite: side panel on desktop, bottom bar on phones (one heart per screen) ---------- */
.fav-side .btn.on { color: var(--accent); }
.fav-side .btn.on svg, .fav-bar.on svg { fill: currentColor; }
.fav-bar.on { color: var(--accent); }
.contact-buttons .fav-side { grid-column: 1 / -1; }

/* ---------- Bar at the top of the ad page on phones, after the photos scroll away ---------- */
.ad-stickybar { display: none; }
@media (max-width: 720px) {
  .fav-side { display: none; }
  /* Phones have message / call / favourite in the fixed bottom bar, so the seller box does not repeat them. */
  .ad-side .contact-buttons { display: none; }
  .ad-stickybar { display: flex; align-items: center; gap: 8px; position: fixed; top: 0; inset-inline: 0; z-index: 45; height: 56px; padding: 0 8px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
    transform: translateY(-110%); transition: transform .2s ease; }
  .ad-stickybar.show { transform: none; }
  .ad-stickybar img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
  .ad-stickybar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .sb-back, .sb-btn { width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
  .sb-back svg, .sb-btn svg { width: 22px; height: 22px; }
}

/* ---------- Under the ad: similar (rows), recently viewed (scrolling row), for you (grid) ---------- */
.more-ads .row-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.more-ads .row-card .thumb { display: flex; align-items: center; justify-content: center; color: var(--faint); }
.row-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-title { color: var(--ink); font-weight: 700; font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-title::after { content: ""; position: absolute; inset: 0; } /* whole row clickable */
.row-price { font-size: 15.5px; margin-top: auto; }
.more-link { margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.more-cards { margin-top: 28px; }
.grid-scroll { grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
.grid-scroll > * { scroll-snap-align: start; }
@media (max-width: 900px) { .grid-scroll { grid-auto-columns: calc((100% - 16px) / 2.3); } }
@media (max-width: 720px) {
  .more-cards .grid:not(.grid-scroll) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid-scroll { grid-auto-columns: 46%; gap: 10px; }
  .more-ads .row-list { grid-template-columns: minmax(0, 1fr); }
  .more-ads .row-card .thumb { width: 96px; }
}

/* ---------- Price changes on the ad page (like list.am) ---------- */
.price-history h2 { font-size: 16px; margin: 0 0 6px; }
.ph-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.ph-row:last-child { border-bottom: 0; }
.ph-date { color: var(--muted); line-height: 1.5; }
.ph-price { white-space: nowrap; }
.ph-price { font-variant-numeric: tabular-nums; }
.ph-change { text-align: end; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 92px; }
.ph-change.down { color: var(--brand); }
.ph-change.up { color: var(--accent); }
.ph-change.muted { font-weight: 400; font-size: 12.5px; }
.ph-change span[aria-hidden] { font-size: 11px; }
.ph-extra { display: none; }
.ph-toggle:checked ~ .ph-rows .ph-extra { display: grid; }
.ph-more { display: inline-block; margin-top: 8px; color: var(--brand); font-weight: 600; font-size: 14px; cursor: pointer; }
.ph-more .ph-close, .ph-toggle:checked ~ .ph-more .ph-open { display: none; }
.ph-toggle:checked ~ .ph-more .ph-close { display: inline; }
.ph-toggle:focus-visible ~ .ph-more { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Ad page layout: grid on desktop, photo + sliding sheet on phones (like Govazdner) ---------- */
.ad-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 16px 24px; align-items: start; }
.ad-photo { grid-column: 1; grid-row: 1; min-width: 0; }
.ad-sheet { display: contents; }
.ad-layout .ad-main { grid-column: 1; grid-row: 2; }
.ad-layout .ad-side { grid-column: 2; grid-row: 1 / span 2; max-width: none; }
.g-top, .m-crumbs, .m-loc { display: none; }
@media (max-width: 900px) {
  .ad-layout { grid-template-columns: minmax(0, 1fr); }
  .ad-layout .ad-side { grid-column: 1; grid-row: 2; }
  .ad-layout .ad-main { grid-row: 3; }
}
@media (max-width: 720px) {
  body.ad-page .site-header, body.ad-page .ad-top { display: none; }
  .ad-layout { display: block; }
  .ad-photo { position: sticky; top: 0; z-index: 0; margin: 0 -16px; }
  .ad-photo .gallery { margin: 0; border-radius: 0; }
  .ad-photo .gallery-track { aspect-ratio: 10 / 9; filter: blur(calc(var(--cover, 0) * 8px)); }
  .ad-photo .gallery::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(255, 255, 255, calc(var(--cover, 0) * .55)); }
  .ad-photo .thumbs, .ad-photo .g-arrow, .ad-photo .g-expand { display: none; }
  .ad-photo .gallery-track .num { bottom: 34px; inset-inline-start: auto; inset-inline-end: 14px; background: rgba(17, 24, 32, .72); color: #fff; }
  .g-top { display: flex; justify-content: space-between; position: absolute; top: 12px; inset-inline: 12px; z-index: 3; }
  .g-top-end { display: flex; gap: 8px; }
  .g-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .88); color: var(--ink); display: flex; align-items: center;
    justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); list-style: none; }
  .g-btn svg { width: 20px; height: 20px; }
  .g-top .cart-pop { width: 230px; }
  .ad-sheet { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; margin: -24px -16px 0; padding: 16px 16px 0;
    background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 20px rgba(15, 23, 42, .1); }
  .ad-sheet .ad-side { display: contents; }
  .ad-sheet > *, .ad-sheet .ad-side > * { order: 4; }
  .ad-sheet .ad-head { order: 1; margin: -16px -16px 0; border-radius: 22px 22px 0 0; border: 0; }
  .ad-sheet .price-history { order: 2; }
  .ad-sheet .ad-main { order: 3; }
  .m-crumbs { display: block; font-size: 13px; line-height: 1.8; margin: 6px 0 4px; }
  .m-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
  .ad-facts .f-loc { display: none; } /* already under the price */
}

/* ---------- WhatsApp / Viber (seller's ticks in the post form) ---------- */
.messengers { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.btn-wa { background: #25d366; color: #fff; border-color: #25d366; }
.btn-wa:hover { background: #1ebe5b; color: #fff; }
.btn-viber { background: #7360f2; color: #fff; border-color: #7360f2; }
.btn-viber:hover { background: #6450e0; color: #fff; }
.ic-wa { color: #25d366; }
.ic-viber { color: #7360f2; }

/* ---------- profile photo, premium, labels, wallet (2026-11-01) ---------- */
.icon-xs { width: 13px; height: 13px; flex-shrink: 0; }
.avatar.has-img { overflow: hidden; background: var(--bg); }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-row { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.avatar-row .grow { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.avatar-actions { display: flex; gap: 8px; }

/* labels and premium badges */
.card-badges { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.card-badges .badge { position: static; }
.badge-label, .ad-label { background: var(--lb, #e5484d); color: var(--lt, #fff); }
.ad-label { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; vertical-align: middle; }
.ad-head .ad-label { margin-bottom: 6px; }
.card-premium {
  position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--brand-active); background: rgba(255, 255, 255, .94);
}
.premium-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--brand-active); background: var(--brand-soft); vertical-align: middle;
}
.acc-me .premium-tag { padding: 2px 5px; }

/* account menu: wallet balance under the label */
.acc-note-r { margin-inline-start: auto; font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* wallet */
.wallet-card {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); margin-bottom: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-active)); color: #fff;
}
.wallet-card small { display: block; opacity: .85; font-size: 13px; }
.wallet-card b { display: block; font-size: 26px; font-weight: 800; }
.wallet-ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .16); display: inline-flex; align-items: center; justify-content: center; }
.topup-presets { margin-bottom: 8px; }
.topup-form .pay-methods { margin: 6px 0 12px; }
.wallet-table td { vertical-align: top; }
.wallet-table .nowrap, .nowrap { white-space: nowrap; }
.tx-in { color: var(--brand); font-weight: 700; }
.tx-out { color: var(--accent); font-weight: 700; }
.icon-thumb { display: inline-flex !important; align-items: center; justify-content: center; color: var(--brand-hover); background: var(--brand-soft) !important; }

/* after posting + free bump */
.promote-new { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; border-color: var(--brand-line); background: var(--brand-soft); }
.promote-new .grow { flex: 1; min-width: 0; }
.promote-new b { display: block; font-size: 17px; }
.promote-new small { display: block; }
.promote-new-ic { width: 40px; height: 40px; border-radius: 999px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.free-bump { display: flex; align-items: center; gap: 12px; margin: 12px 0; border-color: var(--brand-line); background: var(--brand-soft); }
.free-bump .grow { flex: 1; min-width: 0; }
.free-bump b, .free-bump small { display: block; }
.plan-option .price s { font-weight: 400; }
@media (max-width: 560px) { .promote-new, .free-bump { flex-wrap: wrap; } }

/* premium page */
.premium-hero { background: #fff; border-color: var(--brand-line); }
.premium-hero.on { background: var(--brand-soft); }
.premium-intro, .premium-status { font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.premium-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.premium-features li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.premium-features .icon-sm { color: var(--brand); }
.premium-plans { margin-bottom: 14px; }
.cover-preview { display: block; width: 100%; max-width: 520px; height: auto; aspect-ratio: 15 / 4; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.social-input { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 8px; margin-bottom: 8px; }
.social-input label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.social-input .error { grid-column: 2; }
@media (max-width: 560px) { .social-input { grid-template-columns: minmax(0, 1fr); } .social-input .error { grid-column: 1; } }

/* premium seller page */
.seller-head.has-cover { flex-wrap: wrap; padding-top: 0; overflow: hidden; }
.seller-cover { flex: 0 0 calc(100% + 40px); margin: 0 -20px 2px; aspect-ratio: 15 / 4; max-height: 260px; background: var(--bg); }
.seller-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seller-head.is-premium { border-color: var(--brand-line); }
.seller-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px !important; }
.seller-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
fieldset.field legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.req-note { color: var(--danger); font-weight: 600; font-size: .75em; }

/* ad page: featured mark (owner request 2026-11-01) */
.ad-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ad-chips .ad-label { margin: 0; }
.ad-featured {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--featured); color: #fff; line-height: 1.6;
}
.ad-featured svg { fill: currentColor; }
.ad-head.is-featured { border-color: var(--accent-line); box-shadow: inset 0 3px 0 var(--accent); }
.owner-promos { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.owner-promo { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #fff; color: var(--accent); border: 1px solid var(--accent-line); }

/* seller's video (Support\Video, public/js/video.js) */
.ad-video h2 { display: flex; align-items: center; gap: 6px; }
.video-poster, .video-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111813;
}
.video-poster.is-vertical, .video-frame.is-vertical { aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.video-poster.vp-vimeo { background: linear-gradient(135deg, #1ab7ea, #0d6e8c); }
.video-poster.vp-tiktok { background: linear-gradient(135deg, #111, #25f4ee 160%); }
.vp-play {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 999px;
  background: rgba(0, 0, 0, .62); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s;
}
.vp-play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-poster.vp-youtube:hover .vp-play { background: #ff0033; }
.video-poster:hover .vp-play { background: rgba(0, 0, 0, .8); }
.vp-name {
  position: absolute; bottom: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12.5px; font-weight: 700;
}
.video-note { font-size: 12.5px; margin: 8px 0 0; }
.video-open { display: inline-flex; align-items: center; gap: 6px; }
.video-field { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.video-field label { display: inline-flex; align-items: center; gap: 6px; }
.card-video {
  position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 999px;
  background: rgba(17, 24, 32, .72); color: #fff; display: flex; align-items: center; justify-content: center;
}

/* All categories page (/categories): main categories with their subcategories. */
.page-title { font-size: 22px; font-weight: 800; margin: 22px 0 16px; }
.cat-dir { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.cat-dir-item { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.cat-dir-item .cat-tile { box-shadow: none; border: 0; border-top: 3px solid var(--tile); border-radius: 0; }
.cat-dir-item:nth-child(even) .cat-tile { --tile: var(--accent); --tile-soft: var(--accent-soft); }
.cat-dir-item:nth-child(odd) .cat-tile { --tile: var(--brand); --tile-soft: var(--brand-soft); }
.cat-dir-subs { list-style: none; margin: 0; padding: 4px 14px 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.cat-dir-subs a { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--ink-2); font-size: 13px; }
.cat-dir-subs a:hover { border-color: var(--brand-line); color: var(--brand-hover); background: var(--brand-soft); }
@media (max-width: 900px) { .cat-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cat-dir { grid-template-columns: minmax(0, 1fr); } }

/* Admin → field: icon picker (Support\FieldIcons) */
.icon-pick-box > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.icon-pick-box > summary svg { color: var(--brand); }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; margin-top: 10px; max-height: 260px; overflow-y: auto; }
.icon-pick label { cursor: pointer; }
.icon-pick input { position: absolute; opacity: 0; }
.icon-pick span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); }
.icon-pick span svg { width: 20px; height: 20px; }
.icon-pick small { font-size: 10px; color: var(--muted); }
.icon-pick input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.icon-pick input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-ring); }
.spec .dot svg { width: 18px; height: 18px; }

/* Home banners (owner request 2026-11-01): beside the slogan on desktop, a swipeable strip under the categories on
   phones and tablets. Banner images are 1200×520 (shown at 600×260). */
.hero-side { display: none; }
.home-banner {
  position: relative; display: block; aspect-ratio: 600 / 260; border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow); color: var(--ink);
}
.home-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-tag { position: absolute; top: 6px; inset-inline-end: 8px; padding: 0 6px; border-radius: 6px; font-size: 10.5px; background: rgba(255, 255, 255, .85); color: var(--muted); }
.hb-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 16px; text-align: center;
  border: 2px dashed var(--brand-line); box-shadow: none; transition: border-color .15s, background .15s;
}
.hb-empty:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.hb-empty b { color: var(--brand); font-size: 16px; }
.hb-empty span { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.hb-empty em { font-style: normal; margin-top: 4px; font-size: 12.5px; font-weight: 700; background: var(--brand-soft); color: var(--brand-active); padding: 3px 12px; border-radius: 999px; }
.banner-phone { margin-top: 18px; display: grid; gap: 10px; }
/* One banner at a time per place (rotated by banner-rotate.js); fades in when it changes. */
.hb-slide:not([hidden]) { animation: hb-in .45s ease; }
@keyframes hb-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hb-slide:not([hidden]) { animation: none; } }
.banner-phone .home-banner { max-width: 560px; margin: 0 auto; width: 100%; }
/* Phones: slim, centred "your ad here" bar instead of a tall card. */
.hb-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 560px; margin: 0 auto;
  padding: 9px 14px; border: 1.5px dashed var(--brand-line); border-radius: 12px; background: #fff; color: var(--ink);
}
.hb-bar:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.hb-bar span { display: grid; min-width: 0; line-height: 1.5; }
.hb-bar b { color: var(--brand); font-size: 14px; }
.hb-bar small { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-bar em { flex: none; font-style: normal; font-size: 12.5px; font-weight: 700; background: var(--brand-soft); color: var(--brand-active); padding: 4px 12px; border-radius: 999px; }
@media (min-width: 1024px) {
  .home-hero { background: #fff; padding: 12px 16px; }
  .home-hero + .section { margin-top: 14px; }
  .hero-row { display: grid; grid-template-columns: 260px minmax(0, 1fr) 260px; gap: 28px; align-items: center; max-width: calc(var(--wrap) - 32px); margin: 0 auto; }
  .hero-side { display: block; }
  .hero-side .hb-empty { padding: 8px 12px; gap: 2px; }
  .hero-side .hb-empty span { font-size: 12px; line-height: 1.6; }
  /* Slim band: the drawing runs behind the slogan (owner request), no empty space under it. */
  .hero-mid { background: url("../images/hero-armenia.svg") center bottom / 100% auto no-repeat; padding: 6px 0 22px; }
  .banner-phone { display: none; }
  /* All nine categories in one row (desktop only; phones keep their 3 × 3 tiles). */
  .quick-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); max-width: var(--wrap); gap: 10px; }
  .quick-grid .cat-tile { flex-direction: column; gap: 6px; min-height: 90px; padding: 12px 6px; font-size: 13px; }
  .quick-grid .cat-tile .cat-icon { width: 36px; height: 36px; }
  .quick-grid .cat-tile .cat-icon svg { width: 26px; height: 26px; }
}

/* /advertise */
.adv-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.adv-preview { max-width: 420px; }
.adv-mine { display: grid; gap: 8px; }
.adv-mine .row { display: flex; align-items: center; gap: 10px; }
.adv-mine img { width: 96px; aspect-ratio: 600 / 260; object-fit: cover; border-radius: 8px; }
.adv-premium { border-color: var(--brand-line); background: var(--brand-soft); }
@media (max-width: 900px) { .adv-grid { grid-template-columns: minmax(0, 1fr); } }

/* Business pages as stories (owner request 2026-11-01): home under the tiles, category pages above the results. */
.stories { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px 14px 8px; margin: 14px 0; }
.stories .section-head { margin-bottom: 10px; }
.stories .section-head h2 { font-size: 16px; }
.stories-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; }
.stories-row::-webkit-scrollbar { display: none; }
.story { position: relative; flex: none; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--ink); scroll-snap-align: start; }
.story:hover { color: var(--ink); }
.story-ring { display: block; width: 74px; height: 74px; border-radius: 50%; padding: 3px; background: var(--brand); }
/* Premium: a ring in Iran's flag colours; business accounts: green. Opened ones turn grey (stories.js). */
.story.is-premium .story-ring { background: conic-gradient(var(--brand) 0 120deg, #fff 120deg 150deg, var(--accent) 150deg 300deg, var(--brand) 300deg); }
.story.seen .story-ring { background: #D3DBD6; }
.story-photo { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; overflow: hidden; background: var(--bg); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story .avatar.story-logo { position: absolute; top: 50px; inset-inline-start: 2px; width: 26px; height: 26px; font-size: 11px; border: 2px solid #fff; }
.story .avatar.story-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.story small { max-width: 78px; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story:focus-visible { outline: none; }
.story:focus-visible .story-ring { box-shadow: 0 0 0 3px var(--brand-ring); }
@media (min-width: 1024px) {
  .story { width: 92px; }
  .story-ring { width: 86px; height: 86px; }
  .story .avatar.story-logo { top: 60px; width: 30px; height: 30px; }
  .story small { max-width: 92px; font-size: 12.5px; }
  .stories-row { gap: 16px; }
}
@media (max-width: 560px) { .home-page .stories { margin: 12px 0; padding: 10px 12px 6px; } }
/* /businesses */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.biz-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--ink); padding: 16px 10px; }
.biz-card:hover { color: var(--ink); border-color: var(--brand-line); }
.biz-card b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz-card.is-premium { border-color: var(--brand-line); }

/* Explore (owner request 2026-11-01, like Instagram's explore): phones 3 square columns with a tall tile every fifth;
   desktop 4 even portrait columns. Thin gaps, no rounded corners, play mark for ads with a video. */
.explore-head { margin: 16px 0 10px; }
.explore-head h1 { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; }
.explore-head p { margin: 4px 0 0; font-size: 13.5px; }
.explore-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 2px; margin-bottom: 16px; }
.ex-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface-2); }
.ex-tile.tall { aspect-ratio: auto; grid-row: span 2; }
.ex-tile.tall-start { grid-column: 1; }
.ex-tile.tall-end { grid-column: 3; }
.ex-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s; }
.ex-tile:hover img { filter: brightness(.88); }
.ex-icon { position: absolute; top: 6px; inset-inline-end: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); }
.ex-price {
  position: absolute; bottom: 6px; inset-inline-start: 6px; max-width: calc(100% - 12px); padding: 1px 8px; border-radius: 999px;
  background: rgba(23, 35, 29, .62); color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ex-more { grid-column: 1 / -1; justify-self: center; margin-top: 12px; }
.explore-link.active { background: var(--brand-soft); color: var(--brand-hover); }
@media (min-width: 900px) {
  .explore-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; max-width: 1060px; margin-inline: auto; }
  .ex-tile, .ex-tile.tall { aspect-ratio: 3 / 4; grid-row: auto; grid-column: auto; }
  .ex-icon { top: 10px; inset-inline-end: 10px; }
  .ex-price { bottom: 10px; inset-inline-start: 10px; font-size: 13px; padding: 2px 10px; }
  .explore-head { max-width: 1060px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .explore-grid { margin-inline: -16px; }
  .explore-head { margin: 10px 0 8px; }
  .explore-head h1 { font-size: 19px; }
}
