* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #eceff5;
  --bg2: #f4f7fb;
  --surface: #ffffff;
  --surface2: #eef2f8;
  --line: #e0e6f0;
  --green: #12b76a;
  --green2: #0e9f5b;
  --red: #ef2f4b;
  --orange: #f5871f;
  --text: #131824;
  --muted: #667085;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(29,41,74,0.10);
  --shadow-sm: 0 4px 14px rgba(29,41,74,0.08);
}

/* ---------- Dark "neon casino" theme ---------- */
[data-theme="dark"] {
  --bg: #0b0e17;
  --bg2: #121728;
  --surface: #161c2c;
  --surface2: #1f2740;
  --line: #2a3350;
  --green: #1ed67e;
  --green2: #12b76a;
  --red: #ff3d5c;
  --orange: #ff9f2e;
  --text: #e8edf7;
  --muted: #94a0b8;
  --shadow: 0 14px 34px rgba(0,0,0,0.55);
  --shadow-sm: 0 6px 16px rgba(0,0,0,0.45);
}
[data-theme="dark"] body { background:
  radial-gradient(1100px 520px at 50% -12%, rgba(109,40,217,.16), transparent 60%),
  radial-gradient(900px 520px at 95% 8%, rgba(18,183,106,.10), transparent 60%), var(--bg); }
[data-theme="dark"] .nav { background: rgba(11,14,23,0.82); border-bottom-color: var(--line); }
[data-theme="dark"] .tabbar { background: rgba(18,23,40,0.9); }
[data-theme="dark"] .wallet-chip { background: var(--surface); }
[data-theme="dark"] .btn-primary { box-shadow: 0 0 18px rgba(30,214,126,0.32); }
[data-theme="dark"] .btn-ghost, [data-theme="dark"] .btn-danger { background: var(--surface2); }
[data-theme="dark"] .field input, [data-theme="dark"] .field select { background: var(--bg2); color: var(--text); }
[data-theme="dark"] .auth-wrap { background:
  radial-gradient(1200px 500px at 50% -10%, rgba(109,40,217,0.22), transparent 60%),
  radial-gradient(900px 500px at 90% 110%, rgba(18,183,106,0.14), transparent 60%), var(--bg); }
[data-theme="dark"] .nav-brand, [data-theme="dark"] .auth-logo { color: #ff5069; text-shadow: 0 0 18px rgba(255,61,92,0.5); }

/* Theme toggle button */
.theme-toggle { background: var(--surface2); border: 1px solid var(--line); border-radius: 11px; width: 40px; height: 40px; font-size: 1.05rem; cursor: pointer; color: var(--text); display: inline-flex; align-items: center; justify-content: center; transition: transform .1s, border-color .15s; flex: 0 0 auto; }
.theme-toggle:hover { border-color: var(--green); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle-float { position: fixed; top: 14px; right: 14px; z-index: 80; box-shadow: var(--shadow-sm); }

/* Page-enter transition (app-like) */
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .container, .narrow { animation: pageIn .32s ease both; }
}

/* Reusable skeleton shimmer */
.skeleton { position: relative; overflow: hidden; background: var(--surface2); border-radius: 8px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); animation: skelSweep 1.2s infinite; }
[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); }
@keyframes skelSweep { to { transform: translateX(100%); } }

html, body { overflow-x: hidden; }

