/* Hnaya Source: generated from the approved mockup by make_hnaya_assets.py, then hand-editable. */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/alexandria-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/alexandria-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Hnaya Source, look v2 - after the user's two references (a dark assistant screen and an
   aurora hero): one centred prompt box is the whole first screen; frosted glass over a
   near-black stage; a blue-teal glow rising from the bottom. Deliberately dark only.
   Layout: desktop = icon rail at the inline start + centred stage; phone = bottom bar. */
:root {
  --w-read: 300; --w-ui: 500; --w-loud: 800;      /* three weights, far apart, one job each */
  --bg: #07090D; --bg-2: #0C1118;
  --ink: #F2F5F9; --muted: #9BA7B6; --faint: #627082;
  --glass: rgba(255, 255, 255, .06); --glass-2: rgba(255, 255, 255, .10); --well: rgba(4, 6, 10, .72);
  --hair: rgba(255, 255, 255, .12); --hair-soft: rgba(255, 255, 255, .06);
  --accent: #2EA8FF; --accent-ink: #021523;
  --a-blue: #1D5BFF; --a-teal: #19C2C9; --a-violet: #7A5CFF;
  --price: #3BE38B;        /* the price is the answer: the one bright number on the card */
  --wa: #2FD27B; --wa-ink: #04200F; --bad: #FF7A6B;
  --font: "Alexandria", "Segoe UI", Tahoma, sans-serif;
  --r: 20px; --blur: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  color: var(--ink); font: var(--w-read) 15px/1.6 var(--font);
  background:
    radial-gradient(60% 46% at 50% 108%, rgba(25, 194, 201, .42), transparent 70%),
    radial-gradient(48% 40% at 14% 112%, rgba(29, 91, 255, .50), transparent 72%),
    radial-gradient(44% 38% at 88% 114%, rgba(122, 92, 255, .32), transparent 72%),
    var(--bg);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: var(--w-loud); text-wrap: balance; line-height: 1.25; }
.num, bdi { font-variant-numeric: tabular-nums; }
bdi { unicode-bidi: isolate; }
.muted { color: var(--muted); }
.grow { flex: 1; }

/* frosted glass: translucent fill, hairline that fades downward, a faint top light */
.glass {
  background: linear-gradient(180deg, var(--glass-2), var(--glass)) padding-box;
  border: 1px solid var(--hair); border-bottom-color: var(--hair-soft);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.3); backdrop-filter: blur(var(--blur)) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 50px rgba(0, 0, 0, .35);
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .glass { background: #141B25; }
}

