/* ═══════════════════════════════════════════════════════════════════════════════
   HelixJumPAY — Dashboard Page Styles
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Dashboard Variables ────────────────────────────────────────────────────── */
#page-dashboard {
  --hero-image: url('https://image.api.playstation.com/vulcan/ap/rnd/202401/0816/7d9ea070810ca0172f21943c76c5573525f55c3a415bd3fc.jpg?w=440');
  --bg-0: #070815;
  --bg-1: #0a0b1f;
  --text: #fbf7ff;
  --muted: rgba(251,247,255,0.72);
  --edge: rgba(255,255,255,0.14);
  --shadow: 0 26px 90px rgba(0,0,0,0.55);
  --radius: 22px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

#page-dashboard {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1100px 640px at 30% 10%, rgba(124,58,237,0.22), transparent 62%),
    radial-gradient(1100px 640px at 80% 30%, rgba(255,58,167,0.18), transparent 58%),
    radial-gradient(900px 560px at 50% 85%, rgba(32,227,255,0.14), transparent 58%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

#page-dashboard a { color: inherit; text-decoration: none; }
#page-dashboard button { font: inherit; color: inherit; }

#page-dashboard .container { width: min(1080px, calc(100% - 44px)); margin: 0 auto; }

/* ─── Topbar ─────────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7,8,21,0.82), rgba(7,8,21,0.20));
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 10px 26px rgba(0,0,0,0.45)); }

.right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pill {
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-family: var(--mono);
  letter-spacing: 0.4px;
}

.pill small { font-weight: 900; font-size: 11px; opacity: 0.72; text-transform: uppercase; }

.tag {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(32,227,255,0.22);
  background: rgba(32,227,255,0.10);
  color: rgba(214,251,255,0.95);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
  font-family: var(--mono);
  letter-spacing: 0.9px;
  text-transform: uppercase;
  font-size: 11px;
}

.tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(34,197,94,0.95);
  box-shadow: 0 0 0 5px rgba(34,197,94,0.14), 0 0 18px rgba(34,197,94,0.45);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  font-weight: 950;
  font-family: var(--mono);
}

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
.wrap { min-height: 100%; display: flex; flex-direction: column; }

.main {
  padding: 18px 0 88px;
  flex: 1 1 auto;
}

/* ─── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(7,8,21,0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.08);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(980px 520px at 20% 0%, rgba(124,58,237,0.30), transparent 62%),
    radial-gradient(860px 520px at 80% 20%, rgba(255,58,167,0.22), transparent 62%),
    linear-gradient(180deg, rgba(7,8,21,0.22), rgba(7,8,21,0.82));
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.balance-title {
  text-transform: uppercase;
  font-family: var(--mono);
  letter-spacing: 1px;
  font-size: 12px;
  opacity: 0.78;
}

.balance-value {
  font-family: var(--mono);
  font-size: 44px;
  letter-spacing: -0.8px;
  margin: 6px 0 0;
  font-weight: 950;
}

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ─── Dashboard Buttons ──────────────────────────────────────────────────────── */
#page-dashboard .btn {
  height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  font-weight: 900;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  user-select: none;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

#page-dashboard .btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
#page-dashboard .btn.is-copied { border-color: rgba(34,197,94,0.34); background: rgba(34,197,94,0.10); }
#page-dashboard .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
#page-dashboard .btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.29); border-color: rgba(255,255,255,0.18); }
#page-dashboard .btn:active { transform: translateY(0); }

#page-dashboard .btn-primary {
  border-color: rgba(34,197,94,0.34);
  background: linear-gradient(135deg, rgba(34,197,94,0.92), rgba(32,227,255,0.72));
  color: rgba(7,8,21,0.95);
  box-shadow: 0 18px 60px rgba(34,197,94,0.16);
}

#page-dashboard .btn-danger {
  border-color: rgba(255,58,167,0.38);
  background: linear-gradient(135deg, rgba(255,58,167,0.92), rgba(124,58,237,0.72));
  color: rgba(7,8,21,0.95);
  box-shadow: 0 18px 60px rgba(255,58,167,0.14);
}

