/* ============================================================
   Sports365 – Main CSS  (Pixel-perfect clone)
   Colors extracted from screenshots + HTML analysis
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #c9a227;
  --gold2:       #e8c766;
  --gold-dark:   #a07d10;
  --gold-grad:   linear-gradient(135deg, #c9a227 0%, #e8c766 50%, #c9a227 100%);
  --gold-btn:    linear-gradient(180deg, #e8c766 0%, #c9a227 100%);
  --bg:          #0a0a0a;
  --bg2:         #111111;
  --bg3:         #181818;
  --bg4:         #202020;
  --card:        #131313;
  --card2:       #1a1a1a;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(201,162,39,0.25);
  --text:        #ffffff;
  --text2:       #aaaaaa;
  --text3:       #666666;
  --green:       #0fc26a;
  --green2:      #1db954;
  --red:         #e53935;
  --red2:        #ff5252;
  --blue:        #1e88e5;
  --orange:      #f57c00;
  --violet:      #9c27b0;
  --nav-h:       65px;
  --header-h:    50px;
  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   16px;
  --trans:       0.2s ease;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html { font-size: 14px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 10px);
  overflow-x: hidden;
  position: relative;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

/* ═══════════════ HEADER ═══════════════ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
}
.header-logo { display: flex; align-items: center; gap: 6px; }
.header-logo img { height: 30px; width: auto; }
.logo-text { font-size: 20px; font-weight: 800; color: var(--gold); letter-spacing: -0.5px; }
.logo-text span { color: #fff; }
.header-right { display: flex; align-items: center; gap: 10px; }
.hdr-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); cursor: pointer;
  border: 1px solid var(--border);
  transition: var(--trans);
}
.hdr-btn:hover { background: var(--bg4); }
.hdr-btn svg { width: 18px; height: 18px; }
.hdr-btn-gold {
  background: var(--bg3);
  border: 1px solid var(--gold-dark);
}
.hdr-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  overflow: hidden;
}

/* ═══════════════ BANNER ═══════════════ */
.banner-wrap { position: relative; width: 100%; overflow: hidden; background: var(--bg2); }
.banner-slider { display: flex; transition: transform 0.4s ease; will-change: transform; }
.banner-slide {
  min-width: 100%; height: 180px;
  position: relative; overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.banner-slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.banner-fallback {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; position: relative; z-index: 1;
}
.banner-title { font-size: 22px; font-weight: 800; color: var(--gold2); text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.banner-sub { font-size: 13px; color: rgba(255,255,255,0.85); text-align: center; }
.banner-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 5;
}
.banner-dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.35); transition: var(--trans);
}
.banner-dot.active { width: 18px; background: var(--gold); }

/* ═══════════════ NOTICE BAR ═══════════════ */
.notice-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  height: 34px; overflow: hidden; gap: 8px; padding: 0 10px;
}
.notice-icon { color: var(--gold); flex-shrink: 0; display: flex; align-items: center; }
.notice-icon svg { width: 16px; height: 16px; }
.notice-ticker-wrap { flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center; }
.notice-ticker {
  white-space: nowrap; font-size: 12px; color: var(--text2);
  animation: ticker 30s linear infinite;
  display: inline-block;
}
@keyframes ticker { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }
.notice-detail-btn {
  flex-shrink: 0; background: none; color: var(--gold);
  font-size: 11px; font-weight: 600; padding: 2px 6px;
  border: 1px solid var(--gold-dark); border-radius: 3px;
}