/* ---------- frame ---------- */
.app { min-height: 100%; display: grid; grid-template-columns: 1fr; }
.rail { display: none; }
.stage { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 14px 12px; }
.word { font-weight: var(--w-loud); font-size: 17px; letter-spacing: .4px; display: flex; align-items: center; gap: 10px; }
.dot { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 200deg, var(--a-teal), var(--a-blue), var(--a-violet), #F1B0FF, var(--a-teal)); box-shadow: 0 0 16px rgba(46, 168, 255, .55); flex: none; }
.lang { display: flex; padding: 3px; border-radius: 999px; }
.lang button { background: none; border: 0; padding: 5px 12px; border-radius: 999px; color: var(--muted); font-weight: var(--w-ui); font-size: 13px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.round { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--muted); padding: 0; }
.round svg { width: 19px; height: 19px; }
main { flex: 1; width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: 10px; padding-block: 8px 104px; display: flex; flex-direction: column; gap: 20px; }
.view { display: flex; flex-direction: column; gap: 20px; }
.tabs { position: fixed; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 20; border-radius: 22px;
  display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px; }
.tabs button { background: none; border: 0; border-radius: 16px; padding: 8px 4px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; }
.tabs button[aria-current="page"] { background: var(--glass-2); color: var(--ink); }
.tabs svg { width: 21px; height: 21px; }

/* ---------- step 1: the prompt ---------- */
.hero { align-items: center; text-align: center; padding-block: clamp(28px, 13vh, 150px) 0; gap: 28px; }
.orb { width: 104px; height: 104px; border-radius: 50%; position: relative; flex: none;
  background: conic-gradient(from 210deg, var(--a-teal), var(--a-blue), var(--a-violet), #F1B0FF, #FFD9A8, var(--a-teal));
  box-shadow: 0 0 70px rgba(46, 168, 255, .45), inset 0 0 26px rgba(0, 0, 0, .55); }
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .55), transparent 42%), radial-gradient(circle at 62% 74%, rgba(4, 6, 12, .85), transparent 58%); }
.hero .hello { color: var(--faint); font-size: clamp(20px, 4.4vw, 27px); font-weight: var(--w-ui); }
.hero h1 { font-size: clamp(24px, 5.2vw, 40px); max-width: 22ch; text-wrap: balance; font-weight: var(--w-loud); }
.hero .sub { color: var(--muted); max-width: 44ch; font-size: 14px; }
.prompt { width: 100%; max-width: 640px; border-radius: 26px; padding: 6px; text-align: start; transition: border-color .15s; }
.prompt.over { border-color: var(--accent); }
.strip { display: flex; align-items: center; gap: 8px; padding: 9px 14px 11px; font-size: 13px; color: var(--ink); }
.strip svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.well { background: var(--well); border: 1px solid var(--hair-soft); border-radius: 21px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.dropline { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 34px 14px; border: 1.5px dashed var(--hair); border-radius: 16px; cursor: pointer; }
.dropline:hover { border-color: var(--accent); }
.dropline .cam { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--glass-2); color: var(--accent); flex: none; }
.dropline .cam svg { width: 26px; height: 26px; }
.dropline .txt { display: flex; flex-direction: column; min-width: 0; }
.dropline strong { font-weight: var(--w-ui); font-size: 16px; }
.dropline .muted { font-size: 13px; }
.ask { width: 100%; background: none; border: 0; padding: 6px 4px; font-size: 15px; }
.ask::placeholder { color: var(--faint); }
.ask:focus { outline: none; }
.tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chipbtn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--glass); border: 1px solid var(--hair); font-size: 13px; color: var(--ink); cursor: pointer; }
.chipbtn svg { width: 15px; height: 15px; }
.chipbtn.quiet { color: var(--muted); cursor: default; }
.send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; padding: 0; box-shadow: 0 6px 20px rgba(46, 168, 255, .45); }
.send svg { width: 19px; height: 19px; }
[dir="rtl"] .send svg { transform: scaleX(-1); }
.acts3 { width: 100%; max-width: 640px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.act { text-align: start; border-radius: 16px; padding: 13px 15px; display: flex; flex-direction: column; gap: 3px; color: var(--ink); }
.act b { font-weight: var(--w-ui); font-size: 14.5px; }
.act span { font-size: 12.5px; color: var(--muted); }
.act:hover { border-color: var(--accent); }
.link { background: none; border: 0; color: var(--muted); font-size: 13.5px; padding: 4px 8px; text-decoration: underline; text-underline-offset: 4px; }
.link:hover { color: var(--ink); }

/* ---------- step 2: the answer ---------- */
.asked { border-radius: var(--r); padding: 10px 12px; display: flex; gap: 12px; align-items: center; }
.asked img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; flex: none; }
.asked .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.asked .who span { font-size: 12.5px; }
.asked .who strong { font-weight: var(--w-ui); overflow-wrap: anywhere; }
.searching { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 56px 12px; color: var(--muted); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--hair); border-top-color: var(--accent); flex: none; }
.head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.head h1 { font-size: clamp(22px, 4.8vw, 30px); }
.head h2 { font-size: 18px; }
.btn { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: var(--w-ui); background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: var(--glass-2); color: var(--ink); border: 1px solid var(--hair); }
.btn.wa { background: var(--wa); color: var(--wa-ink); }
.btn.small { padding: 7px 13px; font-size: 13.5px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.field { flex: 1; min-width: 0; border: 1px solid var(--hair); border-radius: 14px; padding: 10px 12px; background: var(--well); }
select.field { flex: none; padding-block: 8px; border-radius: 999px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--hair); background: var(--glass); border-radius: 999px; padding: 6px 13px; font-size: 13.5px; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.card { border-radius: var(--r); display: flex; flex-direction: column; text-align: start; padding: 8px; position: relative; color: var(--ink);
  background: linear-gradient(180deg, var(--glass-2), var(--glass)); border: 1px solid var(--hair); border-bottom-color: var(--hair-soft);
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); cursor: pointer; transition: transform .15s, border-color .15s; }
.card:hover { border-color: rgba(46, 168, 255, .6); transform: translateY(-2px); }
.card .pic { aspect-ratio: 1; width: 100%; object-fit: cover; display: block; border-radius: 14px; background: var(--bg-2); }
.card .body { padding: 10px 5px 5px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card h3 { font-weight: var(--w-ui); font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.price { font-weight: var(--w-loud); font-size: 16px; }
.alf { font-size: 12.5px; color: var(--faint); }
.meta { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.pill { position: absolute; inset-block-start: 15px; inset-inline-start: 15px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: var(--w-ui); background: var(--accent); color: var(--accent-ink); }
.pill.maybe, .pill.new { background: rgba(7, 9, 13, .7); color: var(--ink); border: 1px solid var(--hair); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.star { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hair); background: rgba(7, 9, 13, .6); color: var(--muted); display: grid; place-items: center; padding: 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.star[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.star svg { width: 16px; height: 16px; }
.empty { border-radius: var(--r); padding: 30px 18px; text-align: center; color: var(--muted); border: 1px dashed var(--hair); }

/* ---------- product sheet ---------- */
.scrim { position: fixed; inset: 0; background: rgba(3, 5, 8, .6); z-index: 30; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet { position: fixed; z-index: 31; inset: 0; overflow-y: auto; padding: 14px 18px calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 18px; background: rgba(10, 14, 20, .94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.sheet .top { padding: 4px 0; position: sticky; top: 0; z-index: 1; background: rgba(10, 14, 20, .9); }
.sheet .top h2 { font-size: 17px; flex: 1; min-width: 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--bg-2); }
.section-title { font-weight: var(--w-ui); font-size: 14px; color: var(--muted); }
.ladder { display: flex; flex-direction: column; gap: 8px; }
.ladder .track { height: 8px; border-radius: 999px; background: var(--glass-2); position: relative; }
.ladder .fill { position: absolute; inset-block: 0; border-radius: 999px; background: linear-gradient(90deg, var(--a-teal), var(--accent), var(--a-violet)); }
.ladder .dot { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); transform: translate(-50%, -50%); box-shadow: none; }
.ladder .ends { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; }
.stat { background: var(--glass); border: 1px solid var(--hair-soft); border-radius: 16px; padding: 10px 12px; }
.stat b { display: block; font-weight: var(--w-loud); font-size: 19px; line-height: 1.3; }
.stat span { font-size: 12px; color: var(--muted); }
.calc { background: var(--glass); border: 1px solid var(--hair-soft); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.calc label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); flex: 1; min-width: 130px; }
.calc output { font-weight: var(--w-loud); font-size: 24px; color: var(--wa); }
.calc output.bad { color: var(--bad); }
.sup { display: flex; flex-direction: column; }
.sup .line { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 13px 0; border-bottom: 1px solid var(--hair-soft); align-items: center; }
.sup .who { min-width: 0; font-weight: var(--w-ui); overflow-wrap: anywhere; }
.sup .sub { font-size: 12.5px; color: var(--muted); font-weight: var(--w-read); }
.sup .amount { font-weight: var(--w-loud); text-align: end; white-space: nowrap; }
.sup .acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.admin ul { list-style: none; margin: 0; padding: 0; }
.admin li { padding: 11px 0; border-bottom: 1px solid var(--hair-soft); }
.toast { position: fixed; inset-inline: 16px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 40; margin-inline: auto; max-width: 440px;
  background: var(--ink); color: var(--bg); border-radius: 14px; padding: 11px 15px; font-size: 14px; font-weight: var(--w-ui); }

@media (min-width: 860px) {
  .app { grid-template-columns: 78px 1fr; }
  .rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0; position: sticky; top: 0; height: 100vh;
    border-inline-end: 1px solid var(--hair-soft); }
  .rail button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair-soft); background: var(--glass); color: var(--muted); display: grid; place-items: center; padding: 0; }
  .rail button[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 6px 22px rgba(46, 168, 255, .45); }
  .rail svg { width: 20px; height: 20px; }
  .rail .dot { width: 30px; height: 30px; margin-bottom: 14px; }
  .top .word .dot { display: none; }
  .tabs { display: none; }
  main { padding-block: 8px 48px; padding-inline: 16px; }
  .top { padding-inline: 18px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
  .sheet { inset-block: 12px; inset-inline-start: auto; inset-inline-end: 12px; width: min(520px, 44vw); border-radius: 26px; border: 1px solid var(--hair); padding: 18px 22px 28px; }
  .toast { bottom: 26px; }
}
@media (prefers-reduced-motion: no-preference) {
  .orb { animation: turn 16s linear infinite; }
  .orb::after { animation: turn 16s linear infinite reverse; }
  .spin { animation: turn .8s linear infinite; }
  .sheet { animation: rise .24s ease-out; }
  @keyframes turn { to { transform: rotate(360deg); } }
  @keyframes rise { from { transform: translateY(16px); opacity: .5; } to { transform: none; opacity: 1; } }
}

/* ---------- the live page: one card is one vendor ---------- */
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a.round { display: grid; place-items: center; }
.small { font-size: 12.5px; }
.card .meta .vendor { color: var(--ink); font-weight: var(--w-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.card .meta span:last-child { flex: none; }
.price.ask-price { font-size: 14px; font-weight: var(--w-read); color: var(--muted); }
div.pic { background: var(--bg-2); }
.gallery.one { grid-template-columns: 1fr; }
.gallery.one img { aspect-ratio: auto; max-height: 420px; object-fit: contain; }
.vendor-box, .plist, .cap-box { display: flex; flex-direction: column; gap: 6px; }
.vendor-box { background: var(--glass); border: 1px solid var(--hair-soft); border-radius: 18px; padding: 14px; }
.vendor-box strong { font-size: 17px; font-weight: var(--w-loud); overflow-wrap: anywhere; }
.vendor-box .row { margin-top: 6px; }
.vendor-box .btn { display: inline-flex; gap: 6px; align-items: center; }
.pline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 4px 0; }
.pline b { font-size: 20px; font-weight: var(--w-loud); }
.cap { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); font-size: 14px; max-height: 220px; overflow-y: auto;
  background: var(--well); border: 1px solid var(--hair-soft); border-radius: 14px; padding: 12px; }
#vend-img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; flex: none; }
#result-note { font-size: 13.5px; }

/* ---------- the price stands out; a box keeps only the offers that have one ---------- */
.price { color: var(--price); font-size: 18px; font-weight: var(--w-loud); letter-spacing: .2px; }
.price.ask-price { color: var(--faint); font-size: 13.5px; font-weight: var(--w-read); letter-spacing: 0; }
.pline b { color: var(--price); }
.check { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--hair);
  background: var(--glass); font-size: 13.5px; cursor: pointer; user-select: none; white-space: nowrap; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--price); cursor: pointer; }
.check:has(input:checked) { border-color: var(--price); color: var(--ink); }
#result-note { display: none; }

/* ---------- weight system: three steps, far apart ---------- */
b, strong { font-weight: var(--w-loud); }
.dropline strong, .asked .who strong { font-weight: var(--w-ui); }
.hero h1 { letter-spacing: -.2px; }
.head h1, .head h2 { font-weight: var(--w-loud); }
.card h3 { font-weight: var(--w-ui); }
.card .meta, .muted, .alf, .cap { font-weight: var(--w-read); }
.card .meta .vendor { font-weight: var(--w-ui); }
.price { font-weight: var(--w-loud); }
.price.ask-price { font-weight: var(--w-read); }
.btn, .chip, .chipbtn, .check, .tabs button, .lang button, select.field { font-weight: var(--w-ui); }
.section-title { font-weight: var(--w-ui); letter-spacing: .3px; }
.pill { font-weight: var(--w-ui); }

/* ---------- the margin: selling price and profit on one line ---------- */
.calc-line { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.calc-line label { flex: 0 1 auto; min-width: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc-line .field { flex: 0 1 130px; min-width: 84px; text-align: center; font-weight: var(--w-ui); }
.calc-line output { flex: none; margin-inline-start: auto; white-space: nowrap; font-size: 22px; }

/* ---------- flags: a newer version exists / an old offer (kept, never hidden) ---------- */
.flag { align-self: flex-start; font-size: 11.5px; font-weight: var(--w-ui); padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent); }
.flag.dim { border-color: var(--hair); color: var(--faint); }
.card.past .pic { opacity: .72; }
.card.past .price { color: var(--muted); }
.newer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; padding: 9px 12px; border-radius: 14px;
  border: 1px solid var(--accent); color: var(--ink); font-size: 13.5px; }
.newer span { flex: 1; min-width: 0; }

/* ---------- the vendor is what is paid for: the lock, the account, the pay screen ---------- */
.round.in { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.card .meta .vendor svg { width: 12px; height: 12px; flex: none; vertical-align: -1px; margin-inline-end: 5px; }
.card .meta .hidden-vendor { color: var(--muted); font-weight: var(--w-read); }
.lock-box { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 12px; padding: 14px; border-radius: 18px;
  border: 1px dashed var(--hair); background: var(--glass); }
.lock-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--glass-2); color: var(--muted); }
.lock-ic svg { width: 21px; height: 21px; }
.lock-txt { display: flex; flex-direction: column; min-width: 0; }
.lock-txt strong { font-weight: var(--w-ui); font-size: 16px; }
.lock-txt .muted { font-size: 12.5px; }
.lock-go { display: flex; flex-direction: column; align-items: center; gap: 4px; }
@media (max-width: 520px) { .lock-box { grid-template-columns: auto 1fr; } .lock-go { grid-column: 1 / -1; align-items: stretch; text-align: center; } }
.lock-box > .newer { grid-column: 1 / -1; }
.auth { display: flex; flex-direction: column; gap: 14px; }
.auth label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.auth .field { flex: none; font-size: 16px; padding: 12px 14px; }
.auth .btn { padding-block: 13px; font-size: 15.5px; }
.auth-err { color: var(--bad); font-size: 13.5px; }
.link { background: none; border: 0; color: var(--muted); font-size: 13.5px; padding: 4px 8px; text-decoration: underline; text-underline-offset: 4px; align-self: center; }
.plan { align-self: flex-start; font-size: 12.5px; font-weight: var(--w-ui); padding: 3px 11px; border-radius: 999px; border: 1px solid var(--hair); color: var(--muted); }
.plan.paid { border-color: var(--price); color: var(--price); }
.pay { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: var(--glass); border: 1px solid var(--hair-soft); }
.pay strong { font-size: 19px; font-weight: var(--w-loud); }
.plans { display: flex; flex-direction: column; gap: 8px; }
.pay-way { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding-top: 10px; border-top: 1px solid var(--hair-soft); }
.pay-way .muted { grid-column: 1 / -1; font-size: 12.5px; }
.pay-way b { font-size: 17px; font-weight: var(--w-loud); overflow-wrap: anywhere; }
.pay-name { font-weight: var(--w-ui); color: var(--ink); }
.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--hair-soft); font-weight: var(--w-ui); }
.plan-row b { font-size: 22px; font-weight: var(--w-loud); color: var(--price); white-space: nowrap; }
.plan-row em { font-style: normal; font-weight: var(--w-read); font-size: 12.5px; color: var(--price); margin-inline-start: 6px; white-space: nowrap; }
.plan-row.best { border-color: var(--price); background: var(--glass-2); }
.pay-ref { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--hair-soft); }
.pay-ref b { font-size: 18px; }
#limit-wall { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.ask-price { color: var(--faint); }

