/* ElsaStore miniapp — signature dark theme */
:root {
  --bg: #0b0f1e; --card: #151b31; --card2: #1e2547; --border: #2c3a63;
  --text: #eef2fa; --muted: #8a94b8;
  --sky: #38bdf8; --indigo: #818cf8; --amber: #f59e0b; --green: #22c55e; --rose: #fb7185;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, "Noto Sans Myanmar", sans-serif;
  padding-bottom: 96px;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea { -webkit-user-select: text; user-select: text; }
/* header — compact, glassy with gradient accent */
.rsm-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: 5px 12px; background: rgba(11,15,30,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); }
.rsm-head::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--indigo), var(--amber)); opacity: .7; }
.brand-t { font-size: 19px; font-weight: 900; letter-spacing: .5px;
  background: linear-gradient(90deg, #ff6b9d, #ff2d55, #a78bfa, #38bdf8, #ff6b9d);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: brandShine 4s linear infinite, pillFloat 4s ease-in-out infinite; }
@keyframes brandFlow { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }
@keyframes brandShake { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-1px) rotate(0.5deg); } 75% { transform: translateY(-1px) rotate(-0.5deg); } }
.spacer { flex: 1; }
.icon-btn { background: linear-gradient(160deg, var(--card2), var(--card));
  border: 1px solid var(--border); color: var(--text);
  border-radius: 50%; font-size: 14px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .15s, border-color .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.icon-btn:hover { border-color: var(--sky); transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(56,189,248,.25); }
.icon-btn:active { transform: scale(.9); }
.wallet-pill { background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(129,140,248,.18));
  border: 1px solid var(--sky); color: var(--sky);
  border-radius: 25px; padding: 7px 14px; font-weight: 800; font-size: 14px; cursor: pointer;
  box-shadow: 0 2px 12px rgba(56,189,248,.25); transition: transform .15s, box-shadow .2s; }
/* layout */
main { padding: 12px 14px; max-width: 640px; margin: 0 auto; }
h3 { margin: 6px 0 12px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px; margin-bottom: 12px; }
.card .l { color: var(--muted); font-size: 12px; }
.card h4 { margin-bottom: 10px; }
/* hero */
.hero { border-radius: 20px; margin-bottom: 14px; overflow: hidden;
  border: 1px solid rgba(168,85,247,.35); max-height: 100px; }
.hero { aspect-ratio: 3 / 1; min-height: 140px; border-radius: 16px; overflow: hidden; margin-bottom: 10px; position: relative; width: 100%; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* action cards */
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.acard { border-radius: 20px; padding: 16px 6px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; background: var(--card);
  transition: transform .15s; }
.acard:active { transform: scale(.96); }
.acard .aicon { font-size: 28px; }
.acard.pink { border: 1px solid rgba(251,113,133,.5); color: #fda4af;
  background: linear-gradient(160deg, rgba(251,113,133,.12), var(--card)); }
.acard.cyan { border: 1px solid rgba(56,189,248,.5); color: #a5f3fc;
  background: linear-gradient(160deg, rgba(56,189,248,.12), var(--card)); }
.acard.purple { border: 1px solid rgba(129,140,248,.5); color: #c7d2fe;
  background: linear-gradient(160deg, rgba(129,140,248,.12), var(--card)); }
/* marquee */
.marquee { display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px;
  margin-bottom: 10px; font-size: 13px; overflow: hidden; }
.marquee.hidden { display: none; }
.marquee .mico { font-size: 16px; flex-shrink: 0; }
.marquee .mtrack { overflow: hidden; flex: 1; position: relative; height: 20px; }
#marqueeTxt { display: inline-block; white-space: nowrap; position: absolute;
  animation: mscroll 20s linear infinite; }
@keyframes mscroll { 0% { left: 100%; } 100% { left: -100%; } }
/* search */
.searchrow { margin-bottom: 4px; }
.searchbar { display: flex; align-items: center; gap: 8px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; padding: 6px 14px; }
.searchbar input { flex: 1; background: none; border: 0; color: var(--text);
  font-size: 14px; outline: none; }