/* ─── Note ────────────────────────────────────────────────────────────────────── */
.note {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  padding: 14px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(251,247,255,0.74);
  font-weight: 750;
}

.note b { font-family: var(--mono); }

/* ─── Card ────────────────────────────────────────────────────────────────────── */
#page-dashboard .card {
  margin-top: 16px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(7,8,21,0.70);
  overflow: hidden;
  position: relative;
}

#page-dashboard .card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: blur(0px) saturate(1.02) contrast(1.08);
  pointer-events: none;
}

.card-inner { padding: 22px; position: relative; z-index: 1; }

/* ─── Play Section ───────────────────────────────────────────────────────────── */
.play-title {
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.3px;
  text-align: center;
  line-height: 1.3;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.play-desc {
  text-align: center;
  color: rgba(251,247,255,0.68);
  font-weight: 650;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 18px;
}
.play-label {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}

.entry {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.95);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 950;
  font-size: 22px;
  color: rgba(0,0,0,0.88);
  margin-bottom: 14px;
}

.entry span { color: rgba(0,0,0,0.50); }
.entry input {
  flex: 1 1 auto;
  border: 0;
  outline: none;
  background: transparent;
  color: rgba(0,0,0,0.88);
  font: inherit;
  min-width: 0;
}

.play-amounts {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.play-min-warn {
  color: rgba(255,107,107,0.92);
  font-weight: 850;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.play-amount-btn {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(34,197,94,0.16), rgba(32,227,255,0.10));
  color: rgba(220,252,231,0.98);
  font-weight: 950;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.play-amount-btn:hover { border-color: rgba(34,197,94,0.30); background: linear-gradient(135deg, rgba(34,197,94,0.22), rgba(32,227,255,0.14)); }
.play-amount-btn.play-amount-selected {
  border-color: rgba(34,197,94,0.42);
  background: linear-gradient(135deg, rgba(34,197,94,0.28), rgba(32,227,255,0.18));
  box-shadow: 0 0 0 2px rgba(34,197,94,0.14);
}

/* ─── CTA Play ───────────────────────────────────────────────────────────────── */
.cta-play {
  margin-top: 0;
  width: 100%;
  height: 56px;
  border-radius: 22px;
  border: 1.5px solid rgba(34,197,94,0.55);
  background: linear-gradient(135deg, #16a34a, #059669);
  color: rgba(255,255,255,0.98);
  font-weight: 950;
  font-family: var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cta-play svg { width: 18px; height: 18px; }
.cta-play:hover { border-color: rgba(34,197,94,0.75); background: linear-gradient(135deg, #22c55e, #16a34a); }
.cta-play:disabled { opacity: 0.45; cursor: not-allowed; }
.cta-play:disabled:hover { border-color: rgba(34,197,94,0.55); background: linear-gradient(135deg, #16a34a, #059669); }
.cta-play.cta-free { background: linear-gradient(135deg, rgba(255,58,167,0.16), rgba(32,227,255,0.10)); color: rgba(255,224,244,0.98); }
.cta-play.cta-free:hover { border-color: rgba(255,58,167,0.30); background: linear-gradient(135deg, rgba(255,58,167,0.20), rgba(32,227,255,0.12)); }

/* ─── Winners ────────────────────────────────────────────────────────────────── */
.winners {
  margin-top: 16px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(7,8,21,0.70);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.winners::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  filter: saturate(1.02) contrast(1.06);
  pointer-events: none;
}

.winners-inner { position: relative; z-index: 1; padding: 16px; }

.winners-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.winners-head b {
  font-family: var(--mono);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 13px;
}

.winners-viewport {
  height: 260px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  overflow: hidden;
  position: relative;
}

.winners-viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,8,21,0.92), rgba(7,8,21,0.00) 18%, rgba(7,8,21,0.00) 82%, rgba(7,8,21,0.92));
  pointer-events: none;
}

.winners-track { will-change: transform; display: flex; flex-direction: column; }

.winner-card {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: opacity 0.4s, transform 0.4s;
}
.winner-card:first-child { border-top: 0; }

.winner-card-new {
  animation: winnerSlideIn 0.5s ease-out;
}

@keyframes winnerSlideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  display: grid;
  place-items: center;
  font-weight: 950;
  font-family: var(--mono);
  color: #fff;
  flex: 0 0 auto;
  font-size: 15px;
}

.winner-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.winner-name {
  font-weight: 950;
  font-size: 13px;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.winner-amount {
  font-weight: 800;
  font-size: 13px;
  color: #00C97A;
}

.winner-time {
  font-size: 11px;
  color: rgba(251,247,255,0.5);
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.win-row {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.win-row:first-child { border-top: 0; }

.win-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.win-ava {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  font-weight: 950;
  font-family: var(--mono);
  color: rgba(251,247,255,0.92);
  flex: 0 0 auto;
}

.win-meta { display: grid; gap: 2px; min-width: 0; }
.win-meta b { font-weight: 950; letter-spacing: 0.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-meta small { color: rgba(251,247,255,0.66); font-weight: 700; }

.win-right { text-align: right; display: grid; gap: 2px; flex: 0 0 auto; }
.win-right b { font-family: var(--mono); color: rgba(34,197,94,0.95); letter-spacing: 0.4px; }
.win-right small { color: rgba(251,247,255,0.66); font-weight: 700; }

/* ─── Bottom Nav ─────────────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(7,8,21,0.22), rgba(7,8,21,0.92));
  border-top: 1px solid rgba(255,255,255,0.10);
  z-index: 30;
}

.nav-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: center;
}

.nav-btn {
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  font-weight: 900;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-btn svg { width: 18px; height: 18px; }
.nav-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ─── Modals ─────────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10050;
  align-items: end;
  justify-content: center;
  padding: 18px;
}

.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(8px);
}

.sheet {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100dvh - 36px);
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(18,18,34,0.82), rgba(9,10,24,0.96));
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.modal.open .sheet { transform: translateY(0); opacity: 1; }

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.sheet-head b { font-size: 16px; letter-spacing: -0.2px; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sheet-body { padding: 14px 16px 16px; display: grid; gap: 12px; overflow: auto; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-height: 0; }

@media (max-width: 560px){
  #modal-deposit.fullscreen{padding:0; align-items: stretch;}
  #modal-deposit.fullscreen .sheet{width:100%; height: 100%; min-height: 100%; border-radius: 0;}
  #modal-deposit.fullscreen .sheet-head{padding-top: calc(16px + env(safe-area-inset-top));}
  #modal-deposit.fullscreen .sheet-body{padding-bottom: calc(16px + env(safe-area-inset-bottom)); display:flex; flex-direction: column;}
  #modal-deposit.fullscreen #deposit-result{margin-top: 12px;}
  #modal-deposit.fullscreen #deposit-qr{max-width: min(88vw, 520px);}
  #modal-deposit.fullscreen #deposit-pix-text{max-height: 220px;}
}

/* ─── Dashboard Toast ────────────────────────────────────────────────────────── */
#page-dashboard .toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.50);
  backdrop-filter: blur(10px);
  color: rgba(251,247,255,0.92);
  font-weight: 850;
  font-family: var(--mono);
  letter-spacing: 0.4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 60;
}

#page-dashboard .toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

/* ─── Forms ──────────────────────────────────────────────────────────────────── */
.field label {
  display: block;
  font-weight: 850;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: var(--mono);
  color: rgba(251,247,255,0.82);
  margin-bottom: 6px;
}

.input {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(7,8,21,0.70);
  color: rgba(251,247,255,0.92);
  padding: 0 12px;
  font-weight: 750;
  outline: none;
  font-family: var(--mono);
}

.input::placeholder { color: rgba(251,247,255,0.44); }
.input:focus { border-color: rgba(32,227,255,0.48); box-shadow: 0 0 0 4px rgba(32,227,255,0.10); }

@media (max-width: 560px){
  .input{font-size:16px;}
}

.ref-grid{display:grid; gap:10px;}
.ref-stats{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:10px;}
@media (max-width: 520px){.ref-stats{grid-template-columns: 1fr;}}

/* ─── Withdraw Promo ─────────────────────────────────────────────────────────── */
.withdraw-promo {
  text-align: center;
  padding: 24px 20px 20px;
}
.withdraw-promo-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,58,167,0.16);
  color: rgba(255,58,167,0.92);
  border: 1px solid rgba(255,58,167,0.24);
}
.withdraw-promo-icon {
  font-size: 48px;
  margin: 16px 0 8px;
  line-height: 1;
}
.withdraw-promo-heading {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
  color: rgba(251,247,255,0.96);
}
.withdraw-promo-text {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(251,247,255,0.68);
  margin: 0 0 16px;
}
.withdraw-promo-highlight {
  color: rgba(34,197,94,0.96);
  font-weight: 900;
}

#modal-withdraw-success .withdraw-promo-highlight {
  display: inline-block;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.6px;
  background: linear-gradient(135deg, #34d399, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 24px rgba(34,197,94,0.28);
  animation: winPulse 1.8s ease-in-out infinite;
}

@keyframes winPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(34,197,94,0.0)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 6px 18px rgba(34,197,94,0.35)); }
}
.withdraw-promo-bonus-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.22);
  color: rgba(34,197,94,0.92);
  margin-bottom: 18px;
}
.withdraw-promo-cta {
  width: 100%;
  height: 52px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.3px;
  animation: promoPulse 2s ease-in-out infinite;
}
.withdraw-promo-close {
  width: 100%;
  margin-top: 4px;
  opacity: 0.6;
  font-size: 13px;
}
.withdraw-promo-close:hover { opacity: 1; }
@keyframes promoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

