/* ===================== 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 ---------- */
.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 ---------- */
.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;
}
.quick-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.quick-ico {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-size: 18px; border: 2px solid; background: #0c1424;
}
.q-green { color: #2ecc71; border-color: rgba(46,204,113,.5); }
.q-blue { color: #3aa0ff; border-color: rgba(58,160,255,.5); }
.q-purple { color: #a06bff; border-color: rgba(160,107,255,.5); }
.q-gold { color: var(--gold); border-color: rgba(245,192,96,.5); }
.q-red { color: #ff5a5a; border-color: rgba(255,90,90,.5); }
.quick-label { font-size: 10px; font-weight: 600; color: #e6ebf2; }
.quick-sub { font-size: 8px; color: var(--muted); }

/* ---------- 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 ---------- */
.steps-banner {
  margin-top: 18px; display: flex; align-items: stretch;
  background: linear-gradient(120deg, #0e1626 60%, #1a1305 100%);
  border: 1px solid rgba(245,192,96,.35); border-radius: 16px; overflow: hidden;
}
.steps-left { flex: 1; padding: 14px 12px; }
.steps-title { color: var(--gold); font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.steps-flow { display: flex; align-items: center; gap: 6px; }
.step { display: flex; align-items: center; gap: 6px; }
.step-num { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.step-txt { display: flex; flex-direction: column; line-height: 1.15; }
.step-txt strong { font-size: 9.5px; color: #fff; }
.step-txt span { font-size: 7.5px; color: var(--muted); }
.step-arrow { color: var(--gold); font-size: 9px; }
.steps-right {
  width: 120px; background: var(--gold-grad); color: #3a2600;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px; text-align: center; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
}
.steps-trophy { font-size: 24px; margin-bottom: 4px; }
.steps-cash { font-size: 12px; font-weight: 800; line-height: 1.1; }

.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 ===================== */
.auth-shell { justify-content: center; padding: 24px 18px; }
.auth-bg-glow {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,192,96,.25) 0%, transparent 70%);
  pointer-events: none;
}
.auth-card {
  position: relative; z-index: 2;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.auth-brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
.auth-crown { font-size: 34px; margin-bottom: 6px; }
.auth-brand-name { font-size: 26px; }
.auth-title { text-align: center; font-size: 22px; font-weight: 700; margin: 0; }
.auth-subtitle { text-align: center; color: var(--muted); font-size: 12px; margin: 6px 0 20px; }

.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: 500; }
.opt { color: var(--muted); font-weight: 400; }
.field-input {
  display: flex; align-items: center; gap: 8px;
  background: #0c1424; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 48px;
}
.field-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(245,192,96,.15); }
.field-ico { color: var(--muted); font-size: 14px; width: 16px; text-align: center; }
.field-prefix { color: #cdd5e0; font-size: 14px; font-weight: 600; }
.field-input input {
  flex: 1; background: none; border: none; outline: none; color: #fff; font-size: 14px; 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: 14px; font-size: 15px; margin-top: 4px; }
.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: var(--card); padding: 0 12px; color: var(--muted); font-size: 12px; }
.auth-alt { margin-top: 0; }
.auth-demo { text-align: center; color: var(--muted); font-size: 11px; margin: 16px 0 0; }
.auth-demo b { color: #cdd5e0; }

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: 100; 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;
}
