/* ===== DASHBOARD HERO ===== */
.db-hero {
  background: linear-gradient(135deg, #0d1b5e 0%, #0a4a6e 50%, #0d6e5e 100%);
  padding: 50px 30px 60px;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.db-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(0,200,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,150,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Animated dots */
.db-hero::after {
  content: '';
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(0,220,255,0.6);
  border-radius: 50%;
  top: 30%; left: 10%;
  box-shadow:
    80px -20px 0 rgba(0,200,255,0.4),
    160px 40px 0 rgba(0,180,255,0.3),
    260px -10px 0 rgba(0,220,255,0.5),
    400px 30px 0 rgba(0,200,255,0.3),
    520px -25px 0 rgba(0,180,255,0.4),
    700px 15px 0 rgba(0,220,255,0.3),
    850px -30px 0 rgba(0,200,255,0.5),
    1000px 20px 0 rgba(0,180,255,0.3);
}

.db-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.db-hero-inner h1 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.db-hero-inner > p {
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  margin-bottom: 14px;
}

.db-address-box {
  background: rgba(0,180,200,0.25);
  border: 1px solid rgba(0,220,255,0.4);
  border-radius: 4px;
  padding: 10px 20px;
  text-align: center;
  color: #7ee8ff;
  font-size: 13px;
  letter-spacing: 0.5px;
  max-width: 600px;
  margin: 0 auto 26px;
  word-break: break-all;
}

.db-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}

.db-balance-left {
  display: flex;
  flex-direction: column;
}

.db-balance-label {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  margin-bottom: 4px;
}

.db-balance-val {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.db-btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-withdraw {
  background: #4a5fd4;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 13px 36px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 130px;
}
.btn-withdraw:hover { background: #3b4ec8; }

.btn-logout {
  background: #f39c12;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 13px 36px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 130px;
}
.btn-logout:hover { background: #d68910; }

/* ===== DASHBOARD CONTENT ===== */
.db-content {
  background: #f5f5f5;
  min-height: 400px;
  padding: 30px 20px 60px;
}

/* Welcome banner */
.welcome-banner {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.welcome-banner strong { color: #0d6b21; }
.banner-close {
  background: none; border: none; cursor: pointer;
  color: #155724; font-size: 16px; line-height: 1;
}

/* TABS */
.db-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.db-tab {
  background: #e0e0e0;
  border: none;
  border-radius: 4px 4px 0 0;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.db-tab:hover { background: #d0d0d0; }
.db-tab.active {
  background: #3b4ec8;
  color: #fff;
}

/* Tab content */
.tab-content {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0 4px 4px 4px;
  padding: 24px;
}

/* Table */
.db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.db-table thead tr { background: #f8f8f8; }
.db-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: #444;
  border-bottom: 2px solid #e0e0e0;
  font-size: 13px;
}
.db-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
}
.db-table tbody tr:hover { background: #f9f9ff; }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-completed { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }

/* Bonuses tab */
.bonuses-top {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.spin-info-box {
  background: linear-gradient(135deg, #1a2a6c, #1a6c5a);
  border-radius: 8px;
  padding: 24px 36px;
  text-align: center;
  color: #fff;
  min-width: 180px;
}
.spin-count-label { font-size: 13px; opacity: 0.8; margin-bottom: 8px; }
.spin-count-num {
  font-size: 48px;
  font-weight: 700;
  color: #ffd700;
  line-height: 1;
  margin-bottom: 16px;
}
.btn-play-keno {
  display: inline-block;
  background: #3b4ec8;
  color: #fff;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-play-keno:hover { opacity: 0.9; }
.bonuses-hist-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 14px;
}

/* Referral */
.referral-link-box {
  background: #f8f8ff;
  border: 1px solid #dde;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 10px;
}
.referral-link-box label {
  font-size: 13px; font-weight: 600; color: #333;
  display: block; margin-bottom: 10px;
}
.referral-link-row { display: flex; gap: 10px; }
.referral-link-row input {
  flex: 1; padding: 10px 14px; border: 1px solid #ccc;
  border-radius: 4px; font-size: 12px; color: #555; background: #fff;
}
.btn-copy {
  background: #3b4ec8; color: #fff; border: none;
  border-radius: 4px; padding: 10px 20px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.btn-copy:hover { background: #2d3db0; }

/* Email form */
.email-form-box { max-width: 500px; }
.email-form-box h3 { font-size: 15px; color: #222; margin-bottom: 8px; }
.email-form-box p { font-size: 13px; color: #666; margin-bottom: 16px; }
.email-form-row { display: flex; gap: 10px; }
.email-form-row input {
  flex: 1; padding: 10px 14px; border: 1px solid #ccc;
  border-radius: 4px; font-size: 13px; outline: none;
}
.btn-update-email {
  background: #3b4ec8; color: #fff; border: none;
  border-radius: 4px; padding: 10px 20px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.2s; white-space: nowrap;
}
.btn-update-email:hover { background: #2d3db0; }
.email-current { font-size: 12px; color: #27ae60; margin-top: 10px; }

/* Withdraw Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
}
.modal-box {
  background: #fff; border-radius: 8px;
  padding: 32px 36px; max-width: 380px; width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-box h3 { font-size: 18px; color: #222; margin-bottom: 14px; }
.modal-box p { font-size: 14px; color: #444; }
.modal-btns { display: flex; gap: 12px; margin-top: 24px; justify-content: flex-end; }
.btn-modal-cancel {
  background: #e0e0e0; color: #555; border: none;
  border-radius: 4px; padding: 10px 20px;
  font-size: 13px; cursor: pointer;
}
.btn-modal-confirm {
  background: #3b4ec8; color: #fff; border: none;
  border-radius: 4px; padding: 10px 20px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-modal-confirm:hover { background: #2d3db0; }

/* ===== KENO PAGE ===== */
.keno-section {
  background: #f0f0f0;
  min-height: calc(100vh - 56px - 120px);
  padding: 50px 30px;
}

.keno-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Instructions */
.keno-instructions {
  flex: 1;
  min-width: 260px;
}
.keno-instructions h2 {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 14px;
}
.keno-instructions h3 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 14px;
}
.keno-instructions p {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  text-align: center;
}
.keno-rewards {
  list-style: none;
  margin-top: 18px;
  padding: 0;
}
.keno-rewards li {
  font-size: 13px;
  color: #444;
  padding: 4px 0;
  border-bottom: 1px dashed #ddd;
}
.keno-rewards li strong { color: #3b4ec8; }

/* Board */
.keno-board-wrap {
  flex-shrink: 0;
  width: 380px;
}

.keno-title {
  background: #3b4ec8;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  padding: 12px;
  border-radius: 6px 6px 0 0;
}
.keno-bolt { color: #ffd700; margin-right: 4px; }

.keno-grid {
  background: #2c3e8c;
  border: 3px solid #3b4ec8;
  border-top: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px;
}

.keno-cell {
  background: #d0d0d0;
  border-radius: 50%;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  user-select: none;
  justify-self: center;
}
.keno-cell:hover { transform: scale(1.05); background: #c0c0c0; }

.keno-cell.selected {
  background: #f39c12 !important;
}

.keno-cell.revealed { cursor: default; }
.keno-cell.revealed:hover { transform: none; }

.keno-cell.has-symbol { background: #e0e0e0 !important; }
.keno-cell.match { background: #f39c12 !important; }

.keno-q {
  font-size: 28px;
  font-weight: 700;
  color: #888;
  line-height: 1;
}
.keno-q.faded { color: #bbb; }
.keno-sym { font-size: 30px; line-height: 1; }

/* Result message */
.keno-result {
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;
}
.result-jackpot { background: #d4edda; color: #155724; }
.result-win     { background: #d4edda; color: #155724; }
.result-miss    { background: #fff3cd; color: #856404; }

/* Controls */
.keno-controls {
  background: #2c3e8c;
  border: 3px solid #3b4ec8;
  border-top: none;
  border-radius: 0 0 6px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}
.keno-btn-spins {
  background: #3b4ec8;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: default;
  flex: 1;
}
.keno-spin-count {
  background: #1a2a6c;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  min-width: 50px;
  padding: 10px 14px;
  border-radius: 4px;
}
.keno-btn-action {
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  flex: 1;
  transition: background 0.2s, opacity 0.2s;
}
.keno-btn-action:hover { opacity: 0.88; }

/* ===== FULL MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .db-hero { padding: 36px 16px 44px; }
  .db-hero-inner h1 { font-size: 26px; letter-spacing: 2px; }
  .db-hero-inner > p { font-size: 13px; }
  .db-address-box { font-size: 11px; padding: 8px 12px; }
  .db-balance-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .db-balance-val { font-size: 26px; }
  .db-btn-group { flex-direction: row; width: 100%; }
  .btn-withdraw, .btn-logout { flex: 1; padding: 11px 10px; font-size: 14px; min-width: 0; }
  .db-content { padding: 20px 12px 40px; }
  .db-tabs { gap: 3px; }
  .db-tab { padding: 8px 12px; font-size: 12px; }
  .tab-content { padding: 16px 12px; overflow-x: auto; }
  .db-table { min-width: 480px; }
  .referral-link-row { flex-direction: column; }
  .referral-link-row input { font-size: 11px; }
  .email-form-row { flex-direction: column; }
  .bonuses-top { flex-direction: column; }
  .keno-inner { flex-direction: column; align-items: center; gap: 30px; }
  .keno-board-wrap { width: 100%; max-width: 340px; }
  .keno-cell { width: 52px; height: 52px; }
  .keno-q { font-size: 22px; }
  .keno-sym { font-size: 24px; }
  .spin-info-box { width: 100%; }
}
@media (max-width: 480px) {
  .db-hero-inner h1 { font-size: 22px; }
  .db-balance-val { font-size: 22px; }
  .db-btn-group { flex-direction: column; }
  .btn-withdraw, .btn-logout { width: 100%; }
  .db-tab { padding: 7px 8px; font-size: 11px; }
  .keno-board-wrap { max-width: 280px; }
  .keno-cell { width: 42px; height: 42px; }
  .keno-grid { gap: 6px; padding: 10px; }
}