/* ---------- the foot of a card: how to see the seller, or how to reach them ---------- */
.card-lock { margin-top: 7px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 12px;
  border: 1px dashed var(--hair); background: var(--glass); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: var(--w-ui); line-height: 1.35; text-align: center; cursor: pointer; }
.card-lock svg { width: 14px; height: 14px; flex: none; color: var(--accent); }
.card-lock:hover { border-color: var(--accent); }
.card-go { margin-top: 7px; display: flex; gap: 6px; }
.card-go .btn { flex: 1; min-width: 0; text-align: center; text-decoration: none; padding: 7px 6px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- plans with what they include, and the "there is more" banner ---------- */
.plan-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-what small { font-size: 12.5px; font-weight: var(--w-read); color: var(--muted); }
.plan-row b small { font-size: 12px; font-weight: var(--w-read); color: var(--muted); }
.empty.more { display: flex; flex-direction: column; align-items: center; gap: 12px; border-style: solid; border-color: var(--hair);
  background: linear-gradient(180deg, var(--glass-2), var(--glass)); padding: 26px 18px; }
.empty.more strong { color: var(--ink); font-size: 17px; font-weight: var(--w-loud); }

/* ---------- first screen: the numbers carry the headline; one search row ---------- */
.hero h1 { font-weight: var(--w-read); font-size: clamp(25px, 5.4vw, 44px); line-height: 1.3; max-width: none; letter-spacing: 0; }
.hero h1 span { display: block; }
.hero h1 .big { font-weight: var(--w-loud); padding-inline: .08em; color: var(--accent); }
.askrow { display: flex; align-items: center; gap: 8px; padding-block: 6px; padding-inline: 12px 6px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--hair-soft); transition: border-color .15s; }
.askrow:focus-within { border-color: var(--accent); }
.askrow .mag { width: 18px; height: 18px; color: var(--faint); flex: none; }
.askrow .ask { flex: 1; min-width: 0; width: auto; padding: 8px 2px; }
.cambtn { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; cursor: pointer;
  background: var(--glass-2); border: 1px solid var(--hair); color: var(--accent); }
