/* ============================================================
   PIANO CASH — Inspired by Magic Tiles 3
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900;1000&display=swap');

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

:root {
  --blue:    #4a9eff;
  --purple:  #9b5fff;
  --pink:    #ff5fa0;
  --gold:    #ffd700;
  --green:   #00e676;
  --red:     #ff1744;
  --white:   #ffffff;
  --bg:      #080818;
  --bg2:     #0f0f2e;
  --glass:   rgba(255,255,255,0.07);
  --glassBorder: rgba(255,255,255,0.12);
  --font: 'Nunito', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Animated Background ─────────────────────────────────── */
.bg-orbs {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.32;
}
.bg-orb.o1 {
  width: 600px; height: 600px;
  background: var(--blue);
  top: -200px; left: -200px;
  animation: orbFloat1 14s ease-in-out infinite alternate;
}
.bg-orb.o2 {
  width: 700px; height: 700px;
  background: var(--purple);
  bottom: -220px; right: -220px;
  animation: orbFloat2 18s ease-in-out infinite alternate;
}
.bg-orb.o3 {
  width: 400px; height: 400px;
  background: var(--pink);
  top: 40%; left: 50%; transform: translate(-50%,-50%);
  animation: orbFloat3 10s ease-in-out infinite alternate;
}
@keyframes orbFloat1 { to { transform: translate(70px, 90px); opacity: 0.38; } }
@keyframes orbFloat2 { to { transform: translate(-70px,-90px); opacity: 0.34; } }
@keyframes orbFloat3 { to { transform: translate(-70px, -50px) scale(1.3); opacity: 0.18; } }

/* ── Glass ───────────────────────────────────────────────── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glassBorder);
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: rgba(8,8,24,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.navbar-brand {
  font-size: 22px; font-weight: 900; letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.balance-pill {
  background: linear-gradient(135deg,rgba(74,158,255,.18),rgba(155,95,255,.18));
  border: 1px solid rgba(74,158,255,.35);
  color: var(--blue); font-weight: 800; font-size: 14px;
  padding: 6px 16px; border-radius: 50px;
}
.nav-link {
  color: rgba(255,255,255,.65); font-size: 14px; font-weight: 600;
  text-decoration: none; padding: 6px 12px; border-radius: 10px;
  transition: all .2s;
}
.nav-link:hover { color: #fff; background: var(--glass); }
.nav-link.admin-link { color: var(--gold); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: #fff; border: none; cursor: pointer;
  font-family: var(--font); font-weight: 800; font-size: 16px;
  padding: 14px 32px; border-radius: 50px;
  box-shadow: 0 8px 30px rgba(74,158,255,.35);
  transition: all .25s; letter-spacing: .5px; text-decoration: none;
  display: inline-block; text-align: center;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(74,158,255,.55); }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; transform: none; }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.8); cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 12px 28px; border-radius: 50px;
  transition: all .25s; text-decoration: none;
  display: inline-block; text-align: center;
}
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.07); }

.btn-danger {
  background: linear-gradient(135deg, #ff1744, #c62828);
  color: #fff; border: none; cursor: pointer;
  font-family: var(--font); font-weight: 800; font-size: 15px;
  padding: 10px 24px; border-radius: 50px;
}
.btn-success {
  background: linear-gradient(135deg, #00e676, #00b34a);
  color: #fff; border: none; cursor: pointer;
  font-family: var(--font); font-weight: 800; font-size: 15px;
  padding: 10px 24px; border-radius: 50px;
}
.btn-sm { font-size: 13px !important; padding: 7px 16px !important; }

/* ── Card ────────────────────────────────────────────────── */
.card {
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glassBorder);
  border-radius: 20px; padding: 20px;
}
.card-title {
  font-size: 13px; font-weight: 800; letter-spacing: .5px;
  color: rgba(255,255,255,.55); margin-bottom: 16px;
  text-transform: uppercase;
}

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; position: relative; z-index: 1;
}
.auth-card {
  background: rgba(15,15,46,.9);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px; padding: 40px 32px;
  width: 100%; max-width: 420px;
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo h1 {
  font-size: 36px; font-weight: 1000; letter-spacing: -1px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-logo p { color: rgba(255,255,255,.5); font-size: 14px; margin-top: 4px; }
.auth-title { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 12px; font-weight: 800;
  color: rgba(255,255,255,.55); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: .5px;
}
.form-input {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 14px; color: #fff;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  transition: border-color .2s; outline: none;
}
.form-input:focus { border-color: var(--blue); }
.form-input::placeholder { color: rgba(255,255,255,.3); }
.form-footer { text-align: center; margin-top: 20px; font-size: 14px; color: rgba(255,255,255,.5); }
.form-footer a { color: var(--blue); font-weight: 700; text-decoration: none; }
.btn-full { width: 100%; }
.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.alert-danger  { background: rgba(255,23,68,.15); border: 1px solid rgba(255,23,68,.3); color: #ff6b6b; }
.alert-success { background: rgba(0,230,118,.12); border: 1px solid rgba(0,230,118,.3); color: #69f0ae; }
.alert-danger a, .alert-info a { color: inherit; font-weight: 700; }

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard-page { position: relative; z-index: 1; padding-bottom: 40px; }

.hero-section { padding: 32px 20px 24px; text-align: center; }
.hero-greeting { font-size: 15px; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.hero-name {
  font-size: 26px; font-weight: 900; margin-bottom: 6px;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,.7));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-balance {
  font-size: 44px; font-weight: 1000; letter-spacing: -2px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 24px;
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
}
.hero-balance .bal-prefix { font-size: 20px; font-weight: 700; letter-spacing: 0; }

.play-btn-wrap { margin-bottom: 20px; }
.play-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; border: none; cursor: pointer;
  font-family: var(--font); font-weight: 900; font-size: 20px;
  padding: 18px 52px; border-radius: 60px;
  box-shadow: 0 12px 40px rgba(74,158,255,.45);
  transition: all .3s; letter-spacing: .5px; text-decoration: none;
  animation: pulseShadow 2.5s infinite;
}
@keyframes pulseShadow {
  0%,100% { box-shadow: 0 12px 40px rgba(74,158,255,.45); }
  50%      { box-shadow: 0 16px 50px rgba(74,158,255,.7), 0 0 0 8px rgba(74,158,255,.08); }
}
.play-btn:hover { transform: translateY(-3px) scale(1.03); }
.play-btn-icon { font-size: 26px; }

.dashboard-container { padding: 0 16px; }

.stats-row {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 10px;
  margin-bottom: 20px;
}
@media (min-width: 640px) { .stats-row { grid-template-columns: repeat(4,1fr); } }

.stat-tile {
  background: var(--glass); border: 1px solid var(--glassBorder);
  backdrop-filter: blur(16px); border-radius: 16px; padding: 16px 14px; text-align: center;
}
.stat-tile-value { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.stat-tile-label { font-size: 10px; color: rgba(255,255,255,.5); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.stat-tile.wins   .stat-tile-value { color: var(--green); }
.stat-tile.losses .stat-tile-value { color: var(--red); }
.stat-tile.earned .stat-tile-value { color: var(--gold); }

/* Últimos Prêmios */
.prizes-section { margin-bottom: 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.55); }
.live-badge { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--green); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.3;} }

/* Carrossel */
.prizes-carousel {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.prizes-track {
  display: flex; gap: 10px;
  width: max-content;
  will-change: transform;
}
.prize-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--glass); border: 1px solid var(--glassBorder);
  border-radius: 14px; padding: 10px 14px;
  min-width: 210px; max-width: 210px;
  flex-shrink: 0;
  transition: background .2s;
}
.prize-card:hover { background: rgba(255,255,255,.12); }
.prize-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg,var(--blue),var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 12px; flex-shrink: 0;
}
.prize-info { flex: 1; min-width: 0; overflow: hidden; }
.prize-user { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prize-sub  { font-size: 11px; color: rgba(255,255,255,.45); white-space: nowrap; }
.prize-amount { font-size: 15px; font-weight: 900; color: var(--gold); white-space: nowrap; }

/* Quick actions */
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.action-card {
  background: var(--glass); border: 1px solid var(--glassBorder);
  border-radius: 16px; padding: 16px; text-decoration: none; color: #fff;
  display: flex; align-items: center; gap: 12px; transition: all .2s;
}
.action-card:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.action-icon { font-size: 24px; }
.action-label { font-size: 14px; font-weight: 800; }
.action-sub { font-size: 11px; color: rgba(255,255,255,.45); }

/* Transactions */
.tx-list { display: flex; flex-direction: column; gap: 7px; }
.tx-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 12px;
}
.tx-left { display: flex; align-items: center; gap: 10px; }
.tx-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.tx-icon.win        { background: rgba(0,230,118,.15); }
.tx-icon.bet        { background: rgba(255,23,68,.15); }
.tx-icon.deposit    { background: rgba(74,158,255,.15); }
.tx-icon.withdrawal { background: rgba(255,215,0,.15); }
.tx-icon.refund     { background: rgba(155,95,255,.15); }
.tx-desc { font-size: 13px; font-weight: 700; }
.tx-date { font-size: 11px; color: rgba(255,255,255,.4); }
.tx-amount { font-weight: 800; font-size: 14px; }
.tx-amount.pos { color: var(--green); }
.tx-amount.neg { color: var(--red); }

/* ── GAME STEPS ──────────────────────────────────────────── */
.game-page {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  position: relative; z-index: 1;
}
.step-screen { flex: 1; display: flex; flex-direction: column; }
.step-screen.hidden { display: none !important; }

