/* ══════════════════════════════════════
   SPIN-TO-WIN PRIZE SYSTEM
   Vegas Theme Styles
══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;600;700&family=Orbitron:wght@400;700;900&display=swap');

:root {
  --gold: #FFB800;
  --gold2: #FFE066;
  --orange: #FF6B00;
  --red: #E8001D;
  --blue-deep: #001B4E;
  --blue-mid: #0033A0;
  --neon-gold: #FFD700;
  --neon-red: #FF003C;
  --green: #00FF88;
  --green-dark: #00cc66;
  --bg-dark: #000308;
  --card-bg: linear-gradient(160deg, #001B4E 0%, #000B22 100%);
}

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

html {
  overflow-x: hidden;
  scroll-behavior: auto;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
  color: #fff;
}

/* ── BACKGROUNDS ── */
#bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #001B4E 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, #0a0020 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 80%, #1a0000 0%, transparent 60%),
    var(--bg-dark);
}

#bg-stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

#anim-canvas {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* ── NEON BORDER FRAME ── */
#neon-frame {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 3px solid transparent;
  box-shadow:
    inset 0 0 30px rgba(255, 184, 0, .08),
    inset 0 0 1px rgba(255, 184, 0, .3);
}

/* ── APP ── */
.app {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ── HEADER ── */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fadeDown .7s ease both;
}

header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 5.5vw, 52px);
  letter-spacing: 6px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 60%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(255, 120, 0, .5));
  text-align: center;
  line-height: 1;
}

header p.subtitle {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(9px, 2vw, 12px);
  letter-spacing: 5px;
  color: rgba(255, 255, 255, .38);
  text-transform: uppercase;
}

.target-deco {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 2px;
}

.mini-target {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  position: relative;
  background: var(--red);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(232, 0, 29, .4);
}

.mini-target::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.mini-target::after {
  content: '';
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #fff;
}

.deco-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 184, 0, .3), transparent);
}

/* ══════════════════════════════════════
   SLOT MACHINE CABINET
══════════════════════════════════════ */
.slot-cabinet {
  width: 100%;
  max-width: 680px;
  position: relative;
  animation: fadeUp .7s .1s ease both;
}

/* Marquee lights row */
.marquee-lights {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px 8px;
  background: linear-gradient(180deg, #1a0800, #0d0400);
  border-radius: 18px 18px 0 0;
  border: 2px solid rgba(255, 184, 0, .3);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.marquee-lights::before {
  content: 'SPIN TO WIN';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 4px;
  color: rgba(255, 184, 0, .8);
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(255, 184, 0, .8);
}

.marquee-bulb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold), 0 0 12px rgba(255, 184, 0, .5);
  flex-shrink: 0;
  animation: bulbFlicker 1s ease-in-out infinite;
}

.marquee-bulb:nth-child(even) {
  animation-delay: .5s;
  background: var(--orange);
  box-shadow: 0 0 6px var(--orange);
}

.marquee-bulb:nth-child(3n) {
  animation-delay: .25s;
}

/* Cabinet body */
.cabinet-body {
  background: linear-gradient(180deg, #0a0500 0%, #060210 50%, #020010 100%);
  border: 2px solid rgba(255, 184, 0, .25);
  border-top: none;
  border-bottom: none;
  padding: 20px 24px;
  position: relative;
}

.cabinet-body::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: repeating-linear-gradient(180deg, rgba(255, 184, 0, .15) 0px, rgba(255, 184, 0, .05) 8px, transparent 8px, transparent 16px);
}

.cabinet-body::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: repeating-linear-gradient(180deg, rgba(255, 184, 0, .15) 0px, rgba(255, 184, 0, .05) 8px, transparent 8px, transparent 16px);
}

/* ── ROULETTE WHEEL ── */
.roulette-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
}

#roulette-canvas {
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 184, 0, .4),
    0 0 30px rgba(255, 184, 0, .3),
    0 0 60px rgba(255, 100, 0, .15),
    0 8px 30px rgba(0, 0, 0, .8);
  display: block;
}

