:root {
  --bg: #050a08;
  --bg-2: #0a1410;
  --surface: #0f1c1499;
  --surface-solid: #101c15;
  --surface-2: #152820;
  --line: #243d2e;
  --line-soft: #2a453480;
  --line-gold: rgba(232, 210, 150, .22);
  --green: #5ee9a0;
  --green-deep: #2a9d62;
  --gold: #ecd592;
  --gold-2: #c4a055;
  --gold-shine: #fff6dc;
  --text: #f6fff9;
  --muted: #8fa898;
  --danger: #ff6b6b;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .62);
  --shadow-card: 0 10px 28px rgba(0, 0, 0, .42);
  --shadow-lift: 0 16px 36px rgba(0, 0, 0, .48);
  --ring: 0 0 0 3px rgba(236, 213, 146, .12), 0 0 0 1px rgba(94, 233, 160, .2);
  --glass: blur(20px) saturate(160%);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(92px + var(--safe-bot));
  overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased;
}
/* Ambient lighting layer (fixed, premium depth) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(236,213,146,.08), transparent 55%),
    radial-gradient(700px 480px at 0% 0%, rgba(94,233,160,.14), transparent 55%),
    radial-gradient(640px 500px at 100% 5%, rgba(196,160,85,.10), transparent 52%),
    radial-gradient(900px 600px at 50% 110%, rgba(42,157,98,.12), transparent 58%),
    var(--bg);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
h1, h2, h3, strong, b { font-family: 'Sora', sans-serif; }
::selection { background: var(--green); color: #042614; }
body.sheet-open { overflow: hidden; touch-action: none; }

/* ---------- Site header ---------- */
body.tg-mode .site-header {
  position: sticky; top: 0; z-index: 30;
}
body.web-mode .site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #050a08;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
.topbar {
  position: static;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: rgba(5,10,8,.94);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--line-soft);
}
.live-stats-bar {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex: 0 0 auto;
}
body.web-mode .topbar {
  flex-wrap: nowrap;
  gap: 10px;
}
body.web-mode .live-stats-bar {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}
body.tg-mode .topbar {
  flex-wrap: wrap;
  row-gap: 8px;
}
body.tg-mode .live-stats-bar {
  order: 3;
  width: 100%;
  padding: 0 0 2px;
  border: 0;
  background: transparent;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 0; }