/* filter tabs */
.ftabs { display: flex; gap: 8px; margin: 12px 0; overflow-x: auto; padding: 4px 2px 8px;
  -ms-overflow-style: none; scrollbar-width: none; }
.ftabs::-webkit-scrollbar { display: none; }
.ftabs button { flex-shrink: 0; border: 1px solid var(--border); background: var(--card);
  color: var(--muted); border-radius: 20px; padding: 8px 16px; font-size: 12px;
  font-weight: 700; cursor: pointer; transition: all .18s; }
.ftabs button.on { background: linear-gradient(90deg, var(--sky), var(--indigo)); color: #fff;
  font-weight: 700; border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(56,189,248,.4); }
/* All tab: no glow */
.ftabs button:first-child.on { box-shadow: none; }
/* game grid */
.ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gcard { background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; text-align: center; padding-bottom: 8px;
  transition: transform .15s; }
.gcard:active { transform: scale(.96); }
.gcard .gimg { aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--card2); font-size: 32px; position: relative; overflow: hidden; }
.gcard .gimg img { width: 100%; height: 100%; object-fit: cover; }
.soldov { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.65);
  color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 10px;
  backdrop-filter: blur(4px); }
.gcard .gname { font-weight: 700; margin: 6px 4px 2px; font-size: 10px; line-height: 1.3;
  min-height: 26px; display: flex; align-items: center; justify-content: center; }
.gcard .gsub { color: var(--muted); font-size: 9px; margin-bottom: 4px; }
.gcard .btn { margin: 0 6px; width: calc(100% - 12px); font-size: 11px; padding: 8px 0; }
/* own-post (manual product) featured cards — top of grid */
.gcard.featured { border: 1px solid rgba(245,158,11,.55);
  background: linear-gradient(160deg, rgba(245,158,11,.14), var(--card) 60%); }
.gcard.featured .gsub { color: var(--amber, #f5a623); font-weight: 800; font-size: 11px; }
/* game detail */
.ghead { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.ghead-img { width: 64px; height: 64px; border-radius: 14px; overflow: hidden;
  background: var(--card2); display: flex; align-items: center; justify-content: center;
  font-size: 32px; flex-shrink: 0; }
.ghead-img img { width: 100%; height: 100%; object-fit: cover; }
.gsub { color: var(--muted); font-size: 12px; }
.prow { display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; padding: 10px; margin-bottom: 8px;
  cursor: pointer; }
.prow .pimg { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.prow .pimg img { width: 100%; height: 100%; object-fit: cover; }
.prow .pinfo { flex: 1; min-width: 0; }
.prow .pname { font-weight: 700; font-size: 14px; }
.prow .pprice { color: var(--sky); font-weight: 800; font-size: 14px; white-space: nowrap; }
.prow .parr { color: var(--muted); }
/* forms */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; }
.field input { width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); padding: 11px 12px; font-size: 15px; }
.req { color: var(--rose); }
.hint { color: var(--muted); font-size: 12px; margin-top: 8px; }
.btn { background: linear-gradient(90deg, var(--sky), var(--indigo)); color: #fff; border: 0;
  border-radius: 25px; padding: 13px 20px; font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 4px 16px rgba(56,189,248,.3); transition: transform .15s; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--card2); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.small { padding: 9px 16px; font-size: 13px; border-radius: 20px; }
.btn:disabled { opacity: .5; }
/* bottom nav — floating pill, ElsaStore style */
nav.bottom { position: fixed; bottom: 14px; left: 16px; right: 16px; z-index: 20;
  background: rgba(21,27,49,.96); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 28px;
  display: flex; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 10px 34px rgba(0,0,0,.55), 0 0 0 1px rgba(56,189,248,.08); }
nav.bottom button { flex: 1; background: none; border: 0; color: var(--muted);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px; font-size: 10px; font-weight: 600; border-radius: 18px;
  transition: all .18s; }
nav.bottom button .ni { font-size: 21px; width: 46px; height: 32px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; transition: all .18s; }
nav.bottom button.on { color: var(--sky); }
nav.bottom button.on .ni { background: linear-gradient(135deg, rgba(56,189,248,.25), rgba(129,140,248,.25));
  box-shadow: 0 0 16px rgba(56,189,248,.35); }
nav.bottom button.center .ni { background: linear-gradient(135deg, var(--sky), var(--indigo));
  font-size: 24px; box-shadow: 0 4px 16px rgba(56,189,248,.45); }
nav.bottom button.center .nl { color: var(--amber); font-weight: 800; }
/* sheets */
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.65);
  display: flex; align-items: flex-end; justify-content: center; }
