/* Coin Heritage — mobile-first stylesheet */
:root {
  --navy: #14213d;
  --navy-2: #1f2f52;
  --ink: #1c2230;
  --muted: #6b6f7b;
  --paper: #faf7f0;
  --card: #ffffff;
  --line: #e8e1d1;
  --gold: #b8892b;
  --gold-2: #d4a849;
  --gold-soft: #f6ecd3;
  --green: #2f7d5b;
  --red: #b23b3b;
  --warn-bg: #fff6e0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,33,61,.06), 0 6px 18px rgba(20,33,61,.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bottom-h: 64px;
}
[dir="rtl"] { --serif: "Noto Naskh Arabic", "Traditional Arabic", "Amiri", Georgia, serif; --sans: "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 16px;
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small, small { font-size: .85rem; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.section { padding-top: 22px; padding-bottom: 22px; }
.flip-rtl { }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* Icons */
.i { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.i-sm { width: 15px; height: 15px; vertical-align: -2px; }
.i-lg { width: 30px; height: 30px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px;
  padding: 11px 20px; font: 600 .95rem/1 var(--sans); cursor: pointer; transition: .15s; text-align: center; min-height: 44px; }
.btn-sm { padding: 8px 14px; font-size: .88rem; min-height: 36px; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; min-height: 52px; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #fff; box-shadow: 0 2px 8px rgba(184,137,43,.35); }
.btn-gold:hover { color: #fff; filter: brightness(1.05); }
.btn-gold:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--red); border-color: #e7c4c4; }
.linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px 0; font: inherit; font-size: .85rem; }
.linkbtn:hover { color: var(--gold); }
.linkbtn.danger, .danger { color: var(--red); }
.link { color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.icon-btn { background: rgba(0,0,0,.35); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; font-size: 1.2rem; }

/* Top bar */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.brand:hover { color: var(--gold-2); }
.mainnav { display: none; gap: 4px; flex: 1; }
.mainnav a { color: #d8dcea; padding: 8px 12px; border-radius: 999px; font-size: .94rem; display: inline-flex; align-items: center; gap: 4px; }
.mainnav a:hover, .mainnav a.on { color: #fff; background: rgba(255,255,255,.1); }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang-switch { color: var(--gold-2); font-weight: 700; padding: 6px 10px; border: 1px solid rgba(212,168,73,.5); border-radius: 999px; font-size: .85rem; }
.topbar .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff; display: inline-grid; place-items: center; font-weight: 700; flex: none; font-family: var(--serif); }
.avatar-lg { width: 48px; height: 48px; font-size: 1.2rem; }
.avatar-xl { width: 76px; height: 76px; font-size: 2rem; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.18); min-width: 230px; padding: 6px; z-index: 50; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; text-align: start; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--gold-soft); color: var(--navy); }
.menu-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.menu-head small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.menu-inline .menu-pop { min-width: 200px; }

/* Bottom nav (mobile) */
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--bottom-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(20,33,61,.06); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .72rem; font-weight: 600; }
.bottomnav a.on { color: var(--gold); }
.bottomnav .i { width: 22px; height: 22px; }
.bn-add-btn { width: 50px; height: 50px; margin-top: -22px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(184,137,43,.5); border: 4px solid #fff; }
.bn-add { color: var(--navy) !important; }
.hide-mobile { display: none !important; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 12px; margin: 14px 0; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert ul { margin: 0; padding-inline-start: 18px; }
.alert-success { background: #eaf6ef; border-color: #bfe3cf; color: #1f5c40; }
.alert-error { background: #fbecec; border-color: #efc5c5; color: #842b2b; }
.alert-info { background: #eef2fb; border-color: #cbd6f1; color: #23396b; }
.alert-warn { background: var(--warn-bg); border-color: #f0d9a2; color: #6b4c0e; }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 80% -10%, rgba(212,168,73,.25), transparent), linear-gradient(160deg, var(--navy), var(--navy-2)); color: #e6e9f2; padding: 34px 0 0; overflow: hidden; }
.hero-inner { display: grid; gap: 24px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 6vw, 3.1rem); }
.hero .lead { font-size: 1.07rem; color: #c9cfdf; max-width: 560px; }
.eyebrow { color: var(--gold-2); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; margin-bottom: 10px; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.hero-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 16px; max-width: 560px; color: var(--muted); }
[dir="rtl"] .hero-search { padding: 6px 16px 6px 6px; }
.hero-search input { border: 0; outline: 0; flex: 1; font: inherit; min-width: 0; padding: 6px 0; color: var(--ink); background: transparent; }
.hero-art { display: none; position: relative; height: 300px; }
.medal { position: absolute; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.75); font-family: var(--serif);
  background: radial-gradient(circle at 35% 30%, #f3d98d, #c99a36 45%, #8a6418 75%, #5b410e); box-shadow: inset 0 0 0 6px rgba(255,255,255,.18), inset 0 0 0 10px rgba(0,0,0,.12), 0 18px 40px rgba(0,0,0,.35); }
.medal span { font-size: 3rem; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.medal-a { width: 210px; height: 210px; top: 20px; inset-inline-start: 40px; }
.medal-b { width: 140px; height: 140px; top: 150px; inset-inline-start: 210px; background: radial-gradient(circle at 35% 30%, #f1f1f1, #b9bcc2 45%, #7d8189 75%, #50535a); }
.medal-c { width: 110px; height: 110px; top: 10px; inset-inline-start: 250px; background: radial-gradient(circle at 35% 30%, #f0b78a, #b96d3b 45%, #7e431c 75%, #4f2a10); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 26px; background: rgba(255,255,255,.1); border-radius: 14px 14px 0 0; overflow: hidden; }
.stat { background: rgba(10,18,36,.35); padding: 14px 8px; text-align: center; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: #fff; }
.stat span { font-size: .8rem; color: #b9c0d3; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.feature .i-lg { color: var(--gold); margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }
.section-head, .page-head, .card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin: 0; }
.notice-card { display: flex; gap: 14px; background: var(--gold-soft); border: 1px solid #ecd9a7; padding: 18px; border-radius: var(--radius); color: #5b4512; }
.notice-card .i-lg { color: var(--gold); }

/* Cards & forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin-bottom: 12px; }
.card-title .i { color: var(--gold); }
.small-title { font-size: 1rem; }
.sub { font-size: .95rem; margin: 18px 0 8px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > span, .field > legend { font-weight: 600; font-size: .9rem; color: var(--navy); padding: 0; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #d9d1bf; border-radius: 10px; padding: 11px 12px; width: 100%; min-height: 46px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(184,137,43,.35); border-color: var(--gold); }
input:disabled, select:disabled { background: #f3f1ec; color: var(--muted); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--gold); }
.row2, .row3, .row4 { display: grid; gap: 14px; }
.row2.tight { gap: 10px; grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.check input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.terms-box { background: var(--warn-bg); border: 1px solid #f0d9a2; border-radius: 12px; padding: 14px 16px; }
.terms-box h3 { display: flex; gap: 8px; align-items: center; color: #6b4c0e; }
.auth-card h1 { margin-bottom: 4px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg { display: grid; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label > span { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; height: 100%; }
.seg small { color: var(--muted); font-size: .8rem; }
.seg input:checked + span { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 2px rgba(184,137,43,.18); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
.seg-inline { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.seg-inline label > span { padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.seg-4 { grid-template-columns: repeat(4, 1fr); }
.seg-4 label > span { text-align: center; }
.file-plain { padding: 9px; }
.danger-zone { margin-top: 10px; text-align: center; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; color: var(--navy); white-space: nowrap; }
.chip:hover { border-color: var(--gold); }
.chip-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-on:hover { color: #fff; }
.chip-on .chip-n { background: rgba(255,255,255,.2); color: #fff; }
.chip-lg { padding: 10px 16px; font-size: .97rem; }
.chip-muted { background: #f2efe7; }
.chip-n { background: var(--gold-soft); color: #7a5a14; border-radius: 999px; padding: 1px 8px; font-size: .78rem; font-weight: 700; }
.flag { font-size: 1.15rem; }
.flag-lg { font-size: 1.5em; vertical-align: -2px; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #eef0f5; color: var(--navy); text-transform: uppercase; letter-spacing: .03em; }
.tag-warn { background: #fde6c8; color: #8a4b05; }
.tag-show { background: #e7eefc; color: #2b4c8f; }
.tag-trade { background: #e6f4ec; color: #22684a; }
.tag-offers { background: var(--gold-soft); color: #7a5a14; }

/* Coin grid */
.grid-coins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.coin-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .15s; color: var(--ink); }
.coin-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20,33,61,.12); color: var(--ink); }
.coin-thumb { position: relative; aspect-ratio: 1; background: radial-gradient(circle, #f4efe3, #e5dccb); }
.coin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.coin-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.5rem; }
.badge-photos, .badge-vis { position: absolute; bottom: 8px; inset-inline-end: 8px; background: rgba(20,33,61,.75); color: #fff; font-size: .74rem; padding: 3px 8px; border-radius: 999px; display: flex; gap: 4px; align-items: center; }
.badge-vis { inset-inline-end: auto; inset-inline-start: 8px; }
.coin-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.coin-meta { display: flex; justify-content: space-between; gap: 6px; font-size: .78rem; color: var(--muted); }
.coin-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-year { font-weight: 700; color: var(--gold); white-space: nowrap; }
.coin-title { font-family: var(--sans); font-size: .95rem; font-weight: 650; color: var(--navy); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coin-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: .78rem; padding-top: 4px; }
.coin-stats { display: flex; align-items: center; gap: 3px; color: var(--muted); }
.grid-sm { gap: 10px; }

.empty { text-align: center; padding: 42px 16px; background: var(--card); border: 1px dashed #d9cfb6; border-radius: var(--radius); }
.empty-ico { font-size: 2.6rem; display: block; margin-bottom: 8px; }

/* Explore */
.filter-bar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d9d1bf; border-radius: 999px; padding: 0 14px; margin-bottom: 14px; color: var(--muted); }
.filter-bar input { border: 0; outline: 0; padding: 12px 0; min-height: 0; }
.grid-countries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.country-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: .15s; }
.country-card:hover { box-shadow: 0 10px 26px rgba(20,33,61,.12); color: var(--ink); }
.country-cover { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.country-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.country-flag { position: absolute; bottom: 8px; inset-inline-start: 10px; font-size: 1.8rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.country-body { padding: 10px 12px; display: flex; flex-direction: column; }
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.year-nav > .chip { margin-bottom: 10px; }
.century { padding: 10px 0; border-top: 1px solid var(--line); }
.century-label { display: block; font-weight: 700; font-size: .85rem; color: var(--navy); margin-bottom: 8px; }
.toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.inline-form select { width: auto; min-height: 40px; padding: 8px 12px; }
.filters-inline { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 22px 0; }
.search-form .more-filters summary { cursor: pointer; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.search-form .filter-bar { margin-bottom: 10px; }

/* Collection groups */
.coll-country { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.coll-country > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-family: var(--serif); font-size: 1.1rem; color: var(--navy); }
.coll-country > summary::-webkit-details-marker { display: none; }
.coll-country > summary .chev { margin-inline-start: auto; transition: .2s; }
[dir="rtl"] .coll-country > summary .chev { transform: scaleX(-1); }
.coll-country[open] > summary .chev { transform: rotate(90deg); }
.coll-country[open] > summary { border-bottom: 1px solid var(--line); background: #fcfaf5; }
.coll-year { padding: 12px 16px 16px; }
.coll-year h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.year-pill { background: var(--navy); color: #fff; border-radius: 8px; padding: 2px 10px; font-family: var(--serif); font-size: 1rem; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; color: var(--ink); }
.kpi small { color: var(--muted); font-size: .78rem; }
.kpi strong { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); }
.kpi strong.hot { color: var(--green); }
.kpi strong.warn { color: var(--red); }
.kpi-link:hover { border-color: var(--gold); }
.fresh { background: linear-gradient(180deg, #fff, #fcf7ea); }
.fresh .kpis { margin: 0; }
.quick { display: grid; gap: 10px; margin-bottom: 16px; }
.quick-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--ink); }
.quick-item .i { color: var(--gold); width: 26px; height: 26px; }
.quick-item span { display: flex; flex-direction: column; }
.quick-item small { color: var(--muted); }
.quick-item:hover { border-color: var(--gold); color: var(--ink); }

/* Coin page */
.coin-layout { display: grid; gap: 18px; margin-bottom: 18px; }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: radial-gradient(circle, #2a3a5e, #101a31); scrollbar-width: none; }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; position: relative; aspect-ratio: 1; display: grid; place-items: center; cursor: zoom-in; }
.gallery-slide img { max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.gallery-slide figcaption { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(0,0,0,.5); color: #fff; font-size: .78rem; padding: 3px 10px; border-radius: 999px; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; }
.gallery-thumbs button { flex: 0 0 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #ddd; }
.gallery-thumbs button.on { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.coin-h1 { margin-top: 10px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 14px 0; }
.specs div { background: #fff; padding: 10px 12px; }
.specs div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.specs dt { font-size: .76rem; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; color: var(--navy); }
.desc { white-space: pre-line; margin-bottom: 14px; }
.owner-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); margin-bottom: 12px; }
.owner-card span:last-child { display: flex; flex-direction: column; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.report summary { list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report-form { display: grid; gap: 8px; margin-top: 8px; min-width: 240px; }
.listing-banner { display: flex; gap: 10px; align-items: center; background: #e9f5ee; border: 1px solid #c3e3d1; color: #1f5c40; padding: 10px 14px; border-radius: 12px; }
.disclaimer-line { font-size: .82rem; color: var(--muted); display: block; }

.ai-card { background: linear-gradient(180deg, #fff, #fbf8f0); }
.ai-ident { font-family: var(--serif); font-size: 1.12rem; color: var(--navy); }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.ai-grid > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.ai-grid small { color: var(--muted); font-size: .76rem; }
.ai-value { grid-column: 1 / -1; background: var(--gold-soft) !important; border-color: #ecd9a7 !important; }
.ai-value strong { font-family: var(--serif); font-size: 1.5rem; color: #6b4c0e; }
.ai-note { border-inline-start: 3px solid var(--gold); padding: 4px 12px; margin: 10px 0; }
.ai-note p { margin: 4px 0 0; }

.estimate { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.est-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.est-box small { color: var(--muted); font-size: .78rem; }
.est-box strong { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); }
.est-main { background: var(--gold-soft); border-color: #ecd9a7; grid-column: 1 / -1; }

.comments { list-style: none; padding: 0; margin: 0 0 14px; }
.comments li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.comments li.is-hidden { opacity: .5; }
.cm-body { flex: 1; min-width: 0; }
.cm-body p { margin: 4px 0; white-space: pre-line; overflow-wrap: anywhere; }
.cm-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cm-actions { display: flex; gap: 14px; }
.comment-form { display: grid; gap: 10px; justify-items: end; }

/* Uploader */
.capture-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 12px 0; }
.cap-btn { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: start; padding: 14px 16px; border: 1.5px dashed #d2c39e; background: #fffdf7; border-radius: 14px; cursor: pointer; color: var(--navy); font: inherit; }
.cap-btn:hover { border-color: var(--gold); background: var(--gold-soft); }
.cap-btn .i-lg { grid-row: span 2; color: var(--gold); }
.cap-btn small { color: var(--muted); }
.dropzone { display: none; border: 2px dashed #d2c39e; border-radius: 14px; padding: 18px; text-align: center; color: var(--muted); }
.dropzone.over { border-color: var(--gold); background: var(--gold-soft); color: var(--navy); }
.thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.thumb-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: grid; gap: 6px; position: relative; }
.thumb-item img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; }
.thumb-item .first-tag { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--gold); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.thumb-tools { display: flex; justify-content: space-between; gap: 4px; }
.thumb-tools button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 0; cursor: pointer; font-size: .9rem; min-height: 34px; }
.thumb-tools button:hover { border-color: var(--gold); }
.mini { font-size: .8rem; display: flex; gap: 6px; align-items: center; }
.mini-select { min-height: 34px; padding: 4px 8px; font-size: 14px; }
.sticky-actions { position: sticky; bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(250,247,240,0), var(--paper) 30%); padding: 14px 0 10px; z-index: 5; }

/* Scanner */
.scanner { position: fixed; inset: 0; background: #000; z-index: 100; display: flex; flex-direction: column; color: #fff; }
.scanner-top, .scanner-bottom { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); }
.scanner-bottom { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.scanner-view { position: relative; flex: 1; overflow: hidden; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-guide { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.scan-ring { width: min(78vw, 62vh); aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--gold-2); box-shadow: 0 0 0 9999px rgba(0,0,0,.55); }
.scan-hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: .9rem; color: #ddd; margin: 0; padding: 0 20px; }
.shutter { width: 74px; height: 74px; border-radius: 50%; background: #fff; border: 6px solid rgba(255,255,255,.35); background-clip: padding-box; cursor: pointer; }
.shutter:active { transform: scale(.94); }
.scan-count { min-width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.15); display: grid; place-items: center; font-weight: 700; }
.scan-error { position: absolute; top: 40%; left: 20px; right: 20px; text-align: center; background: rgba(178,59,59,.9); padding: 16px; border-radius: 12px; }
.flash-anim { animation: flash .25s; }
@keyframes flash { from { background: #fff; } to { background: #000; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5,10,22,.96); z-index: 100; }
.lb-scroll { position: absolute; inset: 0; overflow: auto; display: grid; place-items: center; touch-action: pinch-zoom pan-x pan-y; }
.lb-scroll img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.lb-scroll.zoomed img { max-width: none; max-height: none; width: 200vw; }
.lb-close { position: absolute; top: max(12px, env(safe-area-inset-top)); inset-inline-end: 12px; z-index: 2; }

/* Exchange */
.ex-disclaimer { align-items: center; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--navy); border-bottom-color: var(--gold); }
.listings { display: grid; gap: 12px; }
.listing { display: grid; grid-template-columns: 110px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.listing.is-ended, .is-ended { opacity: .6; }
.listing-img { background: #eee; }
.listing-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.listing-body { padding: 12px 12px 12px 0; min-width: 0; }
[dir="rtl"] .listing-body { padding: 12px 0 12px 12px; }
.listing-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 4px; }
.listing h3 { margin: 0; font-size: 1rem; }
.listing p { margin: 2px 0; }
.listing-note { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.listing-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; margin-top: 6px; }
.contact { color: var(--green); font-weight: 600; overflow-wrap: anywhere; }

/* People */
.grid-people { display: grid; gap: 10px; }
.person { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); }
.person > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.person-n { text-align: center; font-family: var(--serif); font-size: 1.3rem; color: var(--gold); display: flex; flex-direction: column; line-height: 1.1; }
.person-n small { font-family: var(--sans); font-size: .7rem; color: var(--muted); }
.profile-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.profile-head > div { flex: 1; min-width: 200px; }
.profile-head h1 { margin: 0; }

/* Price check */
.pc-layout { display: grid; gap: 16px; align-items: start; }
.stack-mobile .btn { flex: 1; }

/* Admin */
.admin-filter .row2 { margin: 0; }
.admin-list { display: grid; gap: 0; padding: 4px 16px; }
.admin-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-row:last-child { border-bottom: 0; }
.admin-thumb { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; background: #eee; flex: none; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.clamp { margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 150px; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.bar-stack { flex: 1; width: 100%; display: flex; gap: 2px; align-items: flex-end; justify-content: center; }
.bar { width: 45%; border-radius: 4px 4px 0 0; min-height: 2px; }
.b-coins { background: var(--gold); }
.b-users { background: var(--navy); }
.bar-col small { font-size: .68rem; color: var(--muted); }
.legend { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-inline-start: 8px; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* Terms */
.prose h2 { font-size: 1.15rem; margin-top: 1.4em; }
.prose ul { padding-inline-start: 20px; }
.prose li { margin-bottom: 6px; }

/* Footer */
.footer { background: var(--navy); color: #c9cfdf; padding: 26px 0 18px; margin-top: 30px; }
.footer-inner { display: grid; gap: 16px; margin-bottom: 14px; }
.brand-foot { font-size: 1.05rem; margin-bottom: 6px; }
.footer .muted { color: #9aa3ba; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: #dfe3ee; }
.footer .disclaimer-line { color: #aab2c8; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
.footer .disclaimer-line a { color: var(--gold-2); }

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
  .grid-coins { grid-template-columns: repeat(3, 1fr); }
  .grid-countries { grid-template-columns: repeat(3, 1fr); }
  .row2 { grid-template-columns: 1fr 1fr; }
  .row3 { grid-template-columns: repeat(3, 1fr); }
  .row4 { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .capture-actions { grid-template-columns: repeat(3, 1fr); }
  .cap-btn { grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: 4px; }
  .cap-btn .i-lg { grid-row: auto; }
  .seg { grid-template-columns: repeat(3, 1fr); }
  .seg-4 { grid-template-columns: repeat(4, 1fr); }
  .listing { grid-template-columns: 150px 1fr; }
  .grid-people { grid-template-columns: repeat(2, 1fr); }
  .quick { grid-template-columns: repeat(3, 1fr); }
  .estimate { grid-template-columns: repeat(3, 1fr); }
  .est-main { grid-column: auto; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottomnav { display: none; }
  .hide-mobile { display: inline-flex !important; }
  .mainnav { display: flex; }
  .hero { padding-top: 56px; }
  .hero-inner { grid-template-columns: 1.3fr 1fr; }
  .hero-art { display: block; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .grid-coins { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .grid-sm { grid-template-columns: repeat(5, 1fr); }
  .grid-countries { grid-template-columns: repeat(4, 1fr); }
  .row4 { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .coin-layout { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .gallery { position: sticky; top: 76px; }
  .thumbs { grid-template-columns: repeat(5, 1fr); }
  .dropzone { display: block; }
  .sticky-actions { bottom: 0; }
  .pc-layout { grid-template-columns: 420px 1fr; }
  .pc-results .grid-coins { grid-template-columns: repeat(3, 1fr); }
  .grid-people { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr; }
  .section { padding-top: 32px; padding-bottom: 32px; }
}
@media (min-width: 900px) and (max-width: 1100px) { .mainnav a { padding: 8px 8px; font-size: .88rem; } }
@media (max-width: 380px) { .brand-name { font-size: 1rem; } .seg-4 { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- v2: ratings, moderation, statistics ---------- */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -2px 0 10px; }
.stars-show { color: #d9d1bf; font-size: 1.25rem; letter-spacing: 1px; }
.stars-show .on { color: var(--gold-2); }
.stars-show .half { background: linear-gradient(90deg, var(--gold-2) 50%, #d9d1bf 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .stars-show .half { background: linear-gradient(270deg, var(--gold-2) 50%, #d9d1bf 50%); -webkit-background-clip: text; background-clip: text; }
.rate-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .star-input { flex-direction: row-reverse; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 2rem; line-height: 1; color: #d9d1bf; cursor: pointer; padding: 2px 3px; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--gold-2); }
.star-input input:focus-visible + label { outline: 2px solid var(--gold); border-radius: 4px; }
.star-mini { color: var(--gold-2); margin-inline-end: 2px; }
.badge-hidden { position: absolute; top: 8px; inset-inline-start: 8px; background: rgba(178,59,59,.9); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.is-hidden { opacity: .55; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #f1f3f9; border: 1px dashed #b8c1da; border-radius: 12px; padding: 10px 12px; margin: 10px 0 14px; }
.admin-bar-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); margin-inline-end: auto; font-size: .9rem; overflow-wrap: anywhere; }
.cm-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #fcfaf5; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.cm-settings .seg-inline { margin: 0; }
.cm-actions { flex-wrap: wrap; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; position: sticky; top: 64px; z-index: 6; }
.bulk-bar select { width: auto; min-height: 38px; padding: 6px 10px; }
.bulk-bar.has-sel { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(184,137,43,.15); }
.check-all { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; margin-inline-end: auto; }
.row-check { width: 20px; height: 20px; flex: none; }
.row-hidden { background: repeating-linear-gradient(45deg, #fff, #fff 10px, #fbf6ec 10px, #fbf6ec 20px); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.menu-pop .danger { color: var(--red); }
.menu-pop form .btn { justify-content: flex-start; border: 0; border-radius: 8px; min-height: 0; font-weight: 500; }
.sec-h { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; margin: 22px 0 12px; }
.sec-h .i { color: var(--gold); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.grid-2, .grid-3 { display: grid; gap: 0 16px; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "t t"; gap: 4px 10px; align-items: center; }
.hbar-label { grid-area: l; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.hbar-track { grid-area: t; height: 8px; background: #f1ece0; border-radius: 99px; overflow: hidden; }
.hbar-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: 99px; }
[dir="rtl"] .hbar-track span { background: linear-gradient(270deg, var(--gold-2), var(--gold)); }
.hbar-val { grid-area: v; display: flex; gap: 6px; align-items: baseline; }
.scroll-x-wrap { overflow-x: auto; max-width: 100%; }
.card { min-width: 0; }
.vbar-col small { overflow: hidden; max-width: 100%; text-overflow: clip; }
.vbars { display: grid; grid-template-columns: repeat(var(--cols), minmax(9px, 1fr)); gap: 3px; align-items: end; height: 190px; min-width: min(100%, calc(var(--cols) * 16px)); }
.vbar-col { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; min-width: 0; }
.vbar-stack { flex: 1; width: 100%; display: flex; gap: 2px; align-items: flex-end; justify-content: center; }
.vbar-stack .bar { width: 42%; max-width: 22px; }
.vbar-stack .bar:only-child { width: 70%; max-width: 34px; }
.vbar-num { font-size: .66rem; color: var(--muted); height: 14px; }
.vbar-col small { font-size: .64rem; color: var(--muted); white-space: nowrap; }
.rank { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.rank li { padding-inline-start: 4px; }
.rank li a { display: inline; }
.rank li span { float: inline-end; font-weight: 700; color: var(--navy); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-inline-end: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- v3: background removal, videos, ads ---------- */
.checker { background-color: #fff; background-image: linear-gradient(45deg, #eee 25%, transparent 25%), linear-gradient(-45deg, #eee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eee 75%), linear-gradient(-45deg, transparent 75%, #eee 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.thumb-img { position: relative; border-radius: 8px; overflow: hidden; }
.thumb-img img { border-radius: 0; }
.bg-busy { position: absolute; inset: 0; background: rgba(255,255,255,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='18' fill='none' stroke='%23b8892b' stroke-width='5' stroke-dasharray='80 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.9s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center / 44px no-repeat; }
.bg-tools { display: flex; gap: 4px; flex-wrap: wrap; }
.bg-btn { flex: 1 1 auto; border: 1px solid var(--line); background: #fffdf7; border-radius: 8px; padding: 6px 4px; font: inherit; font-size: .78rem; cursor: pointer; min-height: 34px; color: var(--navy); white-space: nowrap; }
.bg-btn:hover { border-color: var(--gold); background: var(--gold-soft); }
.bg-btn:disabled { opacity: .5; }
.is-clean .thumb-img { box-shadow: 0 0 0 2px var(--gold); }
.bg-auto { background: var(--gold-soft); border: 1px solid #ecd9a7; border-radius: 12px; padding: 10px 14px; margin-top: 10px; }
.capture-actions.two { grid-template-columns: 1fr; }
.thumb-video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #000; }
.gallery-slide.is-video { cursor: default; background: #000; }
.gallery-slide video { width: 100%; height: 100%; object-fit: contain; }
.thumb-vid { position: relative; background: #000 !important; }
.thumb-vid span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.2rem; text-shadow: 0 1px 4px #000; }
@media (min-width: 560px) { .capture-actions.two { grid-template-columns: 1fr 1fr; } }
.checker-dark { background: radial-gradient(circle, #2a3a5e, #101a31); }
.ads-strip { margin: 22px 0 6px; }
.ads-strip h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.ads-strip.compact h2 { font-size: 1.05rem; }
.ads-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 10px; }
.ad-card { flex: 0 0 170px; scroll-snap-align: start; background: #fff; border: 1px solid #ecd9a7; border-radius: var(--radius); overflow: hidden; color: var(--ink); display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(184,137,43,.12); }
.ad-card:hover { color: var(--ink); border-color: var(--gold); transform: translateY(-2px); }
.ads-strip.compact .ad-card { flex-basis: 150px; }
.ad-img { position: relative; aspect-ratio: 1; }
.ad-img img { width: 100%; height: 100%; object-fit: contain; }
.ad-badge { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--gold); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .03em; }
.ad-body { padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.ad-title { font-size: .9rem; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-price { font-weight: 800; color: var(--green); }
.ad-cta { justify-content: center; align-items: center; text-align: center; padding: 14px; gap: 6px; background: var(--gold-soft); border-style: dashed; }
.ad-cta .i-lg { color: var(--gold); }
.ad-cta small { color: var(--muted); }
.ad-disclaimer { margin: 0; }
.tag-ad { background: var(--gold); color: #fff; }
.ad-list { display: grid; gap: 12px; }
.ad-item { display: grid; grid-template-columns: 120px 1fr; gap: 12px; background: #fff; border: 1px solid #ecd9a7; border-radius: var(--radius); overflow: hidden; }
.ad-item-img img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; }
.ad-item-body { padding: 12px 12px 12px 0; min-width: 0; }
[dir="rtl"] .ad-item-body { padding: 12px 0 12px 12px; }
.ad-item h3 { margin: 4px 0; }
.lead-dark { font-size: 1.05rem; color: var(--muted); }
.contact-card { background: linear-gradient(180deg, #fff, var(--gold-soft)); border-color: #ecd9a7; }
.contact-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.steps { padding-inline-start: 20px; display: grid; gap: 6px; margin: 0; }
.tag-st-new { background: #e7eefc; color: #2b4c8f; }
.tag-st-contacted { background: var(--gold-soft); color: #7a5a14; }
.tag-st-approved { background: #e6f4ec; color: #22684a; }
.tag-st-rejected { background: #fbecec; color: #842b2b; }
.admin-only-box { background: #f1f3f9; border: 1px dashed #b8c1da; border-radius: 12px; padding: 12px 14px; display: grid; gap: 12px; }
.admin-only-box h3 { margin: 0; font-size: .95rem; }
@media (min-width: 560px) { .ad-item { grid-template-columns: 170px 1fr; } .ad-card { flex-basis: 190px; } }
@media (min-width: 900px) and (max-width: 1180px) { .mainnav a { padding: 8px 7px; font-size: .86rem; } }
/* v4: AI consult & credits */
.ai-balance { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 4px 0 10px; }
.pill-ok, .pill-credit, .pill-warn { padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .8rem; }
.pill-ok { background: #e6f4ec; color: #22684a; }
.pill-credit { background: var(--gold-soft); color: #7a5a14; }
.pill-warn { background: #fbecec; color: #842b2b; }
.consult-card { background: linear-gradient(180deg, #fff, #f6f1e3); border-color: #ecd9a7; }
.consult-out { margin-top: 14px; border-top: 1px dashed #d9c58f; padding-top: 12px; }
.consult-text { white-space: pre-wrap; font-family: var(--sans); font-size: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0 0 10px; max-height: 320px; overflow: auto; }
.consult-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.pkgs label > span { text-align: center; }
.pay-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; background: #fff; }
.pay-box.alt { background: #fbfaf6; }
.ai-user { gap: 8px; }
.mini-num { width: 84px; min-height: 36px; padding: 6px 8px; }
.ai-user .mini-select { width: auto; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.switch input { width: 20px; height: 20px; }
