* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #0b2b2b 0%, #0a1f1f 100%);
  color: #f5e7d3;
  padding: 20px;
  min-height: 100vh;
}

.app-container {
  max-width: 1300px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.5);
  padding: 12px 24px;
  border-radius: 60px;
  backdrop-filter: blur(8px);
  margin-bottom: 30px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(45deg, #ffd966, #ffb347);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 2px;
}

.user-area {
  display: flex;
  gap: 12px;
  align-items: center;
}

#email {
  background: #2e4a4a;
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  color: white;
  font-size: 0.9rem;
  outline: none;
}

#email::placeholder {
  color: #bdd4d4;
}

button {
  background: #f0b27a;
  border: none;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  color: #1e2a2a;
}

button:hover:not(:disabled) {
  transform: scale(0.98);
  background: #e6a05e;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.balance-panel {
  background: #1f3a3a;
  display: inline-block;
  padding: 12px 28px;
  border-radius: 40px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-size: 1.3rem;
}

.balance-panel strong {
  font-size: 2rem;
  margin: 0 10px;
  color: #ffd966;
}

.roulette-table {
  background: #1f5e5e;
  border-radius: 40px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 8px 20px rgba(0,0,0,0.4);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}

.number-cell {
  background: #2c3e3e;
  text-align: center;
  padding: 12px 0;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.1s linear;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.number-cell.red {
  background: #b33b2c;
  color: white;
}

.number-cell.black {
  background: #1e2a2a;
  color: white;
}

.number-cell.green {
  background: #2f6b47;
  color: white;
}

.number-cell.selected {
  border: 3px solid gold;
  transform: scale(1.02);
  box-shadow: 0 0 12px gold;
}

.outside-bets {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.outside-btn {
  background: #2c4f4f;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 40px;
  width: 120px;
}

.outside-btn.red {
  background: #b33b2c;
  color: white;
}

.outside-btn.black {
  background: #1e2a2a;
  color: white;
}

.bet-panel {
  background: #0f2a2a;
  border-radius: 30px;
  padding: 20px;
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.chip-selector {
  display: flex;
  gap: 10px;
}

.chip {
  background: #e6b422;
  color: #1e2a2a;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.9rem;
}

.bet-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

#betAmount {
  background: #1e3a3a;
  border: 1px solid #f0b27a;
  padding: 8px 12px;
  border-radius: 30px;
  color: white;
  font-size: 1rem;
  width: 100px;
  text-align: center;
}

.last-result {
  background: #00000055;
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 1rem;
}

.wheel-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f2a2a;
  border-radius: 100px;
  padding: 10px 20px;
  margin-bottom: 30px;
}

canvas {
  background: #2e4a4a;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  box-shadow: 0 0 0 4px gold, 0 8px 20px black;
}

#spinBtn {
  background: #ffaa44;
  font-size: 1.5rem;
  padding: 12px 28px;
}

.deposit-section {
  background: #0f2a2a;
  border-radius: 30px;
  padding: 20px;
}

.deposit-section h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.deposit-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.deposit-form input, .deposit-form select {
  background: #1e3a3a;
  border: 1px solid #f0b27a;
  padding: 8px 12px;
  border-radius: 30px;
  color: white;
}

#depositInfo {
  background: #1e3a3a;
  padding: 15px;
  border-radius: 20px;
  word-break: break-all;
  text-align: center;
}

@media (max-width: 800px) {
  .numbers-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .bet-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .wheel-area {
    flex-direction: column;
    gap: 15px;
  }
}