.roulette-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid var(--gold);
  filter: drop-shadow(0 0 8px rgba(255, 184, 0, .8));
  z-index: 10;
}

.roulette-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFD700, #FF6B00);
  border: 3px solid rgba(255, 255, 255, .3);
  box-shadow: 0 0 20px rgba(255, 184, 0, .8);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ── TOKEN INPUT / DISPLAY ── */
.token-section {
  width: 100%;
  max-width: 680px;
  animation: fadeUp .7s .2s ease both;
}

.slot-display {
  width: 100%;
  height: 100px;
  background: #000;
  border: 3px solid rgba(255, 184, 0, .5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .9),
    0 0 20px rgba(255, 184, 0, .15),
    inset 0 0 0 1px rgba(255, 255, 255, .04);
  margin-bottom: 16px;
}

.slot-display::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 255, 100, .03) 3px, rgba(0, 255, 100, .03) 4px);
}

.slot-display .shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .04), transparent);
  z-index: 4;
  pointer-events: none;
  animation: shineSweep 3s ease-in-out infinite;
}

.slot-display .corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--gold);
  border-style: solid;
}

.slot-display .corner.tl {
  top: 7px;
  left: 7px;
  border-width: 2px 0 0 2px;
}

.slot-display .corner.tr {
  top: 7px;
  right: 7px;
  border-width: 2px 2px 0 0;
}

.slot-display .corner.bl {
  bottom: 7px;
  left: 7px;
  border-width: 0 0 2px 2px;
}

.slot-display .corner.br {
  bottom: 7px;
  right: 7px;
  border-width: 0 2px 2px 0;
}

.slot-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(20px, 4.5vw, 36px);
  letter-spacing: 5px;
  color: var(--green);
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 20px;
  word-break: break-word;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 255, 136, .8), 0 0 30px rgba(0, 255, 136, .4);
  font-variant-numeric: tabular-nums;
}

.slot-name.rolling {
  animation: ledFlicker .06s steps(1) infinite;
}

.slot-name.winner-flash {
  color: var(--gold);
  animation: winnerGlow .8s ease-in-out infinite alternate;
}

/* ── TOKEN INPUT ── */
.token-input-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.token-input {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  letter-spacing: 4px;
  text-align: center;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 10px;
  border: 2px solid rgba(255, 184, 0, .3);
  background: rgba(0, 10, 35, .8);
  color: var(--green);
  outline: none;
  width: 280px;
  transition: border-color .2s, box-shadow .2s;
}

.token-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 184, 0, .3);
}

.token-input::placeholder {
  color: rgba(255, 255, 255, .2);
  letter-spacing: 2px;
  font-size: 14px;
}

/* ── CONTROLS ── */
.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

.btn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 3px;
  padding: 14px 34px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18) 0%, transparent 55%);
  pointer-events: none;
}

.btn-spin {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #150800;
  box-shadow: 0 0 24px rgba(255, 150, 0, .5), 0 4px 16px rgba(0, 0, 0, .5);
  font-size: 24px;
  padding: 16px 48px;
}

.btn-spin:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 0 45px rgba(255, 184, 0, .8), 0 8px 24px rgba(0, 0, 0, .5);
}

.btn-spin:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-spin:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 16px;
  padding: 14px 22px;
}

.btn-secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .05);
}

/* ── WINNER OVERLAY ── */
#winner-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background .4s;
}

#winner-overlay.active {
  background: rgba(0, 0, 10, .88);
  pointer-events: all;
}

.winner-card {
  position: relative;
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: 24px;
  padding: 36px 48px 40px;
  text-align: center;
  box-shadow: 0 0 80px rgba(255, 184, 0, .5), 0 0 160px rgba(255, 100, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: scale(0) rotate(-4deg);
  opacity: 0;
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), opacity .3s;
  max-width: 500px;
  width: 92%;
  overflow: hidden;
}

#winner-overlay.active .winner-card {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

.winner-card .wc-logo {
  width: 140px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
  filter: drop-shadow(0 4px 24px rgba(255, 184, 0, .7));
  animation: logoBounce 1s ease-in-out infinite;
}