.cambtn:hover { border-color: var(--accent); }
.cambtn svg { width: 20px; height: 20px; }
.askrow .send { width: auto; height: 42px; padding: 0 16px; border-radius: 13px; display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-weight: var(--w-ui); font-size: 14.5px; }
.askrow .send svg { width: 17px; height: 17px; transform: none; }
@media (max-width: 380px) { .askrow .send span { display: none; } .askrow .send { padding: 0 13px; } }

/* ---------- after a search: the same box, slim, on top of the results ---------- */
.hero.compact { padding-block: 0; gap: 0; align-items: stretch; text-align: start; }
.hero.compact h1, .hero.compact .dropline { display: none; }
.hero.compact .prompt { max-width: none; }
.thumb { position: relative; width: 88px; height: 88px; align-self: flex-start; margin: 2px 2px 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; border: 1px solid var(--hair); }
.thumb .x { position: absolute; inset-block-start: -8px; inset-inline-end: -8px; width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0;
  background: var(--bad); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.thumb .x svg { width: 12px; height: 12px; }

/* ---------- "this needs a plan": one compact, centred card ---------- */
.cta { width: 100%; max-width: 480px; margin-inline: auto; margin-block: 8px; padding: 26px 22px 24px; border-radius: 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1px solid rgba(46, 168, 255, .30);
  background: radial-gradient(120% 100% at 50% 0%, rgba(46, 168, 255, .16), transparent 70%), var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.cta[hidden] { display: none; }
.cta-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 6px;
  color: var(--accent); background: rgba(46, 168, 255, .14); border: 1px solid rgba(46, 168, 255, .30); }
.cta-ic svg { width: 23px; height: 23px; }
.cta strong { font-size: 18px; line-height: 1.4; font-weight: var(--w-loud); color: var(--ink); text-wrap: balance; }
.cta-sub { font-size: 13.5px; color: var(--muted); font-weight: var(--w-read); text-wrap: balance; }
.cta .btn { margin-top: 12px; padding: 11px 26px; font-size: 15px; box-shadow: 0 8px 26px rgba(46, 168, 255, .40); }
#limit-wall { align-items: center; gap: 6px; }

/* ============ the modern pass (2026-10-02): same dark glass, no browser-default parts ============ */
/* -- search box: one surface, one border, a soft glow when typing */
.prompt { padding: 0; border-radius: 22px; transition: border-color .15s, box-shadow .15s; }
.prompt:focus-within { border-color: rgba(46, 168, 255, .55); box-shadow: 0 0 0 4px rgba(46, 168, 255, .12); }
.well { background: none; border: 0; border-radius: 22px; padding: 12px; }
.hero.compact .well { padding: 8px; }
.askrow, .askrow:focus-within { background: none; border-color: transparent; padding-block: 0; padding-inline: 8px 0; }
.dropline { border-width: 1px; background: rgba(255, 255, 255, .025); }

/* -- sorting is a segmented control, the price filter is a switch */
.head { align-items: center; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--well); border: 1px solid var(--hair-soft);
  max-width: 100%; overflow-x: auto; scrollbar-width: none; flex: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: var(--w-ui); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--glass-2); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 2px 8px rgba(0, 0, 0, .35); }