/* Animated casino mesh background (GPU-friendly blurred blobs) — shared app-wide */
.mesh-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mesh-bg::before, .mesh-bg::after { content: ""; position: absolute; width: 60vw; max-width: 560px; height: 60vw; max-height: 560px; border-radius: 50%; filter: blur(90px); opacity: .22; will-change: transform; }
.mesh-bg::before { background: radial-gradient(circle, #ef2f4b, transparent 62%); top: -18%; left: -14%; animation: meshA 20s ease-in-out infinite; }
.mesh-bg::after { background: radial-gradient(circle, #6d28d9, transparent 62%); bottom: -22%; right: -14%; animation: meshB 24s ease-in-out infinite; }
[data-theme="dark"] .mesh-bg::before, [data-theme="dark"] .mesh-bg::after { opacity: .40; }
@keyframes meshA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes meshB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7vw, -5vh) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .mesh-bg::before, .mesh-bg::after { animation: none; } }
body {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; background: rgba(255,255,255,0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { font-size: 1.4rem; font-weight: 900; font-style: italic; color: var(--red); text-shadow: 0 2px 10px rgba(239,47,75,0.28); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface2); }
.wallet-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-weight: 800; }
.wallet-chip .amt { color: var(--green); }
.wallet-chip .plus { background: var(--green); color: #04230f; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-weight: 900; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; font-weight: 800; font-size: 0.95rem; padding: 12px 18px; border-radius: 10px; transition: filter 0.15s, transform 0.1s; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(180deg, var(--green), var(--green2)); color: #04230f; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-danger { background: var(--surface2); color: var(--red); border: 1px solid var(--line); }
.btn-danger:hover { border-color: var(--red); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 0.85rem; }

/* ---------- Layout containers ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 24px 18px 60px; }
.narrow { max-width: 460px; margin: 0 auto; padding: 28px 18px 60px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card + .card { margin-top: 16px; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px; background:
  radial-gradient(1200px 500px at 50% -10%, rgba(232,17,60,0.14), transparent 60%),
  radial-gradient(900px 500px at 90% 110%, rgba(41,196,99,0.10), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; box-shadow: 0 24px 60px rgba(29,41,74,0.14); }
.auth-logo { text-align: center; font-size: 2rem; font-weight: 900; font-style: italic; color: var(--red); text-shadow: 0 3px 14px rgba(239,47,75,0.28); margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 0.92rem; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--muted); font-size: 0.9rem; }
.auth-alt a { color: var(--green); font-weight: 700; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select {
  width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; color: var(--text); font-size: 0.98rem; outline: none; font-weight: 600;
}
.field input:focus, .field select:focus { border-color: var(--green); }
.field .hint { font-size: 0.74rem; color: var(--muted); margin-top: 5px; }
.input-icon { position: relative; }
.input-icon .toggle-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; }

.form-row { display: flex; gap: 10px; }
.form-row .field { flex: 1; }

.alert { border-radius: 10px; padding: 11px 14px; font-size: 0.88rem; font-weight: 600; margin-bottom: 14px; display: none; }
.alert.show { display: block; }
.alert.error { background: rgba(239,47,75,0.10); color: #c81e37; border: 1px solid rgba(239,47,75,0.28); }
.alert.success { background: rgba(18,183,106,0.12); color: #0c7a45; border: 1px solid rgba(18,183,106,0.30); }

.link-line { text-align: right; margin-top: -6px; margin-bottom: 12px; }
.link-line a { color: var(--muted); font-size: 0.82rem; }
.link-line a:hover { color: var(--green); }

/* ---------- Landing ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 18px 60px; text-align: center; background:
  radial-gradient(1000px 460px at 50% -5%, rgba(232,17,60,0.18), transparent 60%), var(--bg); }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; }
.hero h1 .accent { color: var(--red); }
.hero p { color: var(--muted); font-size: clamp(1rem, 2.6vw, 1.2rem); max-width: 640px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 34px; color: var(--muted); font-size: 0.85rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }
.hero-kick {
  display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 18px;
}

.bonus-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bcard {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow-sm); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.bcard:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: var(--shadow); }
.bcard .bk { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 8px; }
.bcard .big { font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 900; margin-bottom: 8px; line-height: 1.2; }
.bcard p { font-size: 0.88rem; color: var(--muted); }
.bcard.b1 { background: linear-gradient(145deg, rgba(239,47,75,.08), var(--surface)); border-color: rgba(239,47,75,.25); }
.bcard.b1 .big { color: var(--red); }
.bcard.b2 { background: linear-gradient(145deg, rgba(18,183,106,.10), var(--surface)); border-color: rgba(18,183,106,.28); }
.bcard.b2 .big { color: var(--green); }
.bcard.b3 { background: linear-gradient(145deg, rgba(109,40,217,.10), var(--surface)); border-color: rgba(109,40,217,.28); }
.bcard.b3 .big { color: #6d28d9; }

.land-games { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.lg {
  position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface2);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.lg:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: var(--shadow-sm); }
.lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg .nm {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 8px 8px;
  font-size: 0.72rem; font-weight: 800; text-align: center; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
}
.lg .rb {
  position: absolute; top: 6px; right: 6px; z-index: 2; font-size: 0.58rem; font-weight: 900;
  letter-spacing: .3px; padding: 3px 7px; border-radius: 6px; color: #fff;
}
.lg .rb.live { background: linear-gradient(180deg, #ff4d5e, #d81e37); }
.lg .rb.multi { background: linear-gradient(180deg, #ffb648, #f38712); color: #3a2400; }
.lg .rb.new { background: linear-gradient(180deg, #34d399, #0e9f5b); }

.section { padding: 40px 0; }
.section h2 { text-align: center; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.section .lead { text-align: center; color: var(--muted); margin-bottom: 30px; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { font-size: 1.8rem; margin-bottom: 10px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.9rem; }
.step { text-align: center; }
.step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 12px; font-weight: 900; color: var(--green); font-size: 1.2rem; }

.footer { border-top: 1px solid var(--line); padding: 26px 18px; text-align: center; color: var(--muted); font-size: 0.85rem; }
.footer .disclaimer { max-width: 720px; margin: 10px auto 0; font-size: 0.76rem; opacity: 0.8; }

/* ---------- Wallet / profile ---------- */
.page-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.page-sub { color: var(--muted); margin-bottom: 22px; font-size: 0.92rem; }
.balance-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 20px; margin-bottom: 18px; color: #fff;
  background: linear-gradient(125deg, #1b1040 0%, #3a1f7a 46%, #12b76a 165%); box-shadow: 0 16px 40px rgba(45,25,100,.30); }
.balance-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(62% 120% at 86% -12%, rgba(255,255,255,.20), transparent 60%); }
.balance-hero::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 38%; transform: skewX(-18deg); pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent); animation: whShine 5.5s ease-in-out infinite; }
.balance-hero > * { position: relative; z-index: 1; }
.balance-hero .lbl { color: rgba(255,255,255,.82); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.balance-hero .val { font-family: Anton, Impact, sans-serif; font-size: 2.2rem; font-weight: 900; color: #fff; letter-spacing: .5px; margin-top: 2px; }
.balance-hero .btn-ghost { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.30); color: #fff; }
.balance-hero .btn-ghost:hover { border-color: #fff; color: #fff; }
.balance-hero .muted-small { color: rgba(255,255,255,.85); }
@keyframes whShine { 0% { left: -60%; } 40%, 100% { left: 140%; } }

/* first-deposit bonus banner */
.fd-bonus { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px 16px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(120deg, #6d28d9, #a21caf 70%, #f5871f 140%); color: #fff; box-shadow: 0 12px 28px rgba(109,40,217,.24); }
.fd-bonus .fd-gift { font-size: 1.8rem; }
.fd-bonus .fd-txt { display: flex; flex-direction: column; line-height: 1.3; }
.fd-bonus .fd-txt b { font-size: 1rem; font-weight: 900; }
.fd-bonus .fd-txt span { font-size: 0.78rem; opacity: .92; }

.amount-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.amount-chips button { background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 6px; color: var(--text); font-weight: 700; cursor: pointer; }
.amount-chips button:hover, .amount-chips button.active { border-color: var(--green); color: var(--green); }

.method-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.method-list button { background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 6px; color: var(--muted); font-weight: 700; cursor: pointer; font-size: 0.85rem; }
.method-list button.active { border-color: var(--green); color: var(--green); background: rgba(41,196,99,0.08); }

.tx-list { display: flex; flex-direction: column; gap: 8px; }
.tx-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--surface2); border-radius: 10px; padding: 12px 14px; }
.tx-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; }
.tx-ico.in { background: rgba(41,196,99,0.15); color: var(--green); }
.tx-ico.out { background: rgba(232,17,60,0.15); color: var(--red); }
.tx-meta .t { font-weight: 700; font-size: 0.92rem; }
.tx-meta .d { color: var(--muted); font-size: 0.76rem; }
.tx-amt { font-weight: 800; text-align: right; }
.tx-amt.in { color: var(--green); }
.tx-amt.out { color: var(--red); }
.tx-amt .st { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.tx-amt .st.pending { color: var(--orange); }
.empty { text-align: center; color: var(--muted); padding: 30px; }

.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.avatar-lg { width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, var(--red), var(--orange)); display: grid; place-items: center; font-size: 1.6rem; font-weight: 900; color: #fff; box-shadow: 0 8px 20px rgba(239,47,75,.32); text-transform: uppercase; }
.profile-head .pn { font-size: 1.25rem; font-weight: 800; }
.profile-head .pe { color: var(--muted); font-size: 0.88rem; }
.section-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin: 4px 0 12px; font-weight: 700; }

/* VIP pill next to name */
.p-vip { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 0.68rem; font-weight: 900;
  color: #3a2400; background: linear-gradient(180deg, #ffe08a, #f5b73c); padding: 4px 11px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(240,165,0,.30); }

/* ---- Wallet stat cards (Withdrawable / Locked / Wager) ---- */
.wallet-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.wstat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px; box-shadow: var(--shadow-sm); }
.wstat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--green2)); opacity: .8; }
.wstat .k { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 6px; }
.wstat .v { font-size: 1.15rem; font-weight: 900; letter-spacing: -.3px; }
.wstat .v.green { color: var(--green); }
.wstat .v.lock { color: var(--orange); }

