/* ===================== WIN888 CASINO ===================== */
:root {
  --bg: #060b13;
  --bg-2: #0b1220;
  --card: #111a2b;
  --card-2: #0e1626;
  --gold: #f5c060;
  --gold-2: #b8860b;
  --gold-grad: linear-gradient(135deg, #f8d178 0%, #e0a94a 45%, #b8860b 100%);
  --text: #ffffff;
  --muted: #8a95a5;
  --line: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: none;
}
a { text-decoration: none; color: inherit; }

/* App container: mobile-first, centered on large screens */
.app-shell, .auth-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: radial-gradient(120% 60% at 50% 0%, #0d1526 0%, var(--bg) 55%);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ---------- Brand ---------- */
/* Image logo (WINAPP888) */
.brand-logo-img { display: block; height: 42px; width: auto; object-fit: contain; }
.app-header .brand-logo-img { height: 40px; }
.auth-logo-img { display: block; height: 96px; width: auto; margin: 0 auto 14px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)); }
.footer-logo-img { display: block; height: 52px; width: auto; margin: 0 auto; object-fit: contain; }
.drawer-logo-img { display: block; height: 40px; width: auto; object-fit: contain; }

.brand { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-crown { color: var(--gold); font-size: 18px; margin-bottom: 2px; filter: drop-shadow(0 0 6px rgba(245,192,96,.5)); }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.brand-win { color: #fff; }
.brand-888 { color: var(--gold); }
.brand-tag { font-size: 7px; letter-spacing: 2px; color: var(--muted); margin-top: 3px; font-weight: 600; }

/* ---------- Header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px;
  background: linear-gradient(180deg, #0a1120 60%, rgba(10,17,32,.85) 100%);
  border-bottom: 1px solid var(--line);
}
.icon-btn {
  background: none; border: none; color: #fff; font-size: 20px;
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
}
.brand { flex: 0 0 auto; margin-left: 2px; }
.brand-crown { font-size: 20px; }
.app-header .brand { flex-direction: row; align-items: center; gap: 8px; }
.app-header .brand-crown { margin-bottom: 0; }
.app-header .brand .brand-name { font-size: 17px; }
.app-header .brand .brand-tag { display: none; }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.wallet-pill {
  display: flex; align-items: center; gap: 6px;
  background: #0c1424; border: 1px solid rgba(245,192,96,.4);
  border-radius: 999px; padding: 4px 4px 4px 10px;
  font-weight: 600; font-size: 12px; white-space: nowrap;
}
.wallet-ico { color: var(--gold); font-size: 12px; }
.wallet-plus {
  background: var(--gold-grad); border: none; color: #3a2600;
  width: 22px; height: 22px; border-radius: 50%; font-size: 11px; cursor: pointer;
  display: grid; place-items: center;
}
.bell-btn { position: relative; font-size: 18px; width: 34px; }
.bell-badge {
  position: absolute; top: 2px; right: 2px;
  background: #e23b3b; color: #fff; font-size: 9px; font-weight: 700;
  min-width: 15px; height: 15px; border-radius: 999px; display: grid; place-items: center; padding: 0 3px;
}
.profile-ico {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: #2a3446; color: #cdd5e0; display: grid; place-items: center; cursor: pointer;
}

/* ---------- Scroll area ---------- */
.scroll-area { flex: 1; overflow-y: auto; padding: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; border-radius: 18px; overflow: hidden;
  background: linear-gradient(120deg, #1a0b0b 0%, #12080c 40%, #0a0f1c 100%);
  border: 1px solid rgba(245,192,96,.25);
  padding: 18px 14px 26px;
  min-height: 200px;
}
.hero-inner { position: relative; display: flex; }
.hero-text { position: relative; z-index: 3; max-width: 60%; }
.hero-kicker { color: #fff; font-size: 13px; margin: 0 0 4px; font-weight: 500; }
.hero-title { font-size: 26px; line-height: 1.1; margin: 0; font-weight: 800; color: var(--gold);
  text-shadow: 0 2px 10px rgba(245,192,96,.3); }
.hero-sub { color: #cbd2dd; font-size: 11px; margin: 8px 0 14px; }
.hero-art { position: absolute; right: -10px; top: -6px; z-index: 1; width: 62%; }
.hero-plane {
  width: 100%; height: 150px; object-fit: cover; object-position: center;
  border-radius: 14px; opacity: .92;
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
  mask-image: linear-gradient(to left, #000 55%, transparent 100%);
}
.hero-mult {
  position: absolute; right: 6px; bottom: 4px; z-index: 4;
  color: #ff5a3c; font-weight: 800; font-size: 30px;
  text-shadow: 0 0 18px rgba(255,90,60,.7);
}
.hero-badges { position: absolute; top: -4px; right: 0; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.mult-badge {
  background: rgba(0,0,0,.55); border: 1px solid rgba(245,192,96,.5);
  color: var(--gold); font-weight: 700; font-size: 11px;
  padding: 4px 9px; border-radius: 7px; text-align: center; min-width: 48px;
  backdrop-filter: blur(4px);
}
.mult-hot { color: #ff6a4d; border-color: rgba(255,106,77,.7); }
.hero-cta { position: relative; z-index: 3; margin-top: 4px; }
.hero-dots { display: flex; gap: 6px; justify-content: center; position: absolute; bottom: 10px; left: 0; right: 0; z-index: 5; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); }
.dot.active { background: var(--gold); width: 18px; border-radius: 999px; }

/* ---------- Buttons ---------- */
.btn-gold {
  background: var(--gold-grad); color: #3a2600; border: none; font-weight: 700;
  padding: 10px 20px; border-radius: 10px; font-size: 13px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(245,192,96,.25); letter-spacing: .5px;
}
.btn-gold:active { transform: scale(.98); }
.btn-outline-gold {
  display: block; text-align: center; border: 1.5px solid var(--gold);
  color: var(--gold); background: transparent; padding: 12px; border-radius: 10px;
  font-weight: 700; font-size: 14px;
}

/* ---------- Quick actions (2 rows of image icons) ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 6px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 10px; margin-top: 14px;
}
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-align: center; text-decoration: none;
  transition: transform .15s ease;
}
.quick-item:active { transform: scale(.94); }
.quick-ico {
  width: 52px; height: 52px; display: grid; place-items: center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.45));
}
.quick-ico img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.quick-label { font-size: 11px; font-weight: 700; color: #e6ebf2; line-height: 1.15; }
.quick-sub { font-size: 8.5px; color: var(--muted); }

/* Legacy single-row layout kept for any other usage */
.quick-row {
  display: flex; justify-content: space-between; gap: 4px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 8px; margin-top: 14px;
}
.q-green { color: #2ecc71; }
.q-blue { color: #3aa0ff; }
.q-purple { color: #a06bff; }
.q-gold { color: var(--gold); }
.q-red { color: #ff5a5a; }

@media (max-width: 360px) {
  .quick-ico { width: 46px; height: 46px; }
  .quick-label { font-size: 10px; }
}

/* ---------- Games ---------- */
.games-section { margin-top: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-size: 20px; font-weight: 700; margin: 0; }
.view-all { color: var(--gold); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; }

.games-grid-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.games-grid-bottom { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }

.game-card {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); padding: 12px 10px 12px;
  min-height: 150px; display: flex; flex-direction: column;
}
.gc-red    { background: linear-gradient(160deg, #2a0f10 0%, #160a12 100%); border-color: rgba(255,80,80,.25); }
.gc-green  { background: linear-gradient(160deg, #0d2417 0%, #0a1712 100%); border-color: rgba(46,204,113,.25); }
.gc-purple { background: linear-gradient(160deg, #1f1236 0%, #120c22 100%); border-color: rgba(160,107,255,.25); }
.gc-orange { background: linear-gradient(160deg, #241505 0%, #14100a 100%); border-color: rgba(245,160,60,.3); }
.gc-blue   { background: linear-gradient(160deg, #0a1a30 0%, #0a1220 100%); border-color: rgba(58,160,255,.3); }

.gc-body { position: relative; z-index: 3; }
.gc-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; line-height: 1.1; }
.gc-desc { font-size: 9.5px; color: #c3cbd6; margin: 0; line-height: 1.3; }
.gc-btn { position: relative; z-index: 3; margin-top: auto; align-self: flex-start; border: none; color: #fff;
  font-weight: 600; font-size: 11px; padding: 6px 14px; border-radius: 8px; cursor: pointer; }
.btn-red { background: linear-gradient(135deg,#ff5a5a,#c62828); }
.btn-green { background: linear-gradient(135deg,#2ecc71,#1b8a4b); }
.btn-purple { background: linear-gradient(135deg,#a06bff,#6b30d6); }
.btn-orange { background: linear-gradient(135deg,#ff9a3c,#e2620d); }
.btn-blue { background: linear-gradient(135deg,#3aa0ff,#1961d6); }

.gc-img { position: absolute; z-index: 1; }
.gc-img-aviator { right: -6px; bottom: 28px; width: 90px; height: 60px; object-fit: cover; border-radius: 8px; opacity: .85;
  -webkit-mask-image: radial-gradient(circle, #000 60%, transparent); mask-image: radial-gradient(circle, #000 60%, transparent); }
.gc-mult { position: absolute; right: 8px; bottom: 44px; z-index: 2; color: #ff5a3c; font-weight: 800; font-size: 18px; text-shadow: 0 0 10px rgba(255,90,60,.6); }
.gc-img-slot { right: -8px; bottom: 26px; width: 92px; height: 66px; object-fit: contain; }

.color-tiles { position: absolute; right: 6px; bottom: 40px; z-index: 2; display: flex; gap: 4px; transform: rotate(-8deg); }
.ctile { width: 26px; height: 34px; border-radius: 6px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 15px; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.ct-green { background: linear-gradient(160deg,#37d67a,#1f9a52); transform: translateY(4px) rotate(6deg); }
.ct-purple { background: linear-gradient(160deg,#a874ff,#7134d6); transform: translateY(-4px); }
.ct-red { background: linear-gradient(160deg,#ff6a6a,#d02a2a); transform: translateY(4px) rotate(-6deg); }

/* Wide cards */
.gc-wide { min-height: 130px; }
.gc-wide .gc-body { max-width: 62%; }
.gc-img-wheel { right: -14px; bottom: 50%; transform: translateY(50%); width: 108px; height: 108px; object-fit: contain; border-radius: 50%; }
.gc-img-gift { right: -6px; bottom: 50%; transform: translateY(50%); width: 96px; height: 96px; object-fit: contain; }

/* ---------- Steps banner (redesigned) ---------- */
/* Promo banner image (cropped sales-converting banner halves) */
.promo-banner-img {
  display: block; margin: 16px 0 4px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(245,192,96,.35);
  box-shadow: 0 10px 28px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.03) inset;
  transition: transform .18s ease, box-shadow .18s ease; line-height: 0;
}
.promo-banner-img img { display: block; width: 100%; height: auto; }
.promo-banner-img:active { transform: scale(.985); }
@media (hover:hover) {
  .promo-banner-img:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.5); }
}

.steps-banner {
  position: relative; margin: 18px 0 4px; padding: 16px 14px 18px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(245,192,96,.16) 0%, transparent 45%),
    linear-gradient(135deg, #101b30 0%, #0b1424 55%, #16110a 100%);
  border: 1px solid rgba(245,192,96,.4); border-radius: 20px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.03);
}
/* soft rotating gold glow */
.steps-glow {
  position: absolute; top: -40px; right: -30px; width: 180px; height: 180px; z-index: 0;
  background: radial-gradient(circle, rgba(245,192,96,.35) 0%, transparent 70%);
  filter: blur(6px); animation: steps-pulse 4s ease-in-out infinite; pointer-events: none;
}
@keyframes steps-pulse { 0%,100% { opacity:.5; transform:scale(1); } 50% { opacity:.9; transform:scale(1.15); } }
/* diagonal light sweep */
.steps-sweep {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.07) 50%, transparent 58%);
  background-size: 250% 100%; animation: sweep 4.5s linear infinite;
}

.steps-head {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px;
}
.steps-eyebrow {
  display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: #06210f; background: linear-gradient(135deg,#39ff62,#12b83f); padding: 3px 9px; border-radius: 999px;
  box-shadow: 0 0 12px rgba(57,255,98,.45); margin-bottom: 6px;
}
.steps-title { color: #fff; font-size: 16px; font-weight: 800; margin: 0; line-height: 1.15; }
.steps-title-hl {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.steps-cash-pill {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--gold-grad); color: #3a2600; padding: 8px 12px; border-radius: 14px; text-align: center;
  box-shadow: 0 4px 14px rgba(245,192,96,.35);
}
.steps-cash-pill i { font-size: 18px; }
.steps-cash-pill span { font-size: 8.5px; font-weight: 900; letter-spacing: .5px; }

.steps-flow { position: relative; z-index: 2; display: flex; align-items: stretch; gap: 4px; }
.step {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 6px 10px; text-decoration: none;
  background: rgba(255,255,255,.04); border: 1px solid rgba(245,192,96,.18); border-radius: 14px;
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.step:active { transform: scale(.97); }
.step:hover { border-color: rgba(245,192,96,.5); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.step-ico {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: #3a2600;
  background: var(--gold-grad); box-shadow: 0 4px 12px rgba(245,192,96,.4); margin-top: 4px;
}
.step-num {
  position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: #0a1120; border: 1.5px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; font-size: 9px; font-weight: 800;
}
.step-txt { display: flex; flex-direction: column; align-items: center; line-height: 1.2; text-align: center; }
.step-txt strong { font-size: 11px; color: #fff; font-weight: 800; }
.step-txt span { font-size: 8.5px; color: var(--muted); margin-top: 1px; }
.step-arrow { align-self: center; color: var(--gold); font-size: 16px; flex: 0 0 auto; filter: drop-shadow(0 0 4px rgba(245,192,96,.5)); animation: step-nudge 1.6s ease-in-out infinite; }
@keyframes step-nudge { 0%,100% { transform: translateX(0); opacity:.7; } 50% { transform: translateX(3px); opacity:1; } }

.steps-cta {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; padding: 12px; border-radius: 12px; text-decoration: none;
  background: var(--gold-grad); color: #3a2600; font-size: 13px; font-weight: 900; letter-spacing: .5px;
  box-shadow: 0 6px 18px rgba(245,192,96,.4); overflow: hidden;
}
.steps-cta::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
  background-size: 250% 100%; animation: sweep 2.8s linear infinite;
}
.steps-cta:active { transform: scale(.98); }

.bottom-spacer { height: 80px; }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: sticky; bottom: 0; z-index: 40;
  display: flex; align-items: flex-end; justify-content: space-around;
  background: #0a1120; border-top: 1px solid var(--line);
  padding: 8px 6px 10px; height: 66px;
}
.bn-item { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 10px; flex: 1; }
.bn-item i { font-size: 18px; }
.bn-active { color: var(--gold); }
.bn-center { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; transform: translateY(-16px); }
.bn-center-btn {
  width: 56px; height: 56px; border-radius: 50%; background: var(--gold-grad); color: #3a2600;
  display: grid; place-items: center; font-size: 22px; border: 4px solid #0a1120;
  box-shadow: 0 6px 18px rgba(245,192,96,.4);
}
.bn-center-label { color: var(--gold); font-size: 10px; font-weight: 600; }

/* ===================== AUTH PAGES ===================== */
/* Full-page background banner covering the whole auth screen */
.auth-shell {
  justify-content: flex-start;
  padding: 0;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(6,11,19,.82) 0%, rgba(6,11,19,.62) 30%, rgba(6,11,19,.78) 65%, rgba(6,11,19,.96) 100%),
    url('/static/images/auth-bg.jpg') center top / cover no-repeat fixed;
  background-color: var(--bg);
}
/* On small screens, drop fixed attachment (mobile perf) */
@media (max-width: 600px) {
  .auth-shell {
    background-attachment: scroll;
    background-size: cover;
  }
}
/* Inner scroll wrapper keeps the form centered but scrollable */
.auth-scroll {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 18px calc(26px + env(safe-area-inset-bottom));
}
.auth-bg-glow {
  position: fixed; top: -60px; left: 50%; transform: translateX(-50%);
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,192,96,.28) 0%, transparent 70%);
  pointer-events: none; z-index: 1; filter: blur(4px);
}

/* Sales / trust marquee under the brand */
.auth-promo {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 auto 16px; max-width: 340px;
  background: linear-gradient(135deg, rgba(245,192,96,.16), rgba(184,134,11,.08));
  border: 1px solid rgba(245,192,96,.35);
  border-radius: 999px; padding: 8px 14px;
  color: #ffe6ac; font-size: 12px; font-weight: 700; text-align: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.35);
}
.auth-promo i { color: var(--gold); }

.auth-card {
  position: relative; z-index: 2;
  background: linear-gradient(160deg, rgba(20,30,50,.86) 0%, rgba(12,20,36,.9) 100%);
  border: 1px solid rgba(245,192,96,.22);
  border-radius: 22px; padding: 26px 20px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.auth-brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; }
.auth-crown { font-size: 38px; margin-bottom: 6px; filter: drop-shadow(0 0 12px rgba(245,192,96,.6)); }
.auth-brand-name { font-size: 30px; text-shadow: 0 2px 16px rgba(245,192,96,.25); }
.auth-title {
  text-align: center; font-size: 23px; font-weight: 800; margin: 0;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-subtitle { text-align: center; color: #b9c2d0; font-size: 12.5px; margin: 6px 0 18px; }

/* Trust badges row */
.auth-trust {
  display: flex; align-items: stretch; gap: 8px; margin: 0 0 18px;
}
.auth-trust .trust-item {
  flex: 1; text-align: center; padding: 8px 4px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px;
}
.auth-trust .trust-item i { color: var(--gold); font-size: 15px; }
.auth-trust .trust-item span { display: block; margin-top: 4px; font-size: 9.5px; color: #b9c2d0; font-weight: 600; line-height: 1.2; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; color: #cdd5e0; font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; }
.field-input {
  display: flex; align-items: center; gap: 8px;
  background: rgba(8,14,26,.7); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 50px;
  transition: border-color .18s, box-shadow .18s;
}
.field-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,192,96,.18); }
.field-ico { color: var(--gold); font-size: 14px; width: 16px; text-align: center; opacity: .9; }
.field-prefix { color: #efe3c4; font-size: 14px; font-weight: 700; }
.field-input input {
  flex: 1; background: none; border: none; outline: none; color: #fff; font-size: 15px; font-family: inherit; min-width: 0;
}
.field-input input::placeholder { color: #5c6577; }
.toggle-pw { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; }

.auth-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.remember { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.link-gold { color: var(--gold); font-weight: 600; }
.terms { display: flex; gap: 8px; font-size: 11px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.terms input { margin-top: 2px; flex: 0 0 auto; }

.auth-submit {
  width: 100%; padding: 15px; font-size: 15.5px; margin-top: 4px; letter-spacing: .5px;
  box-shadow: 0 10px 28px rgba(245,192,96,.28);
}
.auth-error {
  background: rgba(226,59,59,.12); border: 1px solid rgba(226,59,59,.4); color: #ff8b8b;
  font-size: 12px; padding: 10px 12px; border-radius: 8px; text-align: center;
}
.auth-divider { text-align: center; position: relative; margin: 20px 0 14px; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.auth-divider span { position: relative; background: rgba(14,22,38,.9); padding: 0 12px; color: var(--muted); font-size: 12px; }
.auth-alt { margin-top: 0; }
.auth-demo {
  text-align: center; color: #b9c2d0; font-size: 11px; margin: 16px 0 0;
  background: rgba(255,255,255,.04); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px;
}
.auth-demo b { color: var(--gold); }

button:disabled { opacity: .6; cursor: not-allowed; }

/* Scrollbar (desktop) */
.scroll-area::-webkit-scrollbar { width: 6px; }
.scroll-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }

/* ===================== WALLET PAGE ===================== */
.wallet-hero {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, #0d1f2e 0%, #0a1220 40%, #141005 100%);
  border: 1px solid rgba(245,192,96,.3); padding: 24px 20px; margin-bottom: 14px;
}
.wallet-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 70% 50%, rgba(245,192,96,.08) 0%, transparent 60%);
}
.wallet-hero-content { position: relative; z-index: 2; text-align: center; margin-bottom: 20px; }
.wallet-hero-label { font-size: 12px; color: var(--muted); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 1px; }
.wallet-hero-amount { font-size: 36px; font-weight: 800; color: var(--gold); margin: 0 0 4px; text-shadow: 0 2px 20px rgba(245,192,96,.3); }
.wallet-hero-sub { font-size: 11px; color: var(--muted); margin: 0; }
.wallet-hero-actions { position: relative; z-index: 2; display: flex; gap: 12px; }
.wallet-action-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px; border-radius: 14px; font-size: 13px; font-weight: 700; text-decoration: none;
}
.wallet-action-btn i { font-size: 22px; }
.wa-green { background: rgba(46,204,113,.15); color: #2ecc71; border: 1px solid rgba(46,204,113,.3); }
.wa-blue { background: rgba(58,160,255,.15); color: #3aa0ff; border: 1px solid rgba(58,160,255,.3); }

.wallet-stats-row { display: flex; gap: 10px; margin-bottom: 16px; }
.wallet-stat {
  flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; display: flex; align-items: center; gap: 12px;
}
.ws-ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-size: 16px; flex-shrink: 0;
}
.ws-dep { background: rgba(46,204,113,.15); color: #2ecc71; }
.ws-with { background: rgba(58,160,255,.15); color: #3aa0ff; }
.ws-val { font-size: 15px; font-weight: 700; margin: 0; }
.ws-lab { font-size: 10px; color: var(--muted); margin: 2px 0 0; }

/* ===================== TABS ===================== */
.tab-row {
  display: flex; gap: 8px; margin-bottom: 14px; background: var(--card-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 6px;
}
.tab-btn {
  flex: 1; background: none; border: none; color: var(--muted); padding: 8px 6px;
  border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.tab-active { background: var(--gold); color: #3a2600; }

/* ===================== TRANSACTION ITEMS ===================== */
.tx-list { display: flex; flex-direction: column; gap: 2px; }
.tx-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 6px;
}
.tx-ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 16px; flex-shrink: 0;
}
.tx-info { flex: 1; min-width: 0; }
.tx-type { font-size: 13px; font-weight: 600; margin: 0; text-transform: capitalize; }
.tx-note { font-size: 11px; color: var(--muted); margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-time { font-size: 10px; color: var(--muted); margin: 0; }
.tx-right { text-align: right; flex-shrink: 0; }
.tx-amt { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.tx-credit { color: #2ecc71; }
.tx-debit { color: #ff5a5a; }
.tx-status-badge {
  display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 600;
}
.s-pending { background: rgba(255,154,60,.15); color: #ff9a3c; }
.s-processing { background: rgba(58,160,255,.15); color: #3aa0ff; }
.s-completed { background: rgba(46,204,113,.15); color: #2ecc71; }
.s-failed, .s-rejected { background: rgba(255,90,90,.15); color: #ff5a5a; }
.s-cancelled { background: rgba(138,149,165,.15); color: var(--muted); }
.tx-loading { text-align: center; color: var(--muted); padding: 24px; font-size: 14px; }
.no-data { text-align: center; color: var(--muted); padding: 32px 16px; font-size: 13px; }

/* Refer banner */
.refer-banner {
  background: linear-gradient(135deg, #0d1f2e 0%, #1a1305 100%);
  border: 1px solid rgba(245,192,96,.25); border-radius: 14px;
  padding: 16px; display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px;
}
.refer-info h3 { font-size: 14px; font-weight: 700; margin: 0 0 4px; color: var(--gold); }
.refer-info p { font-size: 11px; color: var(--muted); margin: 0 0 10px; }
.refer-code-row { display: flex; align-items: center; gap: 8px; }
.refer-code {
  background: rgba(245,192,96,.1); border: 1px solid rgba(245,192,96,.3); color: var(--gold);
  font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 8px; letter-spacing: 1px;
}
.refer-copy-btn {
  background: rgba(245,192,96,.15); border: 1px solid rgba(245,192,96,.3); color: var(--gold);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center;
}
.refer-icon { font-size: 36px; color: rgba(245,192,96,.2); flex-shrink: 0; }

/* ===================== DEPOSIT/WITHDRAW PAGES ===================== */
.page-title-row { margin-bottom: 16px; }
.page-title { font-size: 22px; font-weight: 800; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.page-sub { font-size: 12px; color: var(--muted); margin: 0; }

.deposit-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 14px; margin-bottom: 12px;
}
.dep-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.dep-step-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #3a2600;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.dep-step-title { font-size: 14px; font-weight: 700; }

.amount-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-preset {
  background: var(--card-2); border: 1px solid var(--line); color: #cdd5e0;
  padding: 7px 14px; border-radius: 10px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.amount-preset:hover, .preset-active { background: rgba(245,192,96,.15); border-color: rgba(245,192,96,.5); color: var(--gold); }

.payment-methods-grid { display: flex; gap: 8px; }
.pm-option {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px;
  background: var(--card-2); border: 1.5px solid var(--line); border-radius: 12px;
  cursor: pointer; transition: all .2s; text-align: center;
}
.pm-option input[type="radio"] { display: none; }
.pm-active { border-color: rgba(245,192,96,.6) !important; background: rgba(245,192,96,.08) !important; }
.pm-ico {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 18px; border: 2px solid;
}
.pm-upi { color: #a06bff; border-color: rgba(160,107,255,.5); background: rgba(160,107,255,.08); }
.pm-bank { color: #3aa0ff; border-color: rgba(58,160,255,.5); background: rgba(58,160,255,.08); }
.pm-card { color: var(--gold); border-color: rgba(245,192,96,.5); background: rgba(245,192,96,.08); }
.pm-label { font-size: 11px; font-weight: 700; color: #e6ebf2; }
.pm-sub { font-size: 9px; color: var(--muted); }

/* UPI pay box */
.upi-pay-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: #0a1220; border: 1px solid rgba(245,192,96,.2); border-radius: 12px; padding: 14px;
}
.upi-qr-placeholder {
  width: 80px; flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 10px;
  background: #0c1424; border-radius: 10px; border: 1px dashed rgba(245,192,96,.4);
  min-height: 80px;
}
.upi-details { flex: 1; min-width: 0; }
.upi-detail-label { font-size: 10px; color: var(--muted); margin: 0 0 4px; text-transform: uppercase; letter-spacing: .5px; }
.upi-id-row { display: flex; align-items: center; gap: 8px; }
.upi-id-text { font-size: 14px; font-weight: 700; color: var(--gold); font-family: monospace; word-break: break-all; }
.copy-upi-btn {
  background: rgba(245,192,96,.15); border: 1px solid rgba(245,192,96,.3); color: var(--gold);
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
}
.upi-name-text { font-size: 13px; font-weight: 600; color: #cdd5e0; margin: 0; }
.upi-note {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 8px;
  background: rgba(58,160,255,.1); border: 1px solid rgba(58,160,255,.25);
  padding: 8px 10px; border-radius: 8px; font-size: 11px; color: #3aa0ff;
}

.field-hint { font-size: 10px; color: var(--muted); margin-top: 4px; }
.req-star { color: #ff5a5a; }

/* Form messages */
.form-error {
  background: rgba(255,90,90,.1); border: 1px solid rgba(255,90,90,.3);
  color: #ff8080; padding: 12px 14px; border-radius: 10px; font-size: 13px;
  margin-bottom: 10px;
}
.form-success {
  background: rgba(46,204,113,.1); border: 1px solid rgba(46,204,113,.3);
  color: #2ecc71; padding: 12px 14px; border-radius: 10px; font-size: 13px;
  margin-bottom: 10px;
}
.bonus-info {
  background: rgba(245,192,96,.1); border: 1px solid rgba(245,192,96,.3);
  color: var(--gold); padding: 10px 12px; border-radius: 8px; font-size: 12px;
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
}
.success-info {
  background: rgba(46,204,113,.1); border: 1px solid rgba(46,204,113,.25);
  color: #2ecc71; padding: 10px 12px; border-radius: 8px; font-size: 12px;
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
}

.w-full { width: 100%; }
.submit-btn {
  width: 100%; padding: 14px; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.submit-btn:disabled { opacity: .6; }

/* Deposit tips */
.dep-tips {
  background: var(--card-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin-top: 14px;
}
.dep-tips-title { font-size: 13px; font-weight: 700; margin: 0 0 10px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dep-tips-list { margin: 0; padding: 0 0 0 16px; }
.dep-tips-list li { font-size: 12px; color: var(--muted); margin-bottom: 4px; line-height: 1.4; }
.dep-tips-list strong { color: #cdd5e0; }

/* Available balance card */
.avail-balance-card {
  background: var(--card); border: 1px solid rgba(58,160,255,.3); border-radius: 14px;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.avail-label { font-size: 11px; color: var(--muted); flex: 0 0 auto; }
.avail-amt { font-size: 18px; font-weight: 800; color: #3aa0ff; flex: 1; }
.avail-add {
  background: rgba(58,160,255,.15); border: 1px solid rgba(58,160,255,.3); color: #3aa0ff;
  padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
  white-space: nowrap;
}

/* ===================== PROFILE PAGE ===================== */
.profile-hero {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  margin-bottom: 14px; text-align: center;
}
.profile-avatar { font-size: 64px; color: var(--muted); }
.profile-name { font-size: 20px; font-weight: 800; margin: 0; }
.profile-phone, .profile-email { font-size: 13px; color: var(--muted); margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.kyc-verified { color: #2ecc71; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; background: rgba(46,204,113,.1); padding: 4px 12px; border-radius: 8px; border: 1px solid rgba(46,204,113,.3); }
.kyc-pending { color: #ff9a3c; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; background: rgba(255,154,60,.1); padding: 4px 12px; border-radius: 8px; border: 1px solid rgba(255,154,60,.3); }

.profile-section {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 14px; margin-bottom: 12px;
}
.profile-section-title { font-size: 14px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }

/* Saved payment methods */
.pm-saved-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.pm-saved-item:last-child { border-bottom: none; }
.pm-saved-ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-size: 16px; background: rgba(245,192,96,.1); color: var(--gold); flex-shrink: 0;
}
.pm-saved-info { flex: 1; min-width: 0; }
.pm-saved-label { font-size: 13px; font-weight: 600; margin: 0 0 2px; display: flex; align-items: center; gap: 6px; }
.pm-saved-det { font-size: 11px; color: var(--muted); margin: 0; word-break: break-all; }
.pm-default-tag { background: rgba(245,192,96,.15); color: var(--gold); font-size: 9px; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.pm-del-btn {
  background: rgba(255,90,90,.1); border: 1px solid rgba(255,90,90,.2); color: #ff5a5a;
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center;
  flex-shrink: 0;
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 10500; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 0; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.modal-box {
  position: relative; z-index: 1; width: 100%; max-width: 430px;
  background: #111a2b; border: 1px solid var(--line); border-radius: 20px 20px 0 0;
  max-height: 90vh; overflow-y: auto;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #111a2b; z-index: 2;
}
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.modal-body { padding: 16px 18px 24px; }

/* PM type tabs */
.pm-type-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.pm-type-tab {
  flex: 1; background: var(--card-2); border: 1px solid var(--line); color: var(--muted);
  padding: 9px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.pm-type-active { background: rgba(245,192,96,.15); border-color: rgba(245,192,96,.5); color: var(--gold); }

/* Quick links */
.quick-links-list { display: flex; flex-direction: column; gap: 4px; }
.quick-link-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px;
  border-bottom: 1px solid var(--line); color: #cdd5e0; font-size: 14px; font-weight: 500;
}
.quick-link-item:last-child { border-bottom: none; }
.ql-ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(245,192,96,.1); color: var(--gold); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.ql-arrow { margin-left: auto; color: var(--muted); font-size: 12px; }

.logout-btn {
  width: 100%; background: rgba(255,90,90,.1); border: 1px solid rgba(255,90,90,.3);
  color: #ff6b6b; padding: 14px; border-radius: 14px; font-size: 15px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 14px;
}

/* ===================== NOTIFICATIONS ===================== */
.notif-panel {
  position: fixed; top: 62px; right: 8px; z-index: 200;
  width: calc(100% - 16px); max-width: 414px;
  background: #111a2b; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6); overflow: hidden; max-height: 70vh; display: flex; flex-direction: column;
}
.notif-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: #111a2b;
  position: sticky; top: 0; z-index: 2;
}
.notif-panel-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.notif-mark-read { background: none; border: none; color: var(--gold); font-size: 12px; font-weight: 600; cursor: pointer; }
.notif-list { overflow-y: auto; max-height: calc(70vh - 54px); }
.notif-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.notif-unread { background: rgba(245,192,96,.04); }
.notif-title { font-size: 13px; font-weight: 700; margin: 0 0 2px; }
.notif-msg { font-size: 12px; color: var(--muted); margin: 0 0 4px; line-height: 1.4; }
.notif-time { font-size: 10px; color: var(--muted); margin: 0; }

/* Load more */
.load-more-row { padding: 12px 0; }

/* ===================== PAKISTAN PAYMENT METHODS ===================== */
.pk-pm-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
.pm-logo { width: 100%; height: 36px; object-fit: contain; border-radius: 4px; }
.pm-ico-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 36px; }
.pm-ep { background: rgba(69,182,73,.12) !important; border-color: rgba(69,182,73,.3) !important; }
.pm-jc { background: rgba(237,28,36,.12) !important; border-color: rgba(237,28,36,.3) !important; }
.pm-raast { background: rgba(0,159,201,.12) !important; border-color: rgba(0,159,201,.3) !important; }
.pm-option.pm-active .pm-ep { border-color: #45b649 !important; }
.pm-option.pm-active .pm-jc { border-color: #ed1c24 !important; }
.pm-option.pm-active .pm-raast { border-color: #009fc9 !important; }

/* ===================== LUCKY DRAW STYLES ===================== */
/* Hero */
.ld-hero {
  background: linear-gradient(135deg, #0a1628 0%, #111a2b 50%, #0d1f35 100%);
  border-bottom: 1px solid rgba(245,192,96,.15);
  overflow: hidden; position: relative;
}
.ld-hero-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 20px; gap: 16px;
}
.ld-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,192,96,.15); border: 1px solid rgba(245,192,96,.4);
  color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 5px 10px; border-radius: 20px; margin-bottom: 10px;
}
.ld-hero-title {
  font-size: 28px; font-weight: 900; color: #fff; line-height: 1.2;
  margin: 0 0 8px; text-shadow: 0 0 30px rgba(245,192,96,.3);
}
.ld-hero-sub { color: #8a95a5; font-size: 13px; margin: 0 0 16px; }

.ld-hero-art { position: relative; flex-shrink: 0; width: 130px; height: 130px; }
.ld-drum {
  width: 100px; height: 100px; background: linear-gradient(135deg, #1a2540, #111a2b);
  border: 2px solid rgba(245,192,96,.4); border-radius: 50%;
  display: grid; place-items: center; margin: auto;
  box-shadow: 0 0 30px rgba(245,192,96,.2), inset 0 0 20px rgba(0,0,0,.4);
  animation: ld-pulse 2s ease-in-out infinite;
}
.ld-drum-inner { animation: ld-spin 4s linear infinite; }
@keyframes ld-pulse { 0%,100% { box-shadow: 0 0 20px rgba(245,192,96,.2); } 50% { box-shadow: 0 0 40px rgba(245,192,96,.5); } }
@keyframes ld-spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.ld-drum-glow {
  position: absolute; inset: -10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,192,96,.1) 0%, transparent 70%);
  animation: ld-glow 2s ease-in-out infinite alternate;
}
@keyframes ld-glow { from { opacity: 0.3; } to { opacity: 1; } }
.ld-floating-ticket {
  position: absolute; background: rgba(245,192,96,.15); border: 1px solid rgba(245,192,96,.4);
  color: var(--gold); font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 8px;
  white-space: nowrap;
}
.ld-floating-ticket.t1 { top: 5px; right: 0; animation: ld-float1 3s ease-in-out infinite; }
.ld-floating-ticket.t2 { bottom: 15px; right: 5px; animation: ld-float2 3s ease-in-out infinite; }
@keyframes ld-float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ld-float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Sections */
.ld-section { padding: 16px 16px 4px; }

/* Draw Cards */
.ld-draws-list { display: flex; flex-direction: column; gap: 12px; }
.ld-draw-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: border-color 0.2s;
}
.ld-draw-card:hover { border-color: rgba(245,192,96,.3); }
.ld-draw-banner {
  height: 120px; background: linear-gradient(135deg, #1a2540, #0d1f35);
  position: relative; overflow: hidden;
}
.ld-draw-banner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.ld-draw-banner-overlay {
  position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.6));
  display: flex; align-items: flex-end; padding: 12px;
}
.ld-draw-body { padding: 14px; }
.ld-draw-title { font-size: 16px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.ld-draw-desc { font-size: 12px; color: #8a95a5; margin: 0 0 12px; }
.ld-draw-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.ld-stat { background: var(--card-2); border-radius: 10px; padding: 8px; text-align: center; }
.ld-stat-value { font-size: 14px; font-weight: 800; color: var(--gold); }
.ld-stat-label { font-size: 10px; color: var(--muted); margin-top: 2px; }
.ld-draw-progress { margin-bottom: 14px; }
.ld-progress-bar { background: rgba(255,255,255,.08); border-radius: 6px; height: 6px; overflow: hidden; margin-top: 6px; }
.ld-progress-fill { background: linear-gradient(90deg, #f5c060, #2ecc71); height: 100%; border-radius: 6px; transition: width .5s; }
.ld-draw-footer { display: flex; align-items: center; justify-content: space-between; }
.ld-ticket-price { font-size: 13px; color: var(--muted); }
.ld-ticket-price strong { color: var(--gold); }
.ld-status-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  padding: 3px 10px; border-radius: 20px;
}
.ld-status-active { background: rgba(46,204,113,.15); color: #2ecc71; border: 1px solid rgba(46,204,113,.3); }
.ld-status-upcoming { background: rgba(58,160,255,.15); color: #3aa0ff; border: 1px solid rgba(58,160,255,.3); }
.ld-status-completed { background: rgba(138,149,165,.15); color: #8a95a5; border: 1px solid rgba(138,149,165,.3); }

.btn-buy-ticket {
  background: linear-gradient(135deg, #f8d178, #e0a94a, #b8860b);
  color: #3a2600; border: none; padding: 11px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer; width: 100%; margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  letter-spacing: 0.5px; transition: opacity .2s;
}
.btn-buy-ticket:hover { opacity: 0.9; }
.btn-buy-ticket:disabled { opacity: 0.5; cursor: not-allowed; }

/* Tickets */
.ld-tickets-list { display: flex; flex-direction: column; gap: 10px; }
.ld-ticket-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; display: flex; align-items: center; gap: 12px;
}
.ld-ticket-icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(245,192,96,.1);
  display: grid; place-items: center; font-size: 20px; color: var(--gold); flex-shrink: 0;
}
.ld-ticket-info { flex: 1; min-width: 0; }
.ld-ticket-num { font-size: 15px; font-weight: 800; color: #fff; font-family: monospace; }
.ld-ticket-draw { font-size: 12px; color: #8a95a5; margin: 2px 0; }
.ld-ticket-date { font-size: 11px; color: var(--muted); }

/* Winners */
.ld-winners-list { display: flex; flex-direction: column; gap: 8px; }
.ld-winner-card {
  background: var(--card); border: 1px solid rgba(245,192,96,.2);
  border-radius: 14px; padding: 14px;
  display: flex; align-items: center; gap: 12px;
}
.ld-winner-rank {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #f5c060, #e0a94a);
  display: grid; place-items: center; font-size: 14px; font-weight: 800;
  color: #3a2600; flex-shrink: 0;
}
.ld-winner-rank.rank-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #222; }
.ld-winner-rank.rank-3 { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; }
.ld-winner-info { flex: 1; }
.ld-winner-name { font-size: 14px; font-weight: 700; color: #fff; }
.ld-winner-draw { font-size: 12px; color: #8a95a5; }
.ld-winner-amt { font-size: 15px; font-weight: 800; color: var(--gold); }

/* Prize tiers in draw card */
.ld-prizes-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.ld-prize-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(245,192,96,.08); border: 1px solid rgba(245,192,96,.2);
  border-radius: 20px; padding: 5px 12px; font-size: 12px;
}
.ld-prize-chip .rank { color: var(--gold); font-weight: 700; }
.ld-prize-chip .amt { color: #fff; font-weight: 600; }

/* Buy Ticket Modal */
.ld-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
}
.ld-modal-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
}
.ld-modal-box {
  position: relative; background: #111a2b;
  border: 1px solid rgba(245,192,96,.2); border-radius: 20px 20px 0 0;
  width: 100%; max-width: 480px; z-index: 1;
  animation: slide-up 0.3s ease;
}
@keyframes slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.ld-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.ld-modal-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.ld-modal-close {
  background: rgba(255,255,255,.08); border: none; color: #8a95a5;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px;
  display: grid; place-items: center;
}
.ld-modal-body { padding: 18px 20px 24px; }
.ld-draw-info-box {
  background: rgba(245,192,96,.06); border: 1px solid rgba(245,192,96,.15);
  border-radius: 12px; padding: 12px; margin-bottom: 18px;
}
.ld-ticket-qty-row {
  display: flex; align-items: center; justify-content: center; gap: 20px; margin: 18px 0;
}
.ld-qty-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(245,192,96,.15); border: 1px solid rgba(245,192,96,.4);
  color: var(--gold); font-size: 18px; cursor: pointer; display: grid; place-items: center;
  transition: background .2s;
}
.ld-qty-btn:hover { background: rgba(245,192,96,.25); }
.ld-qty-display { text-align: center; }
.ld-qty-display span:first-child { font-size: 36px; font-weight: 900; color: #fff; display: block; }
.ld-qty-label { font-size: 12px; color: var(--muted); }
.ld-total-row, .ld-balance-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 14px; color: #8a95a5;
}
.ld-total-row strong, .ld-balance-row strong { font-size: 16px; }

/* Confetti animation */
@keyframes ld-confetti-fall {
  0% { transform: translateY(-100px) rotateZ(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotateZ(720deg); opacity: 0; }
}
.confetti-piece {
  position: fixed; width: 10px; height: 10px; z-index: 9999;
  animation: ld-confetti-fall linear forwards;
  pointer-events: none;
}

/* ===================== SIDE DRAWER ===================== */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.side-drawer {
  position: fixed; top: 0; left: 0; height: 100vh; width: 280px; max-width: 85vw;
  background: linear-gradient(160deg, #0b1525 0%, #060b13 100%);
  border-right: 1px solid rgba(245,192,96,.2);
  z-index: 201; display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 6px 0 32px rgba(0,0,0,.6);
}
.side-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.drawer-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.drawer-crown { color: var(--gold); filter: drop-shadow(0 0 6px rgba(245,192,96,.5)); }
.drawer-close-btn {
  background: rgba(255,255,255,.07); border: none; color: #fff; font-size: 16px;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
}
.drawer-user {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06);
}
.drawer-avatar { font-size: 38px; color: var(--gold); opacity: .85; }
.drawer-uname { font-weight: 700; font-size: 15px; }
.drawer-phone { font-size: 12px; color: var(--muted); margin-top: 2px; }
.drawer-balance {
  margin: 14px 16px 6px; background: rgba(245,192,96,.1);
  border: 1px solid rgba(245,192,96,.3); border-radius: 12px;
  padding: 10px 14px; display: flex; align-items: center; gap: 10px;
  color: var(--gold); font-weight: 700; font-size: 15px;
}
.drawer-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.drawer-link {
  display: flex; align-items: center; gap: 14px; padding: 13px 20px;
  color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500;
  transition: all .2s; border-left: 3px solid transparent;
}
.drawer-link:hover, .drawer-link-active {
  background: rgba(245,192,96,.08); color: var(--gold); border-left-color: var(--gold);
}
.drawer-link i { width: 20px; text-align: center; font-size: 16px; }
.drawer-footer { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.drawer-logout-btn {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: rgba(226,59,59,.12); border: 1px solid rgba(226,59,59,.3);
  color: #ff6b6b; border-radius: 10px; padding: 12px 16px; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all .2s;
}
.drawer-logout-btn:hover { background: rgba(226,59,59,.22); }

/* ===================== LUCKY SPINNER ===================== */
.spinner-hero {
  position: relative; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #1a0b2e 0%, #0a0f1c 60%, #0b1525 100%);
  border: 1px solid rgba(245,192,96,.3); padding: 20px 16px 16px; margin-bottom: 12px;
}
.spinner-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(245,192,96,.12) 0%, transparent 60%);
}
.spinner-hero-content { position: relative; z-index: 1; }
.spinner-title-row { display: flex; align-items: center; gap: 14px; }
.spinner-title-ico { font-size: 36px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(245,192,96,.5)); animation: spin-slow 8s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.spinner-page-title { font-size: 24px; font-weight: 800; color: #fff; margin: 0; }
.spinner-page-sub { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

.jackpot-bar {
  background: linear-gradient(90deg, #1a0b0b 0%, #2c1a00 50%, #1a0b0b 100%);
  border: 1px solid rgba(245,192,96,.5); border-radius: 14px; padding: 12px 16px; margin-bottom: 12px;
  position: relative; overflow: hidden;
}
.jackpot-bar::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(245,192,96,.06) 50%, transparent 100%);
  animation: jackpot-shimmer 2s linear infinite;
}
@keyframes jackpot-shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.jackpot-bar-inner { position: relative; display: flex; align-items: center; gap: 12px; }
.jackpot-label { color: var(--gold); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.jackpot-amount { color: #fff; font-size: 20px; font-weight: 800; margin-left: auto; text-shadow: 0 0 12px rgba(245,192,96,.5); }
.jackpot-pulse {
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
  animation: pulse-dot 1.2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

.free-spin-badge {
  background: linear-gradient(90deg, #16a085, #1abc9c); border-radius: 12px;
  padding: 10px 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 13px;
  box-shadow: 0 4px 14px rgba(22,160,133,.3);
}

.wheel-container { display: flex; justify-content: center; margin: 8px 0 4px; }
.wheel-outer-ring {
  position: relative; width: 340px; height: 340px;
  background: radial-gradient(circle, #0d1526 40%, #060b13 100%);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(245,192,96,.25), 0 0 80px rgba(245,192,96,.1), inset 0 0 20px rgba(0,0,0,.5);
}
.wheel-pointer {
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  color: var(--gold); font-size: 30px; z-index: 10;
  filter: drop-shadow(0 2px 8px rgba(245,192,96,.8));
}
.wheel-canvas-wrap {
  position: absolute; inset: 10px;
  border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
#spinner-canvas { border-radius: 50%; display: block; }
.wheel-center-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle, #1e3a6e 0%, #0b1525 100%);
  border: 3px solid var(--gold); cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(245,192,96,.3), 0 4px 12px rgba(0,0,0,.5);
  transition: transform .15s, box-shadow .15s;
}
.wheel-center-btn:hover { transform: translate(-50%,-50%) scale(1.08); box-shadow: 0 0 30px rgba(245,192,96,.5); }
.wheel-center-inner { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wheel-play-ico { font-size: 18px; color: var(--gold); }
.wheel-center-label { font-size: 11px; font-weight: 800; color: var(--gold); letter-spacing: 1px; }

.spin-controls { padding: 8px 4px 0; }
.spin-info-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.spin-cost-label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.spin-free-count { font-size: 13px; color: #16a085; font-weight: 600; }
.spin-btn-row { display: flex; gap: 10px; }
.spin-btn {
  flex: 1; padding: 14px; border-radius: 14px; border: none; font-size: 15px;
  font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s; font-family: inherit;
}
.spin-btn-paid {
  background: var(--gold-grad); color: #2a1800;
  box-shadow: 0 4px 16px rgba(245,192,96,.35);
}
.spin-btn-paid:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,192,96,.45); }
.spin-btn-free {
  background: linear-gradient(135deg, #16a085, #1abc9c); color: #fff;
  box-shadow: 0 4px 16px rgba(22,160,133,.3);
}
.spin-btn-free:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,160,133,.4); }

/* Win Modal */
.win-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 300;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.win-modal {
  background: linear-gradient(160deg, #0b1525, #060b13);
  border: 1px solid rgba(245,192,96,.5); border-radius: 24px; padding: 32px 24px;
  max-width: 340px; width: 90%; text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
  animation: modal-pop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modal-pop { from{transform:scale(.5);opacity:0} to{transform:scale(1);opacity:1} }
.win-modal-emoji { font-size: 56px; margin-bottom: 12px; line-height: 1; }
.win-modal-title { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.win-modal-amount { font-size: 32px; font-weight: 800; color: var(--gold); margin-bottom: 8px; text-shadow: 0 0 16px rgba(245,192,96,.5); }
.win-modal-msg { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.win-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
@keyframes confetti-pop { 0%{transform:translate(0,0) rotate(0deg);opacity:1} 100%{transform:translate(calc(-50% + 150px * (var(--rx,1) - 0.5)),200px) rotate(720deg);opacity:0} }
.win-close-btn {
  background: var(--gold-grad); color: #2a1800; border: none; border-radius: 14px;
  padding: 14px 32px; font-size: 16px; font-weight: 700; cursor: pointer;
  width: 100%; font-family: inherit;
}

/* Spinner History */
.spinner-history { margin-top: 20px; }
.spin-history-list { display: flex; flex-direction: column; gap: 8px; }
.spin-hist-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; display: flex; align-items: center; gap: 12px;
}
.spin-hist-emoji { font-size: 24px; width: 36px; text-align: center; }
.spin-hist-info { flex: 1; display: flex; flex-direction: column; }
.spin-hist-label { font-size: 14px; font-weight: 600; color: #fff; }
.spin-hist-time { font-size: 12px; color: var(--muted); margin-top: 2px; }
.spin-hist-prize { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.empty-state { text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }

/* Spinner home card preview */
.spinner-home-preview {
  position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  width: 80px; height: 80px; display: flex; align-items: center; justify-content: center;
}
.spinner-home-ico {
  font-size: 64px; color: rgba(255,255,255,.15);
  animation: spin-slow 8s linear infinite;
}

/* ===== Set PIN Popup (post-signup) ===== */
.setpin-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(3, 8, 18, 0.78); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: setpin-fade .2s ease;
}
@keyframes setpin-fade { from { opacity: 0; } to { opacity: 1; } }
.setpin-modal {
  width: 100%; max-width: 380px;
  background: linear-gradient(180deg, #101a2c, #0b1322);
  border: 1px solid rgba(245,192,96,0.28); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6); overflow: hidden;
  animation: setpin-pop .25s cubic-bezier(.18,.89,.32,1.28);
}
@keyframes setpin-pop { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.setpin-head { text-align: center; padding: 22px 22px 6px; }
.setpin-badge {
  width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 24px; color: #0b1322;
  background: linear-gradient(135deg,#f5c060,#d4900a);
  box-shadow: 0 8px 20px rgba(245,192,96,.35);
}
.setpin-title { font-size: 19px; font-weight: 800; color: #f2e6c9; margin: 0 0 6px; }
.setpin-sub { font-size: 12.5px; color: #9aa5b6; margin: 0; line-height: 1.5; }
.setpin-body { padding: 8px 22px 22px; }
.setpin-body .field { margin-top: 12px; }
.setpin-later {
  display: block; width: 100%; margin-top: 12px; background: none; border: none;
  color: #8a95a5; font-size: 12.5px; cursor: pointer; text-decoration: underline;
}

/* ===== Withdraw: saved-account selector ===== */
.wd-methods-list { display: flex; flex-direction: column; gap: 10px; }
.wd-method {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
  transition: border-color .15s, background .15s;
}
.wd-method:hover { border-color: rgba(245,192,96,0.35); }
.wd-method.wd-selected {
  border-color: #f5c060; background: rgba(245,192,96,0.08);
  box-shadow: 0 0 0 1px rgba(245,192,96,.35) inset;
}
.wd-method input[type="radio"] { accent-color: #f5c060; width: 18px; height: 18px; flex-shrink: 0; }
.wd-method-ico {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  background: rgba(255,255,255,0.08);
}
.wd-method-info { flex: 1; min-width: 0; }
.wd-method-label { font-size: 13.5px; font-weight: 700; color: #e8eaf0; margin: 0; }
.wd-method-det { font-size: 11.5px; color: #8a95a5; margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-method-default {
  font-size: 9px; font-weight: 700; color: #000; background: #f5c060;
  padding: 1px 6px; border-radius: 3px; margin-left: 6px;
}

/* =========================================================
   ===============  HOME REDESIGN (v2 style)  ==============
   Gaming-platform look: carousel hero, scrollable category
   nav, animated game tiles (light-sweep / pulse / glow),
   floating side icons, download-app top bar.
   ========================================================= */

/* ---------- Top download-app bar ---------- */
.topbar-app {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, #0d2417 0%, #123021 100%);
  border-bottom: 1px solid rgba(57,255,20,.18);
  padding: 7px 10px; font-size: 12px; color: #eafff0;
}
.topbar-app-left { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.topbar-app-left i { color: #39ff62; font-size: 15px; }
.topbar-app-btn {
  margin-left: auto; background: linear-gradient(135deg,#39ff62,#12b83f);
  color: #06210f; font-weight: 800; font-size: 11px; padding: 5px 12px;
  border-radius: 999px; display: flex; align-items: center; gap: 5px;
  box-shadow: 0 3px 10px rgba(57,255,98,.35);
  animation: pulse-soft 2.4s ease-in-out infinite;
}
.topbar-app-close { background: none; border: none; color: #7fae90; font-size: 13px; padding: 2px 4px; cursor: pointer; }

@keyframes pulse-soft { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ---------- Hero carousel ---------- */
.hero-carousel { position: relative; margin-top: 4px; }
.hero-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 10px; scroll-behavior: smooth; padding-bottom: 4px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: center;
  border-radius: 18px; overflow: hidden; min-height: 165px;
  padding: 18px 16px; display: flex; align-items: center;
  border: 1px solid rgba(255,255,255,.08);
}
.hs-green { background: linear-gradient(120deg,#08351d 0%,#0a1f16 55%,#071019 100%); border-color: rgba(57,255,98,.3); }
.hs-red   { background: linear-gradient(120deg,#3a0f12 0%,#1c0a12 55%,#0a0f1c 100%); border-color: rgba(255,90,90,.3); }
.hs-gold  { background: linear-gradient(120deg,#3a2a05 0%,#1e1608 55%,#0a0f1c 100%); border-color: rgba(245,192,96,.4); }
.hs-violet { background: linear-gradient(120deg,#2a0f3a 0%,#160a24 55%,#0a0f1c 100%); border-color: rgba(178,102,255,.35); }
.hs-orange { background: linear-gradient(120deg,#3a2205 0%,#1e1206 55%,#0a0f1c 100%); border-color: rgba(255,153,51,.4); }
.hs-blue  { background: linear-gradient(120deg,#0a2340 0%,#0a1730 55%,#0a0f1c 100%); border-color: rgba(58,160,255,.4); }
.hs-text { position: relative; z-index: 3; max-width: 64%; }
.hs-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: #dfe7ef; letter-spacing: .4px; }
.hs-amount { margin: 0; font-size: 40px; line-height: 1; font-weight: 900; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.hs-green .hs-shimmer { color: #39ff62; }
.hs-red .hs-shimmer   { color: #ff6a4d; }
.hs-gold .hs-shimmer  { color: #ffd257; }
.hs-violet .hs-shimmer { color: #c78bff; }
.hs-shimmer {
  position: relative; background: linear-gradient(100deg, currentColor 30%, #fff 50%, currentColor 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 250% 100%; animation: shimmer 3s linear infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -50% 0; } }
.hs-sub { margin: 8px 0 14px; font-size: 11px; color: #c3cbd6; max-width: 90%; }
.hs-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg,#39ff62,#12b83f); color: #06210f;
  font-weight: 800; font-size: 12px; padding: 9px 16px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(57,255,98,.3);
}
.hs-cta-red  { background: linear-gradient(135deg,#ff6a4d,#d0261f); color: #fff; box-shadow: 0 6px 16px rgba(255,90,60,.3); }
.hs-cta-gold { background: var(--gold-grad); color: #3a2600; box-shadow: 0 6px 16px rgba(245,192,96,.3); }
.hs-cta-violet { background: linear-gradient(135deg,#b266ff,#7a1fd0); color: #fff; box-shadow: 0 6px 16px rgba(150,60,220,.35); }
.hs-cta:active { transform: scale(.97); }
.hs-art { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); z-index: 1; width: 42%; text-align: center; }
.hs-art-ico { font-size: 78px; color: rgba(255,255,255,.9); filter: drop-shadow(0 8px 18px rgba(0,0,0,.5)); animation: float-bob 3.2s ease-in-out infinite; }
.hs-green .hs-art-ico { color: #39ff62; }
.hs-gold .hs-art-ico { color: #ffd257; }
.hs-art-img { width: 130px; height: 100px; object-fit: cover; border-radius: 14px; opacity: .9;
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent); mask-image: radial-gradient(circle, #000 62%, transparent); }

/* ---------- Full-bleed hero slides (image covers entire slide) ---------- */
.hero-slide.hs-full {
  padding: 0; display: block; overflow: hidden;
  aspect-ratio: 1 / 1; min-height: 0; max-height: 300px;
}
.hs-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center; z-index: 0; display: block;
}
.hero-slide.hs-full:active { transform: scale(.985); }
.hs-shine {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%);
  background-size: 250% 100%; animation: sweep 4.5s linear infinite;
}
@keyframes sweep { 0% { background-position: 150% 0; } 100% { background-position: -50% 0; } }

.hero-carousel .hero-dots { position: static; margin-top: 8px; }

/* ---------- Category nav (scrollable) ---------- */
.cat-nav {
  display: flex; gap: 14px; overflow-x: auto; padding: 14px 2px 6px;
  margin-top: 6px; -ms-overflow-style: none; scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-item { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 56px; }
.cat-ico {
  width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center;
  font-size: 20px; color: #d6e6ff; background: linear-gradient(160deg,#152238,#0d1524);
  border: 1px solid rgba(255,255,255,.08); transition: transform .15s;
}
.cat-item:active .cat-ico { transform: scale(.92); }
.cat-label { font-size: 10px; font-weight: 600; color: #cbd2dd; }
.cat-hot .cat-ico { color: #ff7a3c; border-color: rgba(255,122,60,.45); box-shadow: 0 0 14px rgba(255,122,60,.25); }
.cat-hot .cat-ico i { animation: flame 1.6s ease-in-out infinite; }
@keyframes flame { 0%,100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.12) rotate(3deg); } }

.section-fire { color: #ff7a3c; }

/* ---------- Games grid (animated tiles) ---------- */
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gtile {
  position: relative; border-radius: 16px; overflow: hidden;
  min-height: 138px; display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid rgba(255,255,255,.08); padding: 10px;
  transition: transform .15s, box-shadow .2s;
}
.gtile:active { transform: scale(.98); }
.gt-red    { background: radial-gradient(120% 100% at 70% 0%, #3a0f12 0%, #160a12 70%); }
.gt-green  { background: radial-gradient(120% 100% at 70% 0%, #0d3320 0%, #0a1712 70%); box-shadow: 0 0 20px rgba(57,255,98,.08); }
.gt-purple { background: radial-gradient(120% 100% at 70% 0%, #291645 0%, #120c22 70%); }
.gt-orange { background: radial-gradient(120% 100% at 70% 0%, #3a2205 0%, #14100a 70%); }
.gt-blue   { background: radial-gradient(120% 100% at 70% 0%, #0a2340 0%, #0a1220 70%); }
.gt-teal   { background: radial-gradient(120% 100% at 70% 0%, #063431 0%, #08181c 70%); }

/* pulsing invitation-bonus badge */
.gt-badge {
  position: absolute; top: 8px; left: 8px; z-index: 4;
  font-size: 8.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase;
  color: #06210f; background: linear-gradient(135deg,#39ff62,#12b83f);
  padding: 3px 7px; border-radius: 999px;
  box-shadow: 0 0 10px rgba(57,255,98,.5);
  animation: badge-pulse 1.8s ease-in-out infinite;
  overflow: hidden;
}
.gt-badge::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.7) 50%, transparent 60%);
  background-size: 250% 100%; animation: sweep 2.6s linear infinite;
}
.gt-badge-hot { background: linear-gradient(135deg,#ffd257,#e0a94a); color: #3a2600; box-shadow: 0 0 10px rgba(245,192,96,.55); }
@keyframes badge-pulse { 0%,100% { transform: scale(1); box-shadow: 0 0 8px rgba(57,255,98,.4); } 50% { transform: scale(1.06); box-shadow: 0 0 16px rgba(57,255,98,.75); } }

/* diagonal light-sweep sheen across the whole tile */
.gt-sweep {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.10) 50%, transparent 58%);
  background-size: 250% 100%; animation: sweep 3.8s linear infinite;
}
.gtile:nth-child(2n) .gt-sweep { animation-delay: 1.2s; }
.gtile:nth-child(3n) .gt-sweep { animation-delay: 2.1s; }

.gt-art {
  position: absolute; top: 26px; left: 0; right: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; height: 62px;
}
.gt-art img { width: 92px; height: 62px; object-fit: cover; border-radius: 12px; opacity: .92;
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent); mask-image: radial-gradient(circle, #000 62%, transparent); }

/* ---------- Full-bleed game tiles (banner covers the whole card) ---------- */
.gtile.gt-full { min-height: 0; aspect-ratio: 1 / 1; padding: 10px; }
.gt-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center; z-index: 0; display: block;
}
/* readability gradient so the name/play button stay legible over the art */
.gtile.gt-full::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(4,8,18,.92) 8%, rgba(4,8,18,.55) 50%, transparent 100%);
}
.gtile.gt-full .gt-foot { z-index: 4; }
.gt-mult { position: absolute; top: 34px; right: 12px; z-index: 2; color: #ff6a4d; font-weight: 900; font-size: 20px; text-shadow: 0 0 12px rgba(255,90,60,.6); }
.gt-color-art { gap: 6px; transform: rotate(-6deg); }
.gt-slot-art { gap: 4px; font-size: 26px; }
.slot-emo { animation: float-bob 2.4s ease-in-out infinite; }
.slot-emo:nth-child(2) { animation-delay: .3s; }
.slot-emo:nth-child(3) { animation-delay: .6s; }
.gt-spin-ico { font-size: 54px; color: #ffb347; animation: spin-slow 6s linear infinite; filter: drop-shadow(0 4px 12px rgba(255,150,40,.4)); }
.gt-gift-ico { font-size: 50px; color: #3affd0; animation: float-bob 3s ease-in-out infinite; filter: drop-shadow(0 4px 12px rgba(58,255,208,.35)); }
@keyframes spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.gt-foot {
  position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto;
}
.gt-name { font-size: 13px; font-weight: 800; color: #fff; line-height: 1.1; }
.gt-play {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 11px; color: #06210f;
  background: linear-gradient(135deg,#39ff62,#12b83f); box-shadow: 0 3px 10px rgba(57,255,98,.4);
}
.gt-red .gt-play    { background: linear-gradient(135deg,#ff6a4d,#d0261f); color: #fff; box-shadow: 0 3px 10px rgba(255,90,60,.4); }
.gt-purple .gt-play { background: linear-gradient(135deg,#a06bff,#6b30d6); color: #fff; box-shadow: 0 3px 10px rgba(160,107,255,.4); }
.gt-orange .gt-play { background: linear-gradient(135deg,#ff9a3c,#e2620d); color: #fff; box-shadow: 0 3px 10px rgba(255,154,60,.4); }
.gt-blue .gt-play   { background: linear-gradient(135deg,#3aa0ff,#1961d6); color: #fff; box-shadow: 0 3px 10px rgba(58,160,255,.4); }
.gt-teal .gt-play   { background: linear-gradient(135deg,#3affd0,#12b89c); color: #06211d; }

/* ---------- Floating side icons ---------- */
.float-stack {
  position: fixed; right: 12px; bottom: 92px; z-index: 45;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  pointer-events: none;
}
.app-shell { position: relative; }
@media (min-width: 431px) {
  /* keep floats within the centered phone frame on desktop */
  .float-stack { right: calc(50% - 215px + 12px); }
}
.float-btn {
  pointer-events: auto; position: relative;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 22px; animation: float-bob 3s ease-in-out infinite;
}
.float-wa { background: linear-gradient(135deg,#25d366,#128c3e); box-shadow: 0 6px 18px rgba(37,211,102,.45); }
.float-wa::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.5); animation: ring-pulse 2s ease-out infinite;
}
.float-coin { background: var(--gold-grad); color: #3a2600; font-size: 18px; animation-delay: .5s; box-shadow: 0 6px 18px rgba(245,192,96,.45); }
.float-coin-label {
  position: absolute; bottom: -6px; background: #06210f; color: #ffd257;
  font-size: 8px; font-weight: 800; padding: 1px 6px; border-radius: 999px; border: 1px solid rgba(245,192,96,.5);
}
@keyframes float-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ring-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hs-shine, .gt-sweep, .gt-badge::after, .hs-shimmer, .gt-spin-ico,
  .slot-emo, .float-btn, .hs-art-ico, .gt-gift-ico, .topbar-app-btn,
  .steps-glow, .steps-sweep, .step-arrow, .steps-cta::after,
  .float-wa::after, .cat-hot .cat-ico i { animation: none !important; }
}

/* ===== PayPro deposit-mode chooser ===== */
.deposit-mode-grid { display: flex; gap: 10px; }
.dep-mode {
  flex: 1; position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 14px 12px; background: var(--card-2); border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer; transition: all .2s;
}
.dep-mode input[type="radio"] { display: none; }
.dep-mode.pm-active { border-color: rgba(245,192,96,.6) !important; background: rgba(245,192,96,.08) !important; }
.dep-mode-title { font-size: 14px; font-weight: 700; color: #eef2f8; }
.dep-mode-sub { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.dep-mode-badge {
  position: absolute; top: 8px; right: 8px; font-size: 8px; font-weight: 800; letter-spacing: .5px;
  color: #3a2600; background: var(--gold-grad); padding: 2px 7px; border-radius: 999px;
}
.btn-outline {
  border: 1.5px solid var(--line); color: #cbd2dd; background: transparent;
  font-weight: 700; font-size: 13px;
}

/* ===== Hot / Popular game auto-sliders (single row) ===== */
.section-star { color: var(--gold); margin-right: 4px; }
.games-slider {
  overflow: hidden; position: relative; border-radius: 16px;
}
.games-slider-track {
  display: flex; gap: 12px; will-change: transform;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
/* two cards per row, exactly the same size as the "All Our Games" grid tiles
   (grid uses repeat(2,1fr) with a 12px gap → each tile = (100% - 12px) / 2) */
.games-slider .slide-tile {
  flex: 0 0 calc((100% - 12px) / 2);
  max-width: calc((100% - 12px) / 2);
}
/* slide tiles keep the same look/size as grid tiles */
.games-slider .gtile.gt-full { aspect-ratio: 1 / 1; }

/* ===== Footer ===== */
.app-footer {
  margin: 22px 16px 4px; padding: 20px 16px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.18));
  border: 1px solid rgba(255,255,255,.07); border-radius: 18px;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.footer-crown { color: var(--gold); font-size: 20px; }
.footer-brand-name { font-size: 22px; font-weight: 900; letter-spacing: .5px; }
.footer-desc {
  color: var(--muted); font-size: 11.5px; line-height: 1.6;
  margin: 0 auto 16px; max-width: 380px;
}
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-bottom: 16px;
}
.footer-link {
  font-size: 12px; font-weight: 600; color: #cbd2dd;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  transition: all .18s;
}
.footer-link:active { transform: scale(.96); }
.footer-link:hover { color: var(--gold); border-color: rgba(245,192,96,.4); }
.footer-apk { margin: 0 0 16px; }
.footer-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.footer-social-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 17px; color: #eef2f8;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  transition: all .18s;
}
.footer-social-btn:hover { color: var(--gold); border-color: rgba(245,192,96,.45); transform: translateY(-2px); }
.footer-copy {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07);
  font-size: 11px; color: var(--muted);
}
.footer-copy-sub { font-size: 9.5px; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  .games-slider-track { transition: none !important; }
}

/* ==================== MEMBER CENTER (Profile) ==================== */
.mc-shell {
  min-height: 100vh;
  background:
    radial-gradient(140% 50% at 50% -5%, rgba(124,92,255,.22) 0%, transparent 55%),
    radial-gradient(120% 45% at 90% 15%, rgba(46,230,208,.10) 0%, transparent 50%),
    linear-gradient(180deg, #0b1020 0%, #070a17 60%);
  color: #eef2fb;
  --gold: #ffd36b;
  padding-bottom: 88px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

/* Top profile card */
.mc-topcard {
  position: relative;
  padding: 22px 20px 20px;
  border-radius: 0 0 26px 26px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,211,107,.2) 0%, transparent 50%),
    linear-gradient(160deg, #1a1440 0%, #12193a 45%, #0d1430 100%);
  box-shadow: 0 12px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,211,107,.25);
  overflow: hidden;
}
.mc-crown-watermark {
  position: absolute;
  right: -18px; top: 6px;
  width: 150px; height: 150px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(255,211,107,.18) 0%, rgba(255,211,107,0) 72%);
  color: rgba(255,211,107,.22);
  font-size: 62px;
  pointer-events: none;
}
.mc-profile-row { display: flex; align-items: flex-start; gap: 16px; position: relative; z-index: 2; }
.mc-avatar {
  width: 78px; height: 78px; border-radius: 50%;
  background: linear-gradient(135deg, #ffd36b, #c9902a);
  color: #2a1c00; font-size: 34px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid rgba(255,211,107,.5);
  box-shadow: 0 4px 16px rgba(255,211,107,.35);
  flex-shrink: 0;
  background-size: cover; background-position: center;
}
.mc-profile-meta { padding-top: 4px; }
.mc-vip-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #ffe08a, #c9902a);
  color: #2a1c00; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px;
  box-shadow: 0 2px 10px rgba(255,211,107,.35);
}
.mc-vip-badge .fa-thumbtack { color: #6b4d0f; font-size: 10px; transform: rotate(-20deg); }
.mc-id-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.mc-id { font-size: 20px; font-weight: 700; color: #ffffff; letter-spacing: .5px; }
.mc-copy-btn { background: none; border: none; color: #cfd6ea; font-size: 15px; cursor: pointer; padding: 2px; }
.mc-copy-btn:active { transform: scale(.9); }
.mc-joined { font-size: 12px; color: #aab4cf; margin: 6px 0 0; }

/* Balance */
.mc-balance-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; position: relative; z-index: 2;
}
.mc-balance { display: flex; align-items: baseline; gap: 6px; }
.mc-rs { font-size: 22px; font-weight: 800; color: var(--gold); }
.mc-amount { font-size: 22px; font-weight: 500; color: #ffffff; }
.mc-refresh-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: none; border: none; color: #aab4cf; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mc-refresh-btn:active { transform: scale(.92); }
.mc-refresh-btn i.spin { animation: mcspin .6s linear; }
@keyframes mcspin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Action pills */
.mc-actions { display: flex; gap: 12px; margin-top: 18px; position: relative; z-index: 2; }
.mc-action-pill {
  flex: 1; text-align: center; text-decoration: none;
  background: rgba(255,255,255,.06); color: #eef2fb;
  border: 1px solid rgba(255,255,255,.1);
  font-size: 13.5px; font-weight: 600;
  padding: 11px 6px; border-radius: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  transition: transform .12s, box-shadow .12s;
}
.mc-action-pill:active { transform: translateY(1px); box-shadow: 0 1px 4px rgba(0,0,0,.3); }

/* Body / grid */
.mc-body { padding: 6px 8px 0; }
.mc-divider { position: relative; text-align: center; margin: 26px 12px 22px; }
.mc-divider::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: rgba(255,255,255,.1);
}
.mc-divider-tag {
  position: relative; display: inline-block;
  background: #0f1526; padding: 3px 14px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  font-size: 12px; color: #aab4cf;
}

.mc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 4px;
  padding: 4px 8px 8px;
}
.mc-grid-item {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  background: none; border: none; cursor: pointer;
  text-decoration: none; padding: 0;
  font-family: inherit;
}
.mc-ico-wrap {
  position: relative;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(145deg, #24304e, #141b30);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 24px;
  border: 1px solid rgba(255,211,107,.22);
  box-shadow: 0 6px 16px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .12s;
}
.mc-grid-item:active .mc-ico-wrap { transform: scale(.93); }
.mc-ico-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: #ff3b30; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 18px;
  border-radius: 10px; text-align: center;
  border: 2px solid #0d1226;
}
.mc-grid-label { font-size: 12px; color: #c3cbe2; text-align: center; line-height: 1.25; }

/* ---------- Modals ---------- */
.mc-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20,24,30,.5);
  display: none; align-items: flex-end; justify-content: center;
}
.mc-modal.open { display: flex; animation: mcfade .18s ease; }
@keyframes mcfade { from { opacity: 0; } to { opacity: 1; } }
.mc-modal-card {
  width: 100%; max-width: 480px;
  background: linear-gradient(160deg,#161d34,#0f1526); color: #eef2fb;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px 20px 0 0;
  max-height: 90vh; overflow-y: auto;
  animation: mcslide .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes mcslide { from { transform: translateY(100%); } to { transform: translateY(0); } }
.mc-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 0; background: #141b30; z-index: 2;
}
.mc-modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.mc-modal-head h3 i { color: var(--gold); }
.mc-modal-close { background: rgba(255,255,255,.08); border: none; width: 30px; height: 30px; border-radius: 50%; font-size: 16px; color: #cfd6ea; cursor: pointer; }
.mc-modal-body { padding: 18px 20px 30px; }

.mc-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px;
}
.mc-detail-row span { color: #aab4cf; }
.mc-detail-row b { color: #ffffff; font-weight: 600; }

.mc-sub { font-size: 14px; font-weight: 700; color: #ffffff; margin: 6px 0 12px; }
.mc-hint { font-size: 12px; color: #aab4cf; margin: 0 0 12px; line-height: 1.5; }
.mc-form { display: flex; flex-direction: column; gap: 12px; }
.mc-field { display: flex; flex-direction: column; gap: 6px; }
.mc-field > span { font-size: 12.5px; color: #cfd6ea; font-weight: 600; }
.mc-field input, .mc-field textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  padding: 12px 14px; font-size: 14px; color: #eef2fb; font-family: inherit;
}
.mc-field input::placeholder, .mc-field textarea::placeholder { color: #7f8aa6; }
.mc-field textarea { resize: vertical; }
.mc-field input:focus, .mc-field textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.09); }
.mc-pw { position: relative; }
.mc-pw input { padding-right: 44px; }
.mc-pw .toggle-pw { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #aab4cf; cursor: pointer; font-size: 15px; }
.mc-submit {
  margin-top: 6px; width: 100%;
  background: linear-gradient(135deg, #f5c060, #d4900a);
  color: #3a2600; border: none; border-radius: 12px;
  padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.mc-submit:active { transform: translateY(1px); }
.mc-submit:disabled { opacity: .6; }
.mc-msg-ok { color: #4ade80; font-size: 13px; background: rgba(34,197,94,.14); padding: 9px 12px; border-radius: 8px; }
.mc-msg-err { color: #f87171; font-size: 13px; background: rgba(220,38,38,.14); padding: 9px 12px; border-radius: 8px; }
.mc-faq { border-bottom: 1px solid rgba(255,255,255,.07); padding: 12px 0; }
.mc-faq summary { font-size: 14px; font-weight: 600; color: #eef2fb; cursor: pointer; list-style: none; }
.mc-faq summary::-webkit-details-marker { display: none; }
.mc-faq summary::after { content: '\002B'; float: right; color: var(--gold); font-weight: 700; }
.mc-faq[open] summary::after { content: '\2212'; }
.mc-faq p { font-size: 13px; color: #aab4cf; margin: 10px 0 0; line-height: 1.5; }

/* Toast */
.mc-toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(10px);
  background: #2a2f36; color: #fff; padding: 11px 20px; border-radius: 24px;
  font-size: 13px; z-index: 2000; box-shadow: 0 8px 24px rgba(0,0,0,.3);
  opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; max-width: 88%; text-align: center;
}
.mc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Keep bottom nav readable on light bg for this page */
.mc-shell .bottom-nav {
  max-width: 480px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(15,20,40,.98), rgba(11,15,32,.98));
  border-top: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 -6px 24px rgba(0,0,0,.5);
}
.mc-shell .bn-item { color: #8b97b4; }
.mc-shell .bn-active, .mc-shell .bn-center-label { color: var(--gold); }
.mc-shell .bn-center-btn { border: 4px solid #0f1428; box-shadow: 0 0 18px rgba(255,211,107,.4); }

/* ==================== INTERNAL MESSAGES ==================== */
.mc-msg-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px; background: linear-gradient(180deg, rgba(13,18,38,.98), rgba(13,18,38,.8));
  position: sticky; top: 0; z-index: 5;
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  max-width: 480px; margin: 0 auto;
}
.mc-msg-back { color: #eef2fb; font-size: 18px; text-decoration: none; width: 30px; }
.mc-msg-title { flex: 1; margin: 0; font-size: 17px; font-weight: 700; color: #ffffff; }
.mc-msg-readall { background: none; border: none; color: var(--gold); font-size: 13px; font-weight: 600; cursor: pointer; }
.mc-msg-list { max-width: 480px; margin: 0 auto; padding: 12px; }
.mc-msg-loading, .mc-msg-empty { text-align: center; color: #aab4cf; padding: 50px 20px; }
.mc-msg-empty i { font-size: 40px; display: block; margin-bottom: 12px; opacity: .6; }
.mc-msg-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 14px;
  margin-bottom: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.mc-msg-item.unread { background: rgba(255,211,107,.08); border-color: rgba(255,211,107,.28); box-shadow: 0 4px 16px rgba(255,211,107,.12); }
.mc-msg-ico { font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.mc-msg-content { flex: 1; min-width: 0; }
.mc-msg-content h3 { margin: 0; font-size: 14.5px; font-weight: 700; color: #ffffff; display: flex; align-items: center; gap: 6px; }
.mc-msg-dot { width: 7px; height: 7px; background: #ff3b30; border-radius: 50%; display: inline-block; }
.mc-msg-content p { margin: 5px 0 0; font-size: 13px; color: #c3cbe2; line-height: 1.5; }
.mc-msg-content time { display: block; margin-top: 7px; font-size: 11px; color: #8b97b4; }

/* =========================================================
   ==============  PREMIUM DARK GAMING THEME  ==============
   Scoped to .theme-light — kept as the class name so no page
   markup needs to change, but it now paints a rich, immersive
   casino / gaming look (deep midnight-navy + royal purple with
   glowing gold & neon accents) instead of a flat white UI.
   Applied to the APP pages (home, wallet, deposit, withdraw,
   transactions, invite, auth). Game play screens keep their
   own dark look.
   Palette:
     --bg    #070a17  deep space navy
     --card  #131a2e  glassy raised surface
     --text  #eef2fb  primary text
     --muted #8b97b4  secondary text
     accent  glowing WIN888 gold + violet/cyan neon.
   ========================================================= */
.theme-light {
  --bg: #070a17;
  --bg-2: #0d1226;
  --card: #131a2e;
  --card-2: #0f1526;
  --text: #eef2fb;
  --muted: #8b97b4;
  --line: rgba(255,255,255,0.09);
  --gold: #ffd36b;
  --gold-2: #f0b73f;
  --gold-grad: linear-gradient(135deg, #ffe08a 0%, #f5c451 45%, #c9902a 100%);
  --neon: #7c5cff;
  --neon-2: #2ee6d0;
  color: var(--text);
}

/* ---------- Shell backgrounds ---------- */
.theme-light.app-shell {
  background:
    radial-gradient(140% 55% at 50% -5%, rgba(124,92,255,.22) 0%, transparent 55%),
    radial-gradient(120% 45% at 90% 20%, rgba(46,230,208,.10) 0%, transparent 50%),
    radial-gradient(130% 60% at 50% 100%, rgba(255,211,107,.08) 0%, transparent 55%),
    linear-gradient(180deg, #0b1020 0%, var(--bg) 60%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 30px 80px rgba(0,0,0,.55);
}
.theme-light.auth-shell {
  background:
    linear-gradient(180deg, rgba(7,10,23,.82) 0%, rgba(9,12,28,.72) 30%, rgba(7,10,23,.86) 65%, rgba(7,10,23,.96) 100%),
    radial-gradient(120% 45% at 50% 0%, rgba(124,92,255,.28) 0%, transparent 55%),
    url('/static/images/auth-bg.jpg') center top / cover no-repeat fixed;
  background-color: var(--bg);
}
@media (max-width: 600px) {
  .theme-light.auth-shell { background-attachment: scroll; background-size: cover; }
}

/* ---------- Header ---------- */
.theme-light .app-header {
  background: linear-gradient(180deg, rgba(13,18,38,.96) 55%, rgba(13,18,38,.72) 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 22px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
}
.theme-light .icon-btn { color: #eef2fb; }
.theme-light .brand-win { color: #ffffff; }
.theme-light .brand-888 { color: var(--gold); }
.theme-light .wallet-pill {
  background: linear-gradient(135deg, rgba(255,211,107,.14), rgba(124,92,255,.12));
  border: 1px solid rgba(255,211,107,.45);
  color: #ffe6a6;
  box-shadow: 0 0 14px rgba(255,211,107,.12);
}
.theme-light .profile-ico {
  background: linear-gradient(135deg, #24304e, #1a2136);
  color: #cdd7ee; border: 1px solid var(--line);
}
.theme-light .bell-btn { color: #eef2fb; }

/* ---------- Buttons / text helpers ---------- */
.theme-light .section-title { color: #f3f6ff; }
.theme-light .hero-kicker { color: #cfd6ea; }
.theme-light .quick-label { color: #e8edf8; }
.theme-light .gc-title, .theme-light .gt-name { color: #f3f6ff; }
.theme-light .btn-outline { color: #cbd3e6; border-color: var(--line); }

/* ---------- Quick actions grid ---------- */
.theme-light .quick-grid,
.theme-light .quick-row {
  background: linear-gradient(160deg, rgba(28,36,62,.9) 0%, rgba(17,23,42,.92) 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
}
.theme-light .quick-ico { filter: drop-shadow(0 6px 12px rgba(0,0,0,.55)); }

/* ---------- Hero (home top banner) ---------- */
.theme-light .hero {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(124,92,255,.35) 0%, transparent 55%),
    linear-gradient(120deg, #1a1140 0%, #160c2e 45%, #0b1030 100%);
  border: 1px solid rgba(255,211,107,.35);
  box-shadow: 0 14px 40px rgba(20,10,60,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
.theme-light .hero-kicker { color: #d9def0; }
.theme-light .hero-title { color: var(--gold); text-shadow: 0 2px 18px rgba(255,211,107,.45); }
.theme-light .hero-sub { color: #c3cbe2; }
.theme-light .dot { background: rgba(255,255,255,.25); }
.theme-light .dot.active { background: var(--gold); box-shadow: 0 0 10px rgba(255,211,107,.7); }

/* ---------- Hero carousel slides (vibrant neon-dark) ---------- */
.theme-light .hero-slide { border: 1px solid rgba(255,255,255,.08); box-shadow: 0 12px 34px rgba(0,0,0,.5); }
.theme-light .hs-green  { background: linear-gradient(120deg,#0a2a1c 0%,#0c3826 55%,#08251a 100%); border-color: rgba(46,230,160,.4); }
.theme-light .hs-red    { background: linear-gradient(120deg,#2c0e14 0%,#3a1017 55%,#220a10 100%); border-color: rgba(255,90,90,.4); }
.theme-light .hs-gold   { background: linear-gradient(120deg,#2e2208 0%,#3a2c0b 55%,#221a06 100%); border-color: rgba(255,211,107,.55); }
.theme-light .hs-violet { background: linear-gradient(120deg,#231043 0%,#2e1458 55%,#1a0c33 100%); border-color: rgba(150,110,255,.45); }
.theme-light .hs-orange { background: linear-gradient(120deg,#301a08 0%,#3d220b 55%,#241306 100%); border-color: rgba(255,150,60,.45); }
.theme-light .hs-blue   { background: linear-gradient(120deg,#0c1c3a 0%,#0f2450 55%,#0a1630 100%); border-color: rgba(70,150,255,.45); }
.theme-light .hs-kicker { color: #cfd6ea; }
.theme-light .hs-amount { color: #ffffff; text-shadow: 0 2px 14px rgba(255,211,107,.3); }
.theme-light .hs-sub    { color: #c3cbe2; }

/* ---------- Category nav ---------- */
.theme-light .cat-ico {
  background: linear-gradient(160deg,#1c2440,#131a2e);
  border: 1px solid var(--line); color: var(--gold);
  box-shadow: 0 6px 16px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
}
.theme-light .cat-label { color: #c3cbe2; }

/* ---------- Game tiles (home) — dark neon cards ---------- */
.theme-light .game-card,
.theme-light .gtile {
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.theme-light .gc-red    { background: linear-gradient(160deg,#2a0f12 0%,#170a10 100%); border-color: rgba(255,80,80,.35); }
.theme-light .gc-green  { background: linear-gradient(160deg,#0c2a1b 0%,#0a1712 100%); border-color: rgba(46,220,140,.35); }
.theme-light .gc-purple { background: linear-gradient(160deg,#241245 0%,#130c26 100%); border-color: rgba(150,110,255,.38); }
.theme-light .gc-orange { background: linear-gradient(160deg,#2b1907 0%,#160f08 100%); border-color: rgba(255,160,60,.4); }
.theme-light .gc-blue   { background: linear-gradient(160deg,#0d1c3d 0%,#0a1226 100%); border-color: rgba(70,150,255,.4); }
.theme-light .gc-desc   { color: #aab4cf; }
.theme-light .gt-red    { background: radial-gradient(120% 100% at 70% 0%, #2c1013 0%, #180a10 70%); }
.theme-light .gt-green  { background: radial-gradient(120% 100% at 70% 0%, #0e2c1d 0%, #0a1712 70%); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.theme-light .gt-purple { background: radial-gradient(120% 100% at 70% 0%, #271448 0%, #130c26 70%); }
.theme-light .gt-orange { background: radial-gradient(120% 100% at 70% 0%, #2e1b08 0%, #160f08 70%); }
.theme-light .gt-blue   { background: radial-gradient(120% 100% at 70% 0%, #0e2044 0%, #0a1226 70%); }
.theme-light .gt-teal   { background: radial-gradient(120% 100% at 70% 0%, #0a2e2a 0%, #0a1a19 70%); }
.theme-light .gt-sweep { background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.16) 50%, transparent 58%); }

/* ---------- Steps banner (deposit flow promo) ---------- */
.theme-light .steps-banner {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,211,107,.18) 0%, transparent 45%),
    linear-gradient(135deg, #171f38 0%, #101830 55%, #1a1440 100%);
  border: 1px solid rgba(255,211,107,.42);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.theme-light .steps-title { color: #f3f6ff; }
.theme-light .step { background: rgba(255,255,255,.04); border: 1px solid rgba(255,211,107,.22); }
.theme-light .step:hover { border-color: rgba(255,211,107,.5); box-shadow: 0 8px 20px rgba(0,0,0,.45); }
.theme-light .step-txt strong { color: #f3f6ff; }
.theme-light .step-num { background: linear-gradient(135deg,#1c2440,#131a2e); border-color: var(--gold); color: var(--gold); }

/* ---------- Bottom nav ---------- */
.theme-light .bottom-nav {
  background: linear-gradient(180deg, rgba(15,20,40,.98), rgba(11,15,32,.98));
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0,0,0,.5);
  backdrop-filter: blur(10px);
}
.theme-light .bn-item { color: #8b97b4; }
.theme-light .bn-active, .theme-light .bn-center-label { color: var(--gold); }
.theme-light .bn-center-btn { border: 4px solid #0f1428; box-shadow: 0 0 18px rgba(255,211,107,.4); }

/* ---------- Scrollbar ---------- */
.theme-light .scroll-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); }

/* ---------- AUTH pages ---------- */
.theme-light .auth-card {
  background: linear-gradient(160deg, rgba(22,29,52,.92) 0%, rgba(14,20,38,.94) 100%);
  border: 1px solid rgba(255,211,107,.28);
  box-shadow: 0 30px 70px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
}
.theme-light .auth-promo {
  background: linear-gradient(135deg, rgba(255,211,107,.16), rgba(124,92,255,.14));
  border: 1px solid rgba(255,211,107,.4); color: #ffe6a6;
}
.theme-light .auth-subtitle { color: #c3cbe2; }
.theme-light .auth-brand-name .brand-win { color: #ffffff; }
.theme-light .auth-trust .trust-item { background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.theme-light .auth-trust .trust-item span { color: #c3cbe2; }
.theme-light .field-label { color: #cfd6ea; }
.theme-light .field-input {
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.theme-light .field-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,211,107,.22); }
.theme-light .field-input input { color: #eef2fb; }
.theme-light .field-input input::placeholder { color: #7f8aa6; }
.theme-light .field-prefix { color: #ffd88a; }
.theme-light .auth-row, .theme-light .terms { color: #9aa4bf; }
.theme-light .auth-divider span { background: transparent; color: #8b97b4; }
.theme-light .auth-demo { background: rgba(255,255,255,.04); border: 1px dashed var(--line); color: #c3cbe2; }

/* ---------- WALLET page ---------- */
.theme-light .wallet-hero {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,211,107,.22) 0%, transparent 50%),
    linear-gradient(135deg, #1a1440 0%, #12193a 40%, #0d1430 100%);
  border: 1px solid rgba(255,211,107,.4);
  box-shadow: 0 16px 44px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
}
.theme-light .wallet-hero-amount { color: var(--gold); text-shadow: 0 2px 18px rgba(255,211,107,.4); }
.theme-light .wallet-stat { background: rgba(255,255,255,.04); border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(0,0,0,.4); }

/* ---------- Tabs ---------- */
.theme-light .tab-row { background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.theme-light .tab-btn { color: #9aa4bf; }
.theme-light .tab-active { background: var(--gold-grad); color: #2a1c00; box-shadow: 0 4px 14px rgba(255,211,107,.3); }

/* ---------- Transaction items ---------- */
.theme-light .tx-item { background: rgba(255,255,255,.04); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.theme-light .tx-type { color: #f3f6ff; }
.theme-light .refer-banner {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,211,107,.18) 0%, transparent 50%),
    linear-gradient(135deg,#1a1440 0%,#12193a 100%);
  border: 1px solid rgba(255,211,107,.32);
}

/* ---------- Page titles ---------- */
.theme-light .page-title { color: #f3f6ff; }

/* ---------- Deposit / withdraw cards ---------- */
.theme-light .deposit-card,
.theme-light .avail-balance-card,
.theme-light .dep-tips {
  background: linear-gradient(160deg, rgba(22,29,52,.9), rgba(15,21,38,.92));
  border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.theme-light .dep-step-title { color: #f3f6ff; }
.theme-light .amount-preset { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: #cfd6ea; }
.theme-light .amount-preset:hover, .theme-light .preset-active { background: rgba(255,211,107,.16); border-color: rgba(255,211,107,.55); color: var(--gold); }
.theme-light .pm-option { background: rgba(255,255,255,.05); border: 1.5px solid var(--line); }
.theme-light .pm-label { color: #f3f6ff; }
.theme-light .upi-pay-box { background: rgba(255,255,255,.04); border: 1px solid rgba(255,211,107,.24); }
.theme-light .upi-qr-placeholder { background: #ffffff; border: 1px dashed rgba(255,211,107,.4); }
.theme-light .upi-name-text { color: #cfd6ea; }
.theme-light .dep-tips-list strong { color: #cfd6ea; }
.theme-light .dep-mode { background: rgba(255,255,255,.05); border: 1.5px solid var(--line); }
.theme-light .dep-mode-title { color: #f3f6ff; }

/* Input fields inside app pages */
.theme-light .mc-field input, .theme-light .mc-field textarea { background: rgba(255,255,255,.06); color: #eef2fb; border-color: var(--line); }

/* ---------- Modals on app pages ---------- */
.theme-light .modal-box { background: linear-gradient(160deg,#161d34,#0f1526); border: 1px solid var(--line); color: #eef2fb; }
.theme-light .modal-head { background: transparent; border-bottom: 1px solid var(--line); }
.theme-light .pm-type-tab { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: #9aa4bf; }

/* ---------- Notifications panel ---------- */
.theme-light .notif-panel { background: linear-gradient(160deg,#161d34,#0f1526); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.theme-light .notif-panel-head { background: transparent; border-bottom: 1px solid var(--line); }
.theme-light .notif-unread { background: rgba(255,211,107,.08); }

/* ---------- Side drawer (opens from app pages) ---------- */
.theme-light .side-drawer {
  background: linear-gradient(160deg, #141b30 0%, #0c1122 100%);
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 40px rgba(0,0,0,.6);
}
.theme-light .drawer-header { border-bottom: 1px solid var(--line); }
.theme-light .drawer-brand { color: #ffffff; }
.theme-light .drawer-close-btn { background: rgba(255,255,255,.07); color: #eef2fb; }
.theme-light .drawer-user { background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }
.theme-light .drawer-uname { color: #ffffff; }
.theme-light .drawer-balance { background: rgba(255,211,107,.1); border: 1px solid rgba(255,211,107,.35); color: var(--gold); }
.theme-light .drawer-link { color: #cfd6ea; }
.theme-light .drawer-link:hover, .theme-light .drawer-link-active {
  background: rgba(255,211,107,.12); color: var(--gold); border-left-color: var(--gold);
}
.theme-light .drawer-footer { border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.theme-light .app-footer {
  background: linear-gradient(180deg, rgba(15,20,40,.95), rgba(10,14,28,.97));
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
}
.theme-light .footer-brand-name { color: #ffffff; }
.theme-light .footer-desc { color: #9aa4bf; }
.theme-light .footer-link { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: #c3cbe2; }
.theme-light .footer-link:hover { color: var(--gold); border-color: rgba(255,211,107,.4); }
.theme-light .footer-social-btn { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: #c3cbe2; }
.theme-light .footer-copy { border-top: 1px solid var(--line); color: #9aa4bf; }

/* ---------- Set-PIN popup (post-signup, shown on auth) ---------- */
.theme-light .setpin-modal {
  background: linear-gradient(180deg,#161d34,#0f1526);
  border: 1px solid rgba(255,211,107,.3);
  box-shadow: 0 30px 70px rgba(0,0,0,.65);
}
.theme-light .setpin-title { color: #f3f6ff; }
.theme-light .setpin-sub { color: #aab4cf; }

/* ---------- Top download-app bar (neon green identity) ---------- */
.theme-light .topbar-app {
  background: linear-gradient(90deg, #0c2a1c 0%, #0f3826 100%);
  border-bottom: 1px solid rgba(46,230,160,.28);
  color: #8ff0c0;
}
.theme-light .topbar-app-left i { color: #2ee6a0; }
.theme-light .topbar-app-close { color: #6fae8a; }

/* theme-color meta stays dark */

/* Dark page background for app / member-center pages (set by shortcut.js) */
html.page-light, body.page-light { background: #070a17; }