/* ─── Deposit ────────────────────────────────────────────────────────────────── */
@keyframes depositSpin { to { transform: rotate(360deg); } }
@keyframes depositPulse { 0%, 100% { opacity: 0.72; } 50% { opacity: 1; } }

.deposit-status{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:10px;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
}
.deposit-loader{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,0.18);
  border-top-color: rgba(32,227,255,0.92);
  animation: depositSpin 0.9s linear infinite;
  box-shadow: 0 0 0 6px rgba(32,227,255,0.06);
}
.deposit-status-text{
  font-weight: 950;
  letter-spacing: 0.2px;
}
.deposit-status-text.pulse{
  animation: depositPulse 1.1s ease-in-out infinite;
}
.deposit-status-amount{
  font-family: var(--mono);
  font-weight: 950;
  letter-spacing: 0.6px;
  opacity: 0.92;
}

.dep-promo {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(124,58,237,0.32);
  background: linear-gradient(135deg, rgba(124,58,237,0.14), rgba(255,58,167,0.08));
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
}
.dep-promo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
}
.dep-promo-close:hover { background: rgba(255,255,255,0.12); }
.dep-promo-title {
  font-weight: 950;
  font-family: var(--mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 10px;
}
.dep-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.dep-timer-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--mono);
  font-weight: 950;
  font-size: 18px;
  letter-spacing: 0.4px;
}
.dep-timer-sep {
  font-weight: 950;
  font-size: 18px;
  color: rgba(255,255,255,0.52);
}
.dep-promo-text {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.66);
  line-height: 1.45;
}
.dep-promo-text b { color: rgba(255,255,255,0.95); }
.dep-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.dep-header-title {
  font-weight: 950;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.dep-minmax {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
  margin-bottom: 14px;
}
.dep-minmax b { color: rgba(255,255,255,0.82); }
.dep-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.dep-quick-btn {
  position: relative;
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(32,227,255,0.22);
  background: rgba(32,227,255,0.08);
  color: rgba(255,255,255,0.95);
  font-weight: 950;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.dep-quick-btn:hover {
  border-color: rgba(32,227,255,0.38);
  background: rgba(32,227,255,0.14);
}
.dep-quick-btn.dep-quick-selected {
  border-color: rgba(32,227,255,0.52);
  background: rgba(32,227,255,0.20);
  box-shadow: 0 0 0 2px rgba(32,227,255,0.10);
}
.dep-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  background: linear-gradient(135deg, #ff6b9d, #ff8cc8);
  color: rgba(10,0,18,0.95);
  font-size: 10px;
  font-weight: 950;
  padding: 2px 8px;
  border-radius: 8px;
  transform: rotate(12deg);
  pointer-events: none;
  white-space: nowrap;
}
.dep-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  padding: 0 16px;
  margin-bottom: 14px;
}
.dep-input-wrap:focus-within {
  border-color: rgba(32,227,255,0.48);
  box-shadow: 0 0 0 4px rgba(32,227,255,0.10);
}
.dep-input-prefix {
  font-family: var(--mono);
  font-weight: 950;
  font-size: 20px;
  color: rgba(255,255,255,0.55);
  flex: 0 0 auto;
}
.dep-input {
  flex: 1 1 auto;
  height: 52px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.92);
  font-family: var(--mono);
  font-weight: 950;
  font-size: 20px;
  letter-spacing: 0.4px;
  outline: none;
  min-width: 0;
}
@media (max-width: 560px) { .dep-input { font-size: 18px; } }
.dep-generate-btn {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, rgba(32,127,255,0.92), rgba(32,227,255,0.82));
  color: rgba(255,255,255,0.98);
  font-weight: 950;
  font-family: var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 18px 60px rgba(32,127,255,0.18);
  transition: box-shadow 0.12s, opacity 0.12s;
}
.dep-generate-btn:hover { box-shadow: 0 22px 70px rgba(32,127,255,0.28); }
.dep-generate-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Presell Modal (Landing) ────────────────────────────────────────────────── */
#modal-presell { position: fixed; inset: 0; display: block; z-index: 120; }
#modal-presell.hidden { display: none; }
#modal-presell .modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.52); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
#modal-presell .modal-card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 34px)); padding: 22px 18px 18px; border-radius: 22px; color: rgba(255,255,255,0.92); box-shadow: 0 26px 90px rgba(0,0,0,0.62); overflow: hidden; }
#modal-presell .modal-card.is-win { border: 1px solid rgba(255, 190, 60, 0.42); background: linear-gradient(180deg, rgba(255, 184, 0, 0.08), rgba(0, 0, 0, 0.00)), linear-gradient(180deg, rgba(18, 0, 40, 0.76), rgba(6, 0, 18, 0.86)); }
#modal-presell .modal-card.is-loss { border: 1px solid rgba(255, 255, 255, 0.14); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.00)), linear-gradient(180deg, rgba(18, 0, 40, 0.72), rgba(6, 0, 18, 0.86)); }
#modal-presell .modal-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.92); cursor: pointer; z-index: 3; }
#modal-presell .modal-close:hover { background: rgba(255,255,255,0.10); }
.presell-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.presell-dot { position: absolute; top: -20px; width: 12px; height: 12px; border-radius: 999px; opacity: 0.95; animation: presellFall 2100ms linear forwards; }
@keyframes presellFall { to { transform: translateY(calc(100vh + 120px)); } }
.presell-icon { width: 76px; height: 76px; border-radius: 999px; margin: 0 auto 12px; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.92), rgba(255,255,255,0.0) 50%), #ffb800; box-shadow: 0 18px 48px rgba(255,184,0,0.18); border: 1px solid rgba(255,184,0,0.28); position: relative; z-index: 3; }
.presell-icon svg { width: 34px; height: 34px; color: rgba(0,0,0,0.84); }
#modal-presell .modal-card.is-loss .presell-icon { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.14); box-shadow: none; }
#modal-presell .modal-card.is-loss .presell-icon svg { color: rgba(255,255,255,0.86); }
.presell-title { text-align: center; font-weight: 950; font-size: 26px; letter-spacing: 0.2px; color: rgba(255,184,0,0.98); margin: 0 0 6px; position: relative; z-index: 3; }
#modal-presell .modal-card.is-loss .presell-title { color: rgba(255,255,255,0.92); }
.presell-sub { text-align: center; color: rgba(255,255,255,0.62); font-weight: 700; font-size: 13px; margin: 0 0 12px; position: relative; z-index: 3; }
.presell-amount-box { border-radius: 16px; border: 1px solid rgba(255,184,0,0.22); background: rgba(0,0,0,0.22); padding: 14px 14px; text-align: center; margin: 10px 0 12px; position: relative; z-index: 3; }
#modal-presell .modal-card.is-loss .presell-amount-box { border-color: rgba(255,255,255,0.14); }
.presell-amount-label { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace; text-transform: uppercase; letter-spacing: 0.9px; font-size: 11px; color: rgba(255,184,0,0.72); font-weight: 900; margin-bottom: 8px; }
#modal-presell .modal-card.is-loss .presell-amount-label { color: rgba(255,255,255,0.62); }
.presell-amount { font-weight: 950; font-size: 40px; color: rgba(255,184,0,0.98); letter-spacing: -0.4px; }
#modal-presell .modal-card.is-loss .presell-amount { color: rgba(255,255,255,0.92); }
.presell-desc { text-align: center; color: rgba(255,255,255,0.70); font-weight: 650; font-size: 13px; line-height: 1.35; position: relative; z-index: 3; }
.presell-desc b { color: rgba(255,107,157,0.98); }
.presell-actions { margin-top: 14px; display: grid; gap: 10px; position: relative; z-index: 3; }
.presell-btn { height: 54px; border-radius: 18px; border: 0; background: linear-gradient(135deg, #ff6b9d 0%, #ff8cc8 100%); box-shadow: 0 18px 60px rgba(255,107,157,0.22); color: rgba(10,0,18,0.98); font-weight: 950; letter-spacing: 0.4px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.presell-btn:hover { box-shadow: 0 22px 70px rgba(255,107,157,0.28); }

/* ─── Dashboard Responsive ───────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .balance-value { font-size: 40px; }
}

@media (max-width: 520px) {
  #page-dashboard .container { width: calc(100% - 28px); }
  .nav-btn { font-size: 10px; letter-spacing: 0.6px; }
  .balance-value { font-size: 38px; }
}

/* ─── Old Dashboard Styles (from style.css) ──────────────────────────────────── */
.painel-content { max-width: 1000px; margin: 0 auto; padding: 24px 16px; }
.painel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width: 700px) { .painel-grid { grid-template-columns: 1fr; } }

.dash-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(8px); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.dash-card-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.dash-card-sub { font-size: 14px; color: rgba(255,255,255,0.55); }
.balance-display {
  font-size: 36px; font-weight: 800; color: var(--green);
  margin: 16px 0; text-align: center;
}
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.game-card {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
  border-radius: var(--radius); padding: 28px;
}
.game-card-title { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.game-card-sub   { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 20px; }

.bet-options { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.bet-btn {
  padding: 12px 24px; border-radius: 50px; border: 2px solid var(--pink);
  background: transparent; color: var(--pink); font-weight: 700; font-size: 16px;
  cursor: pointer; transition: var(--transition);
}
.bet-btn:hover, .bet-btn.active {
  background: var(--pink); color: #fff;
}

.meta-preview {
  background: rgba(255,255,255,0.1); border-radius: 10px;
  padding: 12px 16px; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.meta-preview-label { color: rgba(255,255,255,0.7); font-size: 14px; }
.meta-preview-value { color: #fff; font-weight: 800; font-size: 18px; }

/* ─── Navbar Logged (from style.css) ─────────────────────────────────────────── */
.navbar-logged {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,0,20,0.92);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.navbar-logged .navbar-brand {
  font-size: 22px; font-weight: 800; color: var(--pink);
  display: flex; align-items: center; gap: 8px;
}
.balance-badge {
  background: linear-gradient(135deg, var(--green) 0%, #00e68a 100%);
  color: #fff; padding: 8px 16px; border-radius: 50px;
  font-weight: 700; font-size: 15px; min-width: 110px; text-align: center;
}
.avatar-circle {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink) 0%, var(--dark) 100%);
  color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: default;
}

/* ─── Bonus Banner ──────────────────────────────────────────────────────────── */
.bonus-banner {
  margin-bottom: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,184,0,0.28);
  background: linear-gradient(135deg, rgba(255,184,0,0.10), rgba(255,107,157,0.08));
  overflow: hidden;
  animation: bonusPulse 3s ease-in-out infinite;
}

@keyframes bonusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,184,0,0.18); }
  50% { box-shadow: 0 0 0 6px rgba(255,184,0,0); }
}