.lose-card .wc-logo {
  display: none;
}

@keyframes logoBounce {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  25% {
    transform: scale(1.08) rotate(-3deg);
  }

  50% {
    transform: scale(1) rotate(0deg);
  }

  75% {
    transform: scale(1.08) rotate(3deg);
  }
}

.winner-card .wc-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, .45);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.winner-card .wc-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 9vw, 68px);
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--gold), var(--orange), var(--gold2), var(--gold));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 184, 0, .6));
  line-height: 1.05;
  margin-bottom: 6px;
  word-break: break-word;
  animation: shimmerGold 2s linear infinite;
}

@keyframes shimmerGold {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.winner-card .wc-prize {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
  text-shadow: 0 0 10px rgba(0, 255, 136, .5);
}

.winner-card .wc-prize-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 26px;
}

/* Lose card styling */
.winner-card.lose-card {
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 0 40px rgba(100, 100, 150, .3);
}

.winner-card.lose-card .wc-name {
  background: linear-gradient(135deg, #aaa, #666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
}

/* ── WINNER SHARE SECTION ── */
.wc-share-section {
  margin-bottom: 16px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 184, 0, .12);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-save-image {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 1.5px;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 255, 136, .35);
  cursor: pointer;
  background: linear-gradient(135deg, rgba(0, 255, 136, .12), rgba(0, 200, 100, .06));
  color: var(--green);
  transition: all .25s;
  display: inline-block;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(0, 255, 136, .1);
  flex-shrink: 0;
}

.btn-save-image:hover {
  background: linear-gradient(135deg, rgba(0, 255, 136, .25), rgba(0, 200, 100, .15));
  box-shadow: 0 0 30px rgba(0, 255, 136, .3);
  transform: translateY(-2px);
}

.btn-save-image:active {
  transform: translateY(1px);
}

.wc-social-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.6;
  margin-bottom: 4px;
}

.wc-social-text strong {
  color: rgba(255, 255, 255, .8);
}

.wc-hashtag {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--orange), var(--gold2));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerGold 2s linear infinite;
}

.btn-continue {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 3px;
  padding: 12px 36px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #1a0a00;
  transition: opacity .2s, transform .2s;
}

.btn-continue:hover {
  opacity: .85;
  transform: translateY(-2px);
}

/* ── CABINET BOTTOM ── */
.cabinet-bottom {
  background: linear-gradient(180deg, #0d0500, #060202);
  border: 2px solid rgba(255, 184, 0, .25);
  border-top: none;
  border-radius: 0 0 18px 18px;
  padding: 12px 24px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.coin-slot {
  width: 50px;
  height: 12px;
  background: #000;
  border: 2px solid rgba(255, 184, 0, .4);
  border-radius: 2px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .9);
}

.coin-slot-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(255, 184, 0, .4);
  text-transform: uppercase;
}

/* ── INSTAGRAM FOLLOW ── */
.instagram-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 10px;
  padding: 10px 24px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.3), rgba(253, 29, 29, 0.25), rgba(252, 176, 69, 0.2));
  border: 1.5px solid rgba(225, 48, 108, 0.4);
  border-radius: 10px;
  transition: all .3s;
  box-shadow: 0 0 15px rgba(225, 48, 108, 0.15);
}

