/* GEM PALACE — shared site styles (lobby, auth, wallet, account).
   Mobile-first, dark purple + gold theme matching the games. */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #14101f; color: #f2eefc; min-height: 100vh;
  background-image: radial-gradient(ellipse 80% 40% at 50% -5%, #2c1c5e 0%, transparent 70%);
  padding-bottom: 76px; /* room for the fixed bottom nav */
}
a { color: #ffd76a; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 14px; }
.muted { color: #b9aed6; }
.small { font-size: 12px; }
.center { text-align: center; }
.money { color: #ffe9a8; font-weight: 700; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 10, 36, .96); border-bottom: 1px solid #3a2a6e;
  backdrop-filter: blur(4px);
}
.topbar .wrap { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.logo { font-size: 21px; font-weight: 900; letter-spacing: 2px; color: #ffe9a8; white-space: nowrap; }
.logo span { color: #7df9ff; }
.topbar .spacer { flex: 1; }
.bal-pill {
  background: rgba(0,0,0,.5); border: 1px solid #6b5a2e; border-radius: 10px;
  padding: 5px 10px; text-align: right; line-height: 1.15; color: #f2eefc;
}
.bal-pill small { display: block; font-size: 9px; letter-spacing: 1px; color: #c9b98a; }
.bal-pill b { font-size: 15px; color: #ffe9a8; }
.bal-pill .bonus { display: block; font-size: 10px; color: #8fe3ff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: none; border-radius: 12px; padding: 11px 18px;
  font-size: 15px; font-weight: 800; letter-spacing: .5px; text-align: center;
  background: linear-gradient(180deg, #3b2a6e, #241645); color: #fff;
  border: 1px solid #7a68b8;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: radial-gradient(circle at 50% 20%, #ffe9a8, #f5b301 55%, #b97f00);
  color: #3a2700; border: none; box-shadow: 0 3px 0 #7a5c00;
}
.btn-gold:active { transform: translateY(2px); box-shadow: 0 1px 0 #7a5c00; }
.btn-ghost { background: transparent; border: 1px solid #7a68b8; color: #e8dcb0; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }

/* ---------- banner strip ---------- */
.banner-strip { margin: 14px 0 6px; }
.banner {
  border-radius: 16px; padding: 20px 18px; text-align: center;
  background: linear-gradient(120deg, #2c1c5e 0%, #5c2a8a 45%, #8a6d1f 100%);
  border: 1px solid rgba(255, 215, 106, .5);
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.banner h2 { font-size: 22px; letter-spacing: 1px; color: #ffe9a8; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.banner p { font-size: 14px; color: #efe6c8; margin-top: 6px; line-height: 1.5; }
.banner .cta { margin-top: 12px; }
.banner .dots { margin-top: 10px; font-size: 11px; letter-spacing: 4px; color: rgba(255,255,255,.6); }

/* ---------- category pills ---------- */
.cats {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 800;
  letter-spacing: 1px; background: #241645; border: 1px solid #7a68b8; color: #e8dcb0;
}
.cat.active { background: linear-gradient(180deg, #8a6d1f, #5c4a10); border-color: #ffd76a; color: #ffe9a8; }

/* ---------- section titles ---------- */
.sec-title { font-size: 17px; letter-spacing: 1px; color: #ffe9a8; margin: 18px 0 10px; }
.sec-title small { color: #b9aed6; font-weight: 400; letter-spacing: 0; font-size: 13px; }

/* ---------- game grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: #1d1533; border: 1px solid #3a2a6e; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
}
.card .thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #0a0618; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .thumb-fallback { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 56px; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 16px; letter-spacing: 1px; color: #ffe9a8; }
.card .tag { font-size: 12px; color: #b9aed6; line-height: 1.45; min-height: 34px; }
.card .meta { display: flex; justify-content: space-between; font-size: 12px; color: #c9b98a; }
.card .meta b { color: #ffe9a8; }
.card .play { margin-top: auto; }
.empty-state {
  background: #1d1533; border: 1px dashed #3a2a6e; border-radius: 14px;
  padding: 34px 18px; text-align: center; color: #b9aed6; line-height: 1.6;
}

/* ---------- info strip ---------- */
.info-strip {
  display: grid; gap: 10px; margin-top: 22px;
}
@media (min-width: 640px) { .info-strip { grid-template-columns: repeat(3, 1fr); } }
.info-box {
  background: #1d1533; border: 1px solid #3a2a6e; border-radius: 14px; padding: 14px;
}
.info-box h4 { font-size: 14px; color: #ffe9a8; margin-bottom: 6px; letter-spacing: .5px; }
.info-box p { font-size: 13px; color: #b9aed6; line-height: 1.55; }

/* ---------- forms ---------- */
.form-card {
  max-width: 460px; margin: 26px auto; background: #1d1533; border: 1px solid #3a2a6e;
  border-radius: 16px; padding: 22px 20px;
}
.form-card h1 { font-size: 20px; letter-spacing: 1px; color: #ffe9a8; margin-bottom: 4px; }
.form-card .sub { font-size: 13px; color: #b9aed6; line-height: 1.5; margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; letter-spacing: 1px; color: #c9b98a; margin-bottom: 6px; font-weight: 700; }
.field input, .field select {
  width: 100%; padding: 12px; border-radius: 11px; font-size: 15px;
  background: #0a0618; border: 1px solid #6b5a2e; color: #fff; font-family: inherit;
}
.field input:focus, .field select:focus { outline: none; border-color: #ffd76a; }
.field .hint { font-size: 12px; color: #b9aed6; margin-top: 5px; line-height: 1.45; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #e8dcb0; margin-bottom: 14px; }
.check input { accent-color: #f5b301; width: 17px; height: 17px; }
.error {
  display: none; background: #4a1420; border: 1px solid #a33; color: #ffd2d2;
  border-radius: 11px; padding: 11px 13px; font-size: 13px; line-height: 1.5; margin-bottom: 14px;
}
.error.show { display: block; }
.ok-msg {
  display: none; background: #123d22; border: 1px solid #3a8; color: #c8f5d8;
  border-radius: 11px; padding: 11px 13px; font-size: 13px; line-height: 1.5; margin-bottom: 14px;
}
.ok-msg.show { display: block; }
.form-links { text-align: center; font-size: 13px; color: #b9aed6; margin-top: 14px; line-height: 1.8; }

/* ---------- wallet / account ---------- */
.balance-hero {
  margin: 16px 0; background: linear-gradient(120deg, #2c1c5e, #5c2a8a);
  border: 1px solid rgba(255, 215, 106, .5); border-radius: 16px; padding: 20px; text-align: center;
}
.balance-hero small { font-size: 11px; letter-spacing: 2px; color: #c9b98a; }
.balance-hero .big { font-size: 34px; font-weight: 900; color: #ffe9a8; margin: 4px 0; }
.balance-hero .bonus-line { font-size: 13px; color: #8fe3ff; }
.tabs { display: flex; gap: 8px; margin: 14px 0; }
.tab {
  flex: 1; padding: 11px 0; border-radius: 11px; font-size: 14px; font-weight: 800; text-align: center;
  background: #241645; border: 1px solid #7a68b8; color: #e8dcb0;
}
.tab.active { background: linear-gradient(180deg, #8a6d1f, #5c4a10); border-color: #ffd76a; color: #ffe9a8; }
.panel { display: none; }
.panel.active { display: block; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row-item {
  background: #1d1533; border: 1px solid #3a2a6e; border-radius: 12px; padding: 11px 13px;
  font-size: 13px; line-height: 1.55;
}
.row-item .top { display: flex; justify-content: space-between; gap: 8px; }
.row-item .top b { color: #ffe9a8; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .5px;
  padding: 2px 8px; border-radius: 999px; background: #3a2a6e; color: #e8dcb0;
}
.badge.green { background: #123d22; color: #8fe3a8; }
.badge.amber { background: #5c4a10; color: #ffd76a; }
.badge.red { background: #4a1420; color: #ff9a9a; }
.progress { height: 8px; background: #0a0618; border-radius: 99px; overflow: hidden; margin-top: 7px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #f5b301, #ffe9a8); }
.kv { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 2px; border-bottom: 1px solid rgba(255,255,255,.07); }
.kv:last-child { border-bottom: none; }
.kv span:first-child { color: #b9aed6; }
.kv span:last-child { color: #ffe9a8; font-weight: 700; }

/* ---------- bottom nav ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(16, 10, 36, .97); border-top: 1px solid #3a2a6e;
}
.bottomnav .wrap {
  display: flex; max-width: 560px;
}
.bottomnav a {
  flex: 1; text-align: center; padding: 9px 0 10px; color: #b9aed6; font-size: 11px;
  font-weight: 700; letter-spacing: .5px; line-height: 1.3;
}
.bottomnav a .ico { display: block; font-size: 20px; }
.bottomnav a.active { color: #ffd76a; }

/* ---------- footer ---------- */
.site-footer { text-align: center; color: #8f84b5; font-size: 12px; line-height: 1.9; padding: 26px 14px 8px; }
.site-footer a { color: #b9aed6; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 90;
  background: rgba(0,0,0,.88); border: 1px solid #6b5a2e; color: #ffe9a8;
  padding: 11px 17px; border-radius: 11px; font-size: 14px; display: none;
  max-width: 92vw; text-align: center; line-height: 1.5;
}

/* ---------- payment flow v2 (A6) ---------- */
/* Deposit / Withdraw quick-action pair on the lobby home. */
.action-pair { display: flex; gap: 10px; margin: 12px 0 4px; }
.action-pair .btn { flex: 1; padding: 15px 10px; font-size: 17px; border-radius: 14px; }
.action-pair .btn-dep { background: radial-gradient(circle at 50% 20%, #ffe9a8, #f5b301 55%, #b97f00); color: #3a2700; border: none; box-shadow: 0 3px 0 #7a5c00; }
.action-pair .btn-wd { background: linear-gradient(180deg, #3b2a6e, #241645); color: #ffe9a8; border: 1px solid #ffd76a; }

/* Payment method / channel cards. */
.pay-methods { display: grid; gap: 10px; }
.pay-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: #1d1533; border: 1px solid #3a2a6e; border-radius: 14px; padding: 15px 16px;
  color: #f2eefc; font-size: 15px;
}
.pay-card:active { border-color: #ffd76a; }
.pay-card-off { opacity: .5; cursor: not-allowed; }
.pay-card .m-ico {
  flex: 0 0 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; letter-spacing: .5px; color: #fff;
}
.pay-card .m-ico.bkash { background: linear-gradient(135deg, #e2136e, #a30d4e); }
.pay-card .m-ico.nagad { background: linear-gradient(135deg, #f6921e, #c96a00); }
.pay-card .m-ico.rocket { background: linear-gradient(135deg, #8c3494, #5e1f66); }
.pay-card .m-body { flex: 1; }
.pay-card .m-body b { display: block; font-size: 16px; color: #ffe9a8; letter-spacing: .5px; }
.pay-card .m-body span { font-size: 12px; color: #b9aed6; }
.pay-card .m-arrow { font-size: 20px; color: #ffd76a; }
.pay-card:disabled { opacity: .45; }

/* Amount chips. */
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 14px; }
.chip {
  padding: 11px 4px; border-radius: 11px; font-size: 14px; font-weight: 800; text-align: center;
  background: #241645; border: 1px solid #7a68b8; color: #e8dcb0;
}
.chip.active { background: linear-gradient(180deg, #8a6d1f, #5c4a10); border-color: #ffd76a; color: #ffe9a8; }

/* Numbered step guide (own wording). */
.guide-list { list-style: none; counter-reset: step; margin: 0 0 16px; }
.guide-list li {
  counter-increment: step; position: relative; padding: 0 0 12px 38px;
  font-size: 13px; color: #e8dcb0; line-height: 1.55;
}
.guide-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: #3b2a6e; border: 1px solid #ffd76a;
  color: #ffe9a8; font-size: 13px; font-weight: 800; text-align: center; line-height: 24px;
}

/* Warning box. */
.warn-box {
  background: #3d2a08; border: 1px solid #a8842a; color: #ffe9a8;
  border-radius: 11px; padding: 12px 14px; font-size: 13px; line-height: 1.6; margin-bottom: 14px;
}
.warn-box b { color: #ffd76a; }

/* Pay page: big amount + receiving number row. */
.pay-amount { text-align: center; padding: 8px 0 16px; }
.pay-amount small { display: block; font-size: 11px; letter-spacing: 2px; color: #c9b98a; }
.pay-amount .big { font-size: 40px; font-weight: 900; color: #ffe9a8; }
.pay-amount .chan { font-size: 13px; color: #b9aed6; margin-top: 4px; }
.num-row {
  display: flex; align-items: center; gap: 10px;
  background: #0a0618; border: 1px solid #6b5a2e; border-radius: 11px; padding: 12px 14px;
}
.num-row .num { flex: 1; font-size: 20px; font-weight: 900; letter-spacing: 2px; color: #ffe9a8; }
.num-row .copy-btn {
  flex: 0 0 auto; padding: 9px 14px; border-radius: 9px; font-size: 13px; font-weight: 800;
  background: #3b2a6e; border: 1px solid #ffd76a; color: #ffe9a8;
}

/* Bound payout account cards. */
.acct-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #1d1533; border: 1px solid #3a2a6e; border-radius: 12px; padding: 12px 14px;
  color: #f2eefc; font-size: 14px; margin-bottom: 8px;
}
.acct-card.sel { border-color: #ffd76a; background: #2a1d4d; }
.acct-card .a-ico {
  flex: 0 0 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: #fff;
}
.acct-card .a-ico.bkash { background: linear-gradient(135deg, #e2136e, #a30d4e); }
.acct-card .a-ico.nagad { background: linear-gradient(135deg, #f6921e, #c96a00); }
.acct-card .a-ico.rocket { background: linear-gradient(135deg, #8c3494, #5e1f66); }
.acct-card .a-body { flex: 1; }
.acct-card .a-body b { display: block; color: #ffe9a8; }
.acct-card .a-body span { font-size: 12px; color: #b9aed6; }
.acct-card .a-del { color: #ff9a9a; font-size: 12px; font-weight: 700; background: none; border: none; padding: 6px; }
.acct-card .a-check { font-size: 20px; color: #8fe3a8; }

.setup-note {
  background: #1d1533; border: 1px dashed #7a68b8; border-radius: 12px;
  padding: 14px; font-size: 13px; color: #e8dcb0; line-height: 1.6; margin-bottom: 12px;
}

/* Confirmation modal. */
.modal {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 2, 14, .82); align-items: center; justify-content: center; padding: 18px;
}
.modal.show { display: flex; }
.modal-card {
  width: 100%; max-width: 440px; background: #1d1533; border: 1px solid #ffd76a;
  border-radius: 16px; padding: 22px 20px; text-align: center;
}
.modal-card h3 { font-size: 18px; color: #ffe9a8; margin-bottom: 8px; letter-spacing: .5px; }
.modal-card p { font-size: 14px; color: #e8dcb0; line-height: 1.6; margin-bottom: 8px; }
.modal-card .m-amount { font-size: 28px; font-weight: 900; color: #ffe9a8; margin: 6px 0 12px; }
.modal-card .m-btns { display: flex; gap: 10px; margin-top: 14px; }
.modal-card .m-btns .btn { flex: 1; }

.back-link { display: inline-block; font-size: 13px; color: #b9aed6; margin: 4px 0 12px; background: none; border: none; padding: 4px 0; }
