[hidden] { display: none !important; }
:root {
  --brand: #9f2089;
  --brand-2: #f43397;
  --brand-soft: #fdf0f8;
  --ink: #1f1f2b;
  --ink-2: #5a5a6e;
  --ink-3: #8b8ba0;
  --line: #ececf2;
  --bg: #f5f5f8;
  --card: #fff;
  --ok: #038d63;
  --ok-soft: #e6f6f0;
  --warn: #b26b00;
  --warn-soft: #fff4e0;
  --bad: #c62828;
  --bad-soft: #fdecec;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 20, 40, .06), 0 2px 8px rgba(20, 20, 40, .05);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  padding-bottom: calc(64px + var(--safe-b));
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: currentColor; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 20px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
.muted { color: var(--ink-2); } .small { font-size: 13px; }
.strike { text-decoration: line-through; color: var(--ink-3); font-size: 13px; }
.green { color: var(--ok); } .red { color: var(--bad); }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--card);
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 20px; color: var(--brand); letter-spacing: -.3px; white-space: nowrap; }
.search {
  flex: 1; display: flex; align-items: center; gap: 8px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; min-width: 0;
}
.search svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.search input { border: 0; background: transparent; outline: 0; padding: 9px 0; width: 100%; min-width: 0; }
.top-links { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); }
.icon-btn:hover { background: var(--bg); }
.badge {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--brand-2); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.wallet-chip {
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px;
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
  .top-links { margin-left: auto; }
}

/* bottom nav */
.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr);
  padding-bottom: var(--safe-b);
}
.bottombar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; font-size: 11px; color: var(--ink-2); }
.bottombar a.active { color: var(--brand); font-weight: 600; }