.sheet.hidden { display: none; }
.sheet .box { background: var(--card); border-radius: 20px 20px 0 0; width: 100%;
  max-width: 560px; max-height: 92dvh; overflow-y: auto; padding: 18px; }
/* checkout modal */
.comodal { padding: 0; overflow: hidden; }
.co-top { display: flex; gap: 12px; align-items: center; padding: 16px;
  border-bottom: 1px solid var(--border); position: relative; }
.co-thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.co-thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-tinfo { flex: 1; min-width: 0; }
.co-crumb { color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.co-cname { font-weight: 800; font-size: 17px; }
.co-cprice { color: var(--sky); font-weight: 800; font-size: 16px; white-space: nowrap; margin-right: 28px; }
.co-x { position: absolute; top: 10px; right: 10px; background: none; border: 0;
  color: var(--muted); font-size: 18px; cursor: pointer; padding: 6px; }
.co-sect { color: var(--sky); font-weight: 800; font-size: 13px; letter-spacing: 1px; padding: 14px 16px 0; }
.comodal #cFields { padding: 0 16px; }
.comodal #cVerifyWrap { padding: 0 16px; }
.comodal #pv { padding: 0 16px; }
.co-wal { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); margin-top: 12px; }
.co-wal b { color: var(--sky); font-size: 16px; }
.btn.bigbuy { width: calc(100% - 32px); margin: 4px 16px 0; padding: 15px; font-size: 16px; }
.comodal #cCart { width: calc(100% - 32px); margin: 10px 16px 0; padding: 13px; }
.co-cancel { display: block; width: 100%; background: none; border: 0; color: var(--muted);
  padding: 14px; font-size: 14px; cursor: pointer; }
/* orders */
.order { background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px; margin-bottom: 10px; }
.orow { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.opname { font-weight: 700; }
.oid { color: var(--muted); font-size: 12px; margin-top: 2px; }
.oamt { font-weight: 800; white-space: nowrap; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 20px;
  padding: 4px 12px; background: var(--card2); color: var(--muted); white-space: nowrap; }
.pill.completed { background: rgba(34,197,94,.15); color: var(--green); border: 1px solid rgba(34,197,94,.3); }
.pill.paid, .pill.approved { background: rgba(56,189,248,.15); color: var(--sky); border: 1px solid rgba(56,189,248,.3); }
.pill.pending, .pill.processing { background: rgba(245,158,11,.12); color: var(--amber); border: 1px solid rgba(245,158,11,.3); }
.pill.holding, .pill.awaiting { background: rgba(129,140,248,.12); color: var(--indigo); border: 1px solid rgba(129,140,248,.3); }
.pill.failed, .pill.rejected { background: rgba(251,113,133,.12); color: var(--rose); border: 1px solid rgba(251,113,133,.3); }
.pill.refunded { background: rgba(251,113,133,.08); color: var(--rose); border: 1px dashed rgba(251,113,133,.4); }
.badge { position: absolute; top: -6px; right: -6px; background: var(--rose); color: #fff;
  font-size: 10px; font-weight: 800; border-radius: 10px; padding: 1px 6px; }
.badge.hidden { display: none; }
.hidden { display: none !important; }

/* ============ animations & effects ============ */
/* lift on hover/press — game cards */
.gcard { transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; }
.gcard:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(56,189,248,.22); }
.gcard:active { transform: translateY(-2px) scale(.97); }
/* lift — product rows */
.prow { transition: transform .18s, box-shadow .18s, border-color .18s; }
.prow:hover { transform: translateY(-3px); border-color: var(--sky);
  box-shadow: 0 8px 22px rgba(56,189,248,.18); }