/* ═══════════════ QUICK LINKS ═══════════════ */
.quick-links {
  display: flex; align-items: center;
  padding: 10px 0 6px; gap: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.quick-link-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 4px 0; cursor: pointer;
  transition: var(--trans);
}
.quick-link-item:hover { opacity: 0.8; }
.quick-link-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.quick-link-icon.recharge  { background: linear-gradient(135deg, #1e3a5f, #2d6db4); }
.quick-link-icon.withdraw  { background: linear-gradient(135deg, #3a1e1e, #b44a2d); }
.quick-link-icon.vip       { background: linear-gradient(135deg, #3a2e00, #c9a227); }
.quick-link-icon.invite    { background: linear-gradient(135deg, #1e3a1e, #2db44a); }
.quick-link-label { font-size: 11px; color: var(--text2); font-weight: 500; }

/* ═══════════════ CATEGORY TABS ═══════════════ */
.cat-tabs-wrap {
  background: var(--bg);
  padding: 10px 8px 6px;
  position: sticky; top: var(--header-h); z-index: 100;
  border-bottom: 1px solid var(--border);
}
.cat-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; min-width: 52px; padding: 5px 4px;
  background: none; border: none;
  color: var(--text3); font-size: 11px; font-weight: 500;
  cursor: pointer; transition: var(--trans); white-space: nowrap; border-radius: 8px;
}
.cat-tab .cat-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: var(--trans);
}
.cat-tab.active .cat-icon { background: var(--green); }
.cat-tab.active { color: var(--text); }
.cat-tab .cat-icon svg { width: 20px; height: 20px; fill: currentColor; }
.cat-tab.active .cat-icon svg { color: white; }

/* ═══════════════ SECTION HEADER ═══════════════ */
.section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 12px 8px;
}
.section-hdr-left { display: flex; align-items: center; gap: 6px; }
.section-icon { font-size: 16px; }
.section-title { font-size: 14px; font-weight: 700; color: var(--text); }
.section-count { font-size: 11px; color: var(--text3); margin-left: 4px; font-weight: 400; }
.section-nav { display: flex; gap: 4px; }
.nav-arrow {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text2); cursor: pointer;
  transition: var(--trans);
}
.nav-arrow:hover { background: var(--bg4); color: var(--gold); }

/* ═══════════════ SUPER JACKPOT ═══════════════ */
.jackpot-section {
  margin: 0 10px 12px;
  background: var(--bg3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border2);
}
.jackpot-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 6px;
}
.jackpot-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.jackpot-trophy { font-size: 18px; }
.jackpot-desc { padding: 0 12px; font-size: 11px; color: var(--text2); line-height: 1.5; }
.jackpot-desc b { color: var(--red2); }
.jackpot-cards {
  display: flex; gap: 8px; padding: 10px 12px;
  overflow-x: auto; scrollbar-width: none;
}
.jackpot-cards::-webkit-scrollbar { display: none; }
.jackpot-card {
  min-width: 120px; border-radius: 10px;
  overflow: hidden; background: var(--bg2);
  border: 1px solid var(--border);
  cursor: pointer;
}
.jackpot-card-img {
  height: 90px; background: linear-gradient(135deg, #2a0060, #60002a);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.jackpot-card-img img { width: 100%; height: 100%; object-fit: cover; }
.jackpot-multiplier {
  position: absolute; top: 4px; left: 4px;
  background: linear-gradient(135deg, #7c00c8, #c800c8);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 5px; border-radius: 3px;
}
.jackpot-label {
  background: #3d0080; color: #fff;
  font-size: 8px; font-weight: 800; text-align: center;
  padding: 3px 4px; letter-spacing: 0.5px;
}
.jackpot-card-info { padding: 5px 6px; }
.jackpot-card-name { font-size: 10px; color: var(--text2); margin-bottom: 2px; line-height: 1.3; }
.jackpot-card-price { font-size: 11px; color: var(--red2); font-weight: 600; }
.jackpot-btn {
  margin: 0 12px 12px;
  display: block; width: calc(100% - 24px);
  background: var(--gold-btn); color: #000;
  font-size: 13px; font-weight: 700;
  padding: 10px; text-align: center; border-radius: 8px;
  cursor: pointer; transition: var(--trans);
}
.jackpot-btn:hover { opacity: 0.9; }

/* ═══════════════ GAME SECTION ═══════════════ */
.game-section { margin-bottom: 8px; }
.game-scroll {
  display: flex; gap: 8px;
  padding: 0 12px 10px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.game-scroll::-webkit-scrollbar { display: none; }
.game-card {
  min-width: 150px; max-width: 150px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer; transition: var(--trans);
  position: relative;
}
.game-card:hover { transform: translateY(-2px); border-color: var(--border2); }
.game-card-img {
  height: 100px;
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; overflow: hidden; position: relative;
}
.game-card-img img { width: 100%; height: 100%; object-fit: cover; }
.game-badge {
  position: absolute; top: 4px; right: 4px;
  font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 3px;
  text-transform: uppercase;
}
.game-badge.hot { background: var(--red); color: #fff; }
.game-badge.new { background: var(--green); color: #fff; }
.game-card-name { padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--text2); }

/* Provider logo cards */
.provider-card {
  min-width: 160px; height: 90px;
  border-radius: var(--radius);
  overflow: hidden; background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--trans); position: relative;
}
.provider-card:hover { border-color: var(--border2); }
.provider-card img { width: 100%; height: 100%; object-fit: cover; }
.provider-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  font-size: 10px; font-weight: 700; color: #fff;
  text-align: center; padding: 4px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ═══════════════ WIN GO / LOTTERY ═══════════════ */
.wingo-section {
  margin: 0 10px 12px;
  background: var(--bg3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border2);
  overflow: hidden;
}
.wingo-header {
  background: linear-gradient(135deg, #1a0a3a, #3a1a00);
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.wingo-title { font-size: 15px; font-weight: 800; color: var(--gold2); }
.wingo-period { font-size: 11px; color: var(--text2); }
.wingo-body { padding: 12px; }
.wingo-timer {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.wingo-timer-label { font-size: 12px; color: var(--text2); }
.wingo-countdown { display: flex; align-items: center; gap: 3px; }
.wingo-digit {
  background: var(--bg2); border-radius: 4px;
  padding: 4px 8px; font-size: 16px; font-weight: 800;
  color: var(--gold2); min-width: 30px; text-align: center;
  border: 1px solid var(--border2);
}
.wingo-sep { color: var(--gold); font-weight: 800; font-size: 14px; }
.wingo-history { display: flex; gap: 5px; flex-wrap: wrap; }
.wingo-ball {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.wingo-ball.red    { background: radial-gradient(circle at 35% 35%, #ff5252, #c62828); }
.wingo-ball.green  { background: radial-gradient(circle at 35% 35%, #69f0ae, #1b5e20); }
.wingo-ball.violet { background: radial-gradient(circle at 35% 35%, #ce93d8, #6a1b9a); }

/* ═══════════════ WINNING FEED ═══════════════ */
.winning-section { margin-bottom: 8px; }
.winning-row {
  display: flex; align-items: center; gap: 10px;
  margin: 0 10px 6px;
  background: var(--gold-btn);
  border-radius: 8px; padding: 8px 12px;
  cursor: pointer; transition: var(--trans);
}
.winning-row:hover { opacity: 0.9; }
.winning-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: var(--bg3); display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.winning-avatar img { width: 100%; height: 100%; object-fit: cover; }
.winning-info { flex: 1; min-width: 0; }
.winning-user { font-size: 12px; font-weight: 700; color: #000; }
.winning-game-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--green); border-radius: 4px;
  padding: 1px 6px; font-size: 10px; font-weight: 700; color: #fff;
}
.winning-amount { font-size: 13px; font-weight: 800; color: #000; text-align: right; }
.winning-label { font-size: 9px; color: rgba(0,0,0,0.6); text-align: right; }

/* ═══════════════ EARNINGS CHART ═══════════════ */
.earnings-section { margin: 0 10px 12px; }
.earnings-header {
  display: flex; align-items: center; gap: 6px;
  padding: 0 0 10px; font-size: 14px; font-weight: 700;
}
.earnings-list { display: flex; flex-direction: column; gap: 10px; }
.earnings-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border-radius: 10px;
  padding: 10px 12px; border: 1px solid var(--border);
}
.earnings-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0; background: var(--bg3);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.earnings-avatar img { width: 100%; height: 100%; object-fit: cover; }
.earnings-user { font-size: 12px; font-weight: 600; color: var(--text); }
.earnings-rank {
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; gap: 3px;
}
.rank-no1 { color: #ffd700; }
.rank-no2 { color: #c0c0c0; }
.rank-no3 { color: #cd7f32; }
.rank-other { color: var(--text3); }
.earnings-amount { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--text); }

/* ═══════════════ BOTTOM NAV ═══════════════ */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: var(--nav-h);
  background: var(--bg2);
  display: flex; align-items: center;
  border-top: 1px solid var(--border);
  z-index: 500;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; cursor: pointer;
  color: var(--text3); transition: var(--trans);
  padding: 6px 0;
  font-size: 11px; font-weight: 500;
  background: none; border: none;
}
.nav-item svg { width: 22px; height: 22px; fill: currentColor; }
.nav-item.active { color: var(--gold); }
.nav-item:not(.nav-center):hover { color: var(--gold); }

.nav-center {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer; padding: 0; margin-top: -15px;
}
.nav-center-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold-btn);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(201,162,39,0.45);
  transition: var(--trans);
  border: 3px solid var(--bg2);
  overflow: hidden; position: relative;
}
.nav-center-btn:hover { transform: scale(1.05); }
.nav-center-icon { font-size: 20px; line-height: 1; }
.nav-center-label {
  font-size: 9px; font-weight: 700; color: #000;
  margin-top: 1px; white-space: nowrap;
}
.nav-center-text { font-size: 10px; font-weight: 600; color: var(--text3); margin-top: 2px; }

/* ═══════════════ MODAL ═══════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  z-index: 1000; display: none; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  width: 100%; max-width: 480px;
  background: var(--bg2);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 80vh; overflow-y: auto;
  padding: 20px;
}
.modal-title {
  font-size: 16px; font-weight: 700; text-align: center;
  margin-bottom: 16px; color: var(--gold2);
}
.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 12px auto 0; cursor: pointer;
  font-size: 18px; color: var(--text2);
}

/* ═══════════════ INNER PAGES ═══════════════ */
.inner-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.inner-title { font-size: 16px; font-weight: 700; flex: 1; text-align: center; }
.inner-back { width: 30px; display: flex; align-items: center; color: var(--text2); cursor: pointer; }
.inner-action { width: 30px; text-align: right; font-size: 12px; color: var(--gold); }

.gold-header {
  background: var(--gold-grad);
  padding: 20px 16px 24px;
  text-align: center;
}
.gold-header .gh-balance-label { font-size: 13px; color: rgba(0,0,0,0.65); margin-bottom: 4px; }
.gold-header .gh-balance { font-size: 28px; font-weight: 800; color: #000; }
.gold-header .gh-icon { font-size: 32px; margin-bottom: 8px; }
.gold-header .gh-title { font-size: 20px; font-weight: 800; color: #000; margin-bottom: 4px; }
.gold-header .gh-sub { font-size: 13px; color: rgba(0,0,0,0.65); }

/* ═══════════════ LOGIN / REGISTER ═══════════════ */
.auth-page { min-height: 100vh; background: var(--bg); padding-bottom: 30px; }
.auth-header {
  background: var(--gold-grad);
  padding: 16px 16px 28px;
  position: relative;
}
.auth-back {
  color: rgba(0,0,0,0.7); font-size: 20px;
  display: inline-flex; align-items: center;
  cursor: pointer; margin-bottom: 10px;
}
.auth-header-right {
  position: absolute; top: 16px; right: 16px;
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: #000;
}
.auth-flag { font-size: 18px; }
.auth-title { font-size: 22px; font-weight: 800; color: #000; margin-bottom: 4px; }
.auth-sub { font-size: 13px; color: rgba(0,0,0,0.65); }

.auth-body { background: var(--bg); padding: 20px 16px; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.auth-tab {
  flex: 1; text-align: center; padding: 10px 0;
  font-size: 14px; font-weight: 600; color: var(--text3);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: none; border-top: none; border-left: none; border-right: none;
}
.auth-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.auth-tab svg { width: 16px; height: 16px; }

.form-group { margin-bottom: 14px; }
.form-label {
  font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.form-label .fl-icon { font-size: 16px; }
.input-wrap { position: relative; }
.input-prefix {
  position: absolute; left: 0; top: 0; bottom: 0;
  display: flex; align-items: center; padding: 0 12px;
  background: var(--bg3); border-right: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--text2);
  cursor: pointer; gap: 4px; white-space: nowrap;
}
.form-control {
  width: 100%; padding: 11px 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 14px; outline: none; transition: var(--trans);
}
.form-control:focus { border-color: var(--gold-dark); background: var(--bg4); }
.form-control.has-prefix { padding-left: 90px; }
.form-control::placeholder { color: var(--text3); }
.input-suffix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text3); cursor: pointer; font-size: 16px;
}

.checkbox-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text2); cursor: pointer; margin-bottom: 14px;
}
.checkbox-row input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--gold); }
.checkbox-row a { color: var(--gold); text-decoration: underline; }

.btn-primary {
  width: 100%; padding: 13px;
  background: var(--gold-btn); color: #000;
  font-size: 15px; font-weight: 800;
  border-radius: 30px; border: none; cursor: pointer;
  transition: var(--trans); margin-bottom: 10px;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-outline {
  width: 100%; padding: 13px;
  background: transparent; color: var(--gold);
  font-size: 15px; font-weight: 700;
  border-radius: 30px; border: 2px solid var(--gold-dark);
  cursor: pointer; transition: var(--trans);
}
.btn-outline:hover { background: rgba(201,162,39,0.1); }

.auth-links {
  display: flex; justify-content: center; gap: 30px;
  margin-top: 20px;
}
.auth-link-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--text2); font-size: 12px; cursor: pointer;
}
.auth-link-item .ali-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}

/* ═══════════════ ACCOUNT PAGE ═══════════════ */
.account-header {
  background: var(--gold-grad); padding: 20px 16px;
  display: flex; align-items: center; gap: 14px;
}
.account-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); display: flex; align-items: center;
  justify-content: center; font-size: 28px; flex-shrink: 0;
  overflow: hidden; border: 2px solid rgba(0,0,0,0.2);
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-name { font-size: 16px; font-weight: 800; color: #000; }
.account-uid { font-size: 12px; color: rgba(0,0,0,0.6); margin-top: 2px; }
.account-vip { display: inline-flex; align-items: center; gap: 3px; background: linear-gradient(135deg,#7c3f00,#f57c00); color:#fff; font-size:10px; font-weight:700; padding:2px 6px; border-radius:4px; margin-top:4px; }
.account-last-login { font-size:11px; color:rgba(0,0,0,0.55); margin-top:2px; }

.balance-card {
  margin: 0 12px; background: var(--card);
  border-radius: var(--radius); padding: 14px;
  border: 1px solid var(--border); margin-top: -1px;
}
.balance-label { font-size: 12px; color: var(--text3); margin-bottom: 4px; }
.balance-amount {
  font-size: 26px; font-weight: 800; color: var(--gold2);
  display: flex; align-items: center; gap: 8px;
}
.balance-refresh { font-size: 16px; color: var(--text3); cursor: pointer; }
.balance-actions {
  display: flex; gap: 8px; margin-top: 12px;
}
.bal-btn {
  flex: 1; padding: 9px 5px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; transition: var(--trans);
}
.bal-btn:hover { border-color: var(--border2); background: var(--bg4); }
.bal-btn-icon { font-size: 20px; }
.bal-btn-label { font-size: 11px; color: var(--text2); font-weight: 500; }

.account-menu { margin: 10px 12px 0; }
.menu-section { margin-bottom: 8px; }
.menu-section-label { font-size: 11px; color: var(--text3); padding: 8px 0 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--card);
  border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 5px; cursor: pointer; transition: var(--trans);
}
.menu-item:hover { background: var(--card2); border-color: var(--border2); }
.menu-item-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.menu-item-icon.blue   { background: linear-gradient(135deg,#1a3a5f,#1e88e5); }
.menu-item-icon.green  { background: linear-gradient(135deg,#1a3a1a,#2db44a); }
.menu-item-icon.orange { background: linear-gradient(135deg,#3a1a00,#f57c00); }
.menu-item-icon.red    { background: linear-gradient(135deg,#3a1a1a,#e53935); }
.menu-item-icon.purple { background: linear-gradient(135deg,#2a1a3a,#9c27b0); }
.menu-item-icon.gray   { background: var(--bg3); }
.menu-item-text { flex: 1; }
.menu-item-title { font-size: 13px; font-weight: 600; color: var(--text); }
.menu-item-sub { font-size: 11px; color: var(--text3); margin-top: 1px; }
.menu-item-right { font-size: 13px; color: var(--text3); }
.menu-item-value { font-size: 13px; color: var(--text2); }
.menu-chevron { font-size: 14px; color: var(--text3); }

.safe-card {
  margin: 10px 12px; background: var(--card);
  border-radius: var(--radius); padding: 12px 14px;
  border: 1px solid var(--border2);
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.safe-icon { font-size: 24px; }
.safe-info { flex: 1; }
.safe-title { font-size: 13px; font-weight: 700; color: var(--gold2); margin-bottom: 2px; }
.safe-sub { font-size: 11px; color: var(--text3); }
.safe-balance { font-size: 14px; font-weight: 700; color: var(--gold2); background: var(--bg3); padding: 4px 8px; border-radius: 5px; }

.logout-btn {
  margin: 16px 12px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 30px; color: var(--red2); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--trans); width: calc(100% - 24px);
}
.logout-btn:hover { background: rgba(229,57,53,0.1); border-color: var(--red); }

/* ═══════════════ ACTIVITY PAGE ═══════════════ */
.activity-header { background: var(--gold-grad); padding: 20px 16px 24px; text-align: center; }
.activity-header .bonus-stats { display: flex; gap: 0; margin-bottom: 12px; }
.bonus-stat { flex: 1; text-align: center; padding: 10px; }
.bonus-stat:first-child { border-right: 1px solid rgba(0,0,0,0.2); }
.bonus-stat-label { font-size: 12px; color: rgba(0,0,0,0.65); }
.bonus-stat-value { font-size: 20px; font-weight: 800; color: #000; margin-top: 2px; }
.bonus-details-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.15); color: var(--gold-dark);
  font-size: 13px; font-weight: 700; padding: 8px 20px; border-radius: 30px;
  cursor: pointer; border: 1px solid rgba(0,0,0,0.2);
}

.activity-icons {
  display: flex; justify-content: space-around;
  padding: 14px 12px; background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.act-icon-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  cursor: pointer; color: var(--text2); font-size: 11px; font-weight: 500;
}
.act-icon-box {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 22px;
}

.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
.activity-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  cursor: pointer; transition: var(--trans);
}
.activity-card:hover { border-color: var(--border2); }
.activity-card-img { height: 100px; background: linear-gradient(135deg,#3a0a0a,#c86010); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.activity-card-img img { width: 100%; height: 100%; object-fit: cover; }
.activity-card-info { padding: 8px 10px; }
.activity-card-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.activity-card-desc { font-size: 11px; color: var(--text3); line-height: 1.4; }

/* ═══════════════ PROMOTION PAGE ═══════════════ */
.promo-header { padding: 14px 14px 10px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.promo-title { font-size: 16px; font-weight: 800; }
.promo-wallet { font-size: 13px; color: var(--gold); cursor: pointer; }

.promo-stats {
  background: var(--gold-grad);
  margin: 0; padding: 16px; text-align: center;
}
.promo-commission { font-size: 28px; font-weight: 800; color: #000; }
.promo-commission-label { font-size: 12px; color: rgba(0,0,0,0.65); margin-bottom: 4px; }
.promo-upgrade { font-size: 12px; color: rgba(0,0,0,0.65); margin-top: 4px; }

.promo-tabs { display: flex; margin: 12px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border2); }
.promo-tab {
  flex: 1; padding: 10px; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--text3);
  background: var(--bg3); cursor: pointer; transition: var(--trans);
  border: none;
}
.promo-tab.active { background: var(--gold-btn); color: #000; }

.promo-table {
  margin: 0 12px 12px; background: var(--card);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.promo-table-row {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.promo-table-row:last-child { border-bottom: none; }
.promo-table-cell {
  padding: 12px 14px; font-size: 13px;
  color: var(--text2); text-align: center;
}
.promo-table-cell:first-child { border-right: 1px solid var(--border); }
.promo-table-row.header .promo-table-cell { font-size: 11px; color: var(--text3); font-weight: 600; background: var(--bg3); }
.promo-val { font-size: 18px; font-weight: 800; color: var(--text); }

.promo-qr-btn {
  margin: 0 12px 12px; display: block;
  background: var(--gold-btn); color: #000;
  font-size: 14px; font-weight: 700; padding: 12px;
  text-align: center; border-radius: 8px; cursor: pointer;
  border: none; width: calc(100% - 24px);
}

.promo-menu-item {
  display: flex; align-items: center; gap: 12px;
  margin: 0 12px 6px; padding: 13px 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; transition: var(--trans);
}
.promo-menu-item:hover { border-color: var(--border2); background: var(--card2); }
.promo-menu-icon { font-size: 20px; }
.promo-menu-title { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
.promo-menu-arrow { color: var(--text3); font-size: 14px; }

.invite-code-box {
  margin: 0 12px 12px; background: var(--card);
  border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 12px 14px; display: flex; align-items: center; justify-content: space-between;
}
.invite-code-label { font-size: 12px; color: var(--text3); margin-bottom: 2px; }
.invite-code-val { font-size: 16px; font-weight: 800; color: var(--gold2); letter-spacing: 1px; }
.invite-code-copy {
  background: var(--bg3); border: 1px solid var(--border);
  padding: 5px 10px; border-radius: 6px; font-size: 12px; color: var(--gold); cursor: pointer;
}

.promo-data-section { margin: 0 12px 12px; }
.promo-data-label { font-size: 13px; font-weight: 700; color: var(--text2); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.promo-data-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.promo-data-item { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 10px; text-align: center; }
.promo-data-val { font-size: 18px; font-weight: 800; color: var(--text); }
.promo-data-key { font-size: 10px; color: var(--text3); margin-top: 2px; line-height: 1.3; }

/* ═══════════════ WALLET ═══════════════ */
.wallet-circles { display: flex; gap: 10px; margin: 14px; }
.wallet-circle { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.wallet-circle-pct { font-size: 20px; font-weight: 800; color: var(--text2); margin-bottom: 6px; }
.wallet-circle-ring {
  width: 60px; height: 60px; border-radius: 50%;
  border: 5px solid var(--border); margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--text2);
}
.wallet-circle-label { font-size: 12px; color: var(--text3); }
.wallet-circle-amount { font-size: 14px; font-weight: 700; color: var(--gold2); margin-top: 2px; }

.wallet-transfer-btn {
  margin: 0 14px 12px; display: block; width: calc(100% - 28px);
  background: var(--gold-btn); color: #000;
  font-size: 14px; font-weight: 700; padding: 12px;
  text-align: center; border-radius: 8px; cursor: pointer; border: none;
}

.wallet-actions { display: flex; justify-content: space-around; padding: 10px 14px 14px; }
.wallet-action { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.wallet-action-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.wallet-action-icon.dep { background: linear-gradient(135deg,#1a3a1a,#2db44a); }
.wallet-action-icon.wd  { background: linear-gradient(135deg,#1a1a3a,#3a2d9c); }
.wallet-action-icon.dh  { background: linear-gradient(135deg,#3a1a1a,#c84040); }
.wallet-action-icon.wh  { background: linear-gradient(135deg,#2a1a00,#c88040); }
.wallet-action-label { font-size: 11px; color: var(--text2); font-weight: 500; text-align: center; }

.wallet-game-wallets { padding: 0 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.wallet-game-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; min-width: 80px; text-align: center;
}
.wallet-game-name { font-size: 10px; color: var(--text3); margin-bottom: 2px; }
.wallet-game-amt { font-size: 13px; font-weight: 700; color: var(--text2); }

/* ═══════════════ DEPOSIT PAGE ═══════════════ */
.deposit-methods { display: flex; gap: 10px; padding: 14px; }
.deposit-method {
  flex: 1; background: var(--bg3); border: 2px solid var(--border);
  border-radius: 10px; padding: 10px 8px; text-align: center;
  cursor: pointer; transition: var(--trans); position: relative;
}
.deposit-method.active { border-color: var(--gold); background: rgba(201,162,39,0.1); }
.deposit-method .dm-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--green); color: #fff; font-size: 9px; font-weight: 700;
  padding: 2px 4px; border-radius: 4px;
}
.deposit-method-icon { font-size: 22px; margin-bottom: 4px; }
.deposit-method-name { font-size: 11px; color: var(--text2); font-weight: 600; }

.channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 14px; }
.channel-item {
  background: var(--bg3); border: 2px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
  cursor: pointer; transition: var(--trans);
}
.channel-item.active { border-color: var(--gold); background: rgba(201,162,39,0.1); }
.channel-name { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.channel-range { font-size: 10px; color: var(--text3); }

.amount-section { padding: 0 14px 14px; }
.amount-section-label { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.amount-chip {
  padding: 7px 14px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--text2);
  cursor: pointer; transition: var(--trans);
}
.amount-chip.active { border-color: var(--gold); color: var(--gold); background: rgba(201,162,39,0.1); }
.amount-input-wrap { position: relative; }
.amount-currency { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gold); font-weight: 700; font-size: 15px; }
.amount-input { width: 100%; padding: 12px 14px 12px 28px; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 16px; font-weight: 700; outline: none; }
.amount-input:focus { border-color: var(--gold-dark); }

.deposit-info { margin: 0 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.deposit-info-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.deposit-info-item { display: flex; align-items: flex-start; gap: 6px; font-size: 11px; color: var(--text3); margin-bottom: 5px; line-height: 1.4; }
.deposit-info-item::before { content: '◆'; color: var(--gold); font-size: 8px; flex-shrink: 0; margin-top: 2px; }
.deposit-info-item span { color: var(--red2); font-weight: 600; }

.deposit-bottom-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 10px 14px; display: flex; align-items: center; justify-content: space-between;
  z-index: 200;
}
.dep-method-label { font-size: 12px; color: var(--text3); }
.dep-method-name { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 1px; }
.dep-submit-btn { background: var(--gold-btn); color: #000; font-size: 13px; font-weight: 700; padding: 10px 20px; border-radius: 8px; cursor: pointer; border: none; white-space: nowrap; }

/* ═══════════════ WITHDRAW PAGE ═══════════════ */
.available-balance-card {
  margin: 14px; background: var(--gold-btn);
  border-radius: var(--radius); padding: 14px;
}
.avail-label { font-size: 12px; color: rgba(0,0,0,0.65); margin-bottom: 4px; }
.avail-amount { font-size: 22px; font-weight: 800; color: #000; display: flex; align-items: center; gap: 8px; }
.avail-refresh { font-size: 16px; cursor: pointer; }

.withdraw-methods { display: flex; gap: 10px; padding: 0 14px 14px; }
.withdraw-method {
  padding: 10px 16px; background: var(--bg3); border: 2px solid var(--border);
  border-radius: 8px; cursor: pointer; transition: var(--trans);
  font-size: 13px; font-weight: 600; color: var(--text2);
  display: flex; align-items: center; gap: 6px;
}
.withdraw-method.active { border-color: var(--gold); color: var(--gold); background: rgba(201,162,39,0.1); }

.add-account-btn {
  margin: 0 14px 14px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  background: var(--bg3); border: 1px dashed var(--border);
  border-radius: 10px; padding: 16px; cursor: pointer;
  color: var(--text3); font-size: 13px;
}
.add-account-icon { font-size: 22px; color: var(--gold); }

.withdraw-rules { margin: 0 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.wr-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.wr-item { font-size: 11px; color: var(--text3); margin-bottom: 5px; line-height: 1.4; display: flex; align-items: flex-start; gap: 6px; }
.wr-item::before { content: '◆'; color: var(--gold); font-size: 8px; flex-shrink: 0; margin-top: 2px; }
.wr-item span { color: var(--gold2); font-weight: 600; }
.wr-item .time { color: var(--green); }

/* ═══════════════ GENERIC INNER PAGE ═══════════════ */
.no-data { text-align: center; padding: 40px 20px; color: var(--text3); font-size: 13px; }
.no-data-icon { font-size: 40px; margin-bottom: 10px; opacity: 0.4; }

.section-card { margin: 10px 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.section-card-header { padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.section-card-title { font-size: 14px; font-weight: 700; color: var(--text); }

.info-list-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.info-list-item:last-child { border-bottom: none; }
.info-list-label { font-size: 13px; color: var(--text2); }
.info-list-value { font-size: 13px; font-weight: 600; color: var(--text); }

/* ═══════════════ UTILITIES ═══════════════ */
.gold-text { color: var(--gold2); }
.red-text { color: var(--red2); }
.green-text { color: var(--green); }
.text-muted { color: var(--text3); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.px-12 { padding-left: 12px; padding-right: 12px; }
.py-8 { padding-top: 8px; padding-bottom: 8px; }
.divider { height: 1px; background: var(--border); margin: 8px 0; }
.section-divider { height: 8px; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Spinner */
.spinner { width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 10px 20px; border-radius: 8px;
  font-size: 13px; z-index: 9999; display: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.toast.show { display: block; animation: fadeInOut 2.5s ease; }
@keyframes fadeInOut { 0%{opacity:0;transform:translateX(-50%) translateY(-10px)} 15%{opacity:1;transform:translateX(-50%) translateY(0)} 85%{opacity:1} 100%{opacity:0} }
