:root {
  --bg-dark: #0f0c29;
  --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --neon-cyan: #00f2ea;
  --neon-purple: #b026ff;
  --neon-gold: #ffd700;
  --text-main: #ffffff;
  --text-sec: #b0b0b0;
  --danger: #ff4b4b;
  --success: #00d26a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Utility */
.hidden {
  display: none !important;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.w-100 {
  width: 100%;
}

.mt-10 {
  margin-top: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

/* Glass Card */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
  margin: 15px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Controls */
.btn {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.96);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-danger {
  background: var(--danger);
}

.btn-success {
  background: var(--success);
}

.btn-sm {
  padding: 8px 15px;
  width: auto;
  font-size: 0.8rem;
}

input,
textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  outline: none;
}

/* Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: rgba(15, 12, 41, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-sec);
  font-size: 0.75rem;
}

.nav-item i {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.nav-item.active {
  color: var(--neon-cyan);
  transform: translateY(-3px);
  transition: 0.3s;
}

/* Profile */
.profile-header {
  display: flex;
  align-items: center;
  padding: 20px;
}

.avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--neon-cyan);
}

.avatar-sm {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--neon-purple);
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.avatar-option {
  width: 100%;
  border-radius: 50%;
  cursor: pointer;
}

/* Balance */
.balance-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.currency-val {
  font-size: 3rem;
  font-weight: 800;
  margin: 10px 0;
  text-shadow: 0 0 20px rgba(0, 242, 234, 0.5);
}

/* Games */
.wheel-container {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  margin: 20px auto;
  position: relative;
  border: 5px solid var(--neon-purple);
  background: conic-gradient(#ff4b4b 0deg 60deg, #ffd700 60deg 120deg, #00d26a 120deg 180deg, #00f2ea 180deg 240deg, #b026ff 240deg 300deg, #ff9100 300deg 360deg);
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.wheel-arrow {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 35px solid white;
  z-index: 10;
}

.slot-machine {
  background: #222;
  border: 4px solid gold;
  border-radius: 15px;
  padding: 20px;
  margin: 0 auto;
  max-width: 300px;
  text-align: center;
}

.slot-window {
  display: flex;
  justify-content: center;
  gap: 10px;
  background: white;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
}

.slot-reel {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
  width: 50px;
}

/* Elements */
.coin-badge {
  background: rgba(255, 215, 0, 0.15);
  color: var(--neon-gold);
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: bold;
  border: 1px solid rgba(255, 215, 0, 0.3);
  font-size: 0.8rem;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--neon-cyan);
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  
  100% {
    transform: rotate(360deg);
  }
}