/* ════════════════════════════════════════
   BDG WIN — User Stylesheet
   ════════════════════════════════════════ */

:root {
  --gold: #FFD700;
  --gold-dark: #c8960c;
  --gold-deep: #b8860b;
  --bg-main: #12121f;
  --bg-card: #1a1a2e;
  --bg-nav: #0e0e1e;
  --text-dim: #888;
  --text-muted: #555;
  --red: #e74c3c;
  --green: #2ecc71;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0d0d1a;
  font-family: 'Arial', sans-serif;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 75px;
  overflow-x: hidden;
  color: #fff;
  position: relative;
}

/* ── Header ── */
.header {
  background: var(--bg-main);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255,215,0,0.08);
}

.logo-main {
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 2px;
  text-shadow: 0 0 14px rgba(255,215,0,0.4);
}

.header-actions { display: flex; gap: 8px; align-items: center; }

.header-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,215,0,0.15);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: var(--gold);
  position: relative;
}

.header-btn .badge {
  position: absolute;
  top: 3px; right: 3px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg-main);
}

/* ── Notif / Message Popup ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-box {
  background: #1a1a2e;
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px;
  padding: 24px 20px;
  max-width: 400px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-dim);
  background: none;
  border: none;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}

.notif-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,215,0,0.06);
}

.notif-item:last-child { border-bottom: none; }

.notif-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.notif-msg {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}

/* ── Banner ── */
.banner {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
}

.banner-inner {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-slide img { width: 100%; height: 100%; object-fit: cover; }

.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.banner-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
}

.banner-dots span.active { background: var(--gold); width: 18px; border-radius: 3px; }

/* ── Quote ── */
.quote-bar {
  background: linear-gradient(90deg, #1a0f30, #0d0d1a);
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  font-style: italic;
  color: var(--gold);
  border-bottom: 1px solid rgba(255,215,0,0.06);
}

/* ── Countdown ── */
.countdown-bar {
  background: #0c0c1a;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,215,0,0.06);
}

.cd-label { font-size: 13px; color: #ccc; }
.cd-time  { font-size: 18px; font-weight: 700; color: var(--gold); }

/* ── Trading Time Selector ── */
.time-selector {
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.time-selector::-webkit-scrollbar { display: none; }

.time-option {
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.time-option.active {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  border-color: var(--gold);
  color: #1a1a2e;
  font-weight: 700;
}

.time-option .to-slot { font-size: 12px; color: #aaa; }
.time-option .to-date { font-size: 10px; color: var(--text-dim); }
.time-option.active .to-slot { color: #1a1a2e; }
.time-option.active .to-date { color: rgba(26,26,46,0.8); }

/* ── Number Grid ── */
.number-grid-section {
  padding: 8px 12px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.section-label .bar {
  width: 4px; height: 18px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
  border-radius: 2px;
}

.section-label span {
  font-size: 15px;
  font-weight: 700;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.num-btn {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255,215,0,0.2);
  background: linear-gradient(135deg, #1a1438, #2a1a50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.num-btn:hover { border-color: var(--gold); }
.num-btn.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: #1a1a2e;
  box-shadow: 0 0 16px rgba(255,215,0,0.5);
}

/* ── Small / Big ── */
.sb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.sb-btn {
  padding: 14px;
  border-radius: 12px;
  border: 2px solid rgba(255,215,0,0.15);
  background: rgba(255,255,255,0.04);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.sb-btn:hover { border-color: var(--gold); }
.sb-btn.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: #1a1a2e;
  box-shadow: 0 0 16px rgba(255,215,0,0.4);
}

/* ── Amount + Submit ── */
.trade-form-section {
  padding: 8px 12px;
}

.amount-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,215,0,0.15);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  outline: none;
}

.amount-input:focus { border-color: var(--gold); }

.amount-input::placeholder { color: #555; }

.submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  font-size: 16px;
  font-weight: 800;
  color: #1a1a2e;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.15s;
}

.submit-btn:active { transform: scale(0.97); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Winners ── */
.section {
  padding: 12px;
}

.winner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,215,0,0.06);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
}

.winner-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,215,0,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.winner-info { flex: 1; }
.winner-name { font-size: 13px; font-weight: 600; }
.winner-game { font-size: 11px; color: var(--text-dim); }
.winner-amount { font-size: 14px; font-weight: 700; color: var(--gold); }

/* ── Bottom Nav ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--bg-nav);
  border-top: 1px solid rgba(255,215,0,0.12);
  display: flex;
  padding: 6px 0 10px;
  z-index: 1000;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-item .nav-icon { font-size: 20px; }
.nav-item .nav-label { font-size: 10px; font-weight: 500; }
.nav-item.active { color: var(--gold); }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: #0d0d1a;
}

.auth-logo {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo .main {
  font-size: 36px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 3px;
}

.auth-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,215,0,0.1);
  border-radius: 16px;
  padding: 24px 20px;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  color: #fff;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,215,0,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
  outline: none;
}

.form-group input:focus { border-color: var(--gold); }

.auth-btn {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  cursor: pointer;
  margin-top: 6px;
}

.auth-link {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: #aaa;
}

.auth-link a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.error-msg {
  background: rgba(231,76,60,0.15);
  border: 1px solid rgba(231,76,60,0.3);
  color: #e74c3c;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
}

.success-msg {
  background: rgba(46,204,113,0.15);
  border: 1px solid rgba(46,204,113,0.3);
  color: #2ecc71;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
}

/* ── Menu Page ── */
.menu-list {
  padding: 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,215,0,0.06);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: #fff;
}

.menu-item:hover { background: rgba(255,255,255,0.06); }
.menu-item .mi-icon { font-size: 20px; color: var(--gold); }
.menu-item .mi-text { flex: 1; font-size: 14px; font-weight: 500; }
.menu-item .mi-arrow { color: var(--text-dim); }

/* ── Deposit / Withdraw ── */
.page-content {
  padding: 16px 12px;
}

.tab-headers {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,215,0,0.15);
  background: rgba(255,255,255,0.03);
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: #1a1a2e;
  border-color: var(--gold);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.info-box {
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.1);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #ccc;
}

.info-box strong { color: var(--gold); }

.qr-box {
  text-align: center;
  margin-bottom: 16px;
}

.qr-box img {
  max-width: 180px;
  border-radius: 8px;
  border: 1px solid rgba(255,215,0,0.15);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.history-table th {
  background: rgba(255,215,0,0.08);
  padding: 8px;
  text-align: left;
  color: var(--gold);
  font-weight: 600;
}

.history-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255,215,0,0.04);
  color: #ccc;
}

.status-pending { color: #f39c12; }
.status-approved { color: #2ecc71; }
.status-disapproved { color: #e74c3c; }

/* ── Wallet Page ── */
.wallet-card {
  background: linear-gradient(135deg, #1a1438, #2a1a50);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
  border: 1px solid rgba(255,215,0,0.1);
}

.wallet-balance {
  font-size: 36px;
  font-weight: 900;
  color: var(--gold);
  margin-top: 8px;
}

.wallet-label { font-size: 13px; color: #aaa; }

.wallet-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.wallet-action-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
