* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background: #0b1a2e; color: white; min-height: 100vh; }

/* Auth Page */
.container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
.auth-box { background: #132c42; padding: 40px; border-radius: 30px; max-width: 420px; width: 100%; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.auth-box h1 { text-align: center; color: #ffd966; margin-bottom: 20px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form h2 { font-size: 18px; color: #8aaec9; margin-bottom: 5px; }
.auth-form input { padding: 12px; border-radius: 60px; border: none; background: #1d3b53; color: white; font-size: 16px; outline: 2px solid #2d5a7a; padding-left: 20px; }
.auth-form input:focus { outline-color: #f1c40f; }
.auth-form button { padding: 14px; border-radius: 60px; border: none; background: #f1c40f; color: #0b1a2e; font-weight: 700; font-size: 18px; cursor: pointer; transition: 0.2s; }
.auth-form button:hover { transform: scale(1.02); background: #ffd700; }
hr { margin: 20px 0; border-color: #2d5a7a; }
.demo-cred { background: #0a1a28; padding: 15px; border-radius: 20px; margin-top: 15px; font-size: 14px; color: #8aaec9; text-align: center; }
.demo-cred p { margin: 3px 0; }

/* Dashboard */
.dashboard { max-width: 1000px; margin: 0 auto; padding: 20px; }
.header { display: flex; justify-content: space-between; align-items: center; background: #132c42; padding: 15px 25px; border-radius: 30px; margin-bottom: 25px; }
.header h2 { color: #ffd966; }
.logout-btn { background: #e74c3c; color: white; padding: 10px 25px; border-radius: 60px; text-decoration: none; font-weight: 600; transition: 0.2s; }
.logout-btn:hover { background: #c0392b; }

.balance-card { background: linear-gradient(145deg, #1a3a55, #132c42); padding: 25px; border-radius: 30px; text-align: center; border: 1px solid #2d5a7a; margin-bottom: 25px; }
.balance-amount { font-size: 48px; font-weight: 800; color: #7ddfb0; text-shadow: 0 0 30px #2ecc7140; }

.success { background: #1a4a2a; padding: 15px; border-radius: 60px; text-align: center; color: #7ddfb0; margin-bottom: 15px; border-left: 5px solid #2ecc71; }
.error { background: #4a1a1a; padding: 15px; border-radius: 60px; text-align: center; color: #ff6b5a; margin-bottom: 15px; border-left: 5px solid #e74c3c; }

/* Game Area */
.game-area { background: #132c42; padding: 25px; border-radius: 30px; margin-bottom: 25px; }
.game-area h3 { text-align: center; color: #8aaec9; margin-bottom: 20px; }
.color-grid { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.color-btn { width: 110px; height: 120px; border-radius: 30px; border: 3px solid #3a5e7a; font-weight: 700; font-size: 18px; color: white; cursor: pointer; box-shadow: 0 6px 0 #0b1a26; transition: 0.08s linear; background: #2c4d66; }
.color-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 #0b1a26; }
.color-btn.red { background: #e74c3c; border-color: #ff6b5a; }
.color-btn.green { background: #27ae60; border-color: #5dde8a; }
.color-btn.violet { background: #8e44ad; border-color: #c084d8; }
.color-btn:hover { filter: brightness(1.1); }

.bet-control { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.bet-control input { width: 150px; padding: 12px; border-radius: 60px; border: none; background: #1d3b53; color: white; font-size: 18px; font-weight: 700; text-align: center; outline: 2px solid #2d5a7a; }
.bet-control input:focus { outline-color: #f1c40f; }
.bet-control button { padding: 12px 30px; border-radius: 60px; border: none; background: #f1c40f; color: #0b1a2e; font-weight: 700; font-size: 18px; cursor: pointer; transition: 0.2s; }
.bet-control button:hover { transform: scale(1.05); }

/* History & Tables */
.history, .admin-bets, .admin-users { background: #132c42; padding: 25px; border-radius: 30px; margin-bottom: 25px; }
.history h3, .admin-bets h3, .admin-users h3 { color: #8aaec9; margin-bottom: 15px; }
table { width: 100%; border-collapse: collapse; }
th { background: #0a1a28; padding: 12px; text-align: left; color: #ffd966; }
td { padding: 12px; border-bottom: 1px solid #1d3b53; }
.won { color: #2ecc71; font-weight: 600; }
.lost { color: #e74c3c; font-weight: 600; }
.pending { color: #f1c40f; font-weight: 600; }

/* Admin */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-bottom: 25px; }
.stat-card { background: #132c42; padding: 20px; border-radius: 20px; text-align: center; border: 1px solid #2d5a7a; }
.stat-card h4 { color: #8aaec9; font-size: 14px; }
.stat-number { font-size: 32px; font-weight: 800; color: #f1c40f; }
.admin-controls { background: #132c42; padding: 25px; border-radius: 30px; margin-bottom: 25px; text-align: center; }
.admin-controls h3 { color: #8aaec9; margin-bottom: 15px; }
.btn-new-round { padding: 14px 40px; border-radius: 60px; border: none; background: #2c3e50; color: white; font-weight: 700; font-size: 18px; cursor: pointer; border: 2px solid #5b7f9c; transition: 0.2s; margin-top: 10px; }
.btn-new-round:hover { background: #1f3345; border-color: #f1c40f; }

.bet-summary { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 15px; }
.color-summary { padding: 10px 20px; border-radius: 60px; font-weight: 600; background: #0a1a28; }
.color-summary.red { border-left: 5px solid #e74c3c; }
.color-summary.green { border-left: 5px solid #27ae60; }
.color-summary.violet { border-left: 5px solid #8e44ad; }