.bonus-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  flex-wrap: wrap;
}

.bonus-banner-icon {
  font-size: 28px;
  flex: 0 0 auto;
}

.bonus-banner-content {
  flex: 1 1 auto;
  min-width: 0;
}

.bonus-banner-title {
  font-weight: 950;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: rgba(255,184,0,0.95);
  margin-bottom: 2px;
}

.bonus-banner-desc {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  line-height: 1.35;
}

.bonus-banner-timer {
  font-family: var(--mono);
  font-weight: 950;
  font-size: 16px;
  letter-spacing: 0.6px;
  color: rgba(255,107,157,0.95);
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,107,157,0.22);
}

.bonus-banner-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, rgba(255,184,0,0.90), rgba(255,140,0,0.85));
  color: rgba(10,0,18,0.95);
  font-weight: 950;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  flex: 0 0 auto;
}

.bonus-banner-btn:hover {
  box-shadow: 0 8px 24px rgba(255,184,0,0.25);
}

/* ─── Game History ──────────────────────────────────────────────────────────── */
.game-history {
  margin-bottom: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

.history-head {
  padding: 14px 16px 10px;
  font-size: 14px;
}

.history-head b {
  font-weight: 950;
  letter-spacing: 0.2px;
}

.history-list {
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.history-empty {
  padding: 24px 16px;
  text-align: center;
  color: rgba(255,255,255,0.40);
  font-weight: 700;
  font-size: 13px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.history-item.win {
  background: linear-gradient(90deg, rgba(34,197,94,0.10), rgba(34,197,94,0.02));
}

.history-item:first-child {
  border-top: 0;
}

.history-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: 0 0 auto;
}

.history-icon.win {
  background: rgba(34,197,94,0.14);
  border: 1px solid rgba(34,197,94,0.22);
}

.history-icon.loss {
  background: rgba(239,68,68,0.14);
  border: 1px solid rgba(239,68,68,0.22);
}

.history-icon.free {
  background: rgba(32,227,255,0.14);
  border: 1px solid rgba(32,227,255,0.22);
}

.history-info {
  flex: 1 1 auto;
  min-width: 0;
}

.history-result {
  font-weight: 950;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.history-result.win { color: rgba(34,197,94,0.92); }
.history-result.loss { color: rgba(239,68,68,0.92); }
.history-result.free { color: rgba(32,227,255,0.92); }

.history-date {
  font-size: 11px;
  color: rgba(255,255,255,0.40);
  font-weight: 700;
}

.history-values {
  text-align: right;
  flex: 0 0 auto;
}

.history-bet {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.history-earned {
  font-family: var(--mono);
  font-weight: 950;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.history-earned.win { color: rgba(34,197,94,0.92); }
.history-earned.loss { color: rgba(239,68,68,0.72); }
.history-earned.free { color: rgba(32,227,255,0.82); }

.history-more-btn {
  width: 100%;
  padding: 12px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.04);
  color: rgba(32,227,255,0.82);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.history-more-btn:hover {
  background: rgba(255,255,255,0.08);
}