.check, .check:has(input:checked) { padding: 0; border: 0; background: none; color: var(--muted); }
.check:has(input:checked) { color: var(--ink); }
.check input { -webkit-appearance: none; appearance: none; width: 36px; height: 21px; border-radius: 999px; position: relative; flex: none;
  background: var(--glass-2); border: 1px solid var(--hair); transition: background .15s, border-color .15s; }
.check input::after { content: ""; position: absolute; inset-block-start: 2px; inset-inline-start: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--muted); transition: inset-inline-start .15s, background .15s; }
.check input:checked { background: var(--price); border-color: var(--price); }
.check input:checked::after { inset-inline-start: 17px; background: #04200F; }

/* -- a hidden vendor: a lock and a blurred name; the card says what it is on hover */
.veil { display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 0; border: 0; background: none; color: var(--accent);
  font: inherit; font-size: 12px; cursor: pointer; overflow: hidden; }
.veil svg { width: 12px; height: 12px; flex: none; }
.blur { filter: blur(4.5px); user-select: none; -webkit-user-select: none; white-space: nowrap; color: var(--ink); opacity: .9; }
@media (hover: hover) {
  .card:hover .veil .blur { display: none; }
  .card:hover .veil::after { content: attr(data-hint); white-space: nowrap; font-weight: var(--w-ui); }
}
.lock-box { border: 1px solid var(--hair-soft); }
.lock-txt strong.blur { filter: blur(6px); align-self: flex-start; }

/* -- loading: the shape of what is coming */
.searching-line { margin: 0; color: var(--muted); font-size: 13.5px; }
.sk { border-radius: var(--r); padding: 8px 8px 16px; border: 1px solid var(--hair-soft); background: var(--glass); display: flex; flex-direction: column; gap: 11px; }
.sk i { display: block; border-radius: 8px; background: linear-gradient(100deg, rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, .13) 50%, rgba(255, 255, 255, .05) 70%); background-size: 220% 100%; }
.sk .p { aspect-ratio: 1; border-radius: 14px; }
.sk .l1 { height: 12px; width: 82%; margin-inline: 5px; }
.sk .l2 { height: 12px; width: 48%; margin-inline: 5px; }
.sk .l3 { height: 18px; width: 58%; margin-inline: 5px; }
@media (prefers-reduced-motion: no-preference) {
  .sk i { animation: shimmer 1.25s linear infinite; }
  @keyframes shimmer { from { background-position: 110% 0; } to { background-position: -110% 0; } }
}