.instagram-follow:hover {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.5), rgba(253, 29, 29, 0.4), rgba(252, 176, 69, 0.35));
  box-shadow: 0 0 25px rgba(225, 48, 108, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

/* ── STATUS MESSAGE ── */
.status-message {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-align: center;
  padding: 8px 16px;
  border-radius: 8px;
  margin-top: 8px;
  transition: all .3s;
}

.status-message.success {
  color: var(--green);
  background: rgba(0, 255, 136, .08);
  border: 1px solid rgba(0, 255, 136, .2);
}

.status-message.error {
  color: var(--neon-red);
  background: rgba(255, 0, 60, .08);
  border: 1px solid rgba(255, 0, 60, .2);
}

.status-message.info {
  color: var(--gold);
  background: rgba(255, 184, 0, .08);
  border: 1px solid rgba(255, 184, 0, .2);
}

/* ── ANIMATIONS ── */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ledFlicker {
  0% {
    opacity: 1;
    color: #00FF88;
  }

  25% {
    opacity: .3;
    color: #00cc66;
  }

  50% {
    opacity: 1;
    color: #00FF88;
  }

  75% {
    opacity: .5;
  }

  100% {
    opacity: 1;
  }
}

@keyframes winnerGlow {
  from {
    text-shadow: 0 0 10px rgba(255, 184, 0, .4), 0 0 30px rgba(255, 100, 0, .2);
    color: var(--gold2);
  }

  to {
    text-shadow: 0 0 30px rgba(255, 184, 0, 1), 0 0 70px rgba(255, 100, 0, .9), 0 0 120px rgba(255, 50, 0, .5);
    color: #fff;
  }
}

@keyframes bulbFlicker {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px var(--gold), 0 0 16px rgba(255, 184, 0, .6);
  }

  50% {
    opacity: .3;
    box-shadow: 0 0 2px var(--gold);
  }
}

@keyframes shineSweep {
  0% {
    left: -100%;
  }

  60%,
  100% {
    left: 200%;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 24px rgba(255, 150, 0, .5), 0 4px 16px rgba(0, 0, 0, .5);
  }

  50% {
    box-shadow: 0 0 45px rgba(255, 184, 0, .8), 0 8px 24px rgba(0, 0, 0, .5);
  }
}

/* ══════════════════════════════════════
   ADMIN PAGE STYLES
══════════════════════════════════════ */
.admin-container {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.admin-header {
  text-align: center;
  margin-bottom: 30px;
  animation: fadeDown .5s ease both;
}

.admin-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 6px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.admin-card {
  background: rgba(0, 20, 60, .6);
  border: 1px solid rgba(255, 184, 0, .18);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  animation: fadeUp .5s ease both;
}

.admin-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 184, 0, .15);
}

.admin-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255, 184, 0, .5);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-item {
  text-align: center;
  padding: 12px;
  background: rgba(0, 0, 0, .3);
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 0, .1);
}

.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .4);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Upload form */
.upload-area {
  border: 2px dashed rgba(255, 184, 0, .25);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 12px;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}

.upload-area:hover {
  border-color: var(--gold);
  background: rgba(255, 184, 0, .05);
}

.upload-area input[type="file"] {
  display: none;
}

.upload-area .upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.upload-area .upload-text {
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
}

.upload-area .upload-text strong {
  color: var(--gold);
}

/* Admin button */
.btn-admin {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #150800;
}

.btn-admin:hover {
  opacity: .85;
}

.btn-admin:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.btn-danger {
  background: linear-gradient(135deg, var(--red), #800);
  color: #fff;
}

/* Admin tables */
.admin-table-wrap {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 8px;
}

.admin-table-wrap::-webkit-scrollbar {
  width: 4px;
}

.admin-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 184, 0, .28);
  border-radius: 2px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 184, 0, .6);
  padding: 10px 12px;
  text-align: left;
  position: sticky;
  top: 0;
  background: rgba(0, 10, 30, .95);
  border-bottom: 1px solid rgba(255, 184, 0, .2);
}

.admin-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .7);
}

.admin-table tr:hover td {
  background: rgba(255, 184, 0, .04);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.badge-win {
  background: rgba(0, 255, 136, .15);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, .3);
}

.badge-lose {
  background: rgba(255, 0, 60, .1);
  color: rgba(255, 100, 100, .7);
  border: 1px solid rgba(255, 0, 60, .15);
}

.badge-pending {
  background: rgba(255, 184, 0, .1);
  color: rgba(255, 184, 0, .6);
  border: 1px solid rgba(255, 184, 0, .15);
}

/* Upload result */
.upload-result {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 8px;
  display: none;
}

.upload-result.show {
  display: block;
}

.upload-result.success {
  background: rgba(0, 255, 136, .08);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, .2);
}