.step-header {
  display: flex; align-items: center;
  padding: 14px 16px; gap: 12px;
}
.step-title { flex: 1; text-align: center; font-size: 20px; font-weight: 900; }
.back-btn {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glassBorder);
  color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(12px); transition: all .2s; flex-shrink: 0;
}
.back-btn:hover { background: rgba(255,255,255,.15); }
.balance-chip {
  background: linear-gradient(135deg,rgba(74,158,255,.2),rgba(155,95,255,.2));
  border: 1px solid rgba(74,158,255,.3);
  color: var(--blue); font-weight: 800; font-size: 13px;
  padding: 6px 14px; border-radius: 50px; white-space: nowrap;
}

/* Music cards */
.music-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px; padding: 4px 16px 20px; flex: 1;
}
.music-card {
  border-radius: 20px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  transition: all .25s; position: relative;
}
.music-card:hover { transform: translateY(-2px); }
.music-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 24px rgba(74,158,255,.5);
  transform: scale(1.03);
}
.check-badge {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; opacity: 0; transition: opacity .2s; z-index: 2;
}
.music-card.selected .check-badge { opacity: 1; }
.music-cover {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; position: relative;
}
.music-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.6) 100%);
}
.music-meta { padding: 8px 10px 12px; }
.music-title  { font-size: 12px; font-weight: 900; line-height: 1.2; display: block; }
.music-artist { font-size: 10px; color: rgba(255,255,255,.55); display: block; margin-top: 2px; }

.step-footer {
  padding: 16px;
  position: sticky; bottom: 0;
  background: linear-gradient(to top, rgba(8,8,24,1) 60%, transparent);
  padding-top: 24px; margin-top: auto;
  z-index: 5;
}
.btn-cta {
  width: 100%; padding: 18px;
  background: linear-gradient(160deg, #1a7fff 0%, #0052e0 100%);
  border: none; border-radius: 50px;
  color: #fff; font-family: var(--font); font-size: 19px; font-weight: 900;
  cursor: pointer; letter-spacing: .8px;
  box-shadow: 0 6px 0 rgba(0,0,40,.55), 0 8px 32px rgba(0,100,255,.50);
  transition: transform .15s, box-shadow .15s; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: block; position: relative; overflow: hidden;
}
.btn-cta:not(:disabled) { animation: ctaPulse 2.4s ease-in-out infinite; }
@keyframes ctaPulse {
  0%,100% { box-shadow: 0 6px 0 rgba(0,0,40,.55), 0 8px 32px rgba(0,100,255,.50); }
  50%      { box-shadow: 0 6px 0 rgba(0,0,40,.55), 0 8px 50px rgba(0,140,255,.80), 0 0 60px rgba(0,100,255,.28); }
}
.btn-cta:disabled { opacity: .35; cursor: not-allowed; animation: none; }
.btn-cta:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0,0,40,.55), 0 14px 50px rgba(0,120,255,.70); animation: none; }
.btn-cta:not(:disabled):active { transform: translateY(2px); box-shadow: 0 3px 0 rgba(0,0,40,.55), 0 4px 20px rgba(0,100,255,.4); animation: none; }

/* Bet step */
.bet-music-preview {
  margin: 0 16px 16px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: 12px;
}
.bet-music-thumb { font-size: 28px; }
.bet-music-name   { font-size: 14px; font-weight: 800; }
.bet-music-artist { font-size: 12px; color: rgba(255,255,255,.5); }

.bet-subtitle { text-align: center; font-size: 14px; color: rgba(255,255,255,.5); margin-bottom: 16px; font-weight: 600; }
.bet-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px; padding: 0 16px; margin-bottom: 16px;
}
.bet-card {
  aspect-ratio: 1; border-radius: 50%;
  background: rgba(255,255,255,.10); border: 2.5px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .22s;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.bet-card:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); transform: scale(1.04); }
.bet-card.selected {
  background: linear-gradient(135deg,rgba(74,158,255,.45),rgba(155,95,255,.45));
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74,158,255,.3), 0 0 32px rgba(74,158,255,.6);
  transform: scale(1.1);
}
.bet-amount { font-size: 20px; font-weight: 900; letter-spacing: -.5px; }
.bet-earn-hint {
  font-size: 11px; color: rgba(255,255,255,.45); font-weight: 600;
  text-align: center; padding: 0 16px; margin-bottom: 4px; min-height: 20px;
}

/* ── GAME SCREEN ─────────────────────────────────────────── */
#step-game {
  position: fixed; inset: 0;
  background: #080818; z-index: 500;
}
#gameCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
  touch-action: none;
}

/* ── DESKTOP PHONE FRAME ─────────────────────────────────── */
@media (min-width: 768px) {
  body.game-body {
    overflow: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 20px;
    background: #020208;
  }

  /* Subtle grid lines behind the phone */
  body.game-body::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none; z-index: 0;
  }

  /* Ambient glow behind the phone */
  body.game-body::after {
    content: '';
    position: fixed; inset: 0;
    background:
      radial-gradient(ellipse 700px 700px at 25% 35%, rgba(74,158,255,.14) 0%, transparent 70%),
      radial-gradient(ellipse 600px 600px at 75% 65%, rgba(155,95,255,.12) 0%, transparent 70%),
      radial-gradient(ellipse 400px 400px at 50% 50%, rgba(255,60,160,.06) 0%, transparent 60%);
    pointer-events: none; z-index: 0;
  }

  .game-page {
    position: relative; z-index: 1;
    width: 390px !important;
    min-height: min(844px, calc(100vh - 64px));
    max-height: calc(100vh - 64px);
    border-radius: 50px !important;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.10),
      0 0 0 5px rgba(255,255,255,.04),
      0 0 0 6px rgba(0,0,0,.5),
      0 50px 120px rgba(0,0,0,.85),
      0 0 80px rgba(74,158,255,.12);
  }

  /* Status bar notch */
  .game-page::before {
    content: '';
    position: absolute; top: 14px; left: 50%;
    transform: translateX(-50%);
    width: 110px; height: 26px;
    background: #000;
    border-radius: 14px;
    z-index: 600;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08);
    pointer-events: none;
  }

  /* Step screens scroll inside the phone */
  #step-music,
  #step-bet {
    height: min(844px, calc(100vh - 64px));
    overflow-y: auto;
  }

  /* Push content below notch */
  #step-music .step-header,
  #step-bet   .step-header {
    padding-top: 52px;
  }

  /* Game canvas: absolute inside the phone container */
  #step-game {
    position: absolute !important;
    inset: 0 !important;
    z-index: 500;
  }
}