.brand-text { min-width: 0; }
.brand-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-top {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); border-radius: 50%;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  cursor: pointer; transition: border-color .15s, background .15s, transform .12s;
}
.support-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-top:active { border-color: var(--green); background: rgba(61,220,132,.12); transform: scale(.94); }
.brand .leaf {
  font-size: 17px; flex: 0 0 auto;
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px;
  background: linear-gradient(145deg, rgba(236,213,146,.12), rgba(94,233,160,.08));
  border: 1px solid rgba(236,213,146,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 6px 18px rgba(0,0,0,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-text strong {
  font-size: 13.5px; letter-spacing: 2px; font-weight: 800;
  background: linear-gradient(100deg, var(--text), var(--gold-shine) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text small { color: var(--gold); font-size: 9.5px; letter-spacing: 1.1px; opacity: .85; text-transform: uppercase; font-weight: 600; }

/* Live stats (online · deals today) */
.live-stats-bar .stat {
  flex: 0 0 auto; min-width: 72px;
}
.stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 6px 8px; border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(8px);
}
.stat-value {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  line-height: 1; min-height: 15px;
}
.stat b {
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 800;
  font-variant-numeric: tabular-nums; transition: opacity .25s;
  letter-spacing: -.2px;
}
.stat-label {
  display: block; width: 100%; text-align: center;
  font-size: 8px; font-weight: 600; line-height: 1.12;
  letter-spacing: .1px; white-space: nowrap;
}
.stat.deals .stat-label { letter-spacing: .05px; }
.stat.online {
  color: var(--green); background: rgba(94,233,160,.08);
  border: 1px solid rgba(94,233,160,.22);
}
.stat.online .stat-label { color: rgba(94,233,160,.78); }
.stat.online .dot {
  flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(94,233,160,.55); animation: pulse 1.8s infinite;
}
.stat.deals {
  color: var(--gold); background: rgba(236,213,146,.08);
  border: 1px solid rgba(236,213,146,.28);
}
.stat.deals .stat-label { color: rgba(236,213,146,.82); }
.stat.deals .deal-ico { font-size: 11px; line-height: 1; flex-shrink: 0; }
@media (max-width: 520px) {
  body.web-mode .brand-text small { display: none; }
  body.web-mode .live-stats-bar .stat { min-width: 64px; padding: 5px 6px; }
}
@media (max-width: 360px) {
  .stat-label { display: none; }
  .stat { padding: 6px 7px; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76,230,144,.55); }
  70% { box-shadow: 0 0 0 7px rgba(76,230,144,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,230,144,0); }
}

/* ---------- Views ---------- */
.view { display: none; padding: 14px 16px 20px; max-width: 720px; margin: 0 auto; animation: fade .28s ease; }
body.tg-mode .view { padding: 12px 14px 16px; }
body.tg-mode .hero { padding: 8px 0 16px; }
body.tg-mode .hero h1 { font-size: clamp(22px, 6vw, 28px); }
body.tg-mode .hero p { font-size: 13.5px; }
body.tg-mode .trust { display: none; }
.view.active { display: block; }
.view.active#view-support { display: flex; padding: 0; }
#view-checkout { padding-bottom: calc(168px + var(--safe-bot)); }
#view-cart { padding-bottom: calc(20px + var(--safe-bot)); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.view-title { font-size: 24px; margin: 4px 0 16px; letter-spacing: -.3px; position: relative; padding-left: 13px; }
.view-title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 24px; border-radius: 4px; background: linear-gradient(180deg, var(--gold-shine), var(--gold-2)); box-shadow: 0 0 12px rgba(236,213,146,.35); }

.hero { padding: 18px 2px 24px; position: relative; }
.hero::after {
  content: ''; display: block; width: 48px; height: 2px; margin-top: 20px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: .7;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .55px; text-transform: uppercase;
  color: var(--gold); padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
  background: linear-gradient(120deg, rgba(236,213,146,.12), rgba(196,160,85,.04));
  border: 1px solid rgba(236,213,146,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.hero h1 {
  font-size: clamp(28px, 7vw, 34px); line-height: 1.1; margin: 0 0 10px; font-weight: 800; letter-spacing: -.5px;
  background: linear-gradient(108deg, #ffffff 0%, #f0f7f2 35%, var(--gold-shine) 70%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
.hero p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 32ch; font-weight: 400; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: #c8ddd0; letter-spacing: .15px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(15,28,20,.6); border: 1px solid var(--line-gold);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.trust-chip svg { width: 14px; height: 14px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }

/* ---------- Search & chips ---------- */
.search {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 13px 15px; margin-bottom: 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: rgba(236,213,146,.35); box-shadow: var(--ring), var(--shadow-card); }
.search:focus-within .ico { stroke: var(--gold); }
.search .ico { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 15px; }
.search input::placeholder { color: var(--muted); }

/* Search + filter row */
.search-row { display: flex; align-items: stretch; gap: 9px; margin-bottom: 14px; }
.search-row .search { flex: 1; margin-bottom: 0; }
.filter { position: relative; flex: 0 0 auto; }
.filter-btn {
  position: relative; height: 100%; min-height: 48px; width: 50px;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  color: var(--muted); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card); transition: border-color .15s, color .15s, transform .12s;
}
.filter-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.filter-btn:active { transform: scale(.95); }
.filter-btn.active { border-color: rgba(236,213,146,.45); color: var(--gold-shine); }
.filter-dot {
  position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 2px var(--bg);
}
.filter-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 25;
  min-width: 210px; padding: 6px;
  background: var(--surface-solid); border: 1px solid var(--line-gold); border-radius: 16px;
  box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: fade .18s ease;
}
.filter-opt {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; border-radius: 11px; cursor: pointer;
  background: none; border: none; color: var(--text); font-family: inherit;
  font-size: 13.5px; font-weight: 600; text-align: left; transition: background .14s;
}
.filter-opt:active { background: rgba(255,255,255,.05); }
.filter-opt.active { background: rgba(94,233,160,.1); color: var(--green); }
.filter-opt .tick { width: 17px; height: 17px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; flex: 0 0 auto; }
.filter-opt.active .tick { opacity: 1; }

/* Category image tiles */
.cats { display: flex; gap: 9px; margin-bottom: 16px; }
.cat {
  position: relative; flex: 1 1 0; min-width: 0; height: 86px;
  border-radius: 16px; overflow: hidden; cursor: pointer; padding: 0;
  border: 1px solid var(--line);
  background: radial-gradient(120% 100% at 50% 22%, #213627 0%, #102019 60%, #0a1410 100%);
  box-shadow: var(--shadow-card); transition: transform .14s, border-color .18s, box-shadow .18s;
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.cat-all { background: linear-gradient(150deg, #1b3526, #0d1a13); }
.cat .cat-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 9px 9px 20px;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,.5));
}
.cat .cat-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(3,8,5,.55) 78%, rgba(3,8,5,.88) 100%);
}
.cat .cat-emoji { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-62%); font-size: 24px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.cat .cat-label {
  position: relative; z-index: 2; padding: 8px 10px;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 11.5px;
  letter-spacing: .8px; text-transform: uppercase; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.cat:active { transform: scale(.97); }
.cat.active {
  border-color: rgba(94,233,160,.85);
  box-shadow: 0 0 0 1px rgba(94,233,160,.5), 0 8px 22px rgba(0,0,0,.45);
}
.cat.active .cat-label { color: var(--green); }

/* Collection ribbon on product cards */
.coll-badge {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  font-size: 9px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  padding: 4px 7px; border-radius: 999px; line-height: 1.1;
  box-shadow: 0 3px 10px rgba(0,0,0,.3); white-space: nowrap;
}
.coll-badge.new { background: linear-gradient(120deg, #6ef0a8, #2a9d62); color: #042614; }
.coll-badge.best { background: linear-gradient(120deg, #f3dca0, var(--gold)); color: #3a2e08; }
/* When both THC meta and a badge could collide, push badge below pill is avoided:
   flower cards show THC (top-right) so hide collection badge there to prevent overlap. */
.card .thumb .thc + .coll-badge,
.card .thumb .thc ~ .coll-badge { top: 34px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 9px 17px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  font-size: 13px; font-weight: 600; transition: .18s; white-space: nowrap;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: inherit; -webkit-appearance: none; appearance: none;
}
.chip:active { transform: scale(.96); }
.chip.active {
  background: linear-gradient(145deg, #1a3828, #0f2218);
  border-color: rgba(236,213,146,.4); color: var(--gold-shine);
  box-shadow: 0 6px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(236,213,146,.12);
  font-weight: 700;
}

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; align-items: stretch; }
.card {
  content-visibility: auto;
  contain-intrinsic-size: 280px 360px;
  position: relative;
  border: 1px solid transparent; border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--surface-solid) 0%, #0c1812 100%) padding-box,
    linear-gradient(155deg, rgba(236,213,146,.28), rgba(94,233,160,.12), rgba(36,61,46,.9)) border-box;
  overflow: hidden; cursor: pointer;
  transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .25s;
  display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow-card);
}
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.card:active { transform: translateY(2px) scale(.988); box-shadow: var(--shadow-lift); }
.card .thumb {
  position: relative; aspect-ratio: 1/1; flex: 0 0 auto;
  background: radial-gradient(125% 105% at 50% 30%, #213627 0%, #122319 50%, #0a1410 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(236,213,146,.08);
}
.card .thumb img {
  width: 100%; height: 100%; object-fit: contain; padding: 12px; object-position: center;
  display: block; transition: transform .4s cubic-bezier(.22,1,.36,1);
  filter: drop-shadow(0 9px 16px rgba(0,0,0,.55));
}
.card .thumb.thumb-contain img { object-fit: contain; padding: 12px; }
.card:active .thumb img { transform: scale(1.04); }
.card .thumb::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 28%, rgba(255,255,255,.05), transparent 70%),
    linear-gradient(180deg, transparent 70%, rgba(5,10,8,.45) 100%);
}
.type-pill {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  max-width: calc(100% - 56px);
  font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px; color: #042614; line-height: 1.2;
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.type-pill.Sativa, .type-pill.Daytime { background: #ffcf5c; }
.type-pill.Indica, .type-pill.Nighttime { background: #b794f6; }
.type-pill.Hybrid { background: var(--green); }
.type-pill.glass, .type-pill.dab-rig, .type-pill.bong, .type-pill.bubbler, .type-pill.recycler {
  background: linear-gradient(120deg, #f3dca0, var(--gold));
}
.card .thc {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  font-size: 10px; font-weight: 800; color: #042614; background: rgba(255,255,255,.92);
  padding: 4px 7px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.14);
}
.card .info {
  padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 4px;
  flex: 1; min-width: 0; min-height: 108px;
}
.card .name {
  font-size: 14px; font-weight: 700; font-family: 'Sora'; line-height: 1.28;
  letter-spacing: -.1px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 2.56em;
}
.card .sub {
  font-size: 11px; color: var(--muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.7em;
}
.card .foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding-top: 10px;
}
.card .price {
  font-size: 15px; font-weight: 800; font-family: 'Sora';
  letter-spacing: .15px; min-width: 0; line-height: 1.2;
  background: linear-gradient(100deg, var(--gold-shine), var(--gold), var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card .price .price-unit {
  font-size: 10px; font-weight: 600; margin-left: 2px;
  background: none; -webkit-background-clip: unset; background-clip: unset; color: var(--muted);
}
.card .add {
  flex: 0 0 auto; position: relative; z-index: 3;
  width: 34px; height: 34px; border-radius: 12px; border: 1px solid rgba(236,213,146,.35); cursor: pointer;
  background: linear-gradient(155deg, #5ee9a0, #2a9d62); color: #042614;
  font-size: 20px; font-weight: 700; line-height: 1;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(42,157,98,.35), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .12s, filter .12s, box-shadow .12s;
}
.card .add:active { transform: scale(.9); filter: brightness(.95); }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 15px; }
.empty span { font-size: 13px; opacity: .8; }

/* ---------- Product sheet ---------- */
.sheet-backdrop, .modal-backdrop {
  position: fixed; inset: 0; background: rgba(2,6,4,.72); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40;
}
.sheet-backdrop.show, .modal-backdrop.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  max-height: 92vh; overflow-x: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #101c15, var(--bg) 45%);
  border-radius: 28px 28px 0 0;
  border-top: 1px solid rgba(236,213,146,.2);
  transform: translateY(100%); transition: transform .38s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 -12px 48px rgba(0,0,0,.5);
}
.sheet.show { transform: translateY(0); }
.sheet-top {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 14px 6px;
  background: linear-gradient(180deg, #0e1d14 75%, transparent);
}
.sheet .grab { width: 44px; height: 5px; border-radius: 99px; background: #2c4a36; }
.sheet-close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--text); font-size: 22px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
.sheet-close:active { border-color: var(--green); background: rgba(76,230,144,.12); }
.sheet .photo {
  position: relative; flex: 0 0 auto;
  height: min(40vh, 320px);
  background: radial-gradient(110% 95% at 50% 32%, #213627 0%, #122319 52%, #0a1410 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.sheet .photo img {
  width: 100%; height: 100%; object-fit: contain; padding: 18px; object-position: center;
  display: block; filter: drop-shadow(0 14px 26px rgba(0,0,0,.6));
}
.sheet .photo.thumb-contain img { object-fit: contain; padding: 18px; }
.sheet .photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 50% 30%, rgba(255,255,255,.05), transparent 72%),
    linear-gradient(180deg, transparent 62%, rgba(7,16,11,.5) 100%);
}
.sheet .body {
  padding: 16px 18px calc(18px + var(--safe-bot));
  overflow-x: hidden; min-width: 0;
}
.sheet .head { margin-bottom: 4px; min-width: 0; }
.sheet h2 {
  font-size: clamp(20px, 5.5vw, 24px); margin: 0 0 8px;
  letter-spacing: -.3px; line-height: 1.2;
  overflow-wrap: anywhere; word-break: break-word;
}
.sheet .head .type-pill {
  position: static; display: inline-block; max-width: 100%;
  margin-bottom: 8px; font-size: 10px;
}
.sheet .tagline { color: var(--gold); font-size: 13px; font-style: italic; margin: 0 0 4px; line-height: 1.45; }
.sheet .badges { display: flex; gap: 7px; flex-wrap: wrap; margin: 14px 0; }
.sheet .b {
  font-size: 11px; font-weight: 700; padding: 6px 11px; border-radius: 999px;
  background: linear-gradient(180deg, var(--surface-2), #122418); border: 1px solid var(--line);
  color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.sheet .desc {
  color: #cfe6d8; font-size: 14px; line-height: 1.6; margin: 8px 0 16px;
  overflow-wrap: anywhere;
}
.sheet-section-label {
  font-size: 13px; color: var(--muted); margin: 0 0 8px;
  font-family: Inter, sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .6px;
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 12px 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); min-width: 0; }
.fact-wide { grid-column: 1 / -1; }
.fact h4 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-family: 'Inter'; font-weight: 600; }
.fact .tags { display: flex; flex-wrap: wrap; gap: 5px; }
.fact .tag { font-size: 12px; background: var(--surface-2); padding: 3px 8px; border-radius: 8px; color: #d7f0e0; line-height: 1.35; overflow-wrap: anywhere; }
.canna-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.canna-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.canna-table td:first-child { font-weight: 700; }
.canna-table td:nth-child(2), .canna-table td:nth-child(3) { text-align: right; color: var(--muted); }

.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 18px; }
@media (max-width: 360px) { .sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.size {
  min-width: 0; text-align: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px;
  transition: .15s; font-family: inherit; color: inherit; -webkit-appearance: none; appearance: none;
}
.size.active { border-color: rgba(236,213,146,.45); background: rgba(236,213,146,.08); box-shadow: inset 0 0 0 1px rgba(94,233,160,.15); }
.size .lbl { font-size: 11.5px; font-weight: 600; line-height: 1.25; }
.size .pr { font-size: 13px; font-weight: 700; margin-top: 3px; color: var(--gold); }

/* Action bar lives near the top of the sheet so it's visible without scrolling. */
.sheet-cta {
  display: flex; gap: 10px; align-items: center;
  margin: 14px 0 18px; padding: 12px;
  background: linear-gradient(180deg, var(--surface-2), #101c15);
  border: 1px solid var(--line-gold); border-radius: 16px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.05);
}
.qty {
  flex: 0 0 auto; display: flex; align-items: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px;
}
.qty button {
  width: 34px; height: 34px; border: none; background: var(--surface-2);
  color: var(--text); border-radius: 9px; font-size: 19px; cursor: pointer;
}
.qty span { width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.sheet-cta .btn.flex { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Buttons ---------- */
.btn {
  width: 100%; border: none; border-radius: 15px; padding: 16px; cursor: pointer;
  font-family: 'Sora'; font-weight: 700; font-size: 15.5px; letter-spacing: .2px; transition: transform .12s, filter .15s;
}
.btn.primary {
  background: linear-gradient(105deg, #6ef0a8 0%, var(--green-deep) 55%, #248f52 100%);
  color: #042614;
  border: 1px solid rgba(236,213,146,.35);
  box-shadow: 0 12px 32px rgba(42,157,98,.38), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn.primary:active { filter: brightness(.95); transform: translateY(1px) scale(.99); }
.btn.primary:disabled { opacity: .5; }
.btn.flex { flex: 1; }

.back { background: none; border: none; color: var(--green); font-size: 14px; cursor: pointer; padding: 4px 0 10px; font-weight: 600; }

/* ---------- Cart ---------- */
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 10px; align-items: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow-card);
}
.ci-thumb {
  flex: 0 0 62px; width: 62px; height: 62px; border-radius: 12px;
  background: radial-gradient(120% 100% at 50% 30%, #213627, #0c1812 80%);
  border: 1px solid var(--line-soft);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.ci-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; object-position: center; display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.ci-thumb.thumb-contain img { object-fit: contain; padding: 5px; }
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-name { font-weight: 700; font-family: 'Sora'; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item .ci-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item .ci-qty { display: flex; align-items: center; gap: 2px; }
.cart-item .ci-qty button { width: 28px; height: 28px; border: none; background: var(--surface-2); color: var(--text); border-radius: 8px; font-size: 16px; cursor: pointer; }
.cart-item .ci-qty span { width: 24px; text-align: center; font-weight: 700; font-size: 14px; }

.cart-summary {
  margin-top: 20px; border-radius: 20px; padding: 16px;
  background: linear-gradient(180deg, rgba(16,28,21,.95), rgba(12,22,16,.9));
  border: 1px solid var(--line-gold);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.05);
}
.cart-summary.static {
  position: sticky;
  bottom: var(--tabbar-offset, calc(88px + var(--safe-bot)));
  z-index: 25;
  margin-bottom: 4px;
}
.cart-summary .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.cart-summary .row.muted { color: var(--muted); }
.cart-summary .row.total { font-size: 18px; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 4px; }
.cart-summary .row.total b {
  background: linear-gradient(100deg, var(--gold-shine), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cart-item .ci-price {
  font-weight: 700; font-size: 14px; margin-top: 3px;
  background: linear-gradient(100deg, var(--gold-shine), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cart-summary .btn { margin-top: 10px; }

/* ---------- Checkout ---------- */
.block {
  background: linear-gradient(180deg, rgba(16,28,21,.9), rgba(12,22,16,.85));
  border: 1px solid var(--line-gold); border-radius: 20px; padding: 16px; margin-bottom: 14px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.04);
}
.block h3 { margin: 0 0 12px; font-size: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.field span { font-size: 12px; color: var(--muted); font-weight: 600; }
.field input, .field select {
  width: 100%;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px; color: var(--text); font-size: 15px; outline: none; font-family: 'Inter';
}
.field select { max-height: none; appearance: auto; }
.field input:focus, .field select:focus { border-color: var(--green); }
.field input:disabled { color: var(--muted); }

/* Searchable city / area picker */
.city-picker { position: relative; }
.city-picker .city-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none; z-index: 2;
}
.city-picker #cityInput { padding-left: 38px; padding-right: 40px; }
.city-picker:focus-within .city-ico { stroke: var(--green); }
.city-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--surface-2); color: var(--muted); font-size: 17px; line-height: 1;
  display: grid; place-items: center; z-index: 2;
}
.city-clear:active { color: var(--text); }
.city-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 26;
  max-height: 240px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 6px; background: var(--surface-solid);
  border: 1px solid var(--line-gold); border-radius: 14px;
  box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: fade .16s ease;
}
.city-menu::-webkit-scrollbar { width: 6px; }
.city-menu::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.city-opt {
  width: 100%; display: block; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: 10px; border: none; background: none;
  color: var(--text); font-family: 'Inter'; font-size: 14px; font-weight: 500;
  transition: background .12s;
}
.city-opt:active, .city-opt:hover { background: rgba(255,255,255,.05); }
.city-opt.active { background: rgba(94,233,160,.1); color: var(--green); font-weight: 700; }
.city-empty { padding: 14px 12px; color: var(--muted); font-size: 13px; text-align: center; }
.city-head {
  padding: 8px 12px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
  color: var(--gold); text-transform: uppercase; opacity: .85;
}

/* Delivery method segmented control */
.segmented { display: flex; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 5px; }
.seg { flex: 1; min-width: 0; border: none; background: none; color: var(--muted); font-family: 'Sora'; font-weight: 700; font-size: 13px; padding: 11px 6px; border-radius: 9px; cursor: pointer; transition: .15s; white-space: nowrap; }
.seg.active {
  background: linear-gradient(145deg, #1a3828, #123020);
  color: var(--gold-shine); border: 1px solid rgba(236,213,146,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.seg:active { transform: scale(.98); }

.point-hint { display: flex; gap: 10px; align-items: flex-start; background: rgba(61,220,132,.08); border: 1px solid rgba(61,220,132,.25); border-radius: 12px; padding: 12px 13px; }
.point-hint .ph-ico { font-size: 20px; line-height: 1.2; }
.point-hint b { font-size: 14px; display: block; margin-bottom: 3px; font-family: 'Sora'; }
.point-hint p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* Drop-point geo card on the Paid screen */
.geo-card { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 14px 0 2px; text-align: left; }
.geo-card .geo-pin { font-size: 26px; }
.geo-card .geo-info b { font-family: 'Sora'; font-size: 15px; color: var(--text); letter-spacing: .3px; }
.geo-card .geo-info span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.pays { display: flex; flex-direction: column; gap: 10px; }
.pay {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px;
  transition: .15s;
}
.pay.active { border-color: var(--green); background: rgba(61,220,132,.1); }
.pay .coin { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 14px; font-family: 'Sora'; flex: 0 0 auto; }
.coin.USDT_TRX { background: #26a17b; color: #fff; }
.coin.ETH { background: #627eea; color: #fff; }
.coin.BTC { background: #f7931a; color: #fff; }
.pay .pinfo { flex: 1; }
.pay .pname { font-weight: 700; font-family: 'Sora'; font-size: 14.5px; }
.pay .pnet { font-size: 12px; color: var(--muted); }
.pay .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; }
.pay.active .radio { border-color: var(--green); background: radial-gradient(circle, var(--green) 40%, transparent 45%); }
.fineprint { font-size: 11.5px; color: var(--muted); text-align: center; margin: 10px 0 0; line-height: 1.5; }

/* ---------- Status modal ---------- */
.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.96);
  z-index: 60; width: min(360px, 90vw); background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 28px 24px; text-align: center; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: .3s;
}
.modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal h2 { font-size: 21px; margin: 14px 0 6px; }
.modal p { color: var(--muted); font-size: 14px; margin: 0 0 6px; line-height: 1.5; }
.modal .amount {
  font-weight: 800; font-size: 17px; font-family: 'Sora';
  background: linear-gradient(100deg, var(--gold-shine), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.spinner { width: 52px; height: 52px; border: 5px solid var(--line); border-top-color: var(--green); border-radius: 50%; margin: 4px auto 10px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.checkmark { width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; background: rgba(61,220,132,.15); display: grid; place-items: center; }
.checkmark svg { width: 36px; height: 36px; stroke: var(--green); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .5s .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.modal-actions .btn { margin-top: 0; width: 100%; }
.modal .openlink { display: inline-block; margin-top: 12px; color: var(--green); font-size: 13px; text-decoration: underline; }
.btn.secondary {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); font-weight: 600;
}
.btn.secondary:active { opacity: .85; transform: translateY(1px); }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; left: 14px; right: 14px; bottom: calc(10px + var(--safe-bot)); z-index: 35;
  display: flex; justify-content: space-around; align-items: center;
  padding: 10px 6px;
  background: linear-gradient(180deg, rgba(16,28,21,.94), rgba(10,18,14,.88));
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--line-gold);
  border-radius: 22px;
  box-shadow: 0 16px 48px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07);
}
.tab {
  position: relative; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .2px;
  padding: 6px 12px; transition: color .18s;
  min-width: 0; flex: 1; border-radius: 14px;
}
.tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linejoin: round; stroke-linecap: round; transition: transform .18s, filter .18s; }
.tab span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab.active {
  color: var(--gold-shine);
  background: rgba(236,213,146,.06);
}
.tab.active svg { transform: translateY(-1px); filter: drop-shadow(0 2px 10px rgba(236,213,146,.35)); stroke: var(--gold); }
.tab .badge {
  position: absolute; top: -2px; right: 16px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--danger); color: #fff; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center; font-style: normal;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-bot)); transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #1a3828, #0f2218);
  color: var(--gold-shine); font-weight: 700; font-size: 13px; letter-spacing: .2px;
  padding: 12px 20px; border-radius: 999px; z-index: 70; opacity: 0; transition: .3s;
  border: 1px solid rgba(236,213,146,.35);
  box-shadow: 0 12px 32px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
  pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Support chat ---------- */
#view-support { padding: 0; max-width: 720px; flex-direction: column; min-height: calc(100vh - 120px); }
.support-sub { margin: -8px 16px 12px; color: var(--muted); font-size: 13px; }
.support-inbox .view-title { padding: 16px 16px 0; margin-bottom: 0; }
.support-chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(12,22,15,.9);
}
.chat-peer { min-width: 0; flex: 1; }
.chat-peer strong { display: block; font-size: 16px; font-family: 'Sora'; }
.chat-peer small { color: var(--muted); font-size: 12px; }
.chat-messages {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 10px;
  min-height: 280px;
}
.chat-bubble {
  max-width: 88%; padding: 10px 13px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.45; word-break: break-word;
}
.chat-bubble.user { align-self: flex-end; background: var(--green); color: #042614; border-bottom-right-radius: 4px; }
.chat-bubble.admin { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-bubble .meta { font-size: 10px; opacity: .65; margin-top: 4px; display: block; }
.chat-empty-hint { text-align: center; color: var(--muted); font-size: 14px; padding: 40px 20px; line-height: 1.5; }
.chat-compose {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px calc(10px + var(--safe-bot));
  border-top: 1px solid var(--line); background: var(--surface);
}
.chat-compose input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--text); padding: 12px 14px; font-size: 15px; outline: none;
}
.chat-compose input:focus { border-color: var(--green); }
.btn-send {
  width: 44px; height: 44px; border: none; border-radius: 12px; flex-shrink: 0;
  background: var(--green); color: #042614; font-size: 18px; cursor: pointer;
}
.btn-send:active { filter: brightness(.92); }
.chat-list { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.chat-list-item {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; cursor: pointer; width: 100%; color: inherit;
  font-family: inherit; transition: border-color .15s;
}
.chat-list-item:active { border-color: var(--green); }
.chat-list-item .ava {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: rgba(61,220,132,.15); color: var(--green); font-weight: 800;
  display: grid; place-items: center; font-family: 'Sora'; font-size: 16px;
}
.chat-list-item .cli { flex: 1; min-width: 0; }
.chat-list-item .cli strong { display: block; font-size: 14px; font-family: 'Sora'; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-list-item .cli span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.chat-list-item .unread-dot {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- Web version (browser, not Telegram) ---------- */
body.tg-mode .web-banner,
body.tg-mode #webBanner {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
body.web-mode #tabStats,
body.web-mode .tab.admin-only.tg-only,
body.web-mode .view.tg-admin-only { display: none !important; }
body.web-mode #tabStats[hidden] { display: none !important; }

.web-banner {
  position: static;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(94,233,160,.14), rgba(236,213,146,.08));
  border-bottom: 1px solid var(--line-gold);
  font-size: 13px; font-weight: 600;
}
.web-banner a {
  color: #042614; background: var(--green); text-decoration: none;
  padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
body.web-mode { padding-top: var(--header-offset, 96px); padding-bottom: calc(100px + var(--safe-bot)); }
body.web-mode .card,
body.web-mode .search,
body.web-mode .block,
body.web-mode .cart-summary,
body.web-mode .tabbar,
body.web-mode .topbar {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.web-mode .point-hint {
  margin-bottom: 8px;
}

@media (min-width: 380px) {
  .live-stats-bar { gap: 12px; }
  .stat { padding: 7px 10px; }
  .stat b { font-size: 13px; }
  .stat-label { font-size: 9px; }
}

@media (min-width: 900px) {
  body.web-mode { padding-bottom: 100px; }
  body.web-mode .shell { max-width: 1120px; margin: 0 auto; }
  body.web-mode .view { max-width: 1120px; padding: 24px 32px 40px; }
  body.web-mode .hero { padding: 28px 0 32px; text-align: center; }
  body.web-mode .hero h1 { font-size: 42px; max-width: none; margin-left: auto; margin-right: auto; }
  body.web-mode .hero p { font-size: 16px; max-width: 52ch; margin: 0 auto; }
  body.web-mode .hero::after { margin: 24px auto 0; }
  body.web-mode .trust { justify-content: center; }
  body.web-mode .search-row { max-width: 640px; margin: 0 auto 18px; }
  body.web-mode .cats { justify-content: center; }
  body.web-mode .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  body.web-mode .tabbar {
    left: 50%; transform: translateX(-50%);
    width: min(480px, calc(100% - 32px));
    border-radius: 18px 18px 0 0;
    border: 1px solid var(--line);
    border-bottom: none;
    box-shadow: 0 -12px 48px rgba(0,0,0,.5);
  }
  body.web-mode .site-header {
    padding-left: max(0px, calc(50% - 560px));
    padding-right: max(0px, calc(50% - 560px));
  }
  body.web-mode .topbar,
  body.web-mode .web-banner {
    padding-left: max(16px, calc(50% - 560px));
    padding-right: max(16px, calc(50% - 560px));
  }
}
@media (min-width: 1200px) {
  body.web-mode .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Admin stats ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin-bottom: 20px;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  padding: 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.stat-card-label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.stat-card-val { display: block; font-family: 'Sora'; font-size: 22px; margin: 6px 0 2px; color: var(--gold-shine); }
.stat-card-sub { font-size: 11px; color: var(--muted); }
.stats-h3 { font-size: 14px; margin: 18px 0 10px; color: var(--gold); font-family: 'Sora'; }
.stats-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.stats-table th, .stats-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.stats-table th { color: var(--muted); font-weight: 600; }
.stats-link {
  font-size: 11px; line-height: 1.5; word-break: break-all;
  padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  color: var(--green); cursor: pointer;
}
.stats-link.mono { font-family: ui-monospace, monospace; }
.stats-recent { display: flex; flex-direction: column; gap: 6px; }
.stats-ev {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center;
  font-size: 12px; padding: 8px 10px; border-radius: 10px;
  background: rgba(15,28,20,.5); border: 1px solid var(--line);
}
.stats-ev .ev-type { color: var(--green); font-weight: 700; text-transform: capitalize; }
.stats-ev time { color: var(--muted); font-size: 11px; }
.tab.admin-only svg { opacity: .9; }