.prow:active { transform: translateY(-1px) scale(.985); }
/* lift — action cards */
.acard { transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; }
.acard:hover { transform: translateY(-4px); }
.acard.pink:hover { box-shadow: 0 12px 26px rgba(251,113,133,.3); }
.acard.cyan:hover { box-shadow: 0 12px 26px rgba(56,189,248,.3); }
.acard.purple:hover { box-shadow: 0 12px 26px rgba(129,140,248,.3); }
.acard:active { transform: translateY(-1px) scale(.95); }
/* buttons — glow press */
.btn { transition: transform .15s, box-shadow .2s, filter .2s; }
.btn:hover { filter: brightness(1.1); box-shadow: 0 6px 22px rgba(56,189,248,.45); }
.btn:active { transform: scale(.96); }
.btn.bigbuy:hover { box-shadow: 0 8px 28px rgba(56,189,248,.55); }
/* icon buttons */
.icon-btn { transition: transform .15s, border-color .2s; }
.icon-btn:hover { border-color: var(--sky); transform: translateY(-2px); }
/* wallet pill */
.wallet-pill { transition: transform .15s, box-shadow .2s; }
.wallet-pill:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(56,189,248,.4); }
.wallet-pill:active { transform: scale(.95); }
/* bottom nav — springy effects */
nav.bottom button { transition: transform .18s cubic-bezier(.34,1.56,.64,1), color .18s; }
nav.bottom button:hover { transform: translateY(-3px); }
nav.bottom button:active { transform: scale(.88); }
nav.bottom button .ni { transition: all .22s cubic-bezier(.34,1.56,.64,1); }
nav.bottom button.on .ni { transform: translateY(-2px); }
nav.bottom button.center .ni { transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; }
@keyframes walletBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
/* Wallet icon + text move together */
nav.bottom button.center { animation: walletBob 3.5s ease-in-out infinite; }
nav.bottom button.center:hover .ni { transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(56,189,248,.6); }
/* filter tabs */
.ftabs button { transition: all .2s; }
.ftabs button:hover { transform: translateY(-2px); border-color: var(--sky); }
.ftabs button:active { transform: scale(.98); }
/* search focus glow */
.searchbar { transition: border-color .2s, box-shadow .2s; }
.searchbar:focus-within { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(56,189,248,.15); }
/* view fade-in */
main > div:not(.hidden) { animation: fadeUp .28s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* sheet slide-up */
.sheet .box { animation: slideUp .3s cubic-bezier(.32,.72,.35,1); }
@keyframes slideUp { from { transform: translateY(60px); opacity: .6; } to { transform: none; opacity: 1; } }
/* support fab */
.support-fab { transition: transform .18s, box-shadow .2s; }
.support-fab:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 0 26px rgba(56,189,248,.6); }
.support-fab:active { transform: scale(.9); }
/* hero shimmer */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%);
  animation: shimmer 4s infinite; }
/* auth */
.auth-wrap { max-width: 400px; margin: 40px auto 0; }
.atabs { display: flex; gap: 8px; margin-bottom: 16px; }
.atabs button { flex: 1; border: 1px solid var(--border); background: var(--card2);
  color: var(--muted); border-radius: 25px; padding: 11px; font-size: 14px;
  font-weight: 700; cursor: pointer; transition: all .2s; }
.atabs button.on { background: linear-gradient(90deg, var(--sky), var(--indigo));
  color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(56,189,248,.4); }