/* ---- VIP progress card ---- */
.vip-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.vip-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vip-emoji { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem;
  background: linear-gradient(180deg, rgba(255,200,80,.18), rgba(255,150,0,.06)); border: 1px solid rgba(255,200,80,.35); }
.vip-info { flex: 1; min-width: 0; }
.vip-name { font-size: 1rem; font-weight: 900; }
.vip-sub { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.vip-bar { height: 8px; border-radius: 999px; background: var(--surface2); overflow: hidden; }
.vip-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffd24a, #f0952e);
  box-shadow: 0 0 12px rgba(240,149,46,.5); transition: width .5s cubic-bezier(.2,.8,.2,1); }

/* ---- Quick link cards (Rewards / Refer) ---- */
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.ql { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 15px 14px; border-radius: 16px; text-decoration: none;
  color: #fff; border: 1px solid rgba(255,255,255,.14); overflow: hidden; transition: transform .12s, box-shadow .12s; min-height: 92px; }
.ql:hover { transform: translateY(-2px); }
.ql:active { transform: scale(.98); }
.ql:nth-child(1) { background: linear-gradient(135deg, #6d28d9, #a21caf 75%, #f5871f 150%); box-shadow: 0 10px 24px rgba(109,40,217,.30); }
.ql:nth-child(2) { background: linear-gradient(135deg, #0a3d28, #0e9f5b 75%, #12b76a 150%); box-shadow: 0 10px 24px rgba(14,107,66,.28); }
.ql .qi { font-size: 1.5rem; }
.ql .qt { font-size: 0.92rem; font-weight: 900; }
.ql .qs { font-size: 0.68rem; opacity: .9; line-height: 1.3; }
.ql .qbadge { position: absolute; top: 10px; right: 10px; display: none; min-width: 20px; height: 20px; padding: 0 5px;
  align-items: center; justify-content: center; border-radius: 999px; background: #fff; color: #c81031; font-size: 0.68rem; font-weight: 900; }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.back-link:hover { color: var(--green); }

.two-col { grid-template-columns: 1fr 1fr; }

/* ---------- App-like bottom tab bar (mobile) ---------- */
.tabbar { display: none; }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-weight: 800; font-size: 0.64rem; padding: 9px 2px; border-radius: 15px; transition: color .15s; }
.tabbar a .ic { font-size: 1.28rem; line-height: 1; transition: transform .18s; }
.tabbar a.active { color: var(--green); }
.tabbar a.active .ic { transform: translateY(-2px) scale(1.14); }
.tabbar a.active::before { content: ""; position: absolute; top: 6px; width: 38px; height: 34px; border-radius: 12px; z-index: -1;
  background: linear-gradient(180deg, rgba(18,183,106,.18), rgba(18,183,106,.04)); }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .bonus-band { grid-template-columns: 1fr; }
  .land-games { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav { padding: 10px 14px; }

  /* floating app-style bottom tab bar visible on mobile */
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(16px);
    border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 12px 34px rgba(29,41,74,0.18);
    padding: 6px 6px;
  }
  .container, .narrow { padding-bottom: 100px; }
}
@media (max-width: 460px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .land-games { grid-template-columns: repeat(2, 1fr); }
  .amount-chips { grid-template-columns: 1fr 1fr; }
  .method-list { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0; }
  .coin-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ---------- Crypto wallet (pro) ---------- */
.step-label { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.step-label .num {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
  background: rgba(41,196,99,0.15); color: var(--green); font-size: 0.72rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.step-label b { color: var(--text); font-weight: 700; }

.coin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.coin-btn {
  position: relative; background: var(--surface2); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 12px 4px 10px; color: var(--text); cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .12s, border-color .12s, background .12s;
}
.coin-btn:hover { border-color: #c3ccda; transform: translateY(-1px); }
.coin-btn .ic { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }
.coin-btn .ic-fallback {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; color: #fff; background: linear-gradient(135deg,#3a4150,#242832);
}
.coin-btn .sym { font-weight: 800; font-size: 0.86rem; line-height: 1; }
.coin-btn .nm { font-size: 0.62rem; color: var(--muted); line-height: 1; }
.coin-btn.active { border-color: var(--green); background: rgba(41,196,99,0.1); box-shadow: 0 0 0 3px rgba(41,196,99,0.12); }
.coin-btn.active .sym { color: var(--green); }
.coin-btn.active::after {
  content: "✓"; position: absolute; top: 5px; right: 7px; font-size: 0.64rem; font-weight: 900; color: var(--green);
}

.net-list { display: flex; flex-wrap: wrap; gap: 8px; }
.net-list button {
  background: var(--surface2); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 18px; color: var(--muted); font-weight: 700; cursor: pointer; font-size: 0.82rem; transition: .12s;
}
.net-list button:hover { border-color: #c3ccda; }
.net-list button.active { border-color: var(--green); color: var(--green); background: rgba(41,196,99,0.1); }

/* selected-coin header chip */
.coin-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; }
.coin-head .ic, .coin-head .ic-fallback { width: 40px; height: 40px; border-radius: 50%; }
.coin-head .meta { line-height: 1.3; }
.coin-head .meta .t { font-weight: 800; font-size: 1rem; }
.coin-head .meta .s { font-size: 0.78rem; color: var(--muted); }
.coin-head .net-badge { margin-left: auto; background: rgba(41,196,99,0.12); color: var(--green); font-weight: 800; font-size: 0.72rem; padding: 6px 12px; border-radius: 999px; }

.qr-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; width: max-content; margin: 0 auto 16px; box-shadow: 0 10px 30px rgba(29,41,74,0.14); }
.qr-card img { width: 190px; height: 190px; display: block; }
.qr-card .qr-skel { width: 190px; height: 190px; display: flex; align-items: center; justify-content: center; }

.addr-value {
  display: flex; align-items: center; gap: 10px; background: var(--bg2);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; word-break: break-all;
}
.addr-value code { flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: 0.82rem; color: var(--text); letter-spacing: .2px; }
.copy-btn { flex-shrink: 0; background: var(--green); color: #04120a; border: none; border-radius: 9px; padding: 9px 14px; font-weight: 800; cursor: pointer; transition: .12s; }
.copy-btn:hover { background: var(--green2); }
.copy-btn.copied { background: var(--surface2); color: var(--green); border: 1px solid var(--line); }

.info-rows { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.info-rows .row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-size: 0.84rem; color: var(--muted); }
.info-rows .row + .row { border-top: 1px solid var(--line); }
.info-rows .row b { color: var(--text); font-weight: 700; }
.info-rows .row .up { color: var(--green); }

.warn-note { display: flex; gap: 8px; font-size: 0.76rem; color: #ffb27d; background: rgba(255,138,61,0.08); border: 1px solid rgba(255,138,61,0.22); border-radius: 12px; padding: 11px 13px; margin-top: 14px; line-height: 1.45; }
.warn-note .wic { flex-shrink: 0; }

.conv-out { font-size: 0.9rem; color: var(--text); margin-top: 10px; padding: 12px 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
.conv-out b { color: var(--green); font-weight: 800; }
.muted-small { color: var(--muted); font-size: 0.78rem; }
.spin { display:inline-block; width:16px; height:16px; border:2px solid rgba(255,255,255,0.25); border-top-color:#fff; border-radius:50%; animation: spin 0.7s linear infinite; vertical-align: -3px; }
.qr-skel .spin { width:26px; height:26px; border-color: rgba(0,0,0,0.15); border-top-color: var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Coin picker dropdown ---------- */
.coin-select {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: var(--surface2); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 14px; cursor: pointer; color: var(--text); transition: border-color .12s;
}
.coin-select:hover { border-color: #c3ccda; }
.coin-select .ic, .coin-select .ic-fallback { width: 32px; height: 32px; border-radius: 50%; }
.coin-select .cs-meta { text-align: left; line-height: 1.25; }
.coin-select .cs-meta .t { font-weight: 800; font-size: 0.95rem; }
.coin-select .cs-meta .s { font-size: 0.75rem; color: var(--muted); }
.coin-select .cs-ph { color: var(--muted); font-weight: 600; }
.coin-select .chev { margin-left: auto; color: var(--muted); font-size: 0.8rem; }

.picker-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.6);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.picker-overlay.show { opacity: 1; pointer-events: auto; }
.picker-sheet {
  width: 100%; max-width: 460px; max-height: 82vh; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column; transform: translateY(100%); transition: transform .22s;
}
.picker-overlay.show .picker-sheet { transform: none; }
@media (min-width: 560px) { .picker-overlay { align-items: center; } .picker-sheet { border-radius: 18px; } }
.picker-head { position: relative; text-align: center; padding: 16px; border-bottom: 1px solid var(--line); font-weight: 800; }
.picker-head .close { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text); font-size: 1.1rem; cursor: pointer; padding: 6px; }
.picker-search { padding: 12px 14px 6px; }
.picker-search input { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); font-size: 0.9rem; }
.picker-search input:focus { border-color: var(--green); outline: none; }
.picker-list { overflow-y: auto; padding: 4px 8px 14px; -webkit-overflow-scrolling: touch; }
.picker-sub { font-size: 0.72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 10px 8px 4px; }
.picker-row { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; cursor: pointer; }
.picker-row:hover, .picker-row.active { background: var(--surface2); }
.picker-row .ic, .picker-row .ic-fallback { width: 34px; height: 34px; border-radius: 50%; }
.picker-row .pr-meta .t { font-weight: 800; }
.picker-row .pr-meta .s { font-size: 0.75rem; color: var(--muted); }
.picker-row .pr-badge { margin-left: auto; font-size: 0.66rem; color: var(--muted); text-align: right; }
.picker-empty { text-align: center; color: var(--muted); padding: 28px; }

/* Floating game promo toast (deposit, profile, etc.) */
.gp-toast {
  position: fixed; left: 12px; right: 12px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 180;
  transform: translateY(120%); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.gp-toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.gp-toast-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, #1b1040, #3a1f7a 55%, #12b76a 160%);
  border: 1px solid rgba(255,255,255,.22); box-shadow: 0 14px 36px rgba(20,10,50,.45);
}
.gp-toast-link img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.45); }
.gp-toast-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gp-toast-tag { font-size: .58rem; font-weight: 900; letter-spacing: .5px; opacity: .85; text-transform: uppercase; }
.gp-toast-txt b { font-size: .95rem; font-weight: 900; }
.gp-toast-txt span:last-child { font-size: .72rem; opacity: .88; }
.gp-toast-go { flex: 0 0 auto; font-size: .78rem; font-weight: 900; background: #fff; color: #1b1040; padding: 8px 12px; border-radius: 999px; }
.gp-toast-x {
  position: absolute; top: -8px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.55); color: #fff; font-size: .82rem; cursor: pointer; z-index: 2;
}
@media (min-width: 640px) {
  .gp-toast { left: auto; right: 16px; max-width: 380px; }
}