main { max-width: 1100px; margin: 0 auto; padding: 16px; outline: 0; }
.loader { width: 32px; height: 32px; margin: 80px auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* hero */
.hero {
  background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff;
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.hero h1 { font-size: 22px; }
.hero p { margin: 4px 0 0; opacity: .92; }
.hero-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-steps span { background: rgba(255,255,255,.18); padding: 6px 10px; border-radius: 999px; font-size: 13px; }

.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 12px; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr 1fr; gap: 8px; } }
.pcard { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pcard .img { aspect-ratio: 3/4; background: #eee; overflow: hidden; }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pcard:hover .img img { transform: scale(1.03); }
.pcard .body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pcard .t { font-size: 13px; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.price { font-weight: 700; font-size: 17px; }
.off { color: var(--ok); font-size: 12px; font-weight: 600; }
.tag-free { display: inline-block; background: var(--bg); color: var(--ink-2); font-size: 11px; padding: 2px 6px; border-radius: 6px; margin-top: 4px; width: fit-content; }
.pcard .share-mini {
  margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid #25d366; color: #128c4b; border-radius: 8px; font-size: 12px; font-weight: 600; padding: 6px; background: #fff; cursor: pointer;
}
.pcard .share-mini svg { width: 16px; height: 16px; }

/* buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 12px 16px; font-weight: 700; cursor: pointer;
  background: var(--brand); color: #fff; min-height: 46px;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.outline { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.wa { background: #25d366; color: #fff; }
.btn.ghost { background: transparent; color: var(--brand); padding: 8px; min-height: 0; }
.btn.block { width: 100%; }
.btn svg { width: 20px; height: 20px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 12px; outline: 0; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }
.narrow { max-width: 460px; margin: 0 auto; }

/* product page */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .pdp { grid-template-columns: 1fr; gap: 12px; } }
.gallery { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery .main { aspect-ratio: 3/4; background: #eee; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; background: #fafafa; }
.thumbs { display: flex; gap: 8px; padding: 8px; overflow-x: auto; }
.thumbs img { width: 56px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; flex: none; }
.thumbs img.on { border-color: var(--brand); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.opt { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; background: #fff; cursor: pointer; font-weight: 600; font-size: 13px; }
.opt.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.opt:disabled { opacity: .4; text-decoration: line-through; }
.margin-box { background: var(--brand-soft); border-radius: var(--radius); padding: 12px; margin: 12px 0; }
.margin-box .line { display: flex; justify-content: space-between; margin: 4px 0; }
.margin-box input { width: 110px; text-align: right; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.sticky-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 760px) {
  .sticky-actions {
    position: fixed; left: 0; right: 0; bottom: calc(56px + var(--safe-b)); z-index: 15;
    background: #fff; padding: 10px 16px; border-top: 1px solid var(--line);
  }
  .pdp-pad { height: 70px; }
}
.desc { font-size: 14px; color: var(--ink-2); }
.desc img { height: auto; }

/* cart */
.cart-item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 76px; height: 98px; object-fit: cover; border-radius: 8px; background: #eee; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 32px; height: 32px; border: 0; background: #fff; cursor: pointer; font-weight: 700; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.mrow { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; flex-wrap: wrap; }
.mrow input { width: 84px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; }
.sum .line { display: flex; justify-content: space-between; padding: 5px 0; }
.sum .line.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 16px; }
.note { border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 10px 0; }
.note.info { background: var(--brand-soft); color: var(--brand); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note.bad { background: var(--bad-soft); color: var(--bad); }

/* wallet */
.wallet-hero { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 12px; }
.wallet-hero .bal { font-size: 32px; font-weight: 800; margin: 4px 0 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 18px; }
.stat span { font-size: 12px; color: var(--ink-2); }
@media (max-width: 420px) { .stat b { font-size: 15px; } }
.txn { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.txn:last-child { border-bottom: 0; }
.amts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

/* orders */
.order { display: grid; grid-template-columns: 60px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order:last-child { border-bottom: 0; }
.order img { width: 60px; height: 76px; border-radius: 8px; object-fit: cover; background: #eee; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pill.Placed, .pill.Processing, .pill.Paid { background: var(--warn-soft); color: var(--warn); }
.pill.Shipped { background: #e8f0fe; color: #1a56c4; }
.pill.Delivered { background: var(--ok-soft); color: var(--ok); }
.pill.Cancelled { background: var(--bad-soft); color: var(--bad); }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }

.empty { text-align: center; padding: 48px 16px; color: var(--ink-2); }
.empty .big { font-size: 44px; margin-bottom: 8px; }
.toast {
  position: fixed; left: 50%; bottom: calc(80px + var(--safe-b)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.success-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 8px auto 12px; }
.success-tick svg { width: 36px; height: 36px; }
.more { display: flex; justify-content: center; margin: 20px 0; }

/* ---------- media: gallery, video, viewer ---------- */
.pcard .img { position: relative; }
.vbadge { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 3/4; max-width: 100%; background: #fafafa; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; background: #fafafa; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.slide video, .slide iframe { width: 100%; height: 100%; object-fit: contain; background: #000; border: 0; }
.dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0 0; }
.dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .2s; }
.dots span.on { width: 16px; background: var(--brand); }
.thumbs .th { position: relative; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #eee; cursor: pointer; flex: none; overflow: hidden; width: 56px; height: 72px; }
.thumbs .th img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.thumbs .th.on { border-color: var(--brand); }
.play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 18px; text-shadow: 0 1px 4px rgba(0,0,0,.6); background: rgba(0,0,0,.18); pointer-events: none; }
.gal-actions { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 10px; gap: 8px; }
.gal-actions .btn svg { width: 18px; height: 18px; }

.viewer { position: fixed; inset: 0; z-index: 60; background: #000; }
.viewer .vtrack { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer .vslide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; overflow: auto; }
.viewer img, .viewer video { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .x { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); z-index: 2; background: rgba(255,255,255,.15); color: #fff; }

/* ---------- share sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(15,15,30,.5); }
.sheet { position: relative; background: var(--card); width: 100%; max-width: 520px; max-height: 92vh; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; animation: up .2s ease-out; }
@media (min-width: 600px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 16px; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-body { overflow-y: auto; padding: 14px 16px calc(16px + var(--safe-b)); }
.x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; font-size: 16px; }
.sheet-price { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; }
.sheet-price input { width: 72px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 6px; margin-left: 4px; }
.media-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mp { position: relative; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: #eee; cursor: pointer; border: 2px solid transparent; opacity: .55; }
.mp.on { border-color: var(--brand); opacity: 1; }
.mp img { width: 100%; height: 100%; object-fit: cover; }
.mp .chk { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #fff; font-size: 12px; display: grid; place-items: center; border: 1.5px solid var(--ink-3); }
.mp.on .chk { background: var(--brand); border-color: var(--brand); }
.mp .dl { position: absolute; right: 4px; bottom: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.mp .dl svg { width: 18px; height: 18px; }
.sheet-actions { display: grid; gap: 10px; }
.sheet textarea { resize: vertical; font-size: 14px; }

/* ---------- Reels ---------- */
.bottombar { grid-template-columns: repeat(5, 1fr); }
.reel-strip-wrap { margin-bottom: 8px; }
.reel-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.reel-strip::-webkit-scrollbar { display: none; }
.reel-card { position: relative; flex: 0 0 112px; aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; background: #222; scroll-snap-align: start; box-shadow: var(--shadow); }
.reel-card img { width: 100%; height: 100%; object-fit: cover; }
.reel-card .rc-price { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.reels-on .topbar { display: none; }
.reels-on main { padding: 0; max-width: none; }
.reels {
  position: fixed; left: 0; right: 0; top: 0; bottom: calc(56px + var(--safe-b)); z-index: 18;
  background: #000; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none;
}
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; display: grid; place-items: center; }
.reel video { width: 100%; height: 100%; object-fit: cover; max-width: 520px; background: #000; }
@media (min-width: 700px) { .reel video { object-fit: contain; } }
.reel-tap { position: absolute; inset: 0; }
.reel-paused { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 56px; pointer-events: none; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.reel-back { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); z-index: 19; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 22px; background: rgba(0,0,0,.3); }
.reel-label { position: fixed; top: calc(18px + env(safe-area-inset-top, 0px)); left: 60px; z-index: 19; color: #fff; font-weight: 800; font-size: 18px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.reel-rail { position: absolute; right: max(10px, env(safe-area-inset-right, 0px)); bottom: 130px; display: flex; flex-direction: column; gap: 18px; z-index: 2; }
.reel-rail button, .reel-rail a { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; color: #fff; cursor: pointer; font-size: 11px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.reel-rail svg, .reel-rail .mute-ic { width: 30px; height: 30px; font-size: 24px; line-height: 30px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.reel-rail button:first-child svg { background: #25d366; border-radius: 50%; padding: 6px; width: 44px; height: 44px; filter: none; }
.reel-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; color: #fff;
  padding: 60px 80px 16px max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(transparent, rgba(0,0,0,.75)); display: flex; flex-direction: column; gap: 4px;
}
.reel-title { font-weight: 700; font-size: 16px; }
.reel-price { font-size: 20px; }
.reel-mrp { text-decoration: line-through; opacity: .7; font-size: 13px; }
.reel-off { color: #6ee7b7; font-weight: 700; font-size: 13px; }
.reel-earn { font-size: 13px; color: #fde68a; }
.reel-cta { margin-top: 8px; width: fit-content; min-height: 40px; padding: 8px 18px; }
.reel-empty { color: #fff; text-align: center; padding: 120px 24px; }
.reel-empty .big { font-size: 48px; }
.reel-item { flex: 0 0 112px; display: flex; flex-direction: column; gap: 4px; scroll-snap-align: start; }
.reel-item .reel-card { flex: none; width: 100%; }
.ri-price { font-size: 14px; padding: 0 2px; }
.reel-item .share-mini { margin: 0; padding: 5px; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid #25d366; color: #128c4b; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--card); cursor: pointer; }
.reel-item .share-mini svg { width: 15px; height: 15px; }

/* categories + carton */
.cats { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { display: flex; align-items: center; gap: 6px; white-space: nowrap; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13px; }
.cat span { font-size: 16px; }
.cat.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pack-note { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* PWA install */
.install-btn { display: none; background: #fff; color: var(--brand); min-height: 40px; padding: 8px 16px; }
.can-install .install-btn { display: inline-flex; }
@media (display-mode: standalone) { .install-btn, .install-row { display: none !important; } }

/* footer + pages */
.site-foot { max-width: 720px; margin: 28px auto 8px; padding: 18px 0 8px; border-top: 1px solid var(--line); display: grid; gap: 10px; text-align: center; }
.sf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.sf-links a:hover, .sf-bulk:hover { text-decoration: underline; }
.sf-bulk { color: var(--brand); font-weight: 600; font-size: 14px; }
.prose { line-height: 1.6; }
.prose h1 { margin-bottom: 12px; }
.prose h3 { margin: 18px 0 6px; }
.prose ul, .prose ol { padding-left: 20px; margin: 6px 0; }
.prose li { margin: 4px 0; }
.prose a { color: var(--brand); text-decoration: underline; }
.bulk-banner { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 4px; padding: 14px 16px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand); border: 1px dashed #e5b8d6; }
.bulk-banner span { font-size: 13px; color: var(--ink-2); }

/* bulk page */
.bulk-hero { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.bulk-hero p { margin: 6px 0 0; opacity: .92; font-size: 14px; }
.bulk-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; }
.bres { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 12px; }
.bres img, .bres .ph { grid-row: span 2; width: 44px; height: 54px; object-fit: cover; border-radius: 6px; background: #eee; }
.bres span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bres:hover { border-color: var(--brand); }
.bpick { margin-top: 12px; padding: 12px; background: var(--bg); border-radius: 10px; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 8px; }
.pack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
.pack:hover { border-color: var(--brand); background: var(--brand-soft); }
.pack small { color: var(--ok); font-weight: 600; }
.bline { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bline:last-child { border-bottom: 0; }
.bt { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ship-to choice */
.ship-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
@media (max-width: 420px) { .ship-choice { grid-template-columns: 1fr; } }
.ship-opt { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); cursor: pointer; }
.ship-opt span { font-size: 12px; color: var(--ink-2); }
.ship-opt.on { border-color: var(--brand); background: var(--brand-soft); }

/* login-only price + levels */
.lock-price { font-size: 13px; color: var(--brand); font-weight: 600; padding: 4px 0; }
.lock-price a { text-decoration: underline; }
.hero-cta { background: #fff; color: var(--brand); min-height: 40px; padding: 8px 16px; }
.level-badge { display: inline-block; margin-top: 6px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

/* admin panel */
.admin { max-width: 980px; margin: 0 auto; display: grid; gap: 12px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.levels { display: grid; gap: 8px; }
.lv-row { display: grid; grid-template-columns: 40px 1fr 150px; gap: 8px; align-items: center; }
.lv-no { font-weight: 800; color: var(--brand); }
.lv-row input { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; width: 100%; min-width: 0; }
.lv-pct { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.table-wrap { overflow-x: auto; margin-top: 10px; }
.rs-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.rs-table th { text-align: left; font-size: 12px; color: var(--ink-2); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.rs-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rs-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rs-table select { border: 1px solid var(--line); border-radius: 8px; padding: 6px; max-width: 170px; }
.rs-table tr.blocked td { opacity: .5; }
.rs-table .acts { white-space: nowrap; }
.wal-form { display: flex; gap: 8px; flex-wrap: wrap; }
.wal-form input { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; flex: 1 1 180px; min-width: 0; }
.pay-choice { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* store connect */
.step h2 { margin-bottom: 6px; }
.copybox { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-top: 6px; }
.copybox code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 12px; }

/* ---------- Admin analytics ---------- */
[hidden] { display: none !important; }
.ana { display: grid; gap: 12px; }
.ana-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ana-bar .btn { margin-left: auto; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--brand); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--card); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.kpi span { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.kpi b { font-size: 22px; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 11px; color: var(--ink-2); }
.ana-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.ana-grid .card h2, .ana > .card h2 { margin-bottom: 10px; }
.ana-h3 { font-size: 12px; color: var(--ink-2); margin: 10px 0 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.hb { display: grid; gap: 10px; }
.hb-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hb-v small { font-weight: 400; color: var(--ink-2); }
.hb-track { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.hb-track i { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.hb-row:hover .hb-track i { filter: brightness(0.85); }
.dc-wrap { width: 100%; overflow: hidden; }
.dc { width: 100%; height: auto; display: block; }
.dc-grid { stroke: var(--line); stroke-width: 1; }
.dc-ax { font-size: 10px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.dc-bar { fill: var(--brand); }
.dc-g.hov .dc-bar { filter: brightness(0.8); }
.dc-g { cursor: default; }
.dc-tip { margin-top: 6px; font-size: 13px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.admin, .ana { grid-template-columns: minmax(0, 1fr); }
.admin > *, .ana > *, .ana-grid > * { min-width: 0; }

/* ---------- Notifications ---------- */
.notice { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; align-items: flex-start; }
.notice:last-child { border-bottom: 0; }
.notice img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.notice-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; flex: none; font-size: 18px; }
.notice b { display: block; }
.notice p { margin: 2px 0 4px; font-size: 14px; color: var(--ink-2); }
.notice.new b::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-left: 6px; vertical-align: middle; }
.push-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.nf-preview { background: var(--bg, #f4f4f8); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; }

/* ---------- Withdrawal ---------- */
.bank-box { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.wd-row { display: flex; gap: 8px; margin-bottom: 10px; }
.bank-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 12px 0; }
.bank-full > div { display: flex; flex-direction: column; gap: 2px; background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.bank-full span { font-size: 11px; color: var(--ink-2); font-weight: 600; text-transform: uppercase; }
.bank-full .copy { justify-content: flex-start; padding: 0; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: left; word-break: break-all; }
.wd-act { display: flex; gap: 8px; flex-wrap: wrap; }
.wd-act input { flex: 1; min-width: 200px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }

/* ---------- Language toggle ---------- */
.lang-tg { display: inline-flex; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 2px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.lang-tg span { padding: 4px 7px; border-radius: 999px; color: var(--ink-2); }
.lang-tg span.on { background: var(--brand); color: #fff; }
