/* ============================================================
   KHISM (خصم) — design tokens + component styles
   Libyan deals/coupons discovery app. RTL Arabic, mobile-first.
   ============================================================ */

:root{
  --navy:#0B2A4A;
  --navy-2:#0C2C50;
  --blue:#00B4FF;
  --blue-dark:#009CE0;
  --orange:#FF8A00;
  --orange-dark:#E67A00;
  --bg:#F4F6FA;
  --card:#ffffff;
  --line:#E3E9F0;
  --line-2:#D3DEE9;
  --muted:#5A6B80;
  --muted-2:#8595A8;
  --ink:#0B2A4A;
  --hot-bg:#FFEDE0; --hot-fg:#C24A00;
  --cold-bg:#EAF7FD; --cold-fg:#0A6C93;
  --warm-bg:#F5F7FA; --warm-fg:#5A6B80;
  --amber-bg:#FFF1E2; --amber-fg:#A34F00;
  --green-bg:#E9F7EF; --green-fg:#1B7A45;
  --red-bg:#FDECEC; --red-fg:#A93A3A;
  --radius-sm:12px; --radius-md:18px; --radius-lg:22px; --radius-xl:28px;
  --shadow-card:0 8px 20px rgba(11,42,74,.09);
  --shadow-pop:0 22px 50px rgba(11,42,74,.18);
  --header-h:60px;
  --nav-h:74px;
  --shell-w:480px;
}

/* SEO/a11y-only text — present in the DOM (so crawlers and screen readers
   see it) but not visually rendered, since the visual header only has room
   for the compact "خصم KHISM" wordmark, not a full keyword-bearing H1. */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---------- responsive shell width ----------
   Mobile stays a 480px "app card". Tablet/desktop widen it: pages with
   real grids to fill (home/search/hunters — tagged .browse in render())
   get a lot more room; everything else (forms, detail, profile pages)
   just gets breathing room instead of sitting cramped in a fixed 480px
   column with empty page background on either side. */