/* ── Side Earnings Panel (desktop only) ──────────────────── */
.side-earnings {
  display: none;
}
@media (min-width: 768px) {
  .side-earnings {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: fixed;
    top: 50%;
    left: calc(50% + 220px);
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(0,180,255,.30);
    border-radius: 20px;
    padding: 18px 24px;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 40px rgba(0,140,255,.15);
  }
  .side-earnings-label {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .side-earnings-value {
    font-size: 22px;
    font-weight: 900;
    color: #4ab0ff;
    text-shadow: 0 0 18px rgba(74,176,255,.75);
    white-space: nowrap;
  }
  /* Hide the in-HUD earnings pill on desktop (replaced by side panel) */
  .hud-earnings {
    display: none;
  }
}

.game-hud {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 14px 16px; pointer-events: none; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
}
.hud-music-pill {
  background: rgba(0,0,0,.60); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50px; padding: 7px 16px;
  font-size: 13px; font-weight: 800; color: rgba(255,255,255,.88);
  max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hud-earnings {
  background: rgba(0,0,0,.60); backdrop-filter: blur(12px);
  border: 1px solid rgba(0,180,255,.30);
  border-radius: 50px; padding: 7px 16px;
  font-size: 16px; font-weight: 900; color: #4ab0ff;
  white-space: nowrap; text-shadow: 0 0 12px rgba(74,176,255,.7);
}
.hud-fullscreen-btn {
  pointer-events: auto;
  background: rgba(0,0,0,.55); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: rgba(255,255,255,.80); cursor: pointer;
  transition: all .2s; flex-shrink: 0;
}
.hud-fullscreen-btn:hover { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); }

/* SACAR bar */
.cashout-bar {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 20; display: flex; align-items: center; gap: 14px;
  background: rgba(0,0,0,.72); backdrop-filter: blur(24px);
  border: 1.5px solid rgba(0,230,118,.25); border-radius: 60px;
  padding: 10px 10px 10px 22px; white-space: nowrap; min-width: 270px;
  animation: slideUpBar .35s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 40px rgba(0,200,80,.12);
}
.cashout-bar.hidden { display: none !important; }
.cashout-earn-info { flex: 1; }
.cashout-earn-label  { font-size: 10px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .5px; display: block; }
.cashout-earn-amount { font-size: 20px; font-weight: 900; color: #00f07a; display: block; }
.cashout-main-btn {
  background: linear-gradient(160deg, #1a7fff, #0052e0);
  border: none; color: #fff; font-family: var(--font);
  font-size: 17px; font-weight: 900; padding: 15px 28px; border-radius: 50px;
  cursor: pointer; letter-spacing: .5px;
  box-shadow: 0 5px 0 rgba(0,0,60,.5), 0 8px 28px rgba(0,100,255,.55);
  transition: transform .15s, box-shadow .15s;
  animation: sacarPulse 2s ease-in-out infinite;
  position: relative; overflow: hidden;
  user-select: none; -webkit-user-select: none;
  touch-action: none; -webkit-tap-highlight-color: transparent;
}

@keyframes sacarPulse {
  0%,100% { box-shadow: 0 5px 0 rgba(0,0,60,.5), 0 8px 28px rgba(0,100,255,.55); }
  50%      { box-shadow: 0 5px 0 rgba(0,0,60,.5), 0 8px 44px rgba(0,140,255,.85), 0 0 55px rgba(0,100,255,.28); }
}
.cashout-main-btn:hover  { transform: scale(1.06) translateY(-1px); animation: none; }
.cashout-main-btn:active { transform: scale(.96); animation: none; }
.co-hold-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: rgba(255,255,255,.28); border-radius: inherit;
  pointer-events: none; transition: none;
}

/* ── Confirm dialog ──────────────────────────────────────── */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.70); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .3s;
}
.confirm-overlay.show { opacity: 1; }
.confirm-box {
  background: rgba(10,12,35,.97);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px; padding: 28px 24px;
  width: 100%; max-width: 340px;
  transform: translateY(20px); transition: transform .3s;
  box-shadow: 0 24px 60px rgba(0,0,0,.7);
}
.confirm-overlay.show .confirm-box { transform: translateY(0); }
.confirm-title { font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.confirm-msg   { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.5; margin-bottom: 22px; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn-outline { flex: 1; padding: 14px; text-align: center; border-radius: 50px; cursor: pointer; }
.confirm-actions .btn-cta     { flex: 2; font-size: 15px; padding: 14px; }

/* ── Toast notifications ─────────────────────────────────── */
.game-toast {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 9999; opacity: 0;
  transition: opacity .35s, transform .35s;
  white-space: nowrap; pointer-events: none;
  padding: 14px 26px; border-radius: 50px;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
}
.game-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.game-toast-error {
  background: rgba(60,10,10,.92);
  border-color: rgba(255,60,60,.35);
  color: #ff8080;
}
.game-toast-success {
  background: rgba(5,30,18,.92);
  border-color: rgba(0,230,118,.35);
  color: #69f0ae;
}
.game-toast-info {
  background: rgba(8,20,50,.92);
  border-color: rgba(74,158,255,.35);
  color: #82caff;
}

/* Game overlays */
.game-overlay {
  position: absolute; inset: 0; z-index: 100;
  background: rgba(0,0,0,.78); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .3s ease;
}
.game-overlay.hidden { display: none !important; }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
@keyframes slideUpBar { from{transform:translateX(-50%) translateY(20px);opacity:0;} to{transform:translateX(-50%) translateY(0);opacity:1;} }

.result-card {
  background: rgba(12,12,36,.96); border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px; padding: 32px 28px; width: 100%; max-width: 360px;
  text-align: center; animation: slideUp2 .35s ease;
}
@keyframes slideUp2 { from{transform:translateY(40px);opacity:0;} to{transform:translateY(0);opacity:1;} }
.result-icon     { font-size: 56px; margin-bottom: 12px; display: block; }
.result-title    { font-size: 26px; font-weight: 900; margin-bottom: 4px; }
.result-subtitle { font-size: 14px; color: rgba(255,255,255,.5); margin-bottom: 24px; }
.result-stats    { margin-bottom: 24px; }
.result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px;
}
.result-row:last-child { border-bottom: none; }
.result-row label { color: rgba(255,255,255,.55); font-weight: 600; }
.result-row .val   { font-weight: 900; }
.result-row .val.win   { color: var(--green); }
.result-row .val.loss  { color: var(--red); }
.result-row .val.total { color: var(--gold); font-size: 18px; }
.result-actions { display: flex; flex-direction: column; gap: 10px; }

/* ═══════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════ */

/* Layout */
.admin-body { background: var(--bg); color: var(--white); font-family: var(--font); }
.admin-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  width: 240px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, rgba(8,5,30,1) 0%, rgba(10,8,28,1) 100%);
  border-right: 1px solid rgba(255,255,255,.07);
  padding: 0 12px 24px; display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
}
.sidebar-brand {
  font-size: 17px; font-weight: 900; padding: 22px 12px 18px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: -.3px;
}
.sidebar-section-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,.2);
  padding: 12px 14px 6px;
}
.sidebar-divider { height: 1px; background: rgba(255,255,255,.06); margin: 8px 4px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  text-decoration: none; color: rgba(255,255,255,.55);
  font-weight: 700; font-size: 13.5px; transition: all .18s;
  border-left: 3px solid transparent;
}
.sidebar-link:hover { background: var(--glass); color: rgba(255,255,255,.9); }
.sidebar-link.active {
  background: rgba(74,158,255,.12);
  color: var(--blue);
  border-left-color: var(--blue);
}
.sidebar-link .icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-link-danger { color: rgba(255,80,80,.6); margin-top: auto; }
.sidebar-link-danger:hover { background: rgba(255,23,68,.1); color: var(--red); }

/* Main content */
.admin-main {
  flex: 1; min-width: 0;
  padding: 32px 36px;
  overflow-y: auto;
  background: var(--bg);
}
/* Alias for pages using old class */
.admin-content { flex: 1; padding: 32px 36px; overflow-y: auto; min-width: 0; }

/* Topbar */
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.admin-title { font-size: 24px; font-weight: 900; color: var(--white); }
.admin-topbar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Cards */
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 22px;
  transition: border-color .2s;
}
.card:hover { border-color: rgba(255,255,255,.12); }
.card-title {
  font-size: 14px; font-weight: 800; margin-bottom: 16px;
  color: rgba(255,255,255,.75); text-transform: uppercase;
  letter-spacing: .5px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; gap: 12px;
}

/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width:900px){ .stats-grid { grid-template-columns: repeat(2,1fr); } }
.stat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 20px 22px;
  position: relative; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.stat-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.14); }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 18px 18px 0 0;
}
.stat-icon { font-size: 22px; margin-bottom: 10px; display: block; }
.stat-value { font-size: 26px; font-weight: 900; margin-bottom: 4px; line-height: 1; }
.stat-label { font-size: 11px; color: rgba(255,255,255,.4); font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.stat-card.green::before { background: linear-gradient(90deg,var(--green),#00b050); }
.stat-card.red::before   { background: linear-gradient(90deg,var(--red),#ff6b00); }
.stat-card.gold::before  { background: linear-gradient(90deg,var(--gold),#ff9800); }

/* Difficulty Selector */
.difficulty-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 20px; }
@media (min-width:900px){ .difficulty-grid { grid-template-columns: repeat(4,1fr); } }
.diff-card {
  border-radius: 16px; padding: 18px 14px; cursor: pointer;
  transition: all .25s; border: 2px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04); text-align: center;
}
.diff-card:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.diff-card.active { border-color: var(--blue); background: rgba(74,158,255,.1); box-shadow: 0 0 24px rgba(74,158,255,.2); }
.diff-emoji  { font-size: 30px; display: block; margin-bottom: 10px; }
.diff-name   { font-size: 15px; font-weight: 900; display: block; margin-bottom: 4px; }
.diff-desc   { font-size: 11px; color: rgba(255,255,255,.45); line-height: 1.4; }
.diff-payout { font-size: 11px; font-weight: 800; margin-top: 8px; display: block; }
.diff-payout.good { color: var(--green); }
.diff-payout.bad  { color: var(--red); }

/* Admin table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; text-align: left; font-size: 13px; }
th {
  color: rgba(255,255,255,.4); font-weight: 800;
  text-transform: uppercase; font-size: 10.5px; letter-spacing: .6px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02);
}
td { border-bottom: 1px solid rgba(255,255,255,.04); color: rgba(255,255,255,.85); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.025); }
.text-muted { color: rgba(255,255,255,.38) !important; }
.text-gold  { color: var(--gold) !important; font-weight: 700; }
.amount-pos { color: var(--green); font-weight: 800; }
.amount-neg { color: var(--red); font-weight: 800; }
.text-center { text-align: center; }

/* Badges */
.badge { padding: 4px 10px; border-radius: 50px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.badge-success { background: rgba(0,230,118,.12); color: #69f0ae; border: 1px solid rgba(0,230,118,.2); }
.badge-danger  { background: rgba(255,23,68,.12); color: #ff6b6b; border: 1px solid rgba(255,23,68,.2); }
.badge-warning { background: rgba(255,193,7,.12); color: #ffd740; border: 1px solid rgba(255,193,7,.2); }
.badge-info    { background: rgba(74,158,255,.12); color: #82caff; border: 1px solid rgba(74,158,255,.2); }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; border: none; border-radius: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 800;
  cursor: pointer; font-family: var(--font); transition: opacity .2s, transform .15s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: rgba(255,255,255,.65);
  border: 1.5px solid rgba(255,255,255,.2); border-radius: 10px;
  padding: 9px 18px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: var(--font); transition: all .2s;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn-outline:hover { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.05); }
.btn-danger {
  background: rgba(255,23,68,.15); color: #ff6b6b;
  border: 1.5px solid rgba(255,23,68,.3); border-radius: 10px;
  padding: 9px 18px; font-size: 14px; font-weight: 800;
  cursor: pointer; font-family: var(--font); transition: all .2s;
}
.btn-danger:hover { background: rgba(255,23,68,.25); }
.btn-success {
  background: rgba(0,230,118,.15); color: #69f0ae;
  border: 1.5px solid rgba(0,230,118,.3); border-radius: 10px;
  padding: 9px 18px; font-size: 14px; font-weight: 800;
  cursor: pointer; font-family: var(--font); transition: all .2s;
}
.btn-success:hover { background: rgba(0,230,118,.25); }
.btn-sm { font-size: 12px !important; padding: 6px 13px !important; border-radius: 8px !important; }
.btn-block { width: 100%; }
.btn-admin-primary {
  padding: 11px 22px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; border: none; font-size: 14px; font-weight: 800;
  cursor: pointer; font-family: var(--font); transition: opacity .2s;
  align-self: flex-start;
}
.btn-admin-primary:hover { opacity: .85; }

/* Alerts */
.alert { padding: 13px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.alert-danger  { background: rgba(255,23,68,.1); border: 1px solid rgba(255,23,68,.25); color: #ff7070; }
.alert-success { background: rgba(0,230,118,.1); border: 1px solid rgba(0,230,118,.25); color: #69f0ae; }
.alert-info    { background: rgba(74,158,255,.1); border: 1px solid rgba(74,158,255,.25); color: #82caff; }
.alert a { color: inherit; font-weight: 800; }

/* Form inputs */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-label { font-size: 12px; font-weight: 800; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .5px; }
.form-control {
  background: rgba(0,0,0,.35);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 10px; color: var(--white);
  font-size: 14px; font-family: var(--font);
  padding: 10px 14px; outline: none; width: 100%;
  transition: border-color .2s;
}
.form-control:focus { border-color: var(--blue); }
.form-control::placeholder { color: rgba(255,255,255,.2); }
select.form-control option { background: #0f0f2e; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(4,3,18,.85); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9000; padding: 20px;
}
.modal {
  background: linear-gradient(160deg, rgba(12,10,40,.98), rgba(8,6,28,.98));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px; padding: 30px; width: 100%; max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.modal h2 { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }

/* House result card */
.house-result-card {
  border-radius: 18px; padding: 22px 24px;
  display: flex; align-items: center; gap: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 24px;
}
.house-result-val { font-size: 2.4rem; font-weight: 900; line-height: 1; }
.house-result-val.pos { color: var(--green); }
.house-result-val.neg { color: var(--red); }
.house-result-info { flex: 1; }
.house-result-label { font-size: 12px; color: rgba(255,255,255,.4); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.house-result-desc  { font-size: 12px; color: rgba(255,255,255,.3); }

/* Filter tabs */
.filter-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-tab {
  padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 700;
  text-decoration: none; color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  transition: all .18s;
}
.filter-tab:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.08); }
.filter-tab.active { background: rgba(74,158,255,.15); color: var(--blue); border-color: rgba(74,158,255,.3); }

/* Search bar */
.admin-search { display: flex; gap: 8px; align-items: center; }
.admin-search .form-control { width: 220px; }

/* Misc utilities */
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.w-full { width: 100%; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

/* Withdraw page */
.withdraw-page { position: relative; z-index: 1; padding: 20px; max-width: 640px; margin: 0 auto; }

/* ══════════════════════════════════════════════════════════
   NAVBAR DROPDOWN
   ══════════════════════════════════════════════════════════ */
.nav-dropdown { position: relative; }

.dropdown-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 234px; z-index: 2000;
  background: rgba(10,10,28,.97);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 8px;
  opacity: 0; transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
}
.dropdown-panel.open {
  opacity: 1; transform: none; pointer-events: auto;
}

.dd-header {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 10px; border-radius: 12px;
  background: rgba(255,255,255,.04); margin-bottom: 4px;
}
.dd-avatar-sm {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #fff;
}
.dd-header-info { flex: 1; min-width: 0; }
.dd-username { font-size: 14px; font-weight: 800; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-balance  { font-size: 13px; font-weight: 700; color: #4ab0ff; margin-top: 1px; }
.dd-edit-btn {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.07); display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,.5); text-decoration: none;
  font-size: 14px; transition: all .15s;
}
.dd-edit-btn:hover { background: rgba(255,255,255,.14); color: #fff; }

.dd-divider { height: 1px; background: rgba(255,255,255,.07); margin: 4px 0; }

.dd-item {
  display: flex; align-items: center;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,.78);
  text-decoration: none; transition: all .15s; gap: 2px;
}
.dd-item:hover   { background: rgba(255,255,255,.07); color: #fff; }
.dd-play         { color: #4ab0ff; font-weight: 800; }
.dd-play:hover   { background: rgba(74,158,255,.12); }
.dd-sm           { font-size: 12px; color: rgba(255,255,255,.42); font-weight: 600; }
.dd-admin        { color: #ffd700; }
.dd-admin:hover  { background: rgba(255,215,0,.08); }
.dd-danger       { color: #ff6b6b; }
.dd-danger:hover { background: rgba(255,23,68,.1); }

/* ══════════════════════════════════════════════════════════
   BANNER CAROUSEL
   ══════════════════════════════════════════════════════════ */
.banner-carousel {
  position: relative; overflow: hidden;
  border-radius: 12px; margin: 0 14px 14px;
  height: 150px;
  background: #0d0d2e;
  touch-action: pan-y;
  user-select: none;
  flex-shrink: 0;
}
/* track não precisa mais de transform — usamos fade por slide */
.banner-track {
  position: relative; width: 100%; height: 100%;
}
.banner-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity .45s ease;
  background-size: cover; background-position: center;
  display: flex;
}
.banner-slide.active { opacity: 1; }
.banner-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
  pointer-events: none;
}
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.70) 0%, rgba(0,0,0,.22) 60%, transparent 100%);
}
.banner-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column;
  justify-content: center; padding: 14px 16px; gap: 4px;
}
.banner-title    { font-size: 16px; font-weight: 900; color: #fff; line-height: 1.2; }
.banner-subtitle { font-size: 11px; color: rgba(255,255,255,.78); line-height: 1.35; }
.banner-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 8px;
  background: linear-gradient(135deg,#1a7fff,#0052e0);
  color: #fff; font-weight: 800; font-size: 12px;
  text-decoration: none; align-self: flex-start; margin-top: 5px;
  box-shadow: 0 3px 12px rgba(0,100,255,.4); transition: opacity .2s;
}
.banner-btn:hover { opacity: .85; }
/* setas — ocultas em mobile, visíveis em desktop */
.banner-arrow {
  position: absolute; top: 50%; z-index: 10;
  transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.banner-arrow:hover { background: rgba(255,255,255,.15); }
.banner-prev { left: 10px; }
.banner-next { right: 10px; }
.banner-dots {
  position: absolute; bottom: 8px; left: 50%; z-index: 10;
  transform: translateX(-50%); display: flex; gap: 4px;
}
.banner-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.35); border: none;
  cursor: pointer; transition: all .25s; padding: 0;
}
.banner-dot.active { background: #fff; width: 18px; border-radius: 3px; }
/* mobile: sem margens laterais, altura maior */
@media (max-width: 640px) {
  .banner-carousel {
    margin: 0 0 12px;
    border-radius: 0;
    height: 155px;
  }
  .banner-arrow { display: none; } /* swipe only */
  .banner-title    { font-size: 14px; }
  .banner-subtitle { font-size: 10.5px; }
}

/* ══════════════════════════════════════════════════════════
   ADMIN: BANNERS & MUSIC
   ══════════════════════════════════════════════════════════ */
.banner-form .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* File upload area */
.file-upload-area {
  border: 2px dashed rgba(255,255,255,.15);
  border-radius: 14px; padding: 24px 20px;
  text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
  background: rgba(255,255,255,.03);
}
.file-upload-area:hover,
.file-upload-area.drag {
  border-color: #4a9eff; background: rgba(74,158,255,.06);
}
.fua-icon { font-size: 28px; margin-bottom: 6px; }
.fua-text { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.7); }
.fua-hint { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 4px; }
.fua-preview { margin-top: 12px; }
.fua-preview img { max-height: 120px; border-radius: 10px; object-fit: cover; max-width: 100%; }

/* Banner admin list */
.banner-admin-list { display: flex; flex-direction: column; gap: 10px; }
.banner-admin-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 12px 14px;
  transition: opacity .2s;
}
.banner-admin-item.inactive { opacity: .5; }
.bai-thumb {
  width: 100px; height: 56px; border-radius: 8px;
  flex-shrink: 0; background: #0d0d2e;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.bai-info  { flex: 1; min-width: 0; }
.bai-title { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.bai-sub   { font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.bai-meta  { display: flex; gap: 12px; font-size: 11px; color: rgba(255,255,255,.35); flex-wrap: wrap; }
.text-green { color: #00e676 !important; }
.bai-actions { display: flex; gap: 4px; flex-shrink: 0; }
.btn-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7); font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.btn-icon:hover        { background: rgba(255,255,255,.14); color: #fff; }
.btn-icon.active       { background: rgba(74,158,255,.15); border-color: rgba(74,158,255,.4); color: #4ab0ff; }
.btn-icon.danger:hover { background: rgba(255,23,68,.15); border-color: rgba(255,23,68,.3); color: #ff6b6b; }

/* Music covers admin */
.music-covers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px;
}
.music-cover-admin-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.mca-preview { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.mca-img     { width: 100%; height: 100%; object-fit: cover; display: block; }
.mca-default {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.mca-emoji        { font-size: 40px; }
.mca-default-label{ font-size: 11px; color: rgba(255,255,255,.4); font-weight: 700; text-transform: uppercase; }
.mca-status {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 11px; font-weight: 800; padding: 3px 10px;
  border-radius: 50px; text-transform: uppercase; letter-spacing: .3px;
}
.mca-status.custom  { background: rgba(0,230,118,.2); color: #69f0ae; }
.mca-status.default { background: rgba(255,255,255,.1); color: rgba(255,255,255,.5); }
.mca-info   { }
.mca-title  { font-size: 15px; font-weight: 800; color: #fff; }
.mca-artist { font-size: 12px; color: rgba(255,255,255,.4); }
.mca-upload-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border-radius: 10px; cursor: pointer;
  background: rgba(74,158,255,.12);
  border: 1.5px solid rgba(74,158,255,.3);
  color: #4ab0ff; font-size: 13px; font-weight: 800;
  transition: all .2s; text-align: center;
}
.mca-upload-btn:hover { background: rgba(74,158,255,.22); border-color: #4ab0ff; }
.mca-remove-btn {
  width: 100%; padding: 8px; border-radius: 10px; cursor: pointer;
  background: rgba(255,23,68,.08); border: 1px solid rgba(255,23,68,.2);
  color: #ff6b6b; font-size: 12px; font-weight: 700;
  transition: all .2s;
}
.mca-remove-btn:hover { background: rgba(255,23,68,.15); }

/* ══════════════════════════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════════════════════════ */

/* Navbar avatar button */
.nav-avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: #fff;
  text-decoration: none; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.25);
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.nav-avatar-btn:hover { transform: scale(1.1); box-shadow: 0 4px 16px rgba(0,0,0,.5); }

.profile-page {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── Hero ── */
.profile-hero {
  display: flex; align-items: center; gap: 20px;
  padding: 32px 0 24px;
  flex-wrap: wrap;
}
.profile-avatar-xl {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
  border: 3px solid rgba(255,255,255,.2);
}
.profile-hero-info { flex: 1; min-width: 160px; }
.profile-hero-name {
  font-size: 24px; font-weight: 900; color: #fff;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.profile-hero-email { font-size: 14px; color: rgba(255,255,255,.5); margin-top: 4px; }
.profile-hero-since { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 2px; }
.profile-hero-balance {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 14px 20px;
  text-align: center; flex-shrink: 0;
}
.phb-label { font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .5px; }
.phb-value { font-size: 22px; font-weight: 900; color: #4ab0ff; margin-top: 4px;
  text-shadow: 0 0 14px rgba(74,176,255,.6); }

/* ── Stats strip ── */
.profile-stats-strip {
  display: flex; align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 16px 24px;
  margin-bottom: 24px; gap: 0; flex-wrap: wrap;
}
.pss-item { flex: 1; text-align: center; min-width: 80px; padding: 4px 8px; }
.pss-val  { font-size: 20px; font-weight: 900; color: #fff; }
.pss-val.win  { color: #00e676; }
.pss-val.gold { color: #ffd700; font-size: 14px; }
.pss-lbl  { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; text-transform: uppercase; letter-spacing: .4px; }
.pss-sep  { width: 1px; background: rgba(255,255,255,.1); align-self: stretch; margin: 0 4px; }

/* ── Tab nav ── */
.tab-nav {
  display: flex; gap: 4px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 6px;
  margin-bottom: 20px;
  overflow-x: auto; flex-wrap: nowrap;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0; border: none; background: transparent;
  color: rgba(255,255,255,.5); font-family: var(--font);
  font-size: 13px; font-weight: 700;
  padding: 9px 16px; border-radius: 12px; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.tab-btn:hover  { color: #fff; background: rgba(255,255,255,.07); }
.tab-btn.active { color: #fff; background: rgba(74,158,255,.22);
  box-shadow: 0 2px 10px rgba(74,158,255,.25); }

/* ── Tab panes ── */
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tab-section-title {
  font-size: 11px; font-weight: 800;
  color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: 1px;
  margin: 0 0 12px;
}
.mt-4 { margin-top: 28px; }

/* ── Profile form ── */
.profile-form .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-alert {
  display: none; padding: 12px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 700; margin-bottom: 16px;
}
.profile-alert.success { display: block; background: rgba(0,230,118,.12); color: #69f0ae; border: 1px solid rgba(0,230,118,.25); }
.profile-alert.error   { display: block; background: rgba(255,23,68,.12);  color: #ff6b6b; border: 1px solid rgba(255,23,68,.25); }

.form-footer-row { display: flex; justify-content: flex-end; margin-top: 8px; }
.form-hint { font-size: 11px; color: rgba(255,255,255,.35); font-weight: 400; }

/* ── Danger zone cards ── */
.danger-zone-card {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 16px 18px;
  margin-bottom: 10px; gap: 12px; flex-wrap: wrap;
}
.dz-title { font-size: 14px; font-weight: 800; color: #fff; }
.dz-sub   { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 2px; }
.btn-outline-sm {
  border: 1.5px solid rgba(255,255,255,.2); background: transparent;
  color: rgba(255,255,255,.7); font-family: var(--font);
  font-size: 13px; font-weight: 700; padding: 8px 16px;
  border-radius: 10px; cursor: pointer; text-decoration: none;
  transition: all .2s; white-space: nowrap; display: inline-block;
}
.btn-outline-sm:hover { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.07); }
.btn-primary-sm {
  background: linear-gradient(135deg,#1a7fff,#0052e0);
  border: none; color: #fff; font-family: var(--font);
  font-size: 13px; font-weight: 800; padding: 8px 16px;
  border-radius: 10px; cursor: pointer; text-decoration: none;
  display: inline-block; transition: opacity .2s;
}
.btn-primary-sm:hover { opacity: .85; }

/* ── Wallet tab ── */
.wallet-balance-hero {
  background: linear-gradient(160deg, rgba(26,127,255,.15), rgba(0,82,224,.1));
  border: 1.5px solid rgba(74,158,255,.25);
  border-radius: 20px; padding: 28px 24px;
  text-align: center; margin-bottom: 24px;
}
.wbh-label { font-size: 12px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .6px; }
.wbh-value { font-size: 40px; font-weight: 900; color: #4ab0ff;
  text-shadow: 0 0 24px rgba(74,176,255,.5); margin: 8px 0 20px; }
.wbh-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Affiliate tab ── */
.aff-hero {
  text-align: center; padding: 28px 20px 24px;
  background: linear-gradient(160deg, rgba(155,95,255,.12), rgba(74,158,255,.08));
  border: 1px solid rgba(155,95,255,.2);
  border-radius: 20px; margin-bottom: 24px;
}
.aff-hero-icon  { font-size: 40px; margin-bottom: 8px; }
.aff-hero-title { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.aff-hero-sub   { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.5; }

.aff-stats-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 24px;
}
.aff-stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 18px; text-align: center;
}
.aff-stat-val { font-size: 26px; font-weight: 900; color: #fff; }
.aff-stat-val.gold { color: #ffd700; text-shadow: 0 0 14px rgba(255,215,0,.4); }
.aff-stat-lbl { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 4px; }

.aff-link-box {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(74,158,255,.25);
  border-radius: 14px; padding: 14px 16px;
  margin-bottom: 10px;
}
.aff-link-text {
  flex: 1; font-size: 13px; color: rgba(255,255,255,.65);
  word-break: break-all; font-family: monospace;
}
.aff-copy-btn {
  flex-shrink: 0; border: 1.5px solid rgba(74,158,255,.4);
  background: rgba(74,158,255,.1); color: #4ab0ff;
  font-family: var(--font); font-size: 13px; font-weight: 800;
  padding: 8px 14px; border-radius: 10px; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.aff-copy-btn:hover { background: rgba(74,158,255,.2); border-color: #4ab0ff; }
.aff-code-row { font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 8px; }
.aff-code { color: #4ab0ff; font-family: monospace; font-size: 15px; letter-spacing: 2px; }

.aff-how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 4px;
}
.aff-how-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 16px; text-align: center;
}
.ahc-icon  { font-size: 24px; margin-bottom: 8px; }
.ahc-title { font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.ahc-text  { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.4; }

/* ── Config tab ── */
.config-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 16px 18px;
  margin-bottom: 10px; gap: 12px;
}
.cr-title { font-size: 14px; font-weight: 800; color: #fff; }
.cr-sub   { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 2px; }

/* Toggle switch */
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(255,255,255,.15); border-radius: 24px;
  transition: .25s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: .25s;
}
.toggle-switch input:checked + .toggle-slider { background: #1a7fff; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

.config-links { display: flex; flex-direction: column; gap: 8px; }
.config-link-item {
  display: flex; align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 14px 18px;
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,.7);
  text-decoration: none; transition: all .2s;
}
.config-link-item:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ── History tab ── */
.history-list { display: flex; flex-direction: column; gap: 8px; }
.hist-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 14px 16px;
}
.hist-item.win  { border-color: rgba(0,230,118,.2); }
.hist-item.lost { border-color: rgba(255,23,68,.12); }
.hist-status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.2);
}
.hist-item.win  .hist-status-dot { background: #00e676; box-shadow: 0 0 8px rgba(0,230,118,.6); }
.hist-item.lost .hist-status-dot { background: #ff1744; box-shadow: 0 0 8px rgba(255,23,68,.6); }
.hist-info { flex: 1; }
.hist-title {
  font-size: 14px; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.hist-badge {
  font-size: 10px; font-weight: 800; padding: 2px 8px;
  border-radius: 50px; background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .3px;
}
.hist-sub { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 3px; }
.hist-amounts { text-align: right; }
.hist-bet  { font-size: 12px; color: rgba(255,255,255,.4); }
.hist-win  { font-size: 15px; font-weight: 900; color: #00e676; }
.hist-loss { font-size: 15px; font-weight: 900; color: #ff4569; }

/* ── Empty state ── */
.empty-state { font-size: 14px; color: rgba(255,255,255,.35); text-align: center; padding: 32px 0; }
.empty-state a { color: #4a9eff; }

/* ══════════════════════════════════════════════════════════
   LEGAL PAGES (terms.php / privacy.php)
   ══════════════════════════════════════════════════════════ */
.legal-page {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
  padding: 32px 20px 60px;
}
.legal-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px; overflow: hidden;
}
.legal-header {
  padding: 32px 36px 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.legal-header h1 { font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.legal-header p  { font-size: 13px; color: rgba(255,255,255,.4); }
.legal-body {
  padding: 28px 36px;
  line-height: 1.7; color: rgba(255,255,255,.78);
  font-size: 14px;
}
.legal-body h2 {
  font-size: 16px; font-weight: 900; color: #fff;
  margin: 28px 0 10px; padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.legal-body h2:first-child { margin-top: 0; border-top: none; }
.legal-body h3 { font-size: 14px; font-weight: 800; color: rgba(255,255,255,.85); margin: 16px 0 8px; }
.legal-body p  { margin-bottom: 10px; }
.legal-body ul { padding-left: 20px; margin-bottom: 10px; }
.legal-body li { margin-bottom: 5px; }
.legal-body strong { color: #fff; font-weight: 800; }
.legal-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 36px; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.15);
}

/* Mobile */
@media (max-width: 640px) {
  .admin-sidebar { display: none; }
  .admin-sidebar.open { display: block !important; }  /* toggle via JS funciona em mobile */
  .admin-content, .admin-main { padding: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-balance { font-size: 34px; }
  .music-cover { font-size: 28px; }
  .cashout-bar { min-width: 220px; padding: 8px 8px 8px 14px; }

  /* Profile mobile */
  .profile-form .form-row-2 { grid-template-columns: 1fr; }
  .aff-how-grid { grid-template-columns: 1fr; }
  .aff-stats-row { grid-template-columns: 1fr 1fr; }
  .profile-hero { padding: 20px 0 16px; }
  .profile-hero-balance { width: 100%; }
  .wbh-value { font-size: 30px; }
  .pss-val.gold { font-size: 13px; }
  .legal-body { padding: 20px 20px; }
  .legal-header { padding: 24px 20px 18px; }
  .legal-footer { padding: 16px 20px; }

  /* Deposit mobile */
  .dep-amount-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .dep-container { padding: 16px; }
}

/* ============================================================
   DEPOSIT PAGE
   ============================================================ */
.deposit-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px 40px;
}
.deposit-container {
  width: 100%;
  max-width: 480px;
}
.deposit-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.deposit-title {
  flex: 1;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
}
.dep-step { display: flex; flex-direction: column; gap: 20px; }
.dep-step.hidden { display: none; }
.dep-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  text-align: center;
}

/* Amount grid */
.dep-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dep-amount-card {
  background: var(--glass);
  border: 1.5px solid var(--glassBorder);
  border-radius: 14px;
  padding: 18px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.dep-amount-card:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.dep-amount-card.selected {
  border-color: var(--blue);
  background: rgba(74,158,255,.15);
}
.dep-amount-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
}

/* Custom input */
.dep-custom-wrap { display: flex; flex-direction: column; gap: 6px; }
.dep-custom-label { font-size: 13px; color: rgba(255,255,255,.5); }
.dep-custom-input-wrap {
  display: flex;
  align-items: center;
  background: var(--glass);
  border: 1.5px solid var(--glassBorder);
  border-radius: 12px;
  overflow: hidden;
}
.dep-currency {
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  border-right: 1px solid var(--glassBorder);
}
.dep-custom-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 16px;
  font-family: var(--font);
  padding: 12px 14px;
}
.dep-custom-input::placeholder { color: rgba(255,255,255,.25); }

/* PIX card */
.dep-pix-card {
  background: var(--glass);
  border: 1px solid var(--glassBorder);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.dep-pix-amount-label { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.4); }
.dep-pix-amount-value { font-size: 32px; font-weight: 900; color: var(--green); }
.dep-qr-wrap {
  width: 200px; height: 200px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dep-qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #333;
  font-size: 13px;
}
.dep-spinner {
  width: 32px; height: 32px;
  border: 3px solid #ddd;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.dep-qr-img { width: 100%; height: 100%; object-fit: contain; }
.dep-copypaste-wrap { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.dep-copypaste-label { font-size: 12px; color: rgba(255,255,255,.4); }
.dep-copypaste-box {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--glassBorder);
  border-radius: 10px;
  overflow: hidden;
}
.dep-copypaste-text {
  flex: 1;
  padding: 10px 12px;
  font-size: 11px;
  color: rgba(255,255,255,.7);
  font-family: monospace;
  word-break: break-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dep-copy-btn {
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--glassBorder);
  cursor: pointer;
  font-size: 16px;
  transition: opacity .2s;
}
.dep-copy-btn:hover { opacity: .7; }
.dep-pix-instructions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: rgba(74,158,255,.06);
  border-radius: 10px;
  border: 1px solid rgba(74,158,255,.15);
}
.dep-pix-instructions p { font-size: 13px; color: rgba(255,255,255,.65); }
.dep-pix-instructions strong { color: var(--blue); }
.dep-status-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dep-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.dep-status-badge.pending { background: rgba(255,200,0,.1); color: var(--gold); border: 1px solid rgba(255,200,0,.2); }
.dep-status-badge.failed  { background: rgba(255,50,50,.1);  color: var(--red);  border: 1px solid rgba(255,50,50,.2); }
.dep-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.2s ease-in-out infinite;
}
.dep-expires { font-size: 12px; color: rgba(255,255,255,.35); }

/* Success/Error cards */
.dep-success-card, .dep-error-card {
  background: var(--glass);
  border: 1px solid var(--glassBorder);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.dep-success-icon, .dep-error-icon { font-size: 52px; }
.dep-success-title, .dep-error-title { font-size: 22px; font-weight: 900; color: var(--white); }
.dep-success-subtitle, .dep-error-msg { font-size: 14px; color: rgba(255,255,255,.5); }
.dep-success-amount { font-size: 36px; font-weight: 900; color: var(--green); }
.dep-success-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px; }

/* ============================================================
   ADMIN — GATEWAY CONFIG
   ============================================================ */
.gw-active-card {
  background: var(--glass);
  border: 1px solid var(--glassBorder);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}
.gw-active-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: rgba(255,255,255,.4);
  margin-bottom: 4px;
}
.gw-active-desc { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.gw-active-form { display: flex; flex-direction: column; gap: 16px; }
.gw-radio-group { display: flex; flex-direction: column; gap: 8px; }
.gw-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  border: 1.5px solid var(--glassBorder);
  background: rgba(255,255,255,.03);
  transition: border-color .2s;
}
.gw-radio input { display: none; }
.gw-radio.checked { border-color: var(--blue); background: rgba(74,158,255,.08); }
.gw-radio-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  flex-shrink: 0;
  transition: border-color .2s, background .2s;
}
.gw-radio.checked .gw-radio-dot {
  border-color: var(--blue);
  background: var(--blue);
}
.gw-radio-label { font-size: 14px; font-weight: 700; color: var(--white); flex: 1; }
.gw-badge-active {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(0,230,118,.15);
  color: var(--green);
  border: 1px solid rgba(0,230,118,.3);
}

/* Credential cards */
.gw-creds-card {
  background: var(--glass);
  border: 1px solid var(--glassBorder);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
  transition: border-color .2s;
}
.gw-creds-card.is-active { border-color: rgba(74,158,255,.4); }
.gw-creds-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.gw-creds-title { font-size: 16px; font-weight: 800; color: var(--white); flex: 1; }
.gw-creds-form { display: flex; flex-direction: column; gap: 14px; }
.gw-fields { display: flex; flex-direction: column; gap: 10px; }
.gw-field { display: flex; flex-direction: column; gap: 4px; }
.gw-field-label { font-size: 12px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .5px; }
.gw-input {
  background: rgba(0,0,0,.3);
  border: 1.5px solid var(--glassBorder);
  border-radius: 10px;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font);
  padding: 10px 14px;
  outline: none;
  transition: border-color .2s;
}
.gw-input:focus { border-color: var(--blue); }
.gw-field-hint { font-size: 11px; color: rgba(255,255,255,.3); }
.gw-webhook-url {
  background: rgba(0,0,0,.3);
  border: 1px solid var(--glassBorder);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-family: monospace;
  color: rgba(255,255,255,.6);
  word-break: break-all;
}
.btn-admin-secondary {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, color .2s;
  align-self: flex-start;
}
.btn-admin-secondary:hover { background: var(--blue); color: #fff; }

/* ══════════════════════════════════════════════════════════
   NEW FEATURES — Wallet Dropdown, Rankings, Missions,
   Branding, Responsiveness, Icons
   ══════════════════════════════════════════════════════════ */

/* ── Lucide icon sizing helpers ──────────────────────────── */
.icon-xs  { width: 13px; height: 13px; }
.icon-sm  { width: 16px; height: 16px; }
.navbar-brand-icon svg,
.navbar-brand-icon i { width: 22px; height: 22px; vertical-align: middle; }
.navbar-logo-img { height: 32px; object-fit: contain; }
.sidebar-logo-img { height: 28px; object-fit: contain; }
.sidebar-link svg, .sidebar-link i[data-lucide] {
  width: 17px; height: 17px; flex-shrink: 0;
}
.tab-btn svg, .tab-btn i[data-lucide] { width: 15px; height: 15px; vertical-align: -3px; }
.card-title svg, .card-title i[data-lucide] { width: 15px; height: 15px; vertical-align: -3px; }
.admin-title svg, .admin-title i[data-lucide] { width: 22px; height: 22px; vertical-align: -5px; margin-right: 6px; }
.btn-primary svg, .btn-primary i[data-lucide],
.btn-outline svg, .btn-outline i[data-lucide],
.btn-danger svg,  .btn-danger i[data-lucide],
.btn-success svg, .btn-success i[data-lucide] {
  width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px;
}
.btn-sm svg, .btn-sm i[data-lucide] { width: 14px; height: 14px; }

/* ── Navbar enhanced ─────────────────────────────────────── */
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1280px; margin: 0 auto;
}
.navbar-nav {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.navbar-nav li { display: flex; align-items: center; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.65); font-size: 14px; font-weight: 600;
  text-decoration: none; padding: 7px 12px; border-radius: 10px;
  transition: all .2s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: #fff; background: var(--glass); }
.nav-link span { display: none; }
@media (min-width: 900px) { .nav-link span { display: inline; } }
.balance-pill {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg,rgba(74,158,255,.18),rgba(155,95,255,.18));
  border: 1px solid rgba(74,158,255,.35);
  color: var(--blue); font-weight: 800; font-size: 14px;
  padding: 7px 16px; border-radius: 50px;
  cursor: pointer; transition: all .2s; white-space: nowrap;
  font-family: var(--font);
}
.balance-pill:hover { background: linear-gradient(135deg,rgba(74,158,255,.28),rgba(155,95,255,.28)); }
.balance-pill svg, .balance-pill i[data-lucide] { width: 16px; height: 16px; }
.pill-caret { width: 13px !important; height: 13px !important; opacity: .6; }

/* ── Wallet Dropdown ─────────────────────────────────────── */
.wallet-dd-wrap { position: relative; }
.wallet-dd {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  width: 260px;
  background: rgba(8,8,30,.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  z-index: 500;
}
.wallet-dd.open { display: block; animation: fadeDown .18s ease; }
@keyframes fadeDown { from { opacity:0; transform:translateY(-6px); } }
.wd-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: rgba(255,255,255,.45); margin-bottom: 10px; }
.wd-head svg, .wd-head i[data-lucide] { width: 14px; height: 14px; }
.wd-balance { font-size: 26px; font-weight: 900; color: var(--white); letter-spacing: -1px; margin-bottom: 14px; }
.wd-btns { display: flex; gap: 8px; margin-bottom: 14px; }
.wd-btn-primary {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  background: linear-gradient(135deg,var(--blue),var(--purple));
  color: #fff; border: none; border-radius: 12px; padding: 10px 12px;
  font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: opacity .2s;
}
.wd-btn-primary:hover { opacity: .85; }
.wd-btn-primary svg, .wd-btn-primary i[data-lucide] { width: 14px; height: 14px; }
.wd-btn-outline {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  background: transparent; color: rgba(255,255,255,.7);
  border: 1.5px solid rgba(255,255,255,.2); border-radius: 12px; padding: 10px 12px;
  font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: all .2s;
}
.wd-btn-outline:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.wd-btn-outline svg, .wd-btn-outline i[data-lucide] { width: 14px; height: 14px; }
.wd-divider { height: 1px; background: rgba(255,255,255,.07); margin-bottom: 10px; }
.wd-link-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.5); font-size: 13px; font-weight: 600;
  text-decoration: none; padding: 6px 4px; border-radius: 8px;
  transition: all .2s;
}
.wd-link-item:hover { color: #fff; background: rgba(255,255,255,.06); padding-left: 8px; }
.wd-link-item svg, .wd-link-item i[data-lucide] { width: 14px; height: 14px; }

/* ── Hamburger (mobile nav toggle) ──────────────────────── */
.nav-hamburger {
  display: none; background: none; border: none; color: #fff;
  cursor: pointer; padding: 6px;
}
.nav-hamburger svg, .nav-hamburger i[data-lucide] { width: 22px; height: 22px; }
@media (max-width: 720px) {
  .nav-hamburger { display: flex; align-items: center; }
  .navbar-nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8,8,24,.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 12px 16px; z-index: 300;
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav li { width: 100%; }
  .nav-link { width: 100%; padding: 12px 14px; }
  .nav-link span { display: inline; }
  .wallet-dd-wrap { width: 100%; }
  .wallet-dd { position: static; width: 100%; border-radius: 14px; margin-top: 8px; }
  .balance-pill { width: 100%; justify-content: center; }
}

/* ── Music locked state ──────────────────────────────────── */
.music-card.locked { opacity: .6; cursor: not-allowed; }
.music-card.locked:hover { transform: none; }
.music-lock-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: rgba(0,0,0,.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--gold);
}
.music-lock-overlay svg, .music-lock-overlay i[data-lucide] { width: 24px; height: 24px; }
.music-lock-overlay span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }

/* ── Admin: new sidebar toggle button ───────────────────── */
.admin-sidebar-toggle {
  display: none; position: fixed; top: 14px; left: 14px; z-index: 300;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(8,8,30,.9); border: 1px solid rgba(255,255,255,.12);
  color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.admin-sidebar-toggle svg, .admin-sidebar-toggle i[data-lucide] { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .admin-sidebar-toggle { display: flex; }
  .admin-sidebar {
    position: fixed; left: -260px; top: 0; bottom: 0; z-index: 200;
    transition: left .25s ease;
  }
  .admin-sidebar.open { left: 0; box-shadow: 4px 0 30px rgba(0,0,0,.5); }
  .admin-main { padding: 20px 14px; }
  .admin-topbar { flex-wrap: wrap; gap: 10px; padding: 0 0 16px; }
}

/* ── Admin: stats-row generic ────────────────────────────── */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.stat-card { position: relative; overflow: hidden; }
.stat-card.blue { --sc-color: var(--blue); }
.stat-card.purple { --sc-color: var(--purple); }
.text-green { color: var(--green); }
.text-blue  { color: var(--blue); }
.text-muted { color: rgba(255,255,255,.45); font-size: 13px; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }

/* ── Admin: two-column grid ──────────────────────────────── */
.admin-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 700px) { .admin-grid-2 { grid-template-columns: 1fr; } }

/* ── Admin table extras ──────────────────────────────────── */
.table-user-cell { display: flex; align-items: center; gap: 10px; }
.table-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 12px; flex-shrink: 0;
}
.table-sub { font-size: 11px; color: rgba(255,255,255,.4); }
.code-pill {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px; padding: 3px 8px; font-size: 12px; font-family: monospace;
}
.row-inactive { opacity: .5; }
.badge { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 20px; }
.badge-info    { background: rgba(74,158,255,.15); color: var(--blue); border: 1px solid rgba(74,158,255,.25); }
.badge-warning { background: rgba(255,215,0,.12); color: var(--gold); border: 1px solid rgba(255,215,0,.25); }
.badge-success { background: rgba(0,230,118,.12); color: var(--green); border: 1px solid rgba(0,230,118,.25); }
.badge-secondary{ background: rgba(255,255,255,.07); color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.12); }
.badge-daily   { background: rgba(74,158,255,.1); color: var(--blue); border: 1px solid rgba(74,158,255,.2); }
.badge-weekly  { background: rgba(255,215,0,.1);  color: var(--gold); border: 1px solid rgba(255,215,0,.2);  }
.badge-permanent { background: rgba(0,230,118,.1); color: var(--green); border: 1px solid rgba(0,230,118,.2); }

/* ── Modal-box (new style for admin modals) ──────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-box {
  background: rgba(10,10,28,.98);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 0; width: 100%; max-width: 560px;
  box-shadow: 0 24px 80px rgba(0,0,0,.8);
  max-height: 90vh; overflow-y: auto;
}
.modal-box-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 16px; font-weight: 800;
}
.modal-box-header svg, .modal-box-header i[data-lucide] { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.modal-box-header button {
  background: none; border: none; color: rgba(255,255,255,.5);
  cursor: pointer; padding: 4px; display: flex; border-radius: 6px;
  transition: all .15s;
}
.modal-box-header button:hover { color: #fff; background: rgba(255,255,255,.08); }
.modal-box form { padding: 20px 24px; }
.modal-box-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 8px;
}

/* ── Admin subtitle ──────────────────────────────────────── */
.admin-subtitle { color: rgba(255,255,255,.4); font-size: 13px; margin-top: 4px; }

/* ── Form-row-2 ──────────────────────────────────────────── */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ── Branding page ───────────────────────────────────────── */
.color-input-wrap { display: flex; align-items: center; gap: 10px; }
.color-input-wrap input[type=color] {
  width: 48px; height: 42px; border: none; border-radius: 8px;
  cursor: pointer; padding: 0; background: none;
}
.color-hex { font-size: 13px; font-family: monospace; color: rgba(255,255,255,.5); }
.branding-logo-preview {
  min-height: 100px; border-radius: 12px;
  border: 2px dashed rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
}
.branding-logo-img { max-height: 80px; max-width: 100%; object-fit: contain; border-radius: 8px; }
.branding-logo-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,.3); }
.branding-logo-placeholder svg, .branding-logo-placeholder i[data-lucide] { width: 36px; height: 36px; }
.branding-navbar-preview {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,8,24,.9); border-radius: 12px; padding: 12px 20px;
  border: 1px solid rgba(255,255,255,.07);
}
.bp-brand { display: flex; align-items: center; gap: 8px; font-weight: 900; }
.bp-brand svg, .bp-brand i[data-lucide] { width: 22px; height: 22px; color: var(--blue); }
.bp-links { display: flex; gap: 16px; font-size: 13px; color: rgba(255,255,255,.55); }
.bp-balance {
  font-weight: 800; font-size: 14px; padding: 6px 16px; border-radius: 50px;
  color: #fff;
}

/* ── Rankings page ───────────────────────────────────────── */
.ranks-dist-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px; margin-bottom: 20px;
}
.rank-dist-card {
  background: var(--glass); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 16px; text-align: center;
  border-bottom: 3px solid;
}
.rank-dist-icon { font-size: 24px; margin-bottom: 8px; }
.rank-dist-icon svg, .rank-dist-icon i[data-lucide] { width: 26px; height: 26px; }
.rank-dist-name { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.rank-dist-count { font-size: 22px; font-weight: 900; }
.rank-dist-count span { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.4); display: block; }

/* ── Music admin: inactive card ─────────────────────────── */
.music-cover-admin-card.inactive { opacity: .55; }
.mca-inactive-badge {
  position: absolute; top: 6px; left: 6px;
  background: rgba(0,0,0,.7); color: rgba(255,255,255,.6);
  font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 6px;
}
.mca-rank-badge {
  position: absolute; bottom: 6px; left: 6px;
  background: rgba(0,0,0,.7); color: var(--gold);
  font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 6px;
  display: flex; align-items: center; gap: 4px;
}
.mca-rank-badge.free { color: var(--green); }
.mca-rank-badge svg, .mca-rank-badge i[data-lucide] { width: 10px; height: 10px; }

/* ── Admin sidebar ─ icon align fix ─────────────────────── */
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
}
.sidebar-link svg, .sidebar-link i[data-lucide] {
  width: 17px; height: 17px; flex-shrink: 0;
}

/* ── Responsiveness: admin pages ─────────────────────────── */
@media (max-width: 600px) {
  .admin-table th, .admin-table td { font-size: 12px; padding: 9px 10px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .music-covers-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-topbar-actions { margin-top: 8px; }
}
@media (max-width: 400px) {
  .music-covers-grid { grid-template-columns: 1fr; }
}

/* ── Responsiveness: profile ─────────────────────────────── */
@media (max-width: 600px) {
  .profile-hero { flex-direction: column; text-align: center; align-items: center; }
  .profile-hero-balance { text-align: center; }
  .tab-nav { flex-wrap: wrap; }
  .tab-btn { flex: 1; min-width: calc(50% - 4px); font-size: 12px; padding: 8px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ── Responsiveness: dashboard ───────────────────────────── */
@media (max-width: 480px) {
  .hero-balance { font-size: 34px; }
  .quick-actions { grid-template-columns: 1fr; }
}

/* ── Dropdown rank display ───────────────────────────────── */
.dd-rank {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .4px; display: flex; align-items: center; gap: 4px;
}
.dd-rank svg, .dd-rank i[data-lucide] { width: 12px; height: 12px; }
.dd-item { display: flex; align-items: center; gap: 8px; }
.dd-item svg, .dd-item i[data-lucide] { width: 15px; height: 15px; flex-shrink: 0; opacity: .7; }
.dd-edit-btn svg, .dd-edit-btn i[data-lucide] { width: 14px; height: 14px; }

/* ── empty-state ─────────────────────────────────────────── */
.empty-state {
  text-align: center; color: rgba(255,255,255,.35); padding: 32px 0;
  font-size: 14px;
}

/* ── No-balance / Locked modal adjustments ───────────────── */
.modal-overlay .modal-box .modal-box-header { justify-content: center; }

/* ════════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION
   ════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: rgba(6,6,20,0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 6px 0 calc(4px + env(safe-area-inset-bottom, 0px));
  flex-direction: row; align-items: flex-start; justify-content: space-around;
}
@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }
  /* Push page content above bottom nav */
  body:not(.game-body) { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}
.mbn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 3px; padding: 7px 4px 4px; text-decoration: none;
  color: rgba(255,255,255,.38); transition: color .18s;
  -webkit-tap-highlight-color: transparent; min-width: 0;
}
.mbn-item.mbn-active { color: var(--blue); }
.mbn-icon { width: 22px; height: 22px; flex-shrink: 0; }
.mbn-label { font-size: 9.5px; font-weight: 800; line-height: 1; letter-spacing: .3px; }
/* Deposit FAB (center item) */
.mbn-center { margin-top: -16px; }
.mbn-fab {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(74,158,255,.55), 0 0 0 3px rgba(74,158,255,.15);
  transition: transform .18s, box-shadow .18s;
}
.mbn-center:active .mbn-fab { transform: scale(.92); }
.mbn-fab .mbn-icon { width: 24px; height: 24px; color: #fff; }
.mbn-center .mbn-label { margin-top: 4px; color: rgba(255,255,255,.5); }
.mbn-center.mbn-active .mbn-label { color: var(--blue); }

/* ════════════════════════════════════════════════════════
   PWA INSTALL BANNER
   ════════════════════════════════════════════════════════ */
.pwa-install-banner {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  left: 12px; right: 12px; z-index: 750;
  background: linear-gradient(135deg,rgba(8,8,28,.95),rgba(15,15,44,.95));
  border: 1px solid rgba(74,158,255,.35);
  border-radius: 18px; padding: 12px 14px;
  backdrop-filter: blur(20px);
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05);
}
@keyframes pwaSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pwaSlideDown {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(24px); }
}
.pwa-anim-in  { animation: pwaSlideUp   .35s ease forwards; }
.pwa-anim-out { animation: pwaSlideDown .3s ease forwards; }
.pwa-install-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.pwa-install-emoji { font-size: 30px; flex-shrink: 0; }
.pwa-install-text { flex: 1; min-width: 0; overflow: hidden; }
.pwa-install-text strong { display: block; font-size: 13px; font-weight: 900; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwa-install-text span   { display: block; font-size: 11px; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwa-btn-install {
  background: linear-gradient(135deg,var(--blue),var(--purple));
  color: #fff; border: none; cursor: pointer;
  font-family: var(--font); font-weight: 900; font-size: 12.5px;
  padding: 8px 16px; border-radius: 10px; white-space: nowrap; flex-shrink: 0;
  transition: opacity .2s;
}
.pwa-btn-install:hover { opacity: .85; }
.pwa-btn-dismiss {
  background: none; border: none; color: rgba(255,255,255,.35);
  cursor: pointer; font-size: 18px; padding: 4px 6px; line-height: 1;
  flex-shrink: 0; transition: color .15s;
}
.pwa-btn-dismiss:hover { color: rgba(255,255,255,.7); }

/* ════════════════════════════════════════════════════════
   FLOATING EARN POPUP (game)
   ════════════════════════════════════════════════════════ */
@keyframes earnFloat {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1);    }
  20%  { opacity: 1; transform: translateX(-50%) translateY(-14px) scale(1.18); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-56px) scale(.88); }
}
.earn-popup {
  font-family: 'Nunito', sans-serif;
  font-size: 20px; font-weight: 900;
  color: #00e676;
  text-shadow: 0 0 16px rgba(0,230,118,.7), 0 2px 8px rgba(0,0,0,.5);
  animation: earnFloat 1s ease-out forwards;
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════════
   NOTYF OVERRIDES
   ════════════════════════════════════════════════════════ */
.notyf { font-family: 'Nunito', sans-serif !important; z-index: 9999; }
.notyf__toast {
  border-radius: 14px !important;
  padding: 14px 18px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.55) !important;
  min-width: 220px;
}
.notyf__message { font-weight: 800 !important; font-size: 13.5px !important; }
.pc-ni { font-size: 18px; line-height: 1; }

/* ════════════════════════════════════════════════════════
   CARD & BUTTON VISUAL IMPROVEMENTS
   ════════════════════════════════════════════════════════ */
/* Cards with colored top accent */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  opacity: 0; transition: opacity .25s;
}
.card:hover::before { opacity: 1; }

/* Shimmer on primary buttons */
@keyframes btnShimmer {
  0%   { transform: translateX(-130%) skewX(-15deg); }
  100% { transform: translateX(230%)  skewX(-15deg); }
}
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  animation: btnShimmer 3s ease-in-out infinite;
}

/* Stat cards hover glow */
.stat-card { transition: transform .2s, box-shadow .2s; }
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(74,158,255,.18);
}

/* Music cards hover glow */
.music-card:hover {
  box-shadow: 0 8px 28px rgba(74,158,255,.22);
}

/* Better scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.28); }

/* ════════════════════════════════════════════════════════
   NAVBAR MOBILE TWEAKS
   ════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Hide nav links on mobile — bottom nav takes over */
  .navbar-nav .nav-link[href*="dashboard"],
  .navbar-nav .nav-link[href*="game"],
  .navbar-nav .nav-link[href*="withdraw"] { display: none; }
  /* Shrink navbar on mobile */
  .navbar { padding: 10px 14px; }
  .navbar-brand { font-size: 18px; }
}

/* ════════════════════════════════════════════════════════
   CASHOUT BUTTON UPGRADE
   ════════════════════════════════════════════════════════ */
.cashout-main-btn {
  position: relative; overflow: hidden;
}
.cashout-main-btn::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);
  animation: btnShimmer 2.2s ease-in-out infinite;
}

/* ════════════════════════════════════════════════════════
   GAME PAGE — hide bottom nav
   ════════════════════════════════════════════════════════ */
.game-body { padding-bottom: 0 !important; }
.game-body .mobile-bottom-nav,
.game-body .pwa-install-banner { display: none !important; }

/* ════════════════════════════════════════════════════════
   DEPOSIT PAGE — better step feel
   ════════════════════════════════════════════════════════ */
.dep-amount-card { transition: transform .18s, box-shadow .18s, border-color .18s; }
.dep-amount-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,158,255,.2); }
.dep-amount-card.selected { box-shadow: 0 0 0 2px var(--blue), 0 8px 28px rgba(74,158,255,.35); }

/* QR code glow */
.dep-qr-img { border-radius: 12px; box-shadow: 0 0 32px rgba(74,158,255,.25); }

/* ════════════════════════════════════════════════════════
   HERO BALANCE GRADIENT TEXT
   ════════════════════════════════════════════════════════ */
.hero-balance {
  background: linear-gradient(135deg, #fff 30%, var(--blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════════════════════════════════════════════════════
   LIVE DOT PULSE (better)
   ════════════════════════════════════════════════════════ */
.db-live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: livePulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(0,230,118,.5);
}
@keyframes livePulse {
  0%,100% { box-shadow: 0 0 0 0   rgba(0,230,118,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(0,230,118,0); }
}