/* -- nothing here: an icon and one line */
.blank { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 18px; color: var(--muted); text-align: center; }
.blank-ic { width: 58px; height: 58px; border-radius: 19px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--hair-soft); color: var(--faint); }
.blank-ic svg { width: 26px; height: 26px; }
.blank p { margin: 0; font-size: 15px; max-width: 34ch; text-wrap: balance; }

/* -- sheets: icon buttons, quiet "price on request" */
.icon-btn { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: var(--glass-2); border: 1px solid var(--hair); color: var(--ink); }
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sheet .top { gap: 8px; padding-block: 8px; }
.pline b.ask-price { color: var(--muted); font-size: 15px; font-weight: var(--w-read); }

/* -- plans: two cards to compare */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 12px; margin-top: 6px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 14px 14px; border-radius: 18px; border: 1px solid var(--hair); background: var(--glass); }
.plan-card.best { border-color: rgba(46, 168, 255, .65); background: radial-gradient(120% 80% at 50% 0%, rgba(46, 168, 255, .18), transparent 70%), var(--glass); }
.plan-tag { position: absolute; inset-block-start: -11px; inset-inline-end: 12px; font-size: 11.5px; font-weight: var(--w-ui); padding: 2px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); }
.plan-name { font-weight: var(--w-ui); font-size: 14px; color: var(--muted); }
.plan-price { font-size: 25px; font-weight: var(--w-loud); color: var(--ink); line-height: 1.2; }
.plan-price small { font-size: 12px; font-weight: var(--w-read); color: var(--muted); margin-inline-start: 5px; }
.plan-card ul { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.plan-card li { display: flex; gap: 7px; align-items: flex-start; }
.plan-card li svg { width: 15px; height: 15px; flex: none; color: var(--price); margin-top: 3px; }
.plan-3 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--hair-soft); font-size: 13px; }
.plan-3 b { font-weight: var(--w-loud); }
.plan-3 em { font-style: normal; color: var(--price); font-size: 12.5px; }

/* -- forms: roomier fields, a focus glow, an eye on the password */
.auth .field { padding: 14px 16px; border-radius: 14px; font-size: 16px; background: var(--glass); color: var(--ink); }
.auth .field:focus, .field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46, 168, 255, .12); }
.pw { position: relative; display: flex; }
.pw .field { flex: 1; padding-right: 48px; }
.eye { position: absolute; right: 6px; top: 0; bottom: 0; margin-block: auto; width: 38px; height: 38px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.eye svg { width: 19px; height: 19px; }
.eye.on { color: var(--accent); }

/* -- photo searches left today */
.usage { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.usage svg { width: 16px; height: 16px; color: var(--accent); }
.usage b { font-weight: var(--w-loud); color: var(--ink); font-variant-numeric: tabular-nums; }
.usage.out b { color: var(--bad); }
@media (max-width: 520px) { .top a.round { display: none; } }
.word { white-space: nowrap; }
@media (max-width: 520px) { .top { gap: 8px; } .word { font-size: 15px; gap: 8px; } .usage { padding: 0 10px; } }

/* ---------- the pricing page, and the way to it from the top bar ---------- */
.upgrade { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: 999px; border: 0; cursor: pointer; flex: none;
  font: inherit; font-size: 13.5px; font-weight: var(--w-ui); color: var(--gold-ink);
  background: var(--gold); box-shadow: 0 6px 18px rgba(244, 183, 64, .26); }
.upgrade:hover { filter: brightness(1.08); }
.upgrade svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 520px) { .upgrade { width: 40px; padding: 0; justify-content: center; } .upgrade span { display: none; } .top .word .dot { display: none; } }

.pricing-head { text-align: center; padding-block: clamp(6px, 4vh, 36px) 6px; }
.pricing-head h1 { font-size: clamp(24px, 4.6vw, 36px); font-weight: var(--w-loud); }
.plans3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 16px; width: 100%; max-width: 980px; margin-inline: auto; align-items: stretch; }
.plans3 .plan-card { padding: 24px 18px 18px; gap: 12px; transition: box-shadow .15s, border-color .15s; }
.plans3 .plan-card.chosen { box-shadow: 0 0 0 2px var(--accent); border-color: var(--accent); }
.plans3 .plan-price { font-size: 30px; }
.plans3 .plan-card ul { font-size: 14px; gap: 9px; margin-block: 4px 8px; }
.plan-card li.off { color: var(--faint); }
.plan-card li.off svg { color: var(--faint); }
.plan-acts { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.plan-acts .btn { width: 100%; text-align: center; padding-block: 11px; }
.plan-acts .btn em { font-style: normal; font-weight: var(--w-read); opacity: .85; }
.plan-now { align-self: flex-start; font-size: 12.5px; font-weight: var(--w-ui); padding: 3px 11px; border-radius: 999px; border: 1px solid var(--price); color: var(--price); }
#payhow { width: 100%; max-width: 560px; margin-inline: auto; }
.pay-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pay-amount span { font-weight: var(--w-ui); }
.pay-amount b { font-size: 28px; font-weight: var(--w-loud); color: var(--price); }
#payhow .btn { align-self: stretch; text-align: center; padding-block: 12px; }

/* ---------- gold is the colour of upgrading: one solid tone, no gradient ---------- */
:root { --gold: #F4B740; --gold-ink: #261800; }
.cta-ic.crown { color: var(--gold); background: rgba(244, 183, 64, .12); border-color: rgba(244, 183, 64, .32); }

/* ---------- 1 month / 3 months, above the plan cards ---------- */
.seg.period { align-self: center; padding: 4px; border-radius: 14px; }
.seg.period button { padding: 8px 20px; font-size: 14px; border-radius: 10px; }
.plan-save { align-self: flex-start; font-size: 12.5px; font-weight: var(--w-ui); color: var(--price); padding: 2px 10px; border-radius: 999px;
  border: 1px solid rgba(59, 227, 139, .45); margin-top: -4px; }

/* ---------- the words field follows the page: right in Arabic, left in French ---------- */
.ask { text-align: start; }

/* ---------- segmented controls read as one: a visible track, a white thumb (like the language switch) ---------- */
.seg { padding: 4px; gap: 0; border-radius: 999px; background: var(--glass); border: 1px solid var(--hair); }
.seg button { position: relative; padding: 6px 15px; border-radius: 999px; color: var(--muted); transition: background .15s, color .15s; }
.seg button + button::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 0; width: 1px; background: var(--hair); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.seg button[aria-pressed="true"]::before, .seg button[aria-pressed="true"] + button::before { display: none; }
.seg.period { padding: 5px; border-radius: 999px; }
.seg.period button { border-radius: 999px; }

/* ---------- account and pay are pages: one centred column ---------- */
.page-card { width: 100%; max-width: 440px; margin-inline: auto; padding-block: clamp(8px, 6vh, 64px) 0; display: flex; flex-direction: column; gap: 18px; }
.page-card h1 { font-size: clamp(24px, 4.6vw, 32px); font-weight: var(--w-loud); text-align: center; }
.seg.wide { display: flex; align-self: stretch; }
.seg.wide button { flex: 1; padding-block: 9px; font-size: 14px; }
.who-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 20px; background: var(--glass); border: 1px solid var(--hair-soft); }
.who-card strong { font-size: 19px; font-weight: var(--w-loud); overflow-wrap: anywhere; }
.page-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.page-acts .btn { flex: 1; text-align: center; padding-block: 12px; }
.page-card .link { align-self: center; }
.auth .hint { color: var(--faint); font-size: 12px; }

/* ---------- the glow at the bottom belongs to the first screen only (empty search) ---------- */
body { background: var(--bg); }
body.glow {
  background:
    radial-gradient(60% 46% at 50% 108%, rgba(25, 194, 201, .42), transparent 70%),
    radial-gradient(48% 40% at 14% 112%, rgba(29, 91, 255, .50), transparent 72%),
    radial-gradient(44% 38% at 88% 114%, rgba(122, 92, 255, .32), transparent 72%),
    var(--bg);
  background-attachment: fixed;
}

/* ---------- categories: photo tiles ---------- */
.cat-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cat-tile { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r); overflow: hidden; border: 1px solid var(--hair); padding: 12px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2px; text-align: start; color: var(--ink); font: inherit;
  background: linear-gradient(180deg, rgba(7, 9, 13, .05) 30%, rgba(7, 9, 13, .88) 100%), var(--pic, var(--glass)) center / cover no-repeat, var(--bg-2);
  transition: transform .15s, border-color .15s; }
.cat-tile:hover { transform: translateY(-2px); border-color: rgba(46, 168, 255, .6); }
.cat-name { font-size: 15.5px; font-weight: var(--w-loud); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.cat-n { font-size: 12px; color: var(--muted); font-weight: var(--w-read); }
.page-acts.center { justify-content: center; }
.page-acts.center .btn { flex: none; padding-inline: 28px; }
@media (min-width: 860px) { .cat-tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; } }

/* four tabs in the phone bar */
.tabs { grid-template-columns: repeat(4, 1fr); }
.tabs button { font-size: 11.5px; padding-inline: 2px; }
.tabs button span { white-space: nowrap; }

/* ---------- categories: one row of pills that scrolls sideways on a phone ---------- */
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: -2px -2px 0; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll .chip { flex: none; }
select.field { -webkit-appearance: none; appearance: none; padding-inline: 14px 34px; background: var(--well) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239BA7B6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat; background-position: left 12px center; background-size: 14px; color: var(--ink); font-weight: var(--w-ui); font-size: 13.5px; cursor: pointer; }
[dir="ltr"] select.field { padding-inline: 14px 34px; background-position: right 12px center; }
select.field:focus { border-color: var(--accent); }

/* With a mouse there is no way to scroll a hidden row sideways: on desktop the pills wrap onto a second line. */
@media (min-width: 860px) { .chips.scroll { flex-wrap: wrap; overflow: visible; } }

/* ---------- price range: two small fields ---------- */
.range { display: inline-flex; align-items: center; gap: 6px; }
.range .field { flex: none; width: 92px; padding: 8px 10px; border-radius: 999px; font-size: 13.5px; text-align: center; }
.range .field::placeholder { color: var(--faint); font-size: 12.5px; }

/* ---------- sub-category pills: a quieter second row ---------- */
.chips.subs .chip { font-size: 12.5px; padding: 5px 12px; background: none; color: var(--muted); }
.chips.subs .chip[aria-pressed="true"] { background: var(--glass-2); color: var(--ink); border-color: var(--accent); }
#cat-brand { max-width: 190px; }

/* ---------- an offer whose photo is withheld: a neutral tile, the offer stays ---------- */
.card .pic.nopic { display: grid; place-items: center; color: var(--faint); background: linear-gradient(160deg, var(--glass-2), var(--glass)); }
.card .pic.nopic svg { width: 34%; height: 34%; opacity: .55; }
.link.report { align-self: flex-start; font-size: 12.5px; color: var(--faint); padding: 0; margin-top: -8px; }

/* ---------- the owner's photo-filter switch, and the mark on photos the filter would hide ---------- */
.owner-switch { font-size: 12.5px; padding: 0 6px; }
.would-hide { position: absolute; inset-block-end: auto; inset-block-start: 52px; inset-inline-start: 15px; z-index: 1; border-radius: 999px; padding: 3px 10px;
  font-size: 11.5px; font-weight: var(--w-ui); background: var(--bad); color: #2A0600; }
.card:has(.would-hide) .pic { outline: 2px solid var(--bad); outline-offset: -2px; }
@media (max-width: 520px) { .owner-switch span { display: none; } }
/* On a phone the owner's switch takes the brand's place (the switch only exists on the owner's PC). */
@media (max-width: 520px) { .top:has(#filter-switch:not([hidden])) .word { display: none; } }

/* The count on a category pill: quiet, after the name, digits that do not jump. */
.chip:has(.n) { display: inline-flex; align-items: baseline; gap: 7px; }
.chip .n { font-size: .82em; font-weight: var(--w-read); opacity: .55; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .n { opacity: .7; }

/* The pay page's WhatsApp button: the one action on that page, full width. */
.pay-chat { display: flex; justify-content: center; padding: 13px 18px; font-size: 15.5px; font-weight: var(--w-ui); }