@media (min-width:768px){
  .app-shell:not(.wide){ --shell-w:600px; }
  .app-shell.browse{ --shell-w:920px; }
}
@media (min-width:1024px){
  .app-shell:not(.wide){ --shell-w:680px; }
  .app-shell.browse{ --shell-w:1180px; }
}

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--ink);
  /* Montserrat first so Latin letters + digits (prices!) use it; it has no
     Arabic glyphs, so all Arabic falls through to Tajawal. */
  font-family:'Montserrat','Tajawal',system-ui,-apple-system,sans-serif;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit}
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-thumb{background:#C3D2E0;border-radius:999px}

/* ---------- layout shell ---------- */
.app-shell{
  max-width:var(--shell-w);
  margin:0 auto;
  min-height:100vh;
  background:#fff;
  position:relative;
  box-shadow:0 0 60px rgba(11,42,74,.08);
  padding-bottom:calc(var(--nav-h) + 8px);
}
.app-shell.wide{ max-width:1240px; padding-bottom:24px; }
.app-shell.no-nav{ padding-bottom:24px; }

.topbar{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; gap:10px;
  padding:14px 18px;
  background:var(--navy); color:#fff;
}
.topbar .brand{ display:flex; align-items:center; margin-inline-end:auto; color:#fff; }
/* logo lockup: tag mark + stacked wordmark (see brandLockup() in app.js) */
.brand-lockup{ display:inline-flex; align-items:center; gap:7px; direction:rtl; flex-direction:row-reverse; } /* mark on the left, flying toward the word — as on the identity board */
.brand-mark{ display:block; flex:0 0 auto; overflow:visible; }
.brand-words{ display:flex; flex-direction:column; align-items:flex-start; line-height:1; }
.brand-kh{ font-family:'Tajawal',sans-serif; font-weight:900; font-size:23px; color:#fff; letter-spacing:0; line-height:.95; }
.brand-name{ font-family:'Montserrat',sans-serif; font-weight:800; font-size:8.5px; letter-spacing:3.2px; color:#9FDDF8; margin-top:3px; direction:ltr; }
.brand-lockup.dark .brand-kh{ color:var(--navy); }
.brand-lockup.dark .brand-name{ color:var(--blue); }
.icon-btn{
  position:relative; width:36px; height:36px; border-radius:999px; border:0; cursor:pointer;
  background:rgba(255,255,255,.12); color:#fff;
  display:grid; place-items:center; flex:0 0 auto;
}
.icon-btn.light{ background:#F5F7FA; color:var(--ink); }
.icon-btn:hover{ opacity:.85 }
.notif-dot{
  position:absolute; top:1px; inset-inline-start:1px; min-width:16px; height:16px; padding:0 3px;
  border-radius:999px; background:var(--orange); color:#fff; font-size:9.5px; font-weight:900;
  line-height:16px; text-align:center;
}

.back-row{ display:flex; align-items:center; gap:10px; padding:14px 18px 4px; }
.back-row .title{ font-weight:900; font-size:18px; }

/* bottom nav */
.bottom-nav{
  position:fixed; bottom:0; right:50%; transform:translateX(50%);
  width:100%; max-width:var(--shell-w);
  display:grid; grid-template-columns:repeat(5,1fr); gap:2px;
  padding:9px 8px calc(12px + env(safe-area-inset-bottom));
  background:#fff; border-top:1.5px solid var(--line);
  z-index:50;
}
.nav-item{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  color:var(--muted); background:none; border:0; cursor:pointer; padding:4px 0;
  font-family:inherit;
}
.nav-item svg{ width:19px; height:19px; }
.nav-item span{ font-size:10px; font-weight:700; }
.nav-item.active{ color:var(--blue); }
.nav-item.active span{ font-weight:900; }
.nav-item.fab-item{ gap:2px; }
.nav-item.fab-item span:last-child{ color:var(--orange); font-weight:900; }
.fab-circle{
  width:46px; height:46px; margin-top:-27px; border-radius:999px;
  background:var(--orange); border:3px solid #fff;
  box-shadow:0 8px 16px rgba(255,138,0,.45);
  display:grid; place-items:center;
}
.nav-item.fab-item:active .fab-circle{ background:var(--orange-dark); }

/* ---------- generic bits ---------- */
.px{ padding-inline:18px; }
.section-title{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px 10px; font-weight:900; font-size:16px;
}
.section-title .see-all{ font-size:12px; font-weight:700; color:var(--blue); cursor:pointer; background:none; border:0; font-family:inherit;}
.section-title .ico{ display:inline-flex; vertical-align:-3px; margin-inline-end:4px; }

.search-bar{
  display:flex; align-items:center; gap:9px;
  background:var(--warm-bg); border:1.5px solid var(--line); border-radius:999px;
  padding:11px 16px; color:var(--muted); font-size:13.5px;
}
.search-bar input{
  border:0; background:none; outline:0; font:inherit; color:var(--ink); flex:1; min-width:0;
}
.search-bar.focus{ border-color:var(--blue); }

.city-chips, .chip-row{ display:flex; gap:9px; overflow-x:auto; padding:14px 18px 4px; scrollbar-width:none; }
.city-chips::-webkit-scrollbar, .chip-row::-webkit-scrollbar{ display:none; }
.chip{
  flex:0 0 auto; font-size:12px; font-weight:700; padding:7px 13px; border-radius:999px;
  background:#fff; border:1.5px solid var(--line); cursor:pointer; white-space:nowrap;
  font-family:inherit; color:var(--ink);
}
.chip.on{ background:var(--navy); color:#fff; border-color:var(--navy); font-weight:900; }
.chip.blue{ background:var(--cold-bg); color:var(--cold-fg); font-weight:900; border-color:transparent; }
.city-select{
  flex:0 0 auto; font-size:12px; font-weight:700; padding:7px 13px; border-radius:999px;
  background:#fff; border:1.5px solid var(--line); cursor:pointer; max-width:150px;
  font-family:inherit; color:var(--ink);
}
.city-select.on{ background:var(--navy); color:#fff; border-color:var(--navy); font-weight:900; }
.city-select.wide{ max-width:none; width:100%; padding:11px 14px; border-radius:14px; margin-top:2px; }

/* hero banner */
.hero{
  margin:14px 18px 0; border-radius:24px; background:var(--navy); color:#fff;
  padding:18px; position:relative; overflow:hidden; cursor:pointer; border:0; text-align:right; font-family:inherit; width:calc(100% - 36px);
}
.hero::after{
  content:''; position:absolute; left:-30px; bottom:-40px; width:130px; height:130px;
  border-radius:999px; background:rgba(0,180,255,.28);
}
.hero-img{ position:absolute; inset:0; z-index:0; }
.hero-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.hero-img::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(11,42,74,.5) 0%, rgba(11,42,74,.72) 55%, rgba(11,42,74,.92) 100%);
}
.hero-kicker{ position:relative; font-size:12px; font-weight:700; color:var(--blue); margin-bottom:6px; display:flex; align-items:center; gap:6px; }
.hero-title{ position:relative; font-weight:900; font-size:19px; line-height:1.4; }
.hero-price-row{ position:relative; display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin-top:10px; }
.price-now{ font-weight:900; font-size:22px; color:var(--orange); white-space:nowrap; }
.price-was{ font-size:13px; text-decoration:line-through; opacity:.6; white-space:nowrap; }
.pct-badge{ font-size:12px; font-weight:900; background:var(--orange); padding:4px 10px; border-radius:999px; white-space:nowrap; }
.hero-timer{ position:relative; margin-top:10px; font-size:12.5px; display:flex; align-items:center; gap:6px; animation:khpulse 2s infinite; }
@keyframes khpulse{ 0%,100%{opacity:1} 50%{opacity:.45} }
.hero-scroll{
  display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding:14px 18px 4px; scrollbar-width:none; -webkit-overflow-scrolling:touch;
}
.hero-scroll::-webkit-scrollbar{ display:none; }
.hero-scroll .hero{ margin:0; flex:0 0 88%; scroll-snap-align:start; }

/* categories grid */
.cat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; padding:0 18px 6px; }
.cat-tile{
  cursor:pointer; background:var(--warm-bg); border:1.5px solid var(--line); border-radius:18px;
  padding:10px 4px; text-align:center; font-family:inherit; color:var(--ink);
}
.cat-tile:hover{ border-color:var(--blue); }
.cat-tile svg{ color:var(--navy); }
.cat-tile .cn{ font-size:10.5px; font-weight:700; margin-top:4px; }

/* offer card - list style */
.offer-list{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:12px; align-items:start; }
.offer-row{
  cursor:pointer; display:flex; gap:12px; background:#fff; border:1.5px solid var(--line);
  border-radius:22px; padding:11px; text-align:right; width:100%; font-family:inherit; color:var(--ink);
}
.offer-row:hover{ border-color:var(--blue); box-shadow:var(--shadow-card); }
.vote-col{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  width:36px; flex:0 0 36px; background:var(--warm-bg); border-radius:14px; padding:7px 0;
}
.vote-col svg{ width:16px; height:16px; }
.vote-col .score{ font-size:12px; font-weight:900; }
.vote-col button{ border:0; background:none; padding:3px; cursor:pointer; display:flex; color:inherit; -webkit-tap-highlight-color:transparent; }
.vote-col button:active{ transform:scale(.9); }
.thumb{ position:relative; flex:0 0 auto; overflow:hidden; }
.thumb.r88{ width:88px; height:88px; border-radius:16px; }
.thumb .badge{
  position:absolute; top:6px; inset-inline-end:6px; font-size:10px; font-weight:900;
  background:var(--orange); color:#fff; padding:3px 7px; border-radius:999px;
}
.slot{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  text-align:center; color:#fff; font-size:10px; font-weight:700; line-height:1.3; padding:6px;
  background-size:cover; background-position:center;
}
.offer-info{ flex:1; min-width:0; }
.offer-title{ font-weight:700; font-size:14px; line-height:1.35; }
.offer-price-row{ display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; margin-top:5px; }
.offer-price-row .now{ font-weight:900; font-size:16px; color:var(--blue); white-space:nowrap; }
.offer-price-row .was{ font-size:11.5px; color:var(--muted); text-decoration:line-through; white-space:nowrap; }
.offer-meta{ display:flex; flex-wrap:wrap; gap:6px; margin-top:7px; font-size:10.5px; font-weight:700; color:var(--muted); }
.offer-meta span{ display:inline-flex; align-items:center; gap:3px; }
.offer-meta svg{ width:12px; height:12px; }
.temp-row{ display:flex; align-items:center; gap:6px; margin-top:7px; }
.temp-tag{ display:inline-flex; align-items:center; gap:4px; font-size:10.5px; font-weight:900; padding:4px 9px; border-radius:999px; }
.temp-tag svg{ width:12px; height:12px; }
.source-tag{ font-size:10.5px; font-weight:700; color:var(--muted); }

/* hunted horizontal scroll cards */
.hscroll{ display:flex; gap:12px; padding:0 18px 4px; overflow-x:auto; scrollbar-width:none; }
.hscroll::-webkit-scrollbar{ display:none; }
.hunt-card{
  cursor:pointer; flex:0 0 168px; background:#fff; border:1.5px solid var(--line);
  border-radius:22px; overflow:hidden; text-align:right; font-family:inherit; color:var(--ink);
}
.hunt-card .thumb{ height:104px; width:100%; border-radius:0; }
.hunt-card .body{ padding:10px; }
.hunt-card .t{ font-weight:700; font-size:13px; }
.hunt-card .p{ font-weight:900; font-size:15px; color:var(--blue); margin-top:4px; }
.hunt-card .by{ font-size:10.5px; color:var(--muted); margin-top:5px; display:flex; align-items:center; gap:4px; }
.hunt-card .by svg{ width:12px; height:12px; }

/* "ending soon" horizontal scroll cards */
.soon-card{
  cursor:pointer; flex:0 0 214px; display:flex; gap:10px; background:#fff; border:1.5px solid #F3D9D9;
  border-radius:20px; padding:10px; text-align:right; font-family:inherit; color:var(--ink);
}
.thumb.r62{ width:62px; height:62px; flex:0 0 62px; border-radius:14px; }
.soon-card .body{ flex:1; min-width:0; }
.soon-card .t{ font-weight:700; font-size:12px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.soon-card .p{ font-weight:900; font-size:14px; color:var(--blue); margin-top:4px; }
.soon-card .left{ font-size:10px; font-weight:900; color:#B04A4A; margin-top:5px; display:flex; align-items:center; gap:4px; }
.soon-card .left svg{ width:11px; height:11px; }

/* "الأكثر تقييمًا" top-rated horizontal scroll cards */
.rated-card{
  cursor:pointer; flex:0 0 214px; display:flex; gap:10px; background:#fff; border:1.5px solid var(--line);
  border-radius:20px; padding:10px; text-align:right; font-family:inherit; color:var(--ink);
}
.rated-card .score-badge{
  position:absolute; top:6px; inset-inline-end:6px; font-size:10.5px; font-weight:900;
  padding:3px 8px; border-radius:999px;
}
.rated-card .body{ flex:1; min-width:0; }
.rated-card .t{ font-weight:700; font-size:12px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rated-card .p{ font-weight:900; font-size:14px; color:var(--blue); margin-top:4px; }
.rated-card .left{ font-size:10px; font-weight:700; color:var(--muted); margin-top:5px; }

/* "promoted / paid" horizontal scroll cards */
.paid-tag{ font-size:10.5px; font-weight:900; color:var(--amber-fg); background:var(--amber-bg); padding:4px 10px; border-radius:999px; }
.promo-note{ padding:6px 18px 0; font-size:10.5px; color:var(--muted-2); line-height:1.7; }
.seo-footer{ padding:14px 18px 4px; font-size:11.5px; line-height:1.85; color:var(--muted-2); border-top:1px solid var(--line); margin-top:10px; }
.promo-card{
  flex:0 0 268px; background:#fff; border:1.5px solid #FFD8B8; border-radius:24px; overflow:hidden;
  box-shadow:0 8px 22px rgba(198,113,57,.12); font-family:inherit; color:var(--ink); text-align:right;
}
.promo-card .ph{ position:relative; display:block; width:100%; height:140px; border:0; padding:0; cursor:pointer; background:none; font-family:inherit; }
.promo-card .ptag{
  position:absolute; top:9px; inset-inline-end:9px; display:inline-flex; align-items:center; gap:4px;
  font-size:9.5px; font-weight:900; background:var(--orange); color:#fff; padding:4px 9px; border-radius:999px;
}
.promo-card .pbadge{
  position:absolute; bottom:9px; inset-inline-start:9px; font-size:11px; font-weight:900;
  background:var(--navy); color:#fff; padding:4px 10px; border-radius:999px;
}
.promo-card .pbody{ padding:12px 13px 13px; }
.promo-card .pt{
  display:block; width:100%; border:0; background:none; padding:0; cursor:pointer; text-align:right;
  font-family:inherit; font-weight:900; font-size:14px; line-height:1.4; color:var(--ink);
}
.promo-card .ppr{ display:flex; align-items:flex-end; gap:8px; margin-top:8px; }
.promo-card .ppr .now{ font-weight:900; font-size:20px; color:var(--blue); line-height:1; }
.promo-card .ppr .was{ font-size:11.5px; color:var(--muted); text-decoration:line-through; }
.promo-card .prem{
  display:flex; align-items:center; gap:6px; margin-top:9px; background:var(--amber-bg); color:var(--amber-fg);
  border-radius:12px; padding:7px 10px; font-size:10.5px; font-weight:900;
}
.promo-card .prem svg{ width:12px; height:12px; }
.promo-card .pshop{ display:flex; align-items:center; gap:7px; margin-top:10px; }
.promo-card .pshop .av{
  width:26px; height:26px; flex:0 0 26px; border-radius:999px; background:var(--navy); color:#fff;
  display:grid; place-items:center; font-weight:900; font-size:10.5px;
}
.promo-card .pshop .nm{ flex:1; min-width:0; font-size:11px; font-weight:700; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.promo-card .pshop .tg{ display:inline-flex; align-items:center; gap:3px; font-size:10px; font-weight:900; padding:3px 8px; border-radius:999px; }
.promo-card .pshop .tg svg{ width:11px; height:11px; }
.promo-card .pcta{
  width:100%; margin-top:11px; border:0; cursor:pointer; font-weight:900; font-size:12.5px;
  background:var(--orange); color:#fff; padding:11px; border-radius:999px; font-family:inherit;
}
.promo-card .pcta:hover{ background:var(--orange-dark); }

/* results grid (search) */
.results-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; padding:0 18px; }
.result-card{
  cursor:pointer; background:#fff; border:1.5px solid var(--line); border-radius:22px; overflow:hidden;
  text-align:right; font-family:inherit; color:var(--ink);
}
.result-card:hover{ border-color:var(--blue); }
.result-card .thumb{ width:100%; height:110px; border-radius:0; }
.result-card .body{ padding:10px; }
.result-card .t{ font-weight:700; font-size:12.5px; line-height:1.4; }
.result-card .now{ font-weight:900; font-size:15px; color:var(--blue); margin-top:5px; }
.result-card .was{ font-size:10.5px; color:var(--muted); text-decoration:line-through; }
.result-card .foot{ display:flex; justify-content:space-between; align-items:center; margin-top:7px; font-size:10px; font-weight:700; color:var(--muted); }
.result-card .foot span{ display:inline-flex; align-items:center; gap:3px; }
.result-card .foot svg{ width:12px; height:12px; }
.mini-vote{ display:inline-flex; align-items:center; gap:4px; }
.mini-vote button{ border:0; background:none; padding:2px; cursor:pointer; display:flex; color:inherit; -webkit-tap-highlight-color:transparent; }
.mini-vote button:active{ transform:scale(.9); }

/* filter panel */
.filter-box{ margin:16px 18px; background:var(--warm-bg); border:1.5px solid var(--line); border-radius:24px; padding:16px; }
.filter-box .ft{ font-weight:900; font-size:14px; margin-bottom:12px; }
.filter-box .fl{ font-size:11.5px; font-weight:900; color:var(--muted); margin-bottom:7px; }
.seg-row{ display:flex; gap:6px; margin-bottom:14px; flex-wrap:wrap; }
.seg-row.scroll{ flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; margin-inline:-4px; padding-inline:4px; }
.seg-row.scroll::-webkit-scrollbar{ display:none; }
.seg-row.scroll .seg-btn{ flex:0 0 auto; min-width:auto; padding:8px 14px; white-space:nowrap; }
.seg-btn{
  flex:1; min-width:64px; text-align:center; font-size:11.5px; font-weight:700; padding:8px 0;
  border-radius:999px; background:#fff; border:1.5px solid var(--line); cursor:pointer; font-family:inherit; color:var(--ink);
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
}
.seg-btn svg{ width:13px; height:13px; }
.seg-btn.on{ background:var(--blue); color:#fff; border-color:var(--blue); font-weight:900; }
.seg-btn.on.hot{ background:var(--orange); border-color:var(--orange); }
.seg-btn.on.dark{ background:var(--navy); border-color:var(--navy); }

.result-count-row{ display:flex; align-items:center; justify-content:space-between; padding:0 18px 10px; }
.result-count-row .n{ font-size:12.5px; font-weight:700; color:var(--muted); }
.sort-btn{ font-size:12px; font-weight:900; color:var(--blue); background:none; border:0; cursor:pointer; font-family:inherit; display:inline-flex; align-items:center; gap:4px; }

/* detail screen */
.hero-media{ position:relative; height:290px; }
.hero-media .slot{ font-size:13px; }
.media-fab-row{ position:absolute; top:16px; display:flex; gap:8px; }
.media-fab-row.start{ inset-inline-end:16px; }
.media-fab-row.end{ inset-inline-start:16px; }
.fab{
  width:36px; height:36px; border-radius:999px; background:#fff; display:grid; place-items:center;
  box-shadow:0 2px 8px rgba(11,42,74,.2); border:0; cursor:pointer; color:var(--ink); pointer-events:auto;
}
.dots-row{ position:absolute; bottom:14px; inset-inline-end:16px; display:flex; gap:6px; }
.dots-row span{ width:5px; height:5px; border-radius:999px; background:#fff; cursor:default; }
.dots-row span.on{ width:20px; background:var(--blue); }
.dots-row span[data-gallery-dot]{ cursor:pointer; }
.gallery-viewport{
  position:absolute; inset:0; overflow:hidden; direction:ltr; /* keeps slide-index math simple regardless of page RTL */
  touch-action:pan-y; /* let vertical page-scroll through; only horizontal drag drives the swipe */
}
.gallery-track{
  display:flex; height:100%; width:100%;
  transition:transform .32s cubic-bezier(.22,.61,.36,1);
}
.gallery-track.dragging{ transition:none; } /* live 1:1 finger tracking while held */
.gallery-slide{ flex:0 0 100%; height:100%; }
.gallery-slide img{ width:100%; height:100%; object-fit:cover; display:block; -webkit-user-drag:none; user-select:none; }

.tag-row{ display:flex; gap:6px; margin-bottom:9px; flex-wrap:wrap; }
.tag-pill{ font-size:10.5px; font-weight:900; padding:4px 10px; border-radius:999px; }
.tag-pill.cold{ background:var(--cold-bg); color:var(--cold-fg); }
.tag-pill.amber{ background:var(--amber-bg); color:var(--amber-fg); }

.big-price-row{ display:flex; align-items:flex-end; gap:11px; margin-top:12px; flex-wrap:wrap; }
.big-price{ font-weight:900; font-size:32px; color:var(--blue); line-height:1; white-space:nowrap; }

.countdown-box{ margin-top:14px; background:var(--navy); border-radius:22px; padding:14px; color:#fff; }
.countdown-box .lbl{ font-size:11.5px; font-weight:700; color:var(--blue); margin-bottom:9px; display:flex; align-items:center; gap:6px; }
.cd-row{ display:flex; gap:8px; }
.cd-cell{ flex:1; text-align:center; background:rgba(255,255,255,.09); border-radius:14px; padding:8px 0; }
.cd-cell b{ font-weight:900; font-size:20px; font-variant-numeric:tabular-nums; display:block; }
.cd-cell i{ font-size:10px; opacity:.75; font-style:normal; }
.countdown-grid{ display:flex; gap:8px; }
.countdown-grid .c{ flex:1; text-align:center; background:rgba(255,255,255,.09); border-radius:14px; padding:8px 0; }
.countdown-grid .c b{ display:block; font-weight:900; font-size:20px; }
.countdown-grid .c i{ font-style:normal; font-size:10px; opacity:.75; }

.heat-card{ cursor:pointer; margin-top:14px; border:1.5px solid var(--line); border-radius:22px; padding:15px; }
.heat-card:hover{ border-color:var(--blue); }
.heat-top{ display:flex; align-items:center; gap:12px; }
.heat-top .lbl{ display:flex; align-items:center; gap:6px; font-weight:900; font-size:14px; }
.heat-top .desc{ font-size:11.5px; color:var(--muted); margin-top:5px; line-height:1.6; }
.heat-num{ text-align:center; flex:0 0 auto; }
.heat-num b{ display:block; font-weight:900; font-size:28px; color:var(--orange); line-height:1; }
.heat-num i{ font-style:normal; font-size:10.5px; font-weight:900; color:var(--hot-fg); margin-top:3px; display:block; }
.heat-bar{ display:flex; height:9px; border-radius:999px; background:var(--cold-bg); margin-top:13px; overflow:hidden; }
.heat-bar > span{ display:block; height:100%; background:var(--orange); }
.heat-split{ display:flex; justify-content:space-between; margin-top:7px; font-size:11px; font-weight:900; }
.heat-split .h{ color:var(--hot-fg); } .heat-split .c{ color:var(--cold-fg); }
.hotcold-row{ display:flex; gap:8px; margin-top:13px; }
.hc-btn{
  flex:1; display:flex; align-items:center; justify-content:center; gap:7px; font-size:13.5px; font-weight:900;
  border-radius:999px; padding:12px; cursor:pointer; border:1.5px solid transparent; font-family:inherit;
}
.hc-btn svg{ width:15px; height:15px; }
.hc-btn.hot{ background:var(--orange); color:#fff; }
.hc-btn.cold{ background:var(--warm-bg); border-color:var(--line); color:var(--cold-fg); }
.hc-btn.picked{ box-shadow:inset 0 0 0 2px rgba(0,0,0,.15); }

.info-list{ display:flex; flex-direction:column; gap:8px; margin-top:12px; font-size:12.5px; font-weight:700; }
.info-list > div{ display:flex; align-items:center; gap:7px; }
.info-list svg{ width:15px; height:15px; flex:0 0 auto; }

.seller-strip{
  cursor:pointer; display:flex; align-items:center; gap:11px; margin-top:16px; background:var(--warm-bg);
  border-radius:22px; padding:13px; border:0; width:100%; text-align:right; font-family:inherit; color:var(--ink);
}
.seller-strip:hover{ background:var(--cold-bg); }
.avatar{ border-radius:999px; background:var(--navy); color:#fff; display:grid; place-items:center; font-weight:900; flex:0 0 auto; overflow:hidden; }
.seller-strip .name{ font-weight:900; font-size:13.5px; display:flex; align-items:center; gap:5px; }
.seller-strip .name .v{ color:var(--blue); display:inline-flex; align-items:center; gap:3px; font-size:11px; }
.seller-strip .meta{ font-size:11px; color:var(--muted); margin-top:3px; }

.contact-links{ display:flex; flex-direction:column; gap:9px; margin-top:10px; }
.contact-link-row{
  display:flex; align-items:center; gap:11px; border-radius:18px; padding:12px 14px;
  text-decoration:none; font-weight:900; font-size:12.5px; transition:transform .18s ease;
}
.contact-link-row:hover{ transform:translateX(-3px); }
.contact-link-row svg{ flex:0 0 auto; }

.report-link{ margin-top:14px; text-align:center; font-size:12px; font-weight:700; color:#B04A4A; display:flex; align-items:center; justify-content:center; gap:6px; cursor:pointer; background:none; border:0; width:100%; font-family:inherit; }
.disclaimer{ margin-top:10px; font-size:10.5px; line-height:1.7; color:var(--muted-2); text-align:center; }

.sticky-actions{
  position:sticky; bottom:0; display:flex; gap:8px; padding:12px 16px 18px; background:#fff; border-top:1.5px solid var(--line);
}
.act-btn{
  flex:1; text-align:center; font-weight:900; font-size:13.5px; padding:13px 0; border-radius:999px; border:0;
  cursor:pointer; display:flex; align-items:center; justify-content:center; gap:7px; font-family:inherit;
}
.act-btn svg{ width:15px; height:15px; }
.act-btn.wa{ background:#25D366; color:#fff; }
.act-btn.call{ background:var(--navy); color:#fff; }
.act-btn.save{ width:48px; flex:0 0 48px; background:var(--warm-bg); color:var(--ink); }
.act-btn.save.on{ background:var(--amber-bg); color:var(--orange); }
.act-btn.fb{ width:48px; flex:0 0 48px; background:#EAF1FB; color:#1B4F9C; }

/* rate sheet */
.rate-backdrop{ background:var(--navy); min-height:calc(100vh - var(--header-h)); position:relative; }
.rate-ghost{ padding:24px 18px; opacity:.28; }
.rate-ghost .b1{ height:180px; border-radius:20px; background:#fff; }
.rate-ghost .b2{ height:22px; width:70%; border-radius:8px; background:#fff; margin-top:16px; }
.rate-ghost .b3{ height:38px; width:50%; border-radius:10px; background:var(--blue); margin-top:14px; }
.rate-ghost .b4{ height:90px; border-radius:18px; background:#fff; margin-top:16px; }
.rate-sheet{ background:#fff; border-radius:34px 34px 0 0; padding:20px 20px 26px; }
.rate-grip{ width:52px; height:5px; border-radius:999px; background:var(--line); margin:0 auto 16px; }
.rate-q{ font-weight:900; font-size:19px; text-align:center; }
.rate-sub{ font-size:12.5px; color:var(--muted); text-align:center; margin-top:6px; line-height:1.7; }
.rate-choices{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:18px; }
.rate-choice{
  border:1.5px solid var(--line); border-radius:22px; padding:18px 10px; text-align:center; cursor:pointer; background:#fff; font-family:inherit; color:var(--ink);
}
.rate-choice svg{ width:30px; height:30px; }
.rate-choice .rt{ font-weight:700; font-size:14.5px; margin-top:8px; }
.rate-choice .rd{ font-size:11px; margin-top:4px; }
.rate-choice.hot{ border:2px solid var(--orange); background:#FFF6EE; }
.rate-choice.hot svg{ color:var(--orange); }
.rate-choice.hot .rt{ font-weight:900; }
.rate-choice.hot .rd{ color:var(--amber-fg); }
.rate-choice.cold svg{ color:var(--muted-2); }
.rate-choice.cold .rd{ color:var(--muted); }
.rate-choice.picked{ box-shadow:0 0 0 2px var(--blue) inset; }
.heat-now{ display:flex; align-items:center; justify-content:space-between; margin-top:14px; background:#FFF6EE; border-radius:20px; padding:13px 15px; }
.heat-now .l{ display:flex; align-items:center; gap:7px; font-size:12.5px; font-weight:900; color:var(--amber-fg); }
.heat-now .l svg{ width:15px; height:15px; }
.heat-now .v{ font-weight:900; font-size:16px; color:var(--orange); }
.price-know{ margin-top:16px; background:var(--warm-bg); border-radius:20px; padding:14px; }
.price-know .l{ font-size:12px; font-weight:900; color:var(--muted); margin-bottom:8px; }
.price-know .row{ display:flex; align-items:center; gap:8px; background:#fff; border:1.5px solid var(--line); border-radius:999px; padding:10px 15px; }
.price-know input{ border:0; outline:0; font:inherit; flex:1; min-width:0; background:none; }
.price-know .cur{ margin-inline-start:auto; font-size:12px; font-weight:900; color:var(--muted); }
.big-cta{ cursor:pointer; margin-top:16px; text-align:center; font-weight:900; font-size:15px; background:var(--blue); color:#fff; border-radius:999px; padding:15px; border:0; width:100%; font-family:inherit; }
.big-cta:hover{ background:var(--blue-dark); }
.big-cta.orange{ background:var(--orange); }
.big-cta.orange:hover{ background:var(--orange-dark); }
.big-cta.ghost{ background:var(--warm-bg); color:var(--ink); border:1.5px solid var(--line); }
.big-cta.ghost:hover{ background:var(--cold-bg); }
.fine-print{ margin-top:12px; font-size:11px; color:var(--muted-2); text-align:center; line-height:1.7; }

/* forms (publish / hunt) */
.progress-row{ display:flex; gap:6px; margin:14px 0 18px; }
.progress-row .seg{ flex:1; height:5px; border-radius:999px; background:var(--line); }
.progress-row .seg.on{ background:var(--blue); }
.field-label{ font-size:11.5px; font-weight:900; color:var(--muted); margin-bottom:7px; }
.field-box{ background:var(--warm-bg); border:1.5px solid var(--line); border-radius:18px; padding:12px 15px; font-weight:700; font-size:13.5px; }
.field-input{
  width:100%; background:var(--warm-bg); border:1.5px solid var(--line); border-radius:18px; padding:12px 15px;
  font-weight:700; font-size:13.5px; font-family:inherit; color:var(--ink); outline:0;
}
.field-input:focus{ border-color:var(--blue); background:#fff; }
.field-input.accent{ background:#fff; border-color:var(--blue); color:var(--blue); }
textarea.field-input{ resize:vertical; min-height:64px; font-weight:400; line-height:1.7; }
.two-col{ display:flex; gap:10px; }
.two-col > div{ flex:1; }
.photo-row{ display:flex; gap:9px; }
.photo-slot{ width:82px; height:82px; border-radius:18px; overflow:hidden; position:relative; }
.photo-remove{
  position:absolute; top:4px; left:4px; width:20px; height:20px; border-radius:999px;
  background:rgba(11,42,74,.75); color:#fff; border:0; cursor:pointer;
  display:flex; align-items:center; justify-content:center; padding:0;
}
.photo-remove:hover{ background:var(--navy); }
.photo-add{
  width:82px; height:82px; border:1.5px dashed #C3D2E0; border-radius:18px; display:grid; place-items:center;
  color:var(--muted); cursor:pointer; background:none; font-family:inherit;
}
.photo-add svg{ width:20px; height:20px; }
.photo-add div{ font-size:10px; font-weight:700; margin-top:2px; }
.discount-callout{
  margin-top:11px; display:flex; align-items:center; gap:9px; background:var(--amber-bg); border-radius:18px; padding:12px 15px;
}
.discount-callout .l{ font-size:12.5px; font-weight:700; color:var(--amber-fg); }
.discount-callout .v{ margin-inline-start:auto; font-weight:900; font-size:15px; background:var(--orange); color:#fff; padding:5px 12px; border-radius:999px; }
.dur-row{ display:flex; gap:6px; }
.dur-btn{ flex:1; text-align:center; font-size:12px; font-weight:700; padding:9px 0; border-radius:999px; background:#fff; border:1.5px solid var(--line); cursor:pointer; font-family:inherit; color:var(--ink); }
.dur-btn.on{ background:var(--blue); color:#fff; font-weight:900; border-color:var(--blue); }
.hint{ font-size:11px; color:var(--muted-2); margin-top:7px; }
.toggle-row{ display:flex; align-items:center; gap:11px; margin-top:18px; background:var(--warm-bg); border-radius:18px; padding:13px 15px; }
.toggle-row .ic{ width:22px; height:22px; border-radius:7px; background:var(--blue); color:#fff; display:grid; place-items:center; }
.toggle-row .ic svg{ width:13px; height:13px; }
.switch{ width:40px; height:22px; border-radius:999px; position:relative; border:0; cursor:pointer; background:var(--line); flex:0 0 auto; }
.switch::after{ content:''; position:absolute; top:3px; inset-inline-start:3px; width:16px; height:16px; border-radius:999px; background:#fff; transition:inset-inline-start .15s; }
.switch.on{ background:var(--blue); }
.switch.on::after{ inset-inline-start:21px; }
.note-box{ margin-top:18px; background:var(--cold-bg); border-radius:20px; padding:14px; font-size:12px; line-height:1.7; color:var(--cold-fg); font-weight:700; }
.note-box.warn{ background:var(--amber-bg); color:var(--amber-fg); }
.step-label{ font-size:11.5px; font-weight:900; color:var(--muted); margin-bottom:16px; }
.review-card{ border:1.5px solid var(--line); border-radius:22px; padding:15px; display:flex; flex-direction:column; gap:9px; font-size:13px; font-weight:700; }
.review-card .row{ display:flex; justify-content:space-between; gap:10px; }
.review-card .row .k{ color:var(--muted); }
.review-card .row .v{ font-weight:900; text-align:left; }
.next-steps{ margin-top:18px; border:1.5px solid var(--line); border-radius:22px; padding:15px; }
.next-steps .t{ font-weight:900; font-size:13.5px; margin-bottom:12px; }
.step-item{ display:flex; gap:9px; align-items:center; font-size:12.5px; font-weight:700; margin-bottom:11px; }
.step-item .n{ width:20px; height:20px; border-radius:999px; background:var(--line); color:var(--muted); font-size:11px; line-height:20px; text-align:center; font-weight:900; flex:0 0 auto; }
.step-item.on .n{ background:var(--blue); color:#fff; }
.contact-list{ display:flex; flex-direction:column; gap:8px; }
.contact-list .cf{ background:var(--warm-bg); border:1.5px solid var(--line); border-radius:18px; padding:11px 15px; font-size:13px; font-weight:700; display:flex; align-items:center; gap:8px; }
.contact-list .cf svg{ width:15px; height:15px; }

/* hunter profile */
.profile-hero{ background:var(--navy); color:#fff; padding:20px 18px 26px; position:relative; overflow:hidden; }
.profile-hero::after{ content:''; position:absolute; inset-inline-end:-50px; bottom:-60px; width:180px; height:180px; border-radius:999px; background:rgba(0,180,255,.25); }
.profile-top{ position:relative; display:flex; align-items:center; gap:13px; }
.profile-top .av{ width:64px; height:64px; font-size:22px; background:var(--orange); }
.profile-top .nm{ font-weight:900; font-size:19px; }
.profile-top .badges{ display:flex; align-items:center; gap:7px; margin-top:6px; }
.badge-pill{ font-size:11.5px; font-weight:900; background:var(--orange); padding:4px 10px; border-radius:999px; display:inline-flex; align-items:center; gap:4px; }
.badge-pill svg{ width:12px; height:12px; }
.stat-row{ position:relative; display:flex; gap:8px; margin-top:18px; }
.stat-chip{ flex:1; background:rgba(255,255,255,.1); border-radius:18px; padding:11px; text-align:center; }
.stat-chip b{ display:block; font-weight:900; font-size:19px; }
.stat-chip i{ font-style:normal; font-size:10px; opacity:.8; }
.level-card{ position:relative; margin:-14px 18px 0; background:#fff; border:1.5px solid var(--line); border-radius:22px; padding:15px; box-shadow:var(--shadow-card); }
.level-card .row{ display:flex; justify-content:space-between; font-size:12.5px; font-weight:900; }
.level-card .row .l{ display:flex; align-items:center; gap:6px; }
.level-card .row .l svg{ width:15px; height:15px; }
.level-card .bar{ height:9px; border-radius:999px; background:#F0F3F7; margin-top:10px; overflow:hidden; }
.level-card .bar>span{ display:block; height:100%; background:var(--orange); }
.level-card .note{ font-size:11.5px; color:var(--muted); margin-top:8px; }
.level-tabs{ display:flex; gap:9px; padding:16px 18px 0; overflow-x:auto; scrollbar-width:none; }
.level-tabs::-webkit-scrollbar{ display:none; }
.level-tab{ font-size:11.5px; font-weight:900; padding:8px 13px; border-radius:999px; background:var(--warm-bg); border:1.5px solid var(--line); display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.level-tab svg{ width:14px; height:14px; }
.level-tab.on{ background:var(--navy); color:#fff; border-color:var(--navy); }
.level-tab.dashed{ background:#fff; border-style:dashed; border-color:#C3D2E0; color:var(--muted-2); }

.sub-row{ display:flex; align-items:center; gap:11px; background:#fff; border:1.5px solid var(--line); border-radius:20px; padding:12px; }
.sub-row .ic{ width:38px; height:38px; border-radius:12px; background:var(--warm-bg); display:grid; place-items:center; flex:0 0 auto; }
.sub-row .ic svg{ width:17px; height:17px; }
.sub-row .body{ flex:1; min-width:0; }
.sub-row .t{ font-weight:700; font-size:13px; }
.sub-row .d{ font-size:10.5px; color:var(--muted); margin-top:4px; }
.sub-row .stat{ text-align:center; }
.sub-status{ font-size:10.5px; font-weight:900; padding:4px 10px; border-radius:999px; }
.sub-pts{ font-size:11px; font-weight:900; margin-top:5px; color:var(--muted); }
.reward-box{ margin:18px; background:var(--amber-bg); border-radius:22px; padding:15px; }
.reward-box .t{ font-weight:900; font-size:13.5px; color:var(--amber-fg); display:flex; align-items:center; gap:6px; }
.reward-box .t svg{ width:15px; height:15px; }
.reward-box .d{ font-size:12px; line-height:1.8; color:#7A3E00; margin-top:7px; }

/* leaderboard */
.tab-pills{ display:flex; gap:6px; margin-top:14px; }
.tab-pill{ font-size:11.5px; font-weight:700; padding:7px 13px; border-radius:999px; background:rgba(255,255,255,.12); color:#fff; border:0; cursor:pointer; font-family:inherit; }
.tab-pill.on{ background:var(--blue); font-weight:900; }
.podium{ display:flex; align-items:flex-end; gap:10px; padding:20px 18px 0; }
.podium .p{ flex:1; text-align:center; }
.podium .circ{ margin:0 auto; border-radius:999px; display:grid; place-items:center; font-weight:900; }
.podium .nm{ font-weight:900; margin-top:7px; }
.podium .pt{ font-size:11px; color:var(--muted); }
.podium .bar{ border-radius:16px 16px 0 0; margin-top:8px; display:grid; place-items:end center; padding-bottom:6px; font-weight:900; }
.leader-row{ cursor:pointer; display:flex; align-items:center; gap:11px; background:#fff; border:1.5px solid var(--line); border-radius:20px; padding:11px 13px; width:100%; text-align:right; font-family:inherit; color:var(--ink); }
.leader-row:hover{ border-color:var(--blue); }
.leader-row .rk{ font-weight:900; font-size:13px; color:var(--muted); width:20px; text-align:center; }
.leader-row .av{ width:36px; height:36px; font-size:13px; background:var(--warm-bg); color:var(--ink); }
.leader-row .body{ flex:1; min-width:0; }
.leader-row .nm{ font-weight:700; font-size:13px; }
.leader-row .meta{ font-size:10.5px; color:var(--muted); margin-top:3px; }
.leader-row .pts{ text-align:center; }
.leader-row .pts b{ display:block; font-weight:900; font-size:14px; color:var(--blue); }
.leader-row .pts i{ font-style:normal; font-size:9.5px; color:var(--muted); }
.info-callout{ margin:0 18px 18px; background:var(--cold-bg); border-radius:22px; padding:15px; font-size:12.5px; line-height:1.8; color:var(--cold-fg); font-weight:700; }

/* seller page */
.cover{ position:relative; height:130px; }
/* The cover photo stays purely a banner strip now — only the round avatar
   (a solid shape, always readable regardless of the photo) pokes up into
   it via its own negative margin. The name/location text no longer
   overlaps the photo at all, so it's always on plain white and never
   fights an uploaded photo's brightness/business for legibility. */
.seller-id-row{ display:flex; align-items:flex-end; gap:12px; padding:0 18px; }
.seller-id-row .av{ width:64px; height:64px; border-radius:20px; font-size:20px; border:3px solid #fff; margin-top:-30px; }
.seller-name{ font-weight:900; font-size:17px; display:flex; align-items:center; gap:6px; }
.seller-name .v{ color:var(--blue); font-size:13px; display:inline-flex; align-items:center; gap:3px; }
.seller-loc{ font-size:11.5px; color:var(--muted); margin-top:3px; display:flex; align-items:center; gap:5px; }
.seller-cta-row{ display:flex; gap:8px; margin-top:14px; }
.seller-cta{ flex:1; text-align:center; font-weight:900; font-size:13px; padding:11px 0; border-radius:999px; border:0; cursor:pointer; font-family:inherit; display:flex; align-items:center; justify-content:center; gap:6px; }
.seller-cta svg{ width:14px; height:14px; }
.seller-cta.primary{ background:var(--blue); color:#fff; }
.seller-cta.ghost{ background:var(--warm-bg); border:1.5px solid var(--line); color:var(--ink); }
.seller-stat-row{ display:flex; gap:8px; margin-top:16px; }
.seller-stat{ flex:1; background:var(--warm-bg); border-radius:18px; padding:12px; text-align:center; }
.seller-stat b{ display:block; font-weight:900; font-size:17px; }
.seller-stat i{ font-style:normal; font-size:10px; color:var(--muted); }
.seller-panel{ margin-top:18px; border:1.5px solid var(--line); border-radius:22px; padding:16px; }
.seller-panel .t{ font-weight:900; font-size:14px; display:flex; align-items:center; gap:6px; }
.seller-panel .t svg{ width:15px; height:15px; }
.kv-row{ display:flex; justify-content:space-between; font-size:12.5px; font-weight:700; margin-top:9px; }
.kv-row b{ font-weight:900; }
.seller-panel-cta{ display:flex; gap:8px; margin-top:14px; }
.spc{ flex:1; text-align:center; font-size:12px; font-weight:900; padding:10px 0; border-radius:999px; border:0; cursor:pointer; font-family:inherit; }
.spc.ghost{ background:var(--warm-bg); border:1.5px solid var(--line); color:var(--ink); }
.spc.dark{ background:var(--navy); color:#fff; }

/* account */
.account-card{ display:flex; align-items:center; gap:12px; margin-top:14px; background:var(--warm-bg); border-radius:22px; padding:14px; }
.account-card .av{ width:52px; height:52px; font-size:18px; background:var(--blue); }
.account-card .nm{ font-weight:900; font-size:14.5px; }
.account-card .ph{ font-size:11px; color:var(--muted); margin-top:3px; }
.account-card .edit{ font-size:12px; font-weight:900; color:var(--blue); background:none; border:0; cursor:pointer; font-family:inherit; margin-inline-start:auto; }
.hunter-cta{ cursor:pointer; margin-top:14px; background:var(--navy); color:#fff; border-radius:22px; padding:16px; border:0; width:100%; text-align:right; font-family:inherit; }
.hunter-cta .t{ font-weight:900; font-size:15px; display:flex; align-items:center; gap:6px; }
.hunter-cta .d{ font-size:12px; line-height:1.7; margin-top:7px; opacity:.9; }
.hunter-cta .cta{ margin-top:12px; display:inline-block; font-size:12.5px; font-weight:900; background:var(--orange); padding:8px 15px; border-radius:999px; }
.follow-scroll{ display:flex; gap:9px; margin-top:11px; overflow-x:auto; scrollbar-width:none; }
.follow-scroll::-webkit-scrollbar{ display:none; }
.follow-card{ cursor:pointer; flex:0 0 108px; text-align:center; background:var(--warm-bg); border-radius:20px; padding:13px 8px; border:0; font-family:inherit; }
.follow-card .av{ width:40px; height:40px; margin:0 auto; font-weight:900; }
.follow-card .nm{ font-size:11px; font-weight:700; margin-top:7px; line-height:1.4; color:var(--ink); }
.pref-row{ display:flex; align-items:center; gap:11px; border:1.5px solid var(--line); border-radius:18px; padding:12px 14px; }
.pref-row span:first-child{ font-size:12.5px; font-weight:700; flex:1; }

.notif-row{
  display:flex; align-items:flex-start; gap:11px; background:#fff; border:1.5px solid var(--line);
  border-radius:18px; padding:13px 14px; margin-top:10px; cursor:pointer; transition:border-color .15s ease;
}
.notif-row.unread{ background:var(--cold-bg); border-color:#BFE6F7; }
.notif-row:hover{ border-color:var(--blue); }
.notif-ic{ width:30px; height:30px; flex:0 0 30px; border-radius:999px; background:var(--warm-bg); color:var(--muted); display:grid; place-items:center; }
.notif-row.unread .notif-ic{ background:#fff; color:var(--blue); }
.notif-title{ font-weight:900; font-size:13px; line-height:1.4; }
.notif-body{ font-size:12px; color:var(--muted); margin-top:4px; line-height:1.6; }
.notif-time{ font-size:10.5px; color:var(--muted-2); margin-top:5px; font-weight:700; }
.notif-unread-dot{ width:8px; height:8px; border-radius:999px; background:var(--orange); flex:0 0 auto; margin-top:5px; }

/* admin */
.admin-wrap{ width:100%; border-radius:26px; border:1.5px solid var(--line-2); overflow:hidden; background:var(--warm-bg); box-shadow:var(--shadow-pop); display:flex; min-height:640px; }
.admin-side{ width:216px; flex:0 0 216px; background:var(--navy); color:#fff; padding:18px 14px; overflow:auto; }
.admin-side .brand{ display:flex; align-items:baseline; gap:7px; padding:0 6px 18px; }
.admin-side .brand b{ font-weight:900; font-size:20px; color:var(--blue); }
.admin-side .brand i{ font-style:normal; font-weight:900; font-size:11px; letter-spacing:1.5px; }
.admin-nav-item{ display:flex; align-items:center; gap:9px; padding:10px 12px; border-radius:14px; margin-bottom:4px; font-size:12.5px; font-weight:700; cursor:pointer; background:none; border:0; color:#fff; width:100%; text-align:right; font-family:inherit; }
.admin-nav-item svg{ width:15px; height:15px; }
.admin-nav-item span.grow{ flex:1; }
.admin-main{ flex:1; min-width:0; overflow:auto; padding:20px 24px; }
.admin-head{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.admin-head h2{ font-weight:900; font-size:20px; margin:0; }
.admin-head p{ font-size:12.5px; color:var(--muted); margin:4px 0 0; }
.admin-actions{ display:flex; gap:8px; }
.admin-btn{ font-size:12px; font-weight:900; padding:9px 14px; border-radius:999px; border:1.5px solid var(--line); background:#fff; cursor:pointer; font-family:inherit; color:var(--ink); }
.admin-btn.dark{ background:var(--navy); color:#fff; border-color:var(--navy); }
.admin-stat-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-top:18px; }
.admin-stat{ background:#fff; border:1.5px solid var(--line); border-radius:20px; padding:14px; }
.admin-stat .l{ font-size:11.5px; font-weight:700; color:var(--muted); }
.admin-stat .v{ font-weight:900; font-size:23px; margin-top:6px; }
.admin-stat .d{ font-size:10.5px; font-weight:900; margin-top:5px; }
.admin-table-card{ background:#fff; border:1.5px solid var(--line); border-radius:22px; margin-top:18px; overflow:hidden; }
.admin-table-tabs{ display:flex; gap:8px; padding:14px 16px; border-bottom:1.5px solid #EEF2F7; flex-wrap:wrap; }
.att{ font-size:12px; font-weight:700; background:var(--warm-bg); padding:8px 14px; border-radius:999px; border:0; cursor:pointer; font-family:inherit; color:var(--ink); }
.att.on{ background:var(--navy); color:#fff; font-weight:900; }
.admin-table-head{ display:grid; grid-template-columns:2.4fr 1fr 1.2fr 1fr 1fr 1.3fr; gap:10px; padding:11px 16px; background:#FAFCFE; font-size:11.5px; font-weight:900; color:var(--muted); }
.admin-table-row{ display:grid; grid-template-columns:2.4fr 1fr 1.2fr 1fr 1fr 1.3fr; gap:10px; align-items:center; padding:12px 16px; border-top:1px solid #F0F4F8; font-size:12.5px; transition:opacity .2s; }
.admin-table-row .lead{ display:flex; align-items:center; gap:9px; min-width:0; }
.admin-check{ width:20px; height:20px; border-radius:6px; border:1.5px solid #C3D2E0; background:#fff; display:inline-block; cursor:pointer; padding:0; }
.admin-check.on{ background:var(--blue); border-color:var(--blue); }
.row-ic{ width:34px; height:34px; border-radius:10px; background:#F0F4F8; display:grid; place-items:center; flex:0 0 auto; }
.row-ic svg{ width:15px; height:15px; }
.row-title b{ font-weight:700; display:block; }
.row-title i{ font-style:normal; font-size:10.5px; color:var(--muted); margin-top:2px; display:block; }
.row-actions{ display:flex; gap:6px; }
.ra-btn{ font-size:11px; font-weight:900; padding:6px 11px; border-radius:999px; border:0; cursor:pointer; font-family:inherit; }
.ra-btn.accept{ background:var(--green-bg); color:var(--green-fg); }
.ra-btn.reject{ background:var(--red-bg); color:var(--red-fg); }
.admin-two-col{ display:grid; grid-template-columns:1.3fr 1fr; gap:14px; margin-top:18px; }
.admin-panel{ background:#fff; border:1.5px solid var(--line); border-radius:22px; padding:16px; }
.admin-panel .t{ font-weight:900; font-size:14px; display:flex; align-items:center; gap:6px; }
.admin-panel .t svg{ width:15px; height:15px; }
.report-row{ display:flex; align-items:center; gap:10px; font-size:12.5px; margin-top:12px; }
.report-row .k{ font-size:11px; font-weight:900; background:var(--red-bg); color:var(--red-fg); padding:5px 10px; border-radius:999px; flex:0 0 auto; }
.hunter-flag-row{ display:flex; align-items:center; gap:9px; font-size:12.5px; margin-top:10px; }
.hunter-flag-row .av{ width:28px; height:28px; font-size:11px; background:var(--warm-bg); color:var(--ink); }

/* schema page */
.schema-wrap{ width:100%; background:#fff; border:1.5px solid var(--line-2); border-radius:26px; padding:24px; }
.schema-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.schema-table{ background:#FAFCFE; border:1.5px solid var(--line); border-radius:20px; overflow:hidden; }
.schema-table .h{ background:var(--navy); color:#fff; padding:10px 13px; font-weight:900; font-size:13px; display:flex; justify-content:space-between; }
.schema-table .h span:last-child{ color:var(--blue); font-size:11px; }
.schema-table .fields{ padding:10px 13px; }
.schema-field{ display:flex; justify-content:space-between; gap:8px; font-size:11.5px; padding:4px 0; border-bottom:1px solid #F0F4F8; }
.schema-field b{ font-weight:700; }
.schema-field i{ font-style:normal; color:var(--muted); }
.schema-bottom{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:20px; }
.rules-panel{ background:var(--warm-bg); border-radius:20px; padding:16px; }
.rules-panel .t{ font-weight:900; font-size:14px; margin-bottom:10px; }
.rules-panel .r{ font-size:12.5px; line-height:1.75; color:#2C3D52; margin-bottom:7px; }
.state-panel{ background:var(--navy); color:#fff; border-radius:20px; padding:16px; }
.state-panel .t{ font-weight:900; font-size:14px; margin-bottom:10px; }
.state-row{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:12px; font-weight:900; }
.state-pill{ background:rgba(255,255,255,.12); padding:7px 12px; border-radius:999px; }
.state-pill.on{ background:var(--orange); }
.state-pill.live{ background:var(--blue); }
.state-note{ font-size:12px; line-height:1.8; margin-top:14px; opacity:.9; }

/* dev notes (collapsible, preserves the design spec's engineering notes) */
.dev-notes{ margin:18px; border:1.5px dashed var(--line-2); border-radius:20px; overflow:hidden; }
.dev-notes summary{ cursor:pointer; padding:12px 15px; font-weight:900; font-size:12.5px; color:var(--orange); list-style:none; display:flex; align-items:center; gap:8px; }
.dev-notes summary::-webkit-details-marker{ display:none; }
.dev-notes summary::before{ content:'⚙'; }
.dev-notes .body{ padding:0 15px 15px; }
.dev-note-item{ display:flex; gap:9px; margin-bottom:11px; }
.dev-note-item .n{ flex:0 0 20px; height:20px; border-radius:999px; background:var(--navy); color:#fff; font-size:11px; font-weight:900; line-height:20px; text-align:center; }
.dev-note-item p{ font-size:12.5px; line-height:1.6; color:#2C3D52; margin:0; }

/* toast */
.toast{
  position:fixed; bottom:calc(var(--nav-h) + 18px); right:50%; transform:translateX(50%) translateY(8px);
  background:var(--navy); color:#fff; padding:12px 18px; border-radius:999px; font-size:12.5px; font-weight:700;
  box-shadow:0 8px 24px rgba(11,42,74,.3); z-index:100; opacity:0; pointer-events:none; transition:opacity .2s, transform .2s;
  white-space:nowrap; display:flex; align-items:center; gap:8px;
}
.toast.show{ opacity:1; transform:translateX(50%) translateY(0); pointer-events:auto; }

/* responsive: browse pages (home/search/hunters) use the extra room on
   tablet/desktop instead of staying a single narrow mobile column.
   .results-grid and .offer-list self-adjust their column count to
   whatever width their shell actually has (auto-fill/minmax), so every
   page that uses them — not just home/search/hunters — benefits without
   needing its own breakpoint rules. .cat-grid stays a fixed count since
   it's icon tiles, and only home uses it. */
@media (min-width:768px){
  .app-shell.browse .cat-grid{ grid-template-columns:repeat(6,1fr); }
}
@media (min-width:1024px){
  .app-shell.browse .cat-grid{ grid-template-columns:repeat(8,1fr); }
}

/* responsive: admin/schema on small screens */
@media (max-width:1000px){
  .admin-wrap{ flex-direction:column; }
  .admin-side{ width:100%; flex:none; display:flex; align-items:center; gap:6px; overflow-x:auto; padding:12px; }
  .admin-side .brand{ padding:0 10px 0 0; flex:0 0 auto; }
  .admin-nav-item{ width:auto; flex:0 0 auto; white-space:nowrap; }
  .admin-stat-grid{ grid-template-columns:repeat(2,1fr); }
  .admin-table-head, .admin-table-row{ grid-template-columns:2fr 1fr 1fr; }
  .admin-table-head span:nth-child(4), .admin-table-head span:nth-child(5),
  .admin-table-row > span:nth-child(3), .admin-table-row > span:nth-child(4){ display:none; }
  .admin-two-col{ grid-template-columns:1fr; }
  .schema-grid{ grid-template-columns:repeat(2,1fr); }
  .schema-bottom{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .schema-grid{ grid-template-columns:1fr; }
}

.empty-state{ padding:40px 18px; text-align:center; color:var(--muted); font-size:13px; }

/* ---------- page transition + spinner ---------- */
@keyframes khPageIn{ from{ opacity:0; } to{ opacity:1; } }
.app-shell.page-anim{ animation:khPageIn .22s ease both; }
@keyframes khSpin{ to{ transform:rotate(360deg); } }
.spinner{
  width:30px; height:30px; margin:0 auto; border-radius:50%;
  border:3px solid var(--line); border-top-color:var(--blue);
  animation:khSpin .7s linear infinite;
}
.spinner.sm{ width:20px; height:20px; border-width:2.5px; }
@media (prefers-reduced-motion: reduce){
  .app-shell.page-anim{ animation:none; }
  .spinner{ animation-duration:1.4s; }
}

/* ---------- auth (login / sign up) ---------- */
.auth-wrap{
  min-height:calc(100vh - var(--nav-h) - 20px);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:32px 22px 20px; background:var(--bg);
}
.auth-card{
  width:100%; max-width:380px; background:var(--card); border-radius:var(--radius-xl);
  box-shadow:var(--shadow-card); padding:32px 26px 26px; text-align:center;
}
.auth-brand{ display:flex; justify-content:center; margin-bottom:22px; }
.auth-brand .brand-kh{ font-size:32px; }
.auth-brand .brand-name{ font-size:10.5px; letter-spacing:4px; }
.brand-name-dark{ font-weight:900; font-size:12px; letter-spacing:2px; color:var(--navy); }
.auth-title{ font-size:22px; margin:0 0 6px; }
.auth-sub{ font-size:13px; color:var(--muted); margin:0 0 24px; line-height:1.6; }
.oauth-row{ display:flex; gap:10px; margin-bottom:18px; }
.oauth-btn{
  flex:1; display:flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 10px; border-radius:999px; border:1.5px solid var(--line);
  background:#fff; color:var(--ink); font-family:inherit; font-weight:800; font-size:13.5px;
  cursor:pointer; transition:background .15s;
}
.oauth-btn:hover{ background:var(--warm-bg); }
.oauth-btn:disabled{ opacity:.6; cursor:not-allowed; }
.oauth-sep{ display:flex; align-items:center; gap:10px; margin-bottom:18px; color:var(--muted-2); font-size:12px; }
.oauth-sep::before, .oauth-sep::after{ content:''; flex:1; height:1px; background:var(--line); }
.auth-field{
  position:relative; display:flex; align-items:center; margin-bottom:13px;
  background:var(--warm-bg); border:1.5px solid var(--line); border-radius:999px;
  padding-inline-start:14px; transition:border-color .15s;
}
.auth-field:focus-within{ border-color:var(--blue); background:#fff; }
.auth-field-ic{ display:flex; color:var(--muted); flex:0 0 auto; }
.auth-field input{
  flex:1; min-width:0; border:0; background:none; outline:0; font:inherit;
  padding:13px 14px; color:var(--ink); font-size:14px;
}
.auth-field input::placeholder{ color:var(--muted-2); }
.auth-eye{
  border:0; background:none; cursor:pointer; color:var(--muted); display:flex;
  padding:0 14px; flex:0 0 auto; align-self:stretch; align-items:center;
}
.auth-eye:hover{ color:var(--ink); }
.auth-submit{
  width:100%; margin-top:10px; padding:14px; border:0; border-radius:999px;
  background:var(--blue); color:#fff; font-family:inherit; font-weight:900; font-size:14.5px;
  cursor:pointer;
}
.auth-submit:hover{ background:var(--blue-dark); }
.auth-submit:disabled{ opacity:.6; cursor:not-allowed; }
.auth-forgot{ text-align:left; margin-top:-4px; margin-bottom:2px; }
.auth-forgot button{ border:0; background:none; color:var(--muted); font-family:inherit; font-size:12px; cursor:pointer; padding:0; }
.auth-forgot button:hover{ color:var(--blue); }
.auth-switch{ margin-top:20px; font-size:13px; color:var(--muted); }
.auth-switch button{
  border:0; background:none; color:var(--blue); font-weight:900; font-family:inherit;
  font-size:13px; cursor:pointer; padding:0;
}
.auth-legal{ max-width:340px; text-align:center; font-size:11.5px; color:var(--muted-2); line-height:1.7; margin-top:18px; }
/* Honeypot — kept in the accessibility tree (not display:none, which some
   screen readers still announce) but pushed fully off-canvas and excluded
   from tab order, so no sighted or keyboard user ever notices or fills it. */
.hp-field{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

/* =================================================================
   MOTION POLISH — entrance reveals, hover/press feedback, ambient
   accents. Everything here is decorative: content is fully visible and
   usable without it, and prefers-reduced-motion switches it all off
   (see the block at the end of this section).
   ================================================================= */
:root{
  --ease-out:cubic-bezier(.22,.61,.36,1);
  --ease-spring:cubic-bezier(.34,1.56,.64,1);
}

/* --- scroll reveal (classes added by revealOnEnter() in app.js, only on
       a fresh navigation — plain re-renders like voting or typing in
       search never replay it) --- */
.rv{ opacity:0; transform:translateY(16px) scale(.985); }
.rv.rv-in{
  opacity:1; transform:none;
  transition:opacity .5s var(--ease-out) var(--rv-d,0ms), transform .65s var(--ease-spring) var(--rv-d,0ms);
}

/* --- cards: lift on hover (pointer devices), squish on press (all) --- */
.offer-row, .result-card, .promo-card, .rated-card, .soon-card, .hunt-card, .cat-tile, .hero{
  transition:transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .15s ease;
  -webkit-tap-highlight-color:transparent;
}
.offer-row:active, .result-card:active, .rated-card:active, .soon-card:active, .hunt-card:active, .cat-tile:active, button.hero:active{
  transform:scale(.97); transition-duration:.12s;
}
.thumb img, .thumb .slot, .promo-card .ph img, .promo-card .ph .slot{ transition:transform .6s var(--ease-out); }
@media (hover:hover){
  .offer-row:hover, .result-card:hover, .promo-card:hover, .rated-card:hover, .soon-card:hover, .hunt-card:hover{
    transform:translateY(-4px); box-shadow:0 14px 30px rgba(11,42,74,.13);
  }
  .cat-tile:hover{ transform:translateY(-3px); box-shadow:0 10px 20px rgba(0,180,255,.14); }
  .cat-tile:hover svg{ animation:khWiggle .55s var(--ease-out); }
  button.hero:hover{ transform:translateY(-3px); box-shadow:var(--shadow-pop); }
  .offer-row:hover .thumb img, .offer-row:hover .thumb .slot,
  .result-card:hover .thumb img, .result-card:hover .thumb .slot,
  .rated-card:hover .thumb img, .soon-card:hover .thumb img, .hunt-card:hover .thumb img,
  .promo-card:hover .ph img, .promo-card:hover .ph .slot{ transform:scale(1.08); }
  .section-title .see-all{ transition:transform .2s var(--ease-out); }
  .section-title .see-all:hover{ transform:translateX(-3px); }
  .promo-card .pcta{ transition:background .15s, transform .2s var(--ease-spring); }
  .promo-card .pcta:hover{ transform:scale(1.03); }
}
@keyframes khWiggle{ 0%,100%{ transform:rotate(0) } 30%{ transform:rotate(-12deg) scale(1.12) } 65%{ transform:rotate(8deg) } }

/* --- hero: light sweep + drifting glow blob + pulsing discount --- */
.hero::before{
  content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(110deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%);
  background-size:250% 100%; background-position:120% 0;
  animation:khShine 5.5s ease-in-out 1.2s infinite;
}
@keyframes khShine{ 0%{ background-position:120% 0 } 30%,100%{ background-position:-120% 0 } }
.hero::after{ animation:khFloat 7s ease-in-out infinite alternate; }
@keyframes khFloat{ from{ transform:translate(0,0) scale(1) } to{ transform:translate(26px,-18px) scale(1.25) } }
.hero .pct-badge, .promo-card .pbadge{ animation:khRing 2.4s ease-out infinite; }
@keyframes khRing{
  0%{ box-shadow:0 0 0 0 rgba(255,138,0,.55) }
  70%,100%{ box-shadow:0 0 0 10px rgba(255,138,0,0) }
}

/* --- brand mark motion ---
   The tag hangs from its hole: .bm-tag's origin sits on the hole, so a
   rotate reads as a swing. Speed lines streak in from the right (RTL
   "arriving") with a stagger. Plays on page entry and on hover. */
.bm-tag{ transform-box:view-box; transform-origin:4.4px -12.2px; }
.bm-line{ transform-box:fill-box; transform-origin:right center; }
.app-shell.page-enter .topbar .bm-tag{ animation:khSwing 1.1s var(--ease-out) both; }
.app-shell.page-enter .topbar .bm-line{ animation:khStreak .55s var(--ease-out) both; }
.bm-line:nth-child(2){ animation-delay:.06s !important; }
.bm-line:nth-child(3){ animation-delay:.12s !important; }
.bm-line:nth-child(4){ animation-delay:.18s !important; }
@media (hover:hover){
  .brand:hover .bm-tag, .auth-brand:hover .bm-tag{ animation:khSwing 1.1s var(--ease-out); }
  .brand:hover .bm-line, .auth-brand:hover .bm-line{ animation:khStreak .55s var(--ease-out) both; }
}
@keyframes khSwing{ 0%{ transform:rotate(0) } 20%{ transform:rotate(-14deg) } 45%{ transform:rotate(9deg) } 68%{ transform:rotate(-4deg) } 85%{ transform:rotate(1.5deg) } 100%{ transform:rotate(0) } }
@keyframes khStreak{ from{ transform:scaleX(0); opacity:0 } 60%{ opacity:1 } to{ transform:scaleX(1); opacity:1 } }

/* --- first-load splash (brandSplash() / static copy in index.html) --- */
.brand-splash{
  position:fixed; inset:0; z-index:300; display:grid; place-items:center;
  background:radial-gradient(700px 480px at 80% 10%, #154a7c 0%, var(--navy) 55%, #081F38 100%);
  color:#fff; text-align:center;
}
.bs-inner{ display:flex; flex-direction:column; align-items:center; }
.bs-words{ display:flex; flex-direction:column; align-items:center; margin-top:14px; animation:khRise .6s var(--ease-out) .35s both; }
.bs-kh{ font-family:'Tajawal',sans-serif; font-weight:900; font-size:46px; line-height:1; }
.bs-en{ font-family:'Montserrat',sans-serif; font-weight:800; font-size:12px; letter-spacing:7px; color:#9FDDF8; margin-top:6px; margin-inline-start:7px; }
.bs-tag{ margin-top:12px; font-family:'Tajawal',sans-serif; font-weight:500; font-size:14px; color:#BFE9FF; opacity:.85; animation:khRise .6s var(--ease-out) .5s both; }
.bs-bar{ width:120px; height:3px; margin-top:26px; border-radius:99px; background:rgba(255,255,255,.12); overflow:hidden; animation:khRise .4s ease .7s both; }
.bs-bar i{ display:block; width:40%; height:100%; border-radius:99px; background:linear-gradient(90deg, var(--blue), var(--orange)); animation:khLoad 1.1s ease-in-out infinite; }
.bm-intro .bm-tag{ animation:khDrop .9s var(--ease-spring, cubic-bezier(.34,1.56,.64,1)) both, khSwing 1.4s var(--ease-out) .75s; }
.bm-intro .bm-line{ animation:khStreak .5s var(--ease-out) .45s both; }
.bm-intro .bm-line:nth-child(2){ animation-delay:.52s !important; }
.bm-intro .bm-line:nth-child(3){ animation-delay:.59s !important; }
.bm-intro .bm-line:nth-child(4){ animation-delay:.66s !important; }
@keyframes khDrop{ from{ transform:translateY(-26px) rotate(-25deg); opacity:0 } to{ transform:none; opacity:1 } }
@keyframes khRise{ from{ transform:translateY(10px); opacity:0 } to{ transform:none; opacity:1 } }
@keyframes khLoad{ from{ transform:translateX(160%) } to{ transform:translateX(-260%) } }
.notif-dot{ animation:khPop .5s var(--ease-spring) both; }

/* --- bottom nav: breathing FAB + active-tab pop and dot --- */
.fab-circle{ animation:khFabGlow 2.8s ease-in-out infinite; transition:transform .25s var(--ease-spring); }
.fab-circle svg{ transition:transform .35s var(--ease-spring); }
@keyframes khFabGlow{
  0%,100%{ box-shadow:0 8px 16px rgba(255,138,0,.45), 0 0 0 0 rgba(255,138,0,.35) }
  50%{ box-shadow:0 8px 16px rgba(255,138,0,.45), 0 0 0 9px rgba(255,138,0,0) }
}
@media (hover:hover){
  .nav-item.fab-item:hover .fab-circle{ transform:translateY(-2px) scale(1.06); }
  .nav-item.fab-item:hover .fab-circle svg{ transform:rotate(90deg); }
}
.nav-item{ position:relative; transition:color .2s ease; }
.nav-item:active svg{ transform:scale(.85); }
.nav-item svg{ transition:transform .2s var(--ease-spring); }
.nav-item.active::after{
  content:''; position:absolute; bottom:-3px; left:50%; width:5px; height:5px; margin-left:-2.5px;
  border-radius:999px; background:var(--blue);
}
.app-shell.page-enter .nav-item.active svg{ animation:khNavPop .55s var(--ease-spring); }
.app-shell.page-enter .nav-item.active::after{ animation:khPop .45s var(--ease-spring) .1s both; }
@keyframes khNavPop{ 0%{ transform:translateY(0) scale(1) } 40%{ transform:translateY(-5px) scale(1.18) } 100%{ transform:none } }
@keyframes khPop{ from{ transform:scale(0); opacity:0 } to{ transform:scale(1); opacity:1 } }

/* --- toast springs in instead of sliding --- */
.toast{ transform:translateX(50%) translateY(18px) scale(.9); transition:opacity .2s ease, transform .45s var(--ease-spring); }
.toast.show{ transform:translateX(50%) translateY(0) scale(1); }

/* --- vote burst (spawned on <body> by voteBurst() in app.js) --- */
.vote-burst{
  position:fixed; z-index:200; pointer-events:none; font-size:18px; line-height:1;
  transform:translate(-50%,-50%); animation:khBurst .9s var(--ease-out) forwards;
}
@keyframes khBurst{
  0%{ transform:translate(-50%,-50%) scale(.4); opacity:1 }
  60%{ opacity:1 }
  100%{ transform:translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.15) rotate(var(--rot)); opacity:0 }
}

@media (prefers-reduced-motion: reduce){
  .rv{ opacity:1; transform:none; }
  .hero::before, .hero::after, .hero .pct-badge, .promo-card .pbadge, .bm-tag, .bm-line, .bs-words, .bs-tag, .bs-bar, .notif-dot,
  .fab-circle, .app-shell.page-enter .nav-item.active svg, .app-shell.page-enter .nav-item.active::after,
  .hero-timer{ animation:none; }
  .vote-burst{ display:none; }
  .offer-row, .result-card, .promo-card, .rated-card, .soon-card, .hunt-card, .cat-tile, .hero,
  .thumb img, .thumb .slot, .toast{ transition:opacity .2s ease; }
  .offer-row:hover, .result-card:hover, .promo-card:hover, .rated-card:hover, .soon-card:hover, .hunt-card:hover,
  .cat-tile:hover, button.hero:hover{ transform:none; }
}
/* give the hover lift room — overflow-x:auto on a scroller also clips vertically */
.hscroll{ padding-top:6px; padding-bottom:12px; }

/* =================================================================
   MOTION POLISH — inner pages (detail, rate, leaderboard, profiles,
   account, notifications, auth, forms). Entrance effects are keyed to
   .page-enter so they only play on a fresh navigation, never on the
   re-renders that voting/saving/typing trigger.
   ================================================================= */

/* --- universal button feedback --- */
.big-cta, .act-btn, .auth-submit, .oauth-btn, .chip, .seg-btn, .dur-btn, .tab-pill, .level-tab,
.rate-choice, .leader-row, .notif-row, .follow-card, .heat-card, .sub-row, .icon-btn, .city-select, .sort-btn{
  transition:transform .22s var(--ease-spring), box-shadow .22s var(--ease-out), background .15s ease, border-color .15s ease, color .15s ease;
  -webkit-tap-highlight-color:transparent;
}
.big-cta:active, .act-btn:active, .auth-submit:active, .oauth-btn:active, .chip:active, .seg-btn:active, .dur-btn:active,
.tab-pill:active, .level-tab:active, .rate-choice:active, .leader-row:active, .notif-row:active, .follow-card:active,
.heat-card:active, .icon-btn:active, .city-select:active, .sort-btn:active{
  transform:scale(.95); transition-duration:.1s;
}
@media (hover:hover){
  .big-cta:hover, .auth-submit:hover:not(:disabled){ transform:translateY(-2px); box-shadow:0 10px 22px rgba(0,180,255,.3); }
  .big-cta.orange:hover{ box-shadow:0 10px 22px rgba(255,138,0,.32); }
  .act-btn:hover{ transform:translateY(-2px); box-shadow:0 8px 18px rgba(11,42,74,.16); }
  .leader-row:hover, .notif-row:hover, .heat-card:hover, .sub-row:hover{ transform:translateY(-3px); box-shadow:var(--shadow-card); }
  .follow-card:hover{ transform:translateY(-3px) rotate(-1deg); box-shadow:var(--shadow-card); }
  .rate-choice:hover{ transform:translateY(-4px); box-shadow:var(--shadow-card); }
  .rate-choice:hover svg{ animation:khHop .5s var(--ease-spring); }
  .icon-btn:hover{ transform:scale(1.08); }
  .chip:hover, .seg-btn:hover, .dur-btn:hover, .level-tab:hover{ transform:translateY(-1px); }
}
@keyframes khHop{ 0%,100%{ transform:translateY(0) } 45%{ transform:translateY(-6px) scale(1.15) } }
.rate-choice.picked svg{ animation:khPop .45s var(--ease-spring); }

/* form fields: soft focus halo */
.field-input, .auth-field input, .search-bar{ transition:border-color .2s ease, box-shadow .25s ease, background .2s ease; }
.field-input:focus, .auth-field input:focus{ box-shadow:0 0 0 4px rgba(0,180,255,.14); }
.search-bar.focus{ box-shadow:0 0 0 4px rgba(0,180,255,.14); }

/* --- offer detail --- */
.app-shell.page-enter .gallery-slide img{ animation:khZoomIn 1.1s var(--ease-out) both; }
@keyframes khZoomIn{ from{ transform:scale(1.08); } to{ transform:scale(1); } }
.app-shell.page-enter .big-price{ animation:khPriceIn .6s var(--ease-spring) .15s both; }
@keyframes khPriceIn{ from{ opacity:0; transform:translateY(10px) scale(.85); } to{ opacity:1; transform:none; } }
.discount-callout .v{ animation:khRing 2.4s ease-out infinite; }
.app-shell.page-enter .cd-cell{ animation:khPop .5s var(--ease-spring) both; }
.app-shell.page-enter .cd-cell:nth-child(2){ animation-delay:.08s; }
.app-shell.page-enter .cd-cell:nth-child(3){ animation-delay:.16s; }
.app-shell.page-enter .cd-cell:nth-child(4){ animation-delay:.24s; }
.countdown-box{ position:relative; overflow:hidden; }
.countdown-box::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(110deg, transparent 35%, rgba(255,255,255,.1) 50%, transparent 65%);
  background-size:250% 100%; background-position:120% 0; animation:khShine 6s ease-in-out 2s infinite;
}
.app-shell.page-enter .heat-bar > span, .app-shell.page-enter .level-card .bar > span{
  transform-origin:right; animation:khGrowX 1s var(--ease-out) .35s both;
}
@keyframes khGrowX{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }
.app-shell.page-enter .heat-num b{ animation:khPop .55s var(--ease-spring) .25s both; }
.app-shell.page-enter .sticky-actions{ animation:khSlideUp .5s var(--ease-out) .1s both; }
@keyframes khSlideUp{ from{ transform:translateY(100%); opacity:0; } to{ transform:none; opacity:1; } }
.act-btn.wa svg{ animation:khNudge 3.2s ease-in-out 1.5s infinite; }
@keyframes khNudge{ 0%,88%,100%{ transform:rotate(0) } 91%{ transform:rotate(-14deg) } 94%{ transform:rotate(12deg) } 97%{ transform:rotate(-6deg) } }
.act-btn.save.on svg{ animation:khPop .4s var(--ease-spring); }

/* --- rate sheet slides up over the dimmed ghost page --- */
.app-shell.page-enter .rate-sheet{ animation:khSheetUp .55s var(--ease-spring) both; }
@keyframes khSheetUp{ from{ transform:translateY(100%); } to{ transform:none; } }
.app-shell.page-enter .rate-ghost{ animation:khFadeTo .5s ease both; }
@keyframes khFadeTo{ from{ opacity:0; } to{ opacity:.28; } }
.app-shell.page-enter .rate-choice{ animation:khPriceIn .5s var(--ease-spring) both; }
.app-shell.page-enter .rate-choice:nth-child(1){ animation-delay:.25s; }
.app-shell.page-enter .rate-choice:nth-child(2){ animation-delay:.33s; }

/* --- leaderboard podium: bars rise 3rd -> 2nd -> 1st, then avatars drop --- */
.app-shell.page-enter .podium .bar{ transform-origin:bottom; animation:khGrowY .7s var(--ease-spring) both; }
.app-shell.page-enter .podium .p:nth-child(3) .bar{ animation-delay:.1s; }
.app-shell.page-enter .podium .p:nth-child(1) .bar{ animation-delay:.28s; }
.app-shell.page-enter .podium .p:nth-child(2) .bar{ animation-delay:.46s; }
@keyframes khGrowY{ from{ transform:scaleY(0); } to{ transform:scaleY(1); } }
.app-shell.page-enter .podium .circ, .app-shell.page-enter .podium .nm, .app-shell.page-enter .podium .pt{ animation:khDrop .55s var(--ease-spring) both; }
.app-shell.page-enter .podium .p:nth-child(3) :is(.circ,.nm,.pt){ animation-delay:.35s; }
.app-shell.page-enter .podium .p:nth-child(1) :is(.circ,.nm,.pt){ animation-delay:.5s; }
.app-shell.page-enter .podium .p:nth-child(2) :is(.nm,.pt){ animation-delay:.7s; }
@keyframes khDrop{ from{ opacity:0; transform:translateY(-18px) scale(.7); } to{ opacity:1; transform:none; } }
/* 1st place (middle column) keeps a glowing ring */
.podium .p:nth-child(2) .circ{ animation:khRing 2.4s ease-out 1.4s infinite; }
.app-shell.page-enter .podium .p:nth-child(2) .circ{ animation:khDrop .55s var(--ease-spring) .7s both, khRing 2.4s ease-out 1.4s infinite; }

/* --- profile / seller / account heroes --- */
.profile-hero::after{ animation:khFloat 8s ease-in-out infinite alternate; }
.app-shell.page-enter .profile-top .av, .app-shell.page-enter .account-card .av{ animation:khPop .55s var(--ease-spring) .1s both; }
.app-shell.page-enter .stat-chip, .app-shell.page-enter .seller-stat{ animation:khPriceIn .5s var(--ease-spring) both; }
.app-shell.page-enter :is(.stat-chip,.seller-stat):nth-child(1){ animation-delay:.15s; }
.app-shell.page-enter :is(.stat-chip,.seller-stat):nth-child(2){ animation-delay:.23s; }
.app-shell.page-enter :is(.stat-chip,.seller-stat):nth-child(3){ animation-delay:.31s; }
.app-shell.page-enter :is(.stat-chip,.seller-stat):nth-child(4){ animation-delay:.39s; }

/* --- notifications --- */
.notif-unread-dot{ animation:khRingDot 2s ease-out infinite; }
@keyframes khRingDot{ 0%{ box-shadow:0 0 0 0 rgba(255,138,0,.5) } 70%,100%{ box-shadow:0 0 0 7px rgba(255,138,0,0) } }

/* --- auth card --- */
.app-shell.page-enter .auth-card{ animation:khCardIn .6s var(--ease-spring) both; }
@keyframes khCardIn{ from{ opacity:0; transform:translateY(24px) scale(.96); } to{ opacity:1; transform:none; } }

@media (prefers-reduced-motion: reduce){
  .app-shell.page-enter *, .app-shell.page-enter *::before, .app-shell.page-enter *::after,
  .discount-callout .v, .countdown-box::before, .act-btn.wa svg, .notif-unread-dot, .profile-hero::after,
  .podium .p:nth-child(2) .circ, .rate-choice.picked svg, .act-btn.save.on svg{ animation:none !important; }
  .big-cta:hover, .act-btn:hover, .leader-row:hover, .notif-row:hover, .heat-card:hover, .sub-row:hover,
  .follow-card:hover, .rate-choice:hover, .icon-btn:hover, .auth-submit:hover{ transform:none; }
}

/* =================================================================
   DESIGN LAYER — one visual language across every page.
   Same brand (navy / blue / orange); what changes is consistency:
   - a soft tinted canvas so white cards read as objects, not holes
   - ONE card recipe (white, hairline border, soft layered shadow)
   - ONE "brand surface" recipe for every navy block (gradient + dot
     texture), so hero, countdown, profile headers and topbar match
   - ONE accent language: orange gradient = discount/action,
     blue = price/selection
   Overrides only — the component rules above stay the source of layout.
   ================================================================= */
:root{
  --canvas:#F4F7FB;
  --hair:rgba(11,42,74,.07);
  --shadow-soft:0 1px 2px rgba(11,42,74,.04), 0 6px 18px rgba(11,42,74,.06);
  --shadow-lift:0 2px 4px rgba(11,42,74,.05), 0 16px 34px rgba(11,42,74,.12);
  --grad-orange:linear-gradient(135deg,#FF9B30 0%,#FF7A00 100%);
  --grad-blue:linear-gradient(135deg,#1DB8F5 0%,#0092C9 100%);
  --grad-navy:linear-gradient(155deg,#123A63 0%,#0B2A4A 55%,#081F38 100%);
  --dots:radial-gradient(rgba(255,255,255,.075) 1px, transparent 1.3px);
}

/* --- canvas --- */
body{
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(0,180,255,.13), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(255,138,0,.10), transparent 60%),
    var(--bg);
  background-attachment:fixed;
}
.app-shell{ background:var(--canvas); }

/* --- brand surfaces: every navy block shares one gradient + dot texture --- */
.topbar, .hero, .countdown-box, .profile-hero, .state-panel, .rate-backdrop{
  background-color:var(--navy);
  background-image:var(--dots), var(--grad-navy);
  background-size:16px 16px, 100% 100%;
}
.topbar{
  box-shadow:0 6px 20px rgba(11,42,74,.18);
  border-radius:0 0 22px 22px;
}
.topbar::after{
  content:""; position:absolute; left:22px; right:22px; bottom:0; height:2px; border-radius:2px;
  background:linear-gradient(90deg, transparent, var(--blue) 25%, var(--orange) 75%, transparent);
  opacity:.8;
}
.hero{ box-shadow:0 14px 30px rgba(11,42,74,.22); }

/* inner-page header: sticky frosted bar instead of loose floating title */
.back-row{
  position:sticky; top:0; z-index:30;
  padding:12px 16px 12px;
  background:rgba(244,247,251,.86);
  -webkit-backdrop-filter:saturate(1.4) blur(14px); backdrop-filter:saturate(1.4) blur(14px);
  border-bottom:1px solid var(--hair);
}
.back-row .title{ font-size:17px; }
.icon-btn.light{ background:#fff; box-shadow:var(--shadow-soft); }

/* --- one card recipe --- */
.offer-row, .result-card, .rated-card, .hunt-card, .leader-row, .notif-row, .sub-row,
.heat-card, .seller-panel, .review-card, .filter-box, .auth-card, .rate-choice, .cat-tile,
.account-card, .follow-card, .level-card{
  background:#fff;
  border:1px solid var(--hair);
  box-shadow:var(--shadow-soft);
}
.notif-row.unread{ background:linear-gradient(0deg, rgba(0,180,255,.06), rgba(0,180,255,.06)), #fff; border-color:rgba(0,180,255,.25); }
.soon-card{ background:#fff; border:1px solid rgba(176,74,74,.16); box-shadow:var(--shadow-soft); }
.promo-card{ border:1px solid rgba(255,138,0,.28); }
.offer-row:hover, .result-card:hover, .cat-tile:hover, .heat-card:hover, .leader-row:hover, .notif-row:hover{ border-color:rgba(0,180,255,.35); }
@media (hover:hover){
  .offer-row:hover, .result-card:hover, .rated-card:hover, .soon-card:hover, .hunt-card:hover,
  .leader-row:hover, .notif-row:hover, .sub-row:hover, .heat-card:hover{ box-shadow:var(--shadow-lift); }
}
.vote-col{ background:var(--canvas); }
.result-card .thumb{ height:128px; }

/* --- section headings: gradient tick + tinted icon --- */
.section-title{ font-size:16.5px; padding-top:20px; }
.section-title > span:first-child{ display:inline-flex; align-items:center; gap:7px; }
.section-title > span:first-child::before{
  content:""; width:4px; height:18px; border-radius:4px; flex:0 0 auto;
  background:linear-gradient(180deg, var(--orange), var(--blue));
}
.section-title > span:first-child svg{ color:var(--orange); }
.section-title .see-all{
  background:rgba(0,180,255,.09); padding:5px 11px; border-radius:999px; font-weight:900;
}

/* --- categories: each tile gets its own tinted icon badge --- */
.cat-tile{ padding:12px 4px 10px; border-radius:20px; }
.cat-tile svg{
  width:40px; height:40px; padding:10px; border-radius:14px; margin:0 auto;
  --t:0,166,230; color:rgb(var(--t)); background:rgba(var(--t),.11);
}
.cat-tile:nth-child(6n+2) svg{ --t:255,122,0; }
.cat-tile:nth-child(6n+3) svg{ --t:27,140,90; }
.cat-tile:nth-child(6n+4) svg{ --t:124,77,220; }
.cat-tile:nth-child(6n+5) svg{ --t:220,60,110; }
.cat-tile:nth-child(6n+6) svg{ --t:8,33,62; }
.cat-tile .cn{ margin-top:7px; font-size:11px; }

/* --- search + chips --- */
.search-bar{ background:#fff; border:1px solid var(--hair); box-shadow:var(--shadow-soft); }
.chip, .city-select, .seg-btn, .dur-btn{ background:#fff; border:1px solid var(--line); }
.chip.on, .city-select.on{ background:var(--navy); border-color:var(--navy); box-shadow:0 4px 12px rgba(11,42,74,.2); }
.seg-btn.on, .dur-btn.on{ background:var(--grad-blue); border-color:transparent; box-shadow:0 4px 12px rgba(0,146,201,.28); }
.filter-box{ border-radius:24px; }

/* --- accents: orange gradient = discount / primary action --- */
.pct-badge, .thumb .badge, .promo-card .pbadge, .discount-callout .v{
  background:var(--grad-orange); color:#fff; box-shadow:0 3px 10px rgba(255,122,0,.32);
}
.big-cta, .auth-submit{ background:var(--grad-blue); box-shadow:0 8px 18px rgba(0,146,201,.28); }
.big-cta.orange, .promo-card .pcta{ background:var(--grad-orange); box-shadow:0 8px 18px rgba(255,122,0,.3); }
.fab-circle{ background:var(--grad-orange); }
.act-btn.wa{ background:linear-gradient(135deg,#34DC75,#1FB85A); box-shadow:0 8px 18px rgba(37,211,102,.3); }
.act-btn.call{ background:var(--grad-navy); box-shadow:0 8px 18px rgba(11,42,74,.25); }
.big-price{ background:var(--grad-blue); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; padding-bottom:2px; }
.heat-bar > span, .level-card .bar > span{ background:var(--grad-orange); }

/* --- offer detail: content sheet overlaps the photo --- */
.hero-media + .px{
  position:relative; z-index:1; margin-top:-24px; padding-top:22px !important;
  background:var(--canvas); border-radius:26px 26px 0 0;
}
.hero-media .dots-row{ bottom:38px; }
.fab{ background:rgba(255,255,255,.92); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.sticky-actions{
  background:rgba(255,255,255,.9); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border-top:1px solid var(--hair); box-shadow:0 -8px 24px rgba(11,42,74,.06);
}

/* --- bottom nav: frosted, lifted --- */
.bottom-nav{
  background:rgba(255,255,255,.88);
  -webkit-backdrop-filter:saturate(1.5) blur(16px); backdrop-filter:saturate(1.5) blur(16px);
  border-top:1px solid var(--hair);
  border-radius:24px 24px 0 0;
  box-shadow:0 -10px 30px rgba(11,42,74,.08);
}
.fab-circle{ border-color:var(--canvas); }

/* --- empty states get a face --- */
.empty-state:not(:has(.spinner))::before{
  content:"🏷️"; display:block; font-size:38px; margin-bottom:10px;
  filter:drop-shadow(0 6px 10px rgba(11,42,74,.15));
}

/* --- auth --- */
.auth-wrap{ background:transparent; }
.auth-card{ border-radius:28px; box-shadow:var(--shadow-lift); }

/* --- toast matches the brand surface --- */
.toast{ background:var(--grad-navy); box-shadow:0 12px 30px rgba(11,42,74,.35); }

/* =================================================================
   SHOP PAGE — cover banner + shop photo
   ================================================================= */
/* Cover: proportional banner (was a fixed 130px strip — on a wide screen
   the photo shrank to a sliver in the middle of a huge empty band). The
   blurred copy fills the frame, the real photo sits uncropped on top. */
.cover{
  width:100%; height:clamp(150px, 40vw, 300px); /* ~5:2 on phones, capped on desktop */
  overflow:hidden; border-radius:0 0 26px 26px;
  background:var(--navy);
}
.cover::after{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:1;
  background:linear-gradient(180deg, rgba(11,42,74,.28) 0%, transparent 30%, transparent 62%, rgba(11,42,74,.38) 100%);
}
.cover .media-fab-row{ z-index:2; }
.cover-empty{
  position:absolute; inset:0;
  background-color:var(--navy);
  background-image:var(--dots), radial-gradient(420px 220px at 15% 110%, rgba(255,138,0,.35), transparent 70%), radial-gradient(420px 220px at 90% -10%, rgba(0,180,255,.4), transparent 70%), var(--grad-navy);
  background-size:16px 16px, 100% 100%, 100% 100%, 100% 100%;
}
.cover-edit{
  position:absolute; z-index:2; bottom:12px; inset-inline-end:14px;
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 13px; border-radius:999px; border:0; cursor:pointer;
  font:inherit; font-size:12px; font-weight:900; color:var(--ink);
  background:rgba(255,255,255,.9); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  box-shadow:0 6px 16px rgba(11,42,74,.2);
  transition:transform .2s var(--ease-spring), background .15s;
}
.cover-edit:hover{ background:#fff; transform:translateY(-1px); }
.cover-edit svg{ width:14px; height:14px; }

/* Shop photo: bigger rounded square that overlaps the cover, with an edit
   badge for the owner. */
.shop-logo-wrap{ position:relative; flex:0 0 auto; margin-top:-38px; z-index:2; }
.seller-id-row .av, .shop-logo-wrap .av{
  width:76px; height:76px; margin-top:0; border-radius:24px; font-size:26px;
  border:3px solid #fff; box-shadow:0 10px 24px rgba(11,42,74,.2);
  background:var(--grad-navy);
}
.shop-logo-img{ width:100%; height:100%; object-fit:cover; display:block; background:#fff; }
.promo-card .pshop .av, .seller-strip .avatar, .follow-card .av{ overflow:hidden; }
.logo-edit{
  position:absolute; bottom:-5px; inset-inline-start:-5px;
  width:30px; height:30px; border-radius:999px; border:2.5px solid #fff; cursor:pointer;
  display:grid; place-items:center; color:#fff; background:var(--grad-blue);
  box-shadow:0 4px 12px rgba(0,146,201,.4);
  transition:transform .2s var(--ease-spring);
}
.logo-edit:hover{ transform:scale(1.1); }
.logo-edit svg{ width:13px; height:13px; }
.cover-edit.busy, .logo-edit.busy{ opacity:.6; pointer-events:none; animation:khpulse 1s infinite; }
.seller-id-row{ position:relative; z-index:2; }

/* edit-shop page preview */
.shop-media-edit{ position:relative; margin:4px 0 48px; }
.shop-media-edit .cover{ border-radius:22px; }
.shop-media-edit .shop-logo-wrap{ position:absolute; bottom:-40px; inset-inline-start:16px; margin-top:0; }

/* shop stats + contact buttons follow the card recipe */
.seller-stat{ background:#fff; border:1px solid var(--hair); box-shadow:var(--shadow-soft); }
.seller-cta.ghost{ background:#fff; border:1px solid var(--line); }
.seller-cta.primary{ background:var(--grad-blue); box-shadow:0 6px 16px rgba(0,146,201,.28); }
.seller-strip{ background:#fff; border:1px solid var(--hair); box-shadow:var(--shadow-soft); }

/* page banners that used to be flat inline navy (leaderboard) */
.page-banner{
  color:#fff; padding:18px 18px 26px; border-radius:0 0 26px 26px;
  background-color:var(--navy);
  background-image:var(--dots), var(--grad-navy);
  background-size:16px 16px, 100% 100%;
  box-shadow:0 10px 26px rgba(11,42,74,.18);
}
/* top-align so the photo's negative margin actually lifts it into the
   cover; the name/city then sit just under the cover beside it */
.seller-id-row{ align-items:flex-start; }
.seller-id-row > div:not(.shop-logo-wrap){ padding-top:10px; }

/* --- promo sheet (upgrade an offer: pay now or enter a code) + payment result page --- */
.psheet-backdrop{
  position:fixed; inset:0; z-index:200; background:rgba(11,42,74,.55);
  display:flex; align-items:flex-end; justify-content:center;
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
}
.psheet{
  width:100%; max-width:520px; max-height:88vh; overflow:auto;
  background:#fff; border-radius:28px 28px 0 0; padding:18px 18px 24px;
  animation:khSheetUp .35s var(--ease-spring) both;
}
.psheet-h{ display:flex; align-items:flex-start; gap:10px; }
.psheet-title{ font-weight:900; font-size:17px; }
.psheet-sub{ font-size:12px; color:var(--muted); margin-top:3px; max-width:260px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.psheet-x{ margin-inline-start:auto; width:34px; height:34px; border-radius:50%; border:0; background:var(--warm-bg); font-size:20px; line-height:1; cursor:pointer; font-family:inherit; }
.psheet-tabs{ display:flex; gap:6px; margin:14px 0 4px; background:var(--warm-bg); padding:4px; border-radius:14px; }
.psheet-tab{ flex:1; border:0; background:transparent; padding:10px 6px; border-radius:11px; font:inherit; font-weight:800; font-size:12.5px; color:var(--muted); cursor:pointer; }
.psheet-tab.on{ background:#fff; color:var(--navy); box-shadow:0 2px 8px rgba(11,42,74,.1); }
.psheet-body{ padding-top:8px; }
.psheet-group{ margin-top:12px; }
.psheet-gt{ font-weight:900; font-size:14px; }
.psheet-gd{ font-size:11.5px; color:var(--muted); line-height:1.7; margin-top:2px; }
.psheet-opts{ display:flex; gap:8px; margin-top:8px; }
.psheet-opt{ flex:1; border:1.5px solid var(--line); background:#fff; border-radius:14px; padding:10px 6px; font:inherit; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:2px; }
.psheet-opt b{ color:var(--blue); font-size:15px; }
.psheet-opt span{ font-size:11.5px; color:var(--muted); }
.psheet-opt.on{ border-color:var(--navy); box-shadow:0 0 0 2px var(--navy) inset; }
.psheet-go{ width:100%; margin-top:16px; border:0; border-radius:16px; padding:14px; font:inherit; font-weight:900; font-size:14px; color:#fff; cursor:pointer; background:var(--grad-navy, var(--navy)); }
.psheet-go:disabled{ opacity:.6; cursor:default; }
.pay-result{ text-align:center; padding:26px 8px; display:flex; flex-direction:column; align-items:center; gap:10px; }
.pay-ic{ width:64px; height:64px; border-radius:50%; background:var(--green-bg); color:var(--green-fg); display:grid; place-items:center; }
.pay-t{ font-weight:900; font-size:18px; }
.pay-d{ font-size:13px; color:var(--muted); line-height:1.8; }
.pay-code{ font-weight:900; font-size:20px; letter-spacing:1px; padding:10px 18px; border:2px dashed var(--line); border-radius:14px; }

/* =================================================================
   PAYMENTS — upgrade sheet, result page, prices page, owner panel.
   One colour per upgrade type everywhere it appears:
   featured = orange, pinned = blue, duration = green.
   ================================================================= */
.t-featured{ --tc:255,122,0; }
.t-pinned{ --tc:0,146,201; }
.t-duration{ --tc:27,140,90; }

/* ---------- upgrade sheet ---------- */
.psheet-backdrop{ background:rgba(8,33,62,.5); animation:khFadeIn .2s ease both; }
@keyframes khFadeIn{ from{ opacity:0 } to{ opacity:1 } }
.psheet{
  max-width:500px; padding:8px 18px calc(22px + env(safe-area-inset-bottom));
  border-radius:30px 30px 0 0; box-shadow:0 -20px 50px rgba(8,33,62,.25);
  animation:khSheetUp .32s var(--ease-out) both;
}
.ps-grip{ width:44px; height:5px; border-radius:99px; background:var(--line); margin:0 auto 12px; }
.psheet-h{ align-items:center; gap:12px; }
.ps-hero-ic{
  width:44px; height:44px; flex:0 0 44px; border-radius:15px; display:grid; place-items:center; color:#fff;
  background:var(--grad-orange); box-shadow:0 8px 18px rgba(255,122,0,.35);
}
.psheet-title{ font-size:18px; }
.psheet-sub{ max-width:none; }
.psheet-x{ display:grid; place-items:center; background:var(--canvas); color:var(--ink); transition:background .15s; }
.psheet-x:hover{ background:var(--line); }

.ps-offer{
  display:flex; align-items:center; gap:11px; flex-wrap:wrap; margin-top:14px; padding:10px;
  border-radius:18px; background:var(--canvas); border:1px solid var(--hair);
}
.ps-offer .thumb{ width:48px; height:48px; border-radius:12px; }
.ps-offer-b{ flex:1; min-width:0; }
.ps-offer-b .t{ font-weight:800; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ps-offer-b .p{ font-weight:900; font-size:14px; color:var(--blue); margin-top:2px; }
.ps-active{ display:flex; gap:6px; flex-wrap:wrap; width:100%; }
.ps-active span{ display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:800; color:var(--green-fg); background:var(--green-bg); padding:4px 9px; border-radius:99px; }

.psheet-tabs{ background:var(--canvas); margin:16px 0 2px; }
.psheet-tab{ display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.psheet-tab.on{ color:var(--navy); box-shadow:0 2px 10px rgba(8,33,62,.1); }

.ps-step{ display:flex; align-items:center; gap:8px; font-weight:900; font-size:13px; margin:16px 0 9px; }
.ps-step span{ width:20px; height:20px; border-radius:99px; display:grid; place-items:center; font-size:11px; color:#fff; background:var(--navy); }

.ps-types{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.ps-type{
  position:relative; /* colour comes from .t-<type> (--tc) */
  display:flex; flex-direction:column; align-items:center; gap:4px; padding:12px 6px 11px;
  border-radius:18px; border:1.5px solid var(--line); background:#fff; cursor:pointer; font:inherit; color:var(--ink);
  transition:border-color .15s, box-shadow .15s, transform .15s;
}
.ps-type-ic{ width:36px; height:36px; border-radius:12px; display:grid; place-items:center; color:rgb(var(--tc)); background:rgba(var(--tc),.12); }
.ps-type b{ font-size:13.5px; }
.ps-type i{ font-style:normal; font-size:10.5px; color:var(--muted); font-weight:700; }
.ps-type.on{ border-color:rgb(var(--tc)); box-shadow:0 0 0 3px rgba(var(--tc),.15), 0 8px 18px rgba(var(--tc),.15); }
.ps-type.on .ps-type-ic{ color:#fff; background:rgb(var(--tc)); }
.ps-type.on::after{
  content:""; position:absolute; top:7px; inset-inline-end:7px; width:8px; height:8px; border-radius:99px; background:rgb(var(--tc));
}
.ps-desc{ margin-top:10px; font-size:12px; line-height:1.75; color:var(--muted); background:var(--canvas); border-radius:14px; padding:10px 12px; }

.ps-days{ display:flex; gap:8px; }
.ps-day{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:1px; padding:10px 4px;
  border-radius:16px; border:1.5px solid var(--line); background:#fff; cursor:pointer; font:inherit; color:var(--ink);
  transition:border-color .15s, background .15s;
}
.ps-day b{ font-size:19px; line-height:1.1; }
.ps-day span{ font-size:10.5px; color:var(--muted); font-weight:700; }
.ps-day em{ font-style:normal; font-weight:900; font-size:12.5px; color:var(--blue); margin-top:4px; }
.ps-day.on{ border-color:var(--navy); background:var(--navy); color:#fff; }
.ps-day.on span{ color:rgba(255,255,255,.7); }
.ps-day.on em{ color:#7FD6FF; }

.ps-sum{ margin-top:14px; border:1.5px dashed var(--line-2); border-radius:18px; padding:12px 14px; }
.ps-sum-row{ display:flex; justify-content:space-between; align-items:center; font-weight:800; font-size:13px; }
.ps-sum-row b{ font-size:20px; font-weight:900; color:var(--ink); }
.ps-sum-note{ display:flex; align-items:center; gap:6px; margin-top:6px; font-size:11.5px; font-weight:700; color:var(--green-fg); }

.ps-pay{
  width:100%; margin-top:14px; display:flex; align-items:center; justify-content:center; gap:9px;
  border:0; border-radius:18px; padding:15px; cursor:pointer; font:inherit; font-weight:900; font-size:15px; color:#fff;
  background:var(--grad-orange); box-shadow:0 10px 22px rgba(255,122,0,.32);
  transition:transform .15s, box-shadow .15s, opacity .15s;
}
.ps-pay:hover:not(:disabled){ transform:translateY(-1px); box-shadow:0 14px 26px rgba(255,122,0,.38); }
.ps-pay:active:not(:disabled){ transform:scale(.98); }
.ps-pay:disabled{ opacity:.6; cursor:default; box-shadow:none; }
.ps-pay.alt{ background:var(--grad-blue); box-shadow:0 10px 22px rgba(0,146,201,.28); }
.spinner.light{ border-color:rgba(255,255,255,.35); border-top-color:#fff; margin:0; }
.ps-trust{ display:flex; align-items:center; justify-content:center; gap:6px; margin-top:12px; font-size:11.5px; font-weight:700; color:var(--muted); text-align:center; }
.ps-trust svg{ color:var(--green-fg); flex:0 0 auto; }
.ps-trust b{ color:var(--ink); }
.ps-trust.sub{ margin-top:4px; font-size:10.5px; color:var(--muted-2); font-weight:600; }
.ps-trust a{ color:var(--blue); font-weight:900; }

.ps-code{ text-align:center; padding:14px 0 6px; }
.ps-code-ic{ width:56px; height:56px; margin:0 auto; border-radius:18px; display:grid; place-items:center; color:var(--blue-dark); background:rgba(0,166,230,.12); }
.ps-code-t{ font-weight:900; font-size:16px; margin-top:10px; }
.ps-code-d{ font-size:12px; color:var(--muted); margin-top:4px; }
.ps-code-in{ margin-top:12px; text-align:center; font-size:18px; font-weight:900; letter-spacing:2px; text-transform:uppercase; }

/* ---------- payment result ---------- */
.pay-card{
  --pc:0,146,201;
  max-width:440px; margin:0 auto; text-align:center; background:#fff; border-radius:26px; padding:30px 20px 22px;
  border:1px solid var(--hair); box-shadow:var(--shadow-lift);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  animation:khCardIn .45s var(--ease-out) both;
}
.pay-card.ok{ --pc:27,140,90; }
.pay-card.warn{ --pc:200,110,0; }
.pay-card.bad{ --pc:169,58,58; }
.pay-card .pay-ic{
  width:76px; height:76px; border-radius:50%; display:grid; place-items:center; margin-bottom:6px;
  color:rgb(var(--pc)); background:rgba(var(--pc),.12); box-shadow:0 0 0 10px rgba(var(--pc),.06);
}
.pay-card.ok .pay-ic{ color:#fff; background:linear-gradient(135deg,#2FBF71,#1B8C5A); box-shadow:0 0 0 10px rgba(27,140,90,.1), 0 12px 24px rgba(27,140,90,.3); animation:khPop .5s var(--ease-spring) .1s both; }
.pay-card .pay-t{ font-size:19px; }
.pay-card .pay-d{ max-width:320px; }
.pay-receipt{ width:100%; margin-top:10px; border-radius:18px; background:var(--canvas); padding:4px 14px; }
.pay-receipt div{ display:flex; justify-content:space-between; gap:10px; padding:10px 0; font-size:12.5px; border-bottom:1px dashed var(--line); }
.pay-receipt div:last-child{ border-bottom:0; }
.pay-receipt span{ color:var(--muted); font-weight:700; }
.pay-receipt b{ font-weight:900; }
.pay-code{ margin-top:6px; background:var(--canvas); }
.pay-actions{ width:100%; display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.pay-btn{
  width:100%; display:flex; align-items:center; justify-content:center; gap:8px; padding:14px; border-radius:16px;
  border:0; cursor:pointer; font:inherit; font-weight:900; font-size:14px; color:#fff; background:var(--grad-navy);
  box-shadow:0 8px 18px rgba(8,33,62,.2);
}
.pay-btn.ghost{ background:#fff; color:var(--ink); border:1px solid var(--line); box-shadow:none; }
.pay-steps{ display:flex; gap:8px; margin-top:10px; font-size:11.5px; font-weight:800; }
.pay-steps span{ display:inline-flex; align-items:center; gap:4px; padding:6px 11px; border-radius:99px; background:var(--canvas); color:var(--muted); }
.pay-steps .done{ color:var(--green-fg); background:var(--green-bg); }
.pay-steps .now{ color:var(--blue-dark); background:rgba(0,166,230,.1); animation:khpulse 1.4s infinite; }

/* ---------- prices page ---------- */
.pr-hero{
  position:relative; overflow:hidden; text-align:center; color:#fff; border-radius:24px; padding:22px 18px;
  background-color:var(--navy); background-image:var(--dots), var(--grad-navy); background-size:16px 16px, 100% 100%;
  box-shadow:0 14px 30px rgba(8,33,62,.2);
}
.pr-hero-ic{ width:52px; height:52px; margin:0 auto; border-radius:17px; display:grid; place-items:center; background:var(--grad-orange); box-shadow:0 10px 20px rgba(255,122,0,.4); }
.pr-hero-t{ font-weight:900; font-size:18px; margin-top:12px; }
.pr-hero-d{ font-size:12.5px; line-height:1.8; opacity:.85; margin-top:4px; }
.pr-steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:14px 0 4px; }
.pr-step{ background:#fff; border:1px solid var(--hair); box-shadow:var(--shadow-soft); border-radius:18px; padding:12px 8px; text-align:center; }
.pr-step .n{ width:24px; height:24px; margin:0 auto 6px; border-radius:99px; display:grid; place-items:center; font-size:12px; font-weight:900; color:#fff; background:var(--navy); }
.pr-step b{ display:block; font-size:12px; line-height:1.4; }
.pr-step i{ display:block; font-style:normal; font-size:10.5px; color:var(--muted); margin-top:2px; }
.pr-card{ margin-top:12px; background:#fff; border:1px solid var(--hair); box-shadow:var(--shadow-soft); border-radius:22px; padding:15px; border-inline-start:4px solid rgb(var(--tc)); }
.pr-card-h{ display:flex; gap:11px; align-items:flex-start; }
.pr-ic{ width:38px; height:38px; flex:0 0 38px; border-radius:13px; display:grid; place-items:center; color:rgb(var(--tc)); background:rgba(var(--tc),.12); }
.pr-t{ font-weight:900; font-size:15px; }
.pr-d{ font-size:12px; color:var(--muted); line-height:1.7; margin-top:2px; }
.pr-opts{ display:flex; gap:8px; margin-top:12px; }
.pr-opt{ flex:1; text-align:center; border-radius:14px; padding:10px 4px; background:rgba(var(--tc),.07); }
.pr-opt b{ display:block; font-weight:900; font-size:15px; color:rgb(var(--tc)); }
.pr-opt span{ font-size:11px; color:var(--muted); font-weight:700; }
.pr-alt{ margin-top:16px; text-align:center; border:1.5px dashed var(--line-2); border-radius:20px; padding:14px; }
.pr-alt-t{ font-weight:900; font-size:13.5px; }
.pr-alt-d{ font-size:12px; color:var(--muted); margin-top:3px; }
.pr-alt-row{ display:flex; gap:8px; margin-top:12px; }
.pr-alt-row .act-btn{ flex:1; }
.pr-alt-row .act-btn.fb{ width:auto; }

/* ---------- owner panel on the offer page ---------- */
.owner-panel{
  margin-top:16px; border-radius:22px; padding:14px; background:#fff;
  border:1.5px solid rgba(255,122,0,.3); box-shadow:0 10px 26px rgba(255,122,0,.1);
}
.op-h{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.op-tag{ display:inline-flex; align-items:center; gap:5px; font-weight:900; font-size:12px; color:#fff; background:var(--grad-navy); padding:5px 11px; border-radius:99px; }
.op-note{ display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:700; color:var(--muted); }
.op-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin-top:12px; }
.op-stats div{ text-align:center; background:var(--canvas); border-radius:14px; padding:9px 4px; }
.op-stats b{ display:block; font-weight:900; font-size:16px; }
.op-stats i{ font-style:normal; font-size:10px; color:var(--muted); font-weight:700; }
.op-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.op-chip{ display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:800; padding:5px 10px; border-radius:99px; background:var(--canvas); color:var(--muted); }
.op-chip.feat{ color:#B85600; background:rgba(255,122,0,.12); }
.op-chip.pin{ color:var(--blue-dark); background:rgba(0,166,230,.12); }
.op-upgrade{
  width:100%; margin-top:12px; display:flex; align-items:center; gap:11px; text-align:right;
  border:0; border-radius:18px; padding:12px 14px; cursor:pointer; font:inherit; color:#fff;
  background:var(--grad-orange); box-shadow:0 10px 22px rgba(255,122,0,.3);
  transition:transform .15s, box-shadow .15s;
}
.op-upgrade:hover{ transform:translateY(-1px); box-shadow:0 14px 26px rgba(255,122,0,.36); }
.op-upgrade:active{ transform:scale(.98); }
.op-upgrade-ic{ width:38px; height:38px; flex:0 0 38px; border-radius:13px; display:grid; place-items:center; background:rgba(255,255,255,.2); }
.op-upgrade-b{ flex:1; min-width:0; }
.op-upgrade-b b{ display:block; font-size:15px; font-weight:900; }
.op-upgrade-b i{ display:block; font-style:normal; font-size:11.5px; opacity:.9; margin-top:1px; }
.op-actions{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:10px; }
.op-btn{
  display:flex; align-items:center; justify-content:center; gap:5px; padding:10px 4px; border-radius:14px;
  border:1px solid var(--line); background:#fff; cursor:pointer; font:inherit; font-weight:800; font-size:12.5px; color:var(--ink);
  transition:background .15s, border-color .15s;
}
.op-btn:hover{ background:var(--canvas); }
.op-btn.danger{ color:#A93A3A; }
.op-btn.danger:hover{ background:#FDECEC; border-color:#F3C6C6; }
.similar-scroll{ margin-inline:-18px; }

/* =================================================================
   CALMER TRANSITIONS — page entry was too busy (images zooming, prices
   popping, the logo swinging, cards bouncing in on every navigation).
   Now: a short fade on navigation, and a gentle short rise for cards as
   they scroll in. Ongoing loops that tugged at the eye are switched off.
   ================================================================= */
.app-shell.page-anim{ animation:khPageIn .18s ease-out both; }
.rv{ transform:translateY(8px); }
.rv.rv-in{ transition:opacity .3s ease-out var(--rv-d,0ms), transform .35s var(--ease-out) var(--rv-d,0ms); }
.app-shell.page-enter .topbar .bm-tag, .app-shell.page-enter .topbar .bm-line,
.app-shell.page-enter .gallery-slide img, .app-shell.page-enter .big-price, .app-shell.page-enter .cd-cell,
.app-shell.page-enter .heat-num b, .app-shell.page-enter .sticky-actions, .app-shell.page-enter .rate-choice,
.app-shell.page-enter .stat-chip, .app-shell.page-enter .seller-stat, .app-shell.page-enter .profile-top .av,
.app-shell.page-enter .account-card .av, .app-shell.page-enter .auth-card, .app-shell.page-enter .nav-item.active svg,
.app-shell.page-enter .podium .circ, .app-shell.page-enter .podium .nm, .app-shell.page-enter .podium .pt{ animation:none; }
.app-shell.page-enter .podium .bar{ animation-duration:.45s; animation-timing-function:var(--ease-out); }
.hero .pct-badge, .promo-card .pbadge, .discount-callout .v, .act-btn.wa svg, .notif-unread-dot{ animation:none; }
.podium .p:nth-child(2) .circ{ animation:none; }
/* trust line: flow as one sentence (flex split the bold "MyPay" into its own column) */
.ps-trust{ display:block; line-height:1.7; }
.ps-trust svg{ vertical-align:-3px; margin-inline-end:3px; }

/* saved offers that have since ended: still listed, visibly ended */
.offer-row.is-ended .thumb{ filter:grayscale(1); opacity:.65; }
.offer-row.is-ended .offer-title, .offer-row.is-ended .offer-price-row{ opacity:.7; }
.ended-tag{ display:inline-flex; align-items:center; gap:4px; margin-top:6px; font-size:10.5px; font-weight:900; color:var(--muted); background:var(--canvas); padding:3px 9px; border-radius:99px; }

/* ---------- account settings (password / delete) ---------- */
.settings-card{ margin-top:22px; background:#fff; border:1px solid var(--hair); box-shadow:var(--shadow-soft); border-radius:22px; padding:16px; }
.settings-card.danger{ border-color:#F3C6C6; background:#FFFBFB; }
.settings-t{ display:flex; align-items:center; gap:7px; font-weight:900; font-size:14.5px; margin-bottom:12px; }
.settings-card.danger .settings-t{ color:#A93A3A; }

/* ---------- install-the-app card ---------- */
.install-card{
  position:relative; display:flex; align-items:center; gap:12px; margin-top:16px; padding:13px 14px; border-radius:20px; color:#fff;
  background-color:var(--navy); background-image:var(--dots), var(--grad-navy); background-size:16px 16px, 100% 100%;
  box-shadow:0 10px 24px rgba(8,33,62,.2);
}
.install-card.compact{ margin-top:0; }
.install-ic{ width:44px; height:44px; flex:0 0 44px; border-radius:14px; display:grid; place-items:center; background:rgba(255,255,255,.1); }
.install-b{ flex:1; min-width:0; }
.install-b b{ display:block; font-weight:900; font-size:14px; }
.install-b i{ display:block; font-style:normal; font-size:11.5px; opacity:.8; margin-top:2px; line-height:1.6; }
.install-go{ flex:0 0 auto; border:0; border-radius:12px; padding:9px 15px; cursor:pointer; font:inherit; font-weight:900; font-size:13px; color:#fff; background:var(--grad-orange); box-shadow:0 6px 14px rgba(255,122,0,.35); }
.install-x{ position:absolute; top:6px; inset-inline-end:6px; width:24px; height:24px; border:0; border-radius:99px; display:grid; place-items:center; cursor:pointer; color:#fff; background:rgba(255,255,255,.12); }
.install-card.compact .install-b{ padding-inline-end:18px; }

/* ---------- offline bar ---------- */
.offline-bar{
  position:fixed; top:0; left:0; right:0; z-index:300; display:flex; align-items:center; justify-content:center; gap:8px;
  padding:9px 14px calc(9px); font-size:12.5px; font-weight:800; color:#fff; background:#A93A3A; text-align:center;
  box-shadow:0 4px 14px rgba(169,58,58,.3); animation:khFadeIn .2s ease both;
}

/* ---------- 404 ---------- */
.nf-wrap{ text-align:center; padding:48px 22px 28px; }
.nf-code{ font-weight:900; font-size:72px; line-height:1; background:var(--grad-blue); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.nf-t{ font-weight:900; font-size:18px; margin-top:12px; }
.nf-d{ font-size:13px; color:var(--muted); margin-top:6px; line-height:1.8; }
.nf-actions{ display:flex; gap:10px; margin-top:20px; }
.nf-actions .big-cta{ margin-top:0; display:flex; align-items:center; justify-content:center; gap:6px; }
.big-cta.ghost-cta{ background:#fff; color:var(--ink); border:1px solid var(--line); box-shadow:none; }

/* ---------- shop share button: compact, icon + word ---------- */
.seller-cta.share-shop{ flex:0 0 auto; padding-inline:16px; }

/* ---------- admin: categories / cities / areas ---------- */
.ref-h{ display:flex; align-items:baseline; gap:8px; font-weight:900; font-size:13px; margin:14px 0 8px; }
.ref-h span{ font-weight:600; font-size:11px; color:var(--muted); }
.ref-row{ display:flex; align-items:center; gap:6px; margin-top:6px; }
.ref-row .field-input{ flex:1; min-width:0; padding:8px 10px; font-size:13px; }
.ref-row .ref-icon{ flex:0 0 118px; direction:ltr; font-size:12px; }
.ref-row.add .field-input{ border-style:dashed; }
.ref-ic{ width:32px; height:32px; flex:0 0 32px; border-radius:10px; display:grid; place-items:center; color:var(--blue-dark); background:rgba(0,166,230,.1); border:0; }
.ref-ic.btn{ cursor:pointer; color:var(--ink); background:var(--canvas); }
.ref-count{ font-size:11px; color:var(--muted); font-weight:700; white-space:nowrap; }
.ref-areas{ display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 10px; padding:10px; border-radius:14px; background:var(--canvas); }
.ref-area{ display:inline-flex; align-items:center; gap:4px; padding:5px 6px 5px 10px; border-radius:99px; background:#fff; border:1px solid var(--line); font-size:12px; font-weight:700; }
.ref-area button{ width:18px; height:18px; border:0; border-radius:99px; display:grid; place-items:center; cursor:pointer; color:#A93A3A; background:#FDECEC; }
.admin-btn.danger{ color:#A93A3A; }

/* =================================================================
   HOME + DESKTOP LAYOUT
   ================================================================= */
/* search and city side by side — the city picker used to take a whole row */
.home-search-row{ display:flex; align-items:center; gap:8px; padding-top:10px; }
.home-search-row .search-bar{ flex:1; min-width:0; }
.home-search-row .search-bar span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-search-row .city-select{ flex:0 0 auto; max-width:132px; padding:11px 12px; border-radius:999px; box-shadow:var(--shadow-soft); }

/* wide screens: "الكل" sits right after its heading instead of across the page */
@media (min-width:768px){
  .app-shell.browse .section-title{ justify-content:flex-start; gap:14px; }
}

@media (min-width:1024px){
  /* horizontal rails become grids — no half-empty scroller with a wall of blank space */
  .app-shell.browse .hscroll{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); overflow:visible; }
  .app-shell.browse .hscroll > *{ min-width:0; width:auto; }

  /* bottom tab bar → floating dock with labels beside the icons */
  .bottom-nav{
    width:auto; max-width:none; bottom:18px;
    display:flex; align-items:center; gap:4px; padding:8px 10px;
    border-radius:22px; border:1px solid var(--hair);
    box-shadow:0 16px 40px rgba(8,33,62,.16);
  }
  .nav-item{ flex-direction:row; gap:7px; padding:9px 16px; border-radius:14px; transition:background .15s, color .15s; }
  .nav-item span{ font-size:13px; }
  .nav-item:hover{ background:var(--canvas); color:var(--ink); }
  .nav-item.active{ background:rgba(0,166,230,.1); }
  .nav-item.active::after{ display:none; }
  .nav-item.fab-item{ margin:0 4px; padding:9px 18px 9px 14px; color:#fff; background:var(--grad-orange); box-shadow:0 8px 18px rgba(255,122,0,.3); }
  .nav-item.fab-item:hover{ background:var(--grad-orange); color:#fff; filter:brightness(1.05); }
  .nav-item.fab-item span:last-child{ color:#fff; }
  .fab-circle{ width:auto; height:auto; margin:0; border:0; background:none; box-shadow:none; animation:none; }
  .fab-circle svg{ width:16px; height:16px; }
  .app-shell:not(.no-nav){ padding-bottom:100px; }
}
@media (min-width:1024px){ .nav-item span{ white-space:nowrap; } }

/* delete buttons on cards + hunter's own-offer bar */
.fab.fab-danger{ color:#A93A3A; }
.fab.fab-danger:hover{ background:#FDECEC; }
.hunter-own-bar{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:12px; padding:10px 12px; border-radius:16px; background:#fff; border:1px solid var(--hair); box-shadow:var(--shadow-soft); }
.hunter-own-bar > span{ flex:1; min-width:150px; display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:800; color:var(--muted); }
.hunter-own-bar .op-btn{ padding:8px 12px; }

/* ============================================================
   Clarity pass — first-visit intro, honest pinned slot, compact
   category strip, explicit sign-in, paid-placement badges.
   ============================================================ */
.login-pill{
  display:inline-flex; align-items:center; gap:6px; border:0; cursor:pointer; font-family:inherit;
  background:var(--orange); color:#fff; font-weight:900; font-size:13px; padding:8px 15px; border-radius:999px;
  box-shadow:0 6px 14px rgba(255,138,0,.35);
}
.intro-card{
  position:relative; margin:14px 18px 0; padding:18px 16px 16px; border-radius:24px; color:#fff;
  background-color:var(--navy); background-image:var(--dots), var(--grad-navy); background-size:16px 16px,100% 100%;
  box-shadow:0 14px 30px rgba(11,42,74,.22); overflow:hidden;
}
.intro-card::after{ content:""; position:absolute; left:-40px; top:-40px; width:140px; height:140px; border-radius:999px; background:rgba(255,138,0,.22); }
.intro-x{ position:absolute; top:10px; left:10px; z-index:1; width:28px; height:28px; border-radius:999px; border:0; cursor:pointer; background:rgba(255,255,255,.12); color:#fff; display:grid; place-items:center; }
.intro-t{ position:relative; font-weight:900; font-size:20px; line-height:1.4; padding-left:30px; }
.intro-d{ position:relative; font-size:12.5px; line-height:1.8; opacity:.85; margin-top:4px; }
.intro-steps{ position:relative; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:14px; }
.intro-steps > div{ background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.1); border-radius:16px; padding:10px 8px; text-align:center; }
.intro-steps span{ width:32px; height:32px; margin:0 auto 6px; border-radius:11px; display:grid; place-items:center; background:rgba(0,180,255,.2); color:#7AD7FF; }
.intro-steps > div:nth-child(2) span{ background:rgba(255,138,0,.22); color:#FFB458; }
.intro-steps b{ display:block; font-size:13px; }
.intro-steps i{ display:block; font-style:normal; font-size:10.5px; line-height:1.6; opacity:.75; margin-top:2px; }
.intro-actions{ position:relative; display:flex; gap:8px; margin-top:14px; }
.intro-btn{ flex:1; border:0; cursor:pointer; font-family:inherit; font-weight:900; font-size:13px; padding:11px 8px; border-radius:14px; background:#fff; color:var(--navy); }
.intro-btn.alt{ background:var(--orange); color:#fff; }

.hero-kicker .pin-label{ display:inline-flex; align-items:center; gap:5px; background:rgba(0,180,255,.18); color:#7AD7FF; padding:4px 10px; border-radius:999px; font-weight:900; }

.cat-strip{ display:flex; gap:8px; overflow-x:auto; padding:0 18px 6px; scrollbar-width:none; }
.cat-strip::-webkit-scrollbar{ display:none; }
.cat-pill{
  flex:0 0 auto; display:inline-flex; align-items:center; gap:7px; cursor:pointer; font-family:inherit;
  background:#fff; border:1px solid var(--hair); box-shadow:var(--shadow-soft); color:var(--ink);
  padding:8px 13px 8px 15px; border-radius:999px; font-size:12.5px; font-weight:800; white-space:nowrap;
}
.cat-pill svg{ color:var(--blue); }
.cat-pill:nth-child(3n+2) svg{ color:var(--orange); }
.cat-pill:nth-child(3n+3) svg{ color:#1B8C5A; }

.promo-badge{ display:inline-flex; align-items:center; gap:3px; font-size:10.5px; font-weight:900; padding:3px 8px; border-radius:999px; white-space:nowrap; }
.promo-badge.pin{ background:var(--cold-bg); color:var(--cold-fg); }
.promo-badge.feat{ background:var(--amber-bg); color:var(--amber-fg); }
.thumb-flag{ position:absolute; top:8px; left:8px; display:inline-flex; align-items:center; gap:3px; font-size:10px; font-weight:900; color:#fff; background:var(--navy); padding:3px 8px; border-radius:999px; }

/* ---------- packages: pick before publishing, buy ahead into credit ---------- */
.t-free{ --tc:90,107,128; }
.pkg-picker{ margin-top:16px; }
.pkg-h{ font-weight:900; font-size:16px; }
.pkg-sub{ font-size:12px; color:var(--muted); margin:3px 0 10px; line-height:1.7; }
.pkg-list{ display:flex; flex-direction:column; gap:8px; }
.pkg{
  display:flex; align-items:center; gap:11px; width:100%; text-align:right; cursor:pointer; font-family:inherit; color:var(--ink);
  background:#fff; border:1.5px solid var(--line); border-radius:18px; padding:11px 12px; transition:border-color .15s, box-shadow .15s;
}
.pkg-ic{ width:38px; height:38px; flex:0 0 38px; border-radius:13px; display:grid; place-items:center; color:rgb(var(--tc)); background:rgba(var(--tc),.12); }
.pkg-b{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.pkg-b b{ font-size:14px; font-weight:900; display:flex; align-items:center; gap:6px; }
.pkg-b i{ font-style:normal; font-size:11.5px; color:var(--muted); line-height:1.5; }
.pkg-p{ flex:0 0 auto; font-weight:900; font-size:12.5px; color:rgb(var(--tc)); }
.pkg-own{ font-style:normal; font-size:10px; font-weight:900; color:var(--green-fg); background:var(--green-bg); padding:2px 7px; border-radius:99px; }
.pkg.on{ border-color:rgb(var(--tc)); box-shadow:0 0 0 3px rgba(var(--tc),.14); }
.pkg.on .pkg-ic{ color:#fff; background:rgb(var(--tc)); }
.pkg-days{ display:flex; gap:8px; margin-top:10px; }
.pkg-day{ flex:1; cursor:pointer; font-family:inherit; color:var(--ink); background:#fff; border:1.5px solid var(--line); border-radius:14px; padding:9px 4px; display:flex; flex-direction:column; align-items:center; gap:2px; }
.pkg-day b{ font-size:14px; font-weight:900; }
.pkg-day span{ font-size:11.5px; font-weight:800; color:var(--blue); }
.pkg-day.on{ background:var(--navy); border-color:var(--navy); color:#fff; }
.pkg-day.on span{ color:#9FDDF8; }
.pkg-sum{ margin-top:10px; font-size:12px; line-height:1.8; color:var(--cold-fg); background:var(--cold-bg); border-radius:14px; padding:10px 12px; font-weight:700; }
.pkg-sum svg{ vertical-align:-2px; }
.pkg-code{ margin-top:12px; font-size:12.5px; }
.pkg-code summary{ cursor:pointer; color:var(--blue); font-weight:900; }
.pkg-code input{ margin-top:8px; }

.credit-box{ margin-top:12px; background:#fff; border:1px solid var(--hair); box-shadow:var(--shadow-soft); border-radius:22px; padding:14px; }
.credit-h{ display:flex; align-items:center; gap:7px; font-weight:900; font-size:14px; }
.credit-h svg{ color:var(--orange); }
.credit-d{ font-size:12px; color:var(--muted); margin-top:4px; line-height:1.7; }
.credit-row{ display:flex; align-items:center; gap:8px; margin-top:9px; padding:9px 10px; border-radius:14px; background:rgba(var(--tc),.07); font-size:12.5px; }
.credit-ic{ width:28px; height:28px; flex:0 0 28px; border-radius:10px; display:grid; place-items:center; color:#fff; background:rgb(var(--tc)); }
.credit-code{ margin-inline-start:auto; font-size:11px; color:var(--muted); font-weight:800; letter-spacing:.4px; }
.pr-opt.buy{ cursor:pointer; font-family:inherit; border:1.5px solid transparent; display:flex; flex-direction:column; align-items:center; gap:3px; }
.pr-opt.buy:hover{ border-color:rgb(var(--tc)); }
.pr-opt.buy em{ font-style:normal; display:inline-flex; align-items:center; gap:3px; margin-top:4px; font-size:11px; font-weight:900; color:#fff; background:rgb(var(--tc)); padding:4px 10px; border-radius:99px; }
.ps-credit{ display:flex; align-items:center; gap:10px; width:100%; margin-top:8px; padding:11px 12px; cursor:pointer; font-family:inherit; color:var(--ink); background:rgba(var(--tc),.07); border:1.5px solid rgba(var(--tc),.25); border-radius:16px; text-align:right; }
.ps-credit b{ flex:1; font-size:13px; }
.ps-credit em{ font-style:normal; font-weight:900; font-size:12px; color:#fff; background:rgb(var(--tc)); padding:6px 12px; border-radius:99px; }
.tab-count{ display:inline-grid; place-items:center; min-width:18px; height:18px; padding:0 4px; border-radius:99px; background:var(--orange); color:#fff; font-size:10.5px; font-weight:900; }

.site-ad{ margin-top:14px; }
.site-ad .intro-t{ padding-left:0; margin-top:12px; }
.site-ad-top{ position:relative; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.site-ad-tag{ font-size:11px; font-weight:900; color:#FFB458; background:rgba(255,138,0,.16); padding:4px 10px; border-radius:999px; }
.site-ad-pin{ position:relative; display:flex; align-items:center; justify-content:center; gap:5px; width:100%; margin-top:10px; background:none; border:0; cursor:pointer; font-family:inherit; font-size:11.5px; font-weight:800; color:#9FDDF8; opacity:.9; }

/* ---------- publish: required shop contact details ---------- */
.contact-box{ background:#fff; border:1.5px solid var(--line); border-radius:var(--radius-lg); padding:15px; margin-bottom:18px; }
.contact-box-h{ display:flex; align-items:center; gap:7px; font-weight:900; font-size:14.5px; color:var(--ink); }
.contact-box-h svg{ color:var(--blue); }
.contact-box-sub{ font-size:11.5px; color:var(--muted); line-height:1.7; margin:4px 0 14px; }
.contact-box .field-label{ display:flex; align-items:center; gap:5px; }
.field-label .req{ color:var(--red-fg); }
.field-label .opt{ font-weight:700; color:var(--muted-2); }
.field-input.invalid{ border-color:var(--red-fg); background:var(--red-bg); }