/* profile - compact */
.phead { font-size: 18px; font-weight: 800; margin: 4px 0 10px;
  background: linear-gradient(90deg, var(--sky), var(--indigo));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.pcard { background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 0 0 1px rgba(56,189,248,.06); }
.pcard h4 { margin-bottom: 4px; font-size: 14px; }
.psub { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.prow2 { display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.prow2:last-child { border-bottom: 0; }
.prow2 .pl { color: var(--muted); font-size: 13px; }
.prow2 .pv { font-weight: 700; font-size: 13px; }
.pv.cyan { color: var(--sky); }
.pv.purple { color: var(--indigo); }
.pv.green { color: var(--green); }
.pcontact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pcontact button { background: var(--card2); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 6px; cursor: pointer; color: var(--text);
  font-size: 12px; font-weight: 700; display: flex; flex-direction: column;
  align-items: center; gap: 6px; transition: transform .18s, border-color .18s; }
.pcontact button:hover { transform: translateY(-2px); border-color: var(--sky); }
.pcontact button .pic { font-size: 22px; }
.plegal { display: flex; gap: 16px; }
.plegal button { background: none; border: 0; color: var(--sky); font-size: 14px;
  cursor: pointer; padding: 4px 0; }
.plegal button:hover { text-decoration: underline; }

/* wallet */
.whero { background: linear-gradient(150deg, #161d38, #10162c 60%, #151126);
  border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px;
  margin-bottom: 12px; position: relative; overflow: hidden; }
.whero::before { content: ""; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(56,189,248,.15), transparent 70%); }
.wlabel { color: var(--muted); font-size: 10px; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 4px; }
.wbal { font-size: 32px; font-weight: 800;
  background: linear-gradient(90deg, #38bdf8, #67e8f9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.wbal small { font-size: 14px; -webkit-text-fill-color: var(--muted); font-weight: 600; }
.wuser { color: var(--muted); font-size: 13px; margin: 2px 0 12px; }
.wbtns { display: flex; gap: 8px; }
.wbtn { flex: 1; border-radius: 20px; padding: 9px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: transform .15s, box-shadow .2s; background: rgba(255,255,255,.03);
  border: 1px solid var(--border); }
.wbtn.cyan { color: #38bdf8; border-color: rgba(56,189,248,.35); }
.wbtn.pink { color: #fb7185; border-color: rgba(251,113,133,.35); }
.wbtn:hover { transform: translateY(-2px); }
.wbtn:active { transform: scale(.96); }
.wcard { background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 18px; margin-bottom: 14px; }
.wrow-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wrow-head h4 { font-size: 16px; }
.whint { color: var(--muted); font-size: 12px; }
.linkbtn { background: none; border: 0; color: var(--sky); font-size: 13px; cursor: pointer; }
.pm { display: flex; align-items: center; gap: 12px; background: var(--card2);
  border: 1px solid var(--border); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.pm .pmicon { font-size: 28px; width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pm .pminfo { flex: 1; min-width: 0; }
.pm .pmlabel { color: var(--muted); font-size: 10px; letter-spacing: 1px; font-weight: 700; }
.pm .pmname { font-weight: 700; font-size: 14px; }
.pm .pmnum { color: var(--green); font-weight: 800; font-size: 16px; font-family: monospace; }
.pm .copybtn { background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.4);
  color: var(--sky); border-radius: 20px; padding: 9px 18px; font-size: 13px;
  font-weight: 800; cursor: pointer; transition: all .18s; }
.pm .copybtn:hover { background: rgba(56,189,248,.2); transform: translateY(-2px); }
.pm .copybtn:active { transform: scale(.94); }
.winstr { font-size: 13px; line-height: 2; color: var(--text); }
.winstr p { margin-bottom: 2px; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 2px dashed var(--border); border-radius: 16px; padding: 28px 16px;
  cursor: pointer; transition: border-color .2s, background .2s; text-align: center; }
.dropzone:hover { border-color: var(--sky); background: rgba(56,189,248,.05); }
.dz-icon { font-size: 36px; }
.dz-txt { font-weight: 700; font-size: 14px; line-height: 1.8; display: block; }
.dz-sub { color: var(--muted); font-size: 12px; line-height: 1.8; display: block; margin-top: 4px; }
.act { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.05); }
.act:last-child { border-bottom: 0; }
.act .aicon { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px; }
.act .aicon.up { background: rgba(251,113,133,.12); }
.act .aicon.down { background: rgba(34,197,94,.12); }
.act .ainfo { flex: 1; min-width: 0; }
.act .aname { font-weight: 600; font-size: 14px; line-height: 1.4; }
.act .adate { color: var(--muted); font-size: 12px; margin-top: 2px; }
.act .aamt { font-weight: 800; font-size: 15px; white-space: nowrap; }
.act .aamt.neg { color: var(--rose); }
.act .aamt.pos { color: var(--green); }
.act .pill { margin-top: 4px; }

/* notifications */
.nhead { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.nhead h3 { margin: 0; font-size: 20px; font-weight: 900; }
.ncard { background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 16px; margin-bottom: 12px; animation: fadeUp .28s ease; }
.ntop { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.nicon { font-size: 28px; flex-shrink: 0; }
.ntitle { font-weight: 800; font-size: 15px; flex: 1; line-height: 1.4; }
.ntime { color: var(--muted); font-size: 12px; white-space: nowrap; }
.nbody { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 8px 0; }
.ncode { background: var(--bg); border: 1px dashed var(--sky); border-radius: 12px;
  padding: 10px 12px; font-family: monospace; font-size: 12px; word-break: break-all;
  color: var(--sky); margin: 8px 0; cursor: pointer; }
.noid { color: var(--sky); font-size: 13px; font-weight: 700; }

/* orders */
.otable-head { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px;
  padding: 0 4px 8px; color: var(--muted); font-size: 10px; letter-spacing: 1px; font-weight: 700; }
.orow2 { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 12px; margin-bottom: 8px; cursor: pointer;
  transition: transform .18s, border-color .18s, box-shadow .18s; }
.orow2:hover { transform: translateY(-2px); border-color: var(--sky);
  box-shadow: 0 8px 20px rgba(56,189,248,.15); }
.orow2:active { transform: scale(.98); }
.orow2 .opname { font-weight: 700; font-size: 13px; line-height: 1.3; }
.orow2 .oid { color: var(--muted); font-size: 11px; margin-top: 2px; }
.orow2 .ogameid { color: var(--muted); font-size: 12px; font-family: monospace; }
.orow2 .oamt { color: var(--rose); font-weight: 800; font-size: 14px; white-space: nowrap; }
/* order detail */
.ostat-banner { text-align: center; background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 16px 16px; margin-bottom: 14px; }
.ostat-banner .bigicon { display: inline; font-size: 36px; vertical-align: middle; margin: 0 8px 0 0; }
.ostat-banner h2 { display: inline; font-size: 20px; font-weight: 900; vertical-align: middle; margin: 0; }
.ostat-banner h2.ok { color: var(--green); }
.ostat-banner h2.warn { color: var(--amber); }
.ostat-banner h2.bad { color: var(--rose); }
.ostat-banner p { color: var(--muted); font-size: 14px; }
.odcard { background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 18px; margin-bottom: 14px; }
.odcard h4 { margin-bottom: 8px; }
.odrow { display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 14px; }
.odrow:last-child { border-bottom: 0; }
.odrow .ol { color: var(--muted); }
.odrow .ov { font-weight: 700; text-align: right; }
.odbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.odbtns .btn { padding: 14px; }

/* server selector */
.svwrap { margin-bottom: 12px; }
.svlabel { color: var(--rose); font-size: 12px; letter-spacing: 2px; font-weight: 800;
  display: block; margin-bottom: 8px; }
.svbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.svbtns button { flex: 1 1 auto; white-space: nowrap; border: 1px solid var(--border); background: var(--card);
  color: var(--muted); border-radius: 12px; padding: 8px 10px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all .2s; }
.svbtns button.on { border-color: var(--green); color: var(--green);
  background: rgba(34,197,94,.08); box-shadow: 0 0 0 1px var(--green); }
.pkgcount { color: var(--muted); font-size: 12px; margin-bottom: 10px; }

/* loading spinner — centered, replaces plain "Loading..." text */
.loader { display: flex; justify-content: center; align-items: center; padding: 32px 0; }
.loader .spin { width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--sky);
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.soldbadge { display: inline-block; background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.4); color: var(--amber);
  border-radius: 20px; padding: 4px 14px; font-size: 13px; font-weight: 800; }

/* game info + speed groups */
.ginfo { background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 16px; margin-bottom: 12px; font-size: 14px; line-height: 1.6; }
.speedhdr { font-weight: 800; font-size: 15px; margin: 14px 0 8px; padding: 10px 14px;
  background: var(--card2); border: 1px solid var(--border); border-radius: 12px; }
.stockbadge { display: inline-block; background: rgba(34,197,94,.15); color: var(--green);
  border-radius: 8px; padding: 2px 10px; font-size: 11px; font-weight: 800; margin-top: 4px; }
.stockbadge.oos { background: rgba(251,113,133,.15); color: var(--rose); }
.oosprice { color: var(--rose); font-weight: 800; font-size: 13px; white-space: nowrap; }
.prow.oos { opacity: .7; }

/* transactions */
.txn { background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; margin-bottom: 10px; }
.trow { display: flex; gap: 12px; align-items: flex-start; }
.ticon { font-size: 24px; }
.tinfo { flex: 1; }
.ttag { font-size: 10px; font-weight: 800; border: 1px solid; border-radius: 6px;
  padding: 2px 8px; letter-spacing: 1px; }
.tname { font-weight: 700; font-size: 14px; margin: 6px 0 4px; }
.tdt { color: var(--muted); font-size: 12px; }
.tamt { font-weight: 800; font-size: 15px; white-space: nowrap; }

/* toast — top green like reference */
.toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: rgba(34,197,94,.95); color: #fff;
  border-radius: 16px; padding: 14px 20px; font-size: 14px; font-weight: 700; z-index: 50;
  opacity: 0; transition: all .3s cubic-bezier(.34,1.56,.64,1); pointer-events: none;
  box-shadow: 0 8px 28px rgba(34,197,94,.4); max-width: 90vw; text-align: center;
  white-space: normal; line-height: 1.4; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.hidden { display: block !important; visibility: hidden; }

@keyframes shimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* 3. bell badge */
.bell-badge { position: absolute; top: 2px; right: 2px; background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.bell-badge.hidden { display: none; }
/* 4. skeleton loading */
.skel-card { border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--border); }
.skel-img { aspect-ratio: 1; background: linear-gradient(90deg, #1e2540 25%, #2a3350 50%, #1e2540 75%);
  background-size: 200% 100%; animation: skelShine 1.4s infinite; }
.skel-line { height: 12px; border-radius: 6px; margin: 8px; background: linear-gradient(90deg, #1e2540 25%, #2a3350 50%, #1e2540 75%);
  background-size: 200% 100%; animation: skelShine 1.4s infinite; }
@keyframes skelShine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
/* 5. pull to refresh */
#ptr { text-align: center; padding: 10px; color: var(--muted); font-size: 13px; display: none; }
#ptr.show { display: block; }
#ptr .spin { display: inline-block; animation: ptrSpin 1s linear infinite; }
@keyframes ptrSpin { to { transform: rotate(360deg); } }
/* 10. empty search state */
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty-state .big { font-size: 48px; margin-bottom: 12px; }
.empty-state .sug { color: var(--sky); margin-top: 8px; font-size: 13px; }

/* video-style: bell ringing shake */
@keyframes bellRing {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-13deg); }
  30% { transform: rotate(11deg); }
  40% { transform: rotate(-9deg); }
  50% { transform: rotate(7deg); }
  60% { transform: rotate(-5deg); }
  70% { transform: rotate(3deg); }
  80%, 90% { transform: rotate(0deg); }
}
.icon-btn.bell-glow { animation: pillFloat 4s ease-in-out infinite; }
/* video-style: stronger logo shimmer */
@keyframes brandShine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* video-style: balance pill float */
@keyframes pillFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.wallet-pill { animation: pillFloat 4s ease-in-out infinite; }

/* prevent long-press image URL menu */
.gcard .gimg, .gcard img, .hero img {
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.gcard { -webkit-touch-callout: none; }