.upload-result.error {
  background: rgba(255, 0, 60, .08);
  color: var(--neon-red);
  border: 1px solid rgba(255, 0, 60, .2);
}

/* Admin login overlay */
#admin-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 3, 8, .97);
}

.login-card {
  background: var(--card-bg);
  border: 2px solid rgba(255, 184, 0, .3);
  border-radius: 24px;
  padding: 40px 48px;
  text-align: center;
  box-shadow: 0 0 80px rgba(255, 184, 0, .2);
  max-width: 420px;
  width: 92%;
  animation: fadeUp .5s ease both;
}

.login-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.login-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 20px;
}

.login-card .login-input {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-align: center;
  padding: 14px 20px;
  border-radius: 10px;
  border: 2px solid rgba(255, 184, 0, .3);
  background: rgba(0, 10, 35, .8);
  color: var(--gold);
  outline: none;
  width: 100%;
  margin-bottom: 16px;
  transition: border-color .2s, box-shadow .2s;
}

.login-card .login-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 184, 0, .3);
}

.login-card .login-error {
  color: var(--neon-red);
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 20px;
}

/* Template download button */
.btn-template {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 184, 0, .25);
  background: rgba(255, 184, 0, .08);
  color: var(--gold);
  cursor: pointer;
  transition: all .2s;
}

.btn-template:hover {
  background: rgba(255, 184, 0, .18);
  border-color: var(--gold);
}

/* Responsive */
@media (max-width: 600px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}

/* ── MOBILE: Fit entire page on one screen ── */
@media (max-height: 900px) and (max-width: 768px) {
  body {
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app {
    padding: 8px 12px 8px;
    gap: 6px;
    min-height: 100dvh;
    justify-content: flex-start;
  }

  header img {
    width: 100px !important;
    margin-bottom: 2px !important;
  }

  header h1 {
    font-size: clamp(20px, 5vw, 32px);
    letter-spacing: 3px;
  }

  .target-deco {
    margin-top: 0;
    gap: 8px;
  }

  .mini-target {
    width: 18px;
    height: 18px;
  }

  .mini-target::before {
    inset: 4px;
  }

  .mini-target::after {
    inset: 7px;
  }

  header p.subtitle {
    font-size: 7px;
    letter-spacing: 3px;
  }

  .slot-cabinet {
    max-width: 100%;
  }

  .marquee-lights {
    padding: 5px 10px 4px;
    gap: 6px;
    border-radius: 10px 10px 0 0;
  }

  .marquee-bulb {
    width: 10px;
    height: 10px;
  }

  .cabinet-body {
    padding: 8px 12px 12px;
  }

  .roulette-wrap {
    margin-bottom: 6px;
  }

  #roulette-canvas {
    width: 160px !important;
    height: 160px !important;
  }

  .roulette-center {
    font-size: 16px;
    width: 28px;
    height: 28px;
  }

  .roulette-pointer {
    border-width: 16px 10px 0 10px;
  }

  .slot-display {
    padding: 8px 12px;
    margin-bottom: 6px;
  }

  .slot-name {
    font-size: clamp(16px, 5vw, 26px) !important;
  }

  .token-input-wrap {
    margin-bottom: 4px;
  }

  .token-input {
    padding: 8px 16px;
    font-size: 16px;
  }

  .btn-spin {
    padding: 10px 36px;
    font-size: 18px;
  }

  .cabinet-bottom {
    padding: 6px 16px;
    gap: 8px;
  }

  .coin-slot-label {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .coin-slot {
    width: 36px;
    height: 12px;
  }
}

/* Extra small phones (iPhone SE, etc.) */
@media (max-height: 700px) and (max-width: 768px) {
  .app {
    padding: 4px 10px 4px;
    gap: 4px;
  }

  header img {
    width: 70px !important;
  }

  header h1 {
    font-size: 20px;
  }

  .target-deco {
    display: none;
  }

  #roulette-canvas {
    width: 130px !important;
    height: 130px !important;
  }

  .slot-name {
    font-size: 16px !important;
  }

  .cabinet-bottom {
    padding: 4px 12px;
  }
}