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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== LOGIN MODAL ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 50px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5em;
    text-align: center;
    color: #ffd700;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.login-tab {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.login-tab:hover {
    background: rgba(255, 255, 255, 0.15);
}

.login-tab.active {
    background: #ffd700;
    color: #1a1a2e;
    border-color: #ffd700;
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-field {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: none;
    color: #1a1a2e;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.auth-message {
    text-align: center;
    min-height: 20px;
    font-size: 0.9em;
    color: #ffd700;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #b8c6db;
    font-size: 0.9em;
}

/* ==================== PROFILE MODAL ==================== */
.profile-modal-content {
    max-width: 600px;
    width: 90%;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #ffd700;
    transform: rotate(90deg);
}

.profile-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.profile-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    color: #b8c6db;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.profile-tab.active {
    color: #ffd700;
    border-bottom-color: #ffd700;
}

.profile-tab:hover {
    color: #ffd700;
}

.profile-tab-content {
    display: none;
    padding: 20px 0;
}

.profile-tab-content.active {
    display: block;
}

.profile-tab-content h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.coupon-form, .password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.coupon-message, .password-message {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: 500;
}

.coupon-message.success, .password-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.coupon-message.error, .password-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

.available-coupons {
    background: rgba(255, 215, 0, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.available-coupons h4 {
    color: #ffd700;
    margin-bottom: 15px;
}

.available-coupons ul {
    list-style: none;
    padding: 0;
}

.available-coupons li {
    padding: 8px 0;
    color: #b8c6db;
}

.available-coupons code {
    background: rgba(255, 215, 0, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    color: #ffd700;
    font-weight: bold;
}

.info-display {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #b8c6db;
    font-weight: 500;
}

.info-value {
    color: #ffd700;
    font-weight: bold;
}

/* ==================== VICTORY ANIMATIONS ==================== */
#victoryContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        top: -10px;
        opacity: 1;
        transform: translateX(0) rotateZ(0);
    }
    100% {
        top: 100vh;
        opacity: 0;
        transform: translateX(100px) rotateZ(720deg);
    }
}

.victory-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
    z-index: 999;
    animation: victoryPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), victoryFade 2.5s ease-out 0.5s forwards;
}

@keyframes victoryPop {
    0% { transform: translate(-50%, -50%) scale(0); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes victoryFade {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.victory-content {
    text-align: center;
    color: #1a1a2e;
}

.victory-emoji {
    font-size: 3em;
    margin-bottom: 15px;
    animation: bounce 0.5s ease infinite;
}

.victory-banner h2 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

.victory-amount {
    font-size: 2.5em;
    font-weight: bold;
    color: #e74c3c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.small-win-popup {
    position: fixed;
    font-size: 2em;
    color: #4ade80;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
    animation: floatUp 2s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-100px) scale(1.5); }
}

/* ==================== MAIN LAYOUT ==================== */
.casino-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.casino-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(to right, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.logo-icon {
    font-size: 2em;
    color: #ffd700;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.balance-label {
    font-size: 0.9em;
    color: #b8c6db;
    margin-bottom: 5px;
}

.balance-amount {
    font-size: 2em;
    font-weight: bold;
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.username {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1em;
}

.profile-btn {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #ffd700;
    color: #ffd700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.1);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: 2px solid #ffd700;
    border-radius: 10px;
    overflow: hidden;
    z-index: 100;
    min-width: 200px;
    animation: slideDown 0.3s ease;
}

.profile-dropdown.hidden {
    display: none;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    width: 100%;
    padding: 12px 15px;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.dropdown-item:hover {
    background: rgba(255, 215, 0, 0.2);
    padding-left: 20px;
}

.dropdown-item.logout {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ef4444;
}

/* ==================== NAVIGATION ==================== */
.casino-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-btn {
    flex: 1;
    min-width: 120px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffd700;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
    border-color: #ffd700;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.nav-icon {
    font-size: 1.3em;
}

/* ==================== MAIN CONTENT ==================== */
.casino-main {
    min-height: 600px;
}

.game-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.game-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== LOBBY ==================== */
.lobby-welcome {
    text-align: center;
    margin-bottom: 50px;
}

.lobby-welcome h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ffd700, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lobby-subtitle {
    font-size: 1.2em;
    color: #b8c6db;
    margin-bottom: 20px;
}

.welcome-message {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #ffd700;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
}

.welcome-message p {
    color: #ffd700;
    font-size: 1.1em;
}

/* ==================== GAME GRID ==================== */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.game-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-15px);
    border-color: #ffd700;
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.game-card-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.game-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #ffd700;
}

.game-card p {
    color: #b8c6db;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.play-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

/* ==================== LOBBY STATS ==================== */
.lobby-stats {
    margin-top: 40px;
    margin-bottom: 30px;
}

.stats-title {
    color: #ffd700;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Cinzel', serif;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.global-stats {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item.global {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.3);
}

.stat-item:hover {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
}

.stat-label {
    color: #b8c6db;
    font-size: 0.95em;
}

/* ==================== GAME HEADER ==================== */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.game-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffd700;
    transform: translateX(-5px);
}

/* ==================== PROFILE PAGE ==================== */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-info-box,
.profile-coupon-box,
.profile-password-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.profile-info-box:hover,
.profile-coupon-box:hover,
.profile-password-box:hover {
    border-color: #ffd700;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.03) 100%);
}

.profile-info-box h3,
.profile-coupon-box h3,
.profile-password-box h3 {
    color: #ffd700;
    font-size: 1.5em;
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
    display: flex;
    flex-direction: column;
}

.info-label {
    color: #b8c6db;
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: 500;
}

.info-value {
    color: #ffd700;
    font-size: 1.3em;
    font-weight: bold;
}

.coupon-section,
.password-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.coupon-input-group .input-field {
    flex: 1;
    min-width: 200px;
}

.coupon-input-group .auth-btn {
    flex-shrink: 0;
}

.available-coupons-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

.available-coupons-section h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.coupons-list {
    list-style: none;
    padding: 0;
}

.coupons-list li {
    padding: 8px 0;
    color: #b8c6db;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    font-size: 0.95em;
}

.coupons-list li:last-child {
    border-bottom: none;
}

.coupons-list code {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.password-section {
    display: flex;
    flex-direction: column;
}

.password-section .input-field {
    width: 100%;
}

/* ==================== SLOTS ==================== */
.slots-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.slot-machine {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #ffd700;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.slot-display {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: #000;
    padding: 30px;
    border-radius: 15px;
    border: 3px solid #ffd700;
}

.reel {
    width: 120px;
    height: 150px;
    background: linear-gradient(to bottom, #1a1a2e, #0a0e27);
    border: 3px solid #ffd700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.symbol {
    font-size: 5em;
    transition: all 0.1s ease;
}

.reel.spinning .symbol {
    animation: spin 0.1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

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

.bet-controls {
    margin-bottom: 20px;
}

.bet-controls label {
    display: block;
    margin-bottom: 10px;
    color: #b8c6db;
    font-weight: bold;
}

.bet-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.bet-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.bet-btn.active {
    background: #ffd700;
    color: #1a1a2e;
    border-color: #ffd700;
}

.spin-btn {
    width: 200px;
    height: 80px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: 4px solid #ffd700;
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    margin: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.5);
}

.spin-btn:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.7);
}

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

.current-bet {
    color: #b8c6db;
    font-size: 1.2em;
    margin-top: 15px;
    font-weight: bold;
}

/* ==================== PAYTABLE ==================== */
.paytable {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    min-width: 250px;
}

.paytable h3 {
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5em;
}

.paytable-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.paytable-row:hover {
    background: rgba(255, 215, 0, 0.1);
}

.paytable-row span:last-child {
    color: #4ade80;
    font-weight: bold;
}

/* ==================== BLACKJACK ==================== */
.blackjack-container {
    max-width: 1000px;
    margin: 0 auto;
}

.blackjack-table {
    background: linear-gradient(135deg, #0f5132 0%, #198754 100%);
    border-radius: 200px;
    padding: 60px;
    margin-bottom: 30px;
    border: 5px solid #ffd700;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.dealer-area, .player-area {
    margin: 30px 0;
}

.dealer-area h3, .player-area h3 {
    color: #ffd700;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
}

.score {
    color: #fff;
    font-weight: normal;
}

.card-area {
    display: flex;
    justify-content: center;
    gap: 15px;
    min-height: 140px;
    flex-wrap: wrap;
}

.card {
    width: 90px;
    height: 130px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: dealCard 0.3s ease;
}

@keyframes dealCard {
    from { transform: translateY(-50px) rotateY(90deg); opacity: 0; }
    to { transform: translateY(0) rotateY(0); opacity: 1; }
}

.card.red {
    color: #e74c3c;
}

.card.black {
    color: #000;
}

.card-back {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
}

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

.card-suit {
    font-size: 2em;
    text-align: center;
}

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

.bet-section, .play-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.bet-section label {
    display: block;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #b8c6db;
    font-weight: bold;
}

.bet-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.action-btn.primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==================== ROULETTE ==================== */
.roulette-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.roulette-wheel-container {
    flex: 0 0 400px;
}

.roulette-wheel {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
    border: 15px solid #ffd700;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 50%;
    border: 5px solid #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.winning-number {
    font-size: 4em;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.wheel-ball {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    z-index: 5;
}

.roulette-wheel.spinning {
    animation: spinWheel 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

@keyframes spinWheel {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(1800deg); }
}

.roulette-table {
    flex: 1;
    min-width: 500px;
}

.roulette-table h3 {
    color: #ffd700;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

.bet-amount-selector {
    text-align: center;
    margin-bottom: 20px;
}

.bet-amount-selector label {
    display: block;
    margin-bottom: 10px;
    color: #b8c6db;
    font-weight: bold;
}

.chip-btn {
    padding: 10px 15px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.chip-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.chip-btn.active {
    background: #ffd700;
    color: #1a1a2e;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.roulette-betting-grid {
    background: #0f5132;
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #ffd700;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 5px;
    margin-bottom: 15px;
}

.number-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.number-cell.red {
    background: #e74c3c;
    color: #fff;
}

.number-cell.black {
    background: #2c3e50;
    color: #fff;
}

.number-cell.green {
    background: #27ae60;
    color: #fff;
    grid-column: span 13;
}

.number-cell:hover {
    transform: scale(1.1);
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.number-cell.bet-placed {
    border: 3px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.bet-chip {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffd700;
    color: #1a1a2e;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
    border: 2px solid #fff;
    z-index: 5;
}

.outside-bets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.outside-bet {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.outside-bet:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffd700;
    transform: translateY(-3px);
}

.outside-bet.bet-placed {
    border: 3px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.roulette-controls {
    margin-top: 20px;
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.total-bet {
    font-size: 1.3em;
    color: #ffd700;
    font-weight: bold;
}

/* ==================== DICE GAME ==================== */
.dice-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.dice-display {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #ffd700;
}

.dice {
    width: 120px;
    height: 120px;
    background: #fff;
    border: 3px solid #ffd700;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    font-weight: bold;
    color: #1a1a2e;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    transition: all 0.1s ease;
}

.dice.rolling {
    animation: diceRoll 0.1s linear infinite;
}

@keyframes diceRoll {
    0%, 100% { transform: rotateX(0) rotateY(0); }
    25% { transform: rotateX(20deg) rotateY(20deg); }
    50% { transform: rotateX(40deg) rotateY(-20deg); }
    75% { transform: rotateX(-20deg) rotateY(40deg); }
}

.dice-total {
    font-size: 1.5em;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 20px;
}

.dice-controls {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    min-width: 300px;
}

.prediction-controls {
    margin: 20px 0;
}

.prediction-controls label {
    display: block;
    margin-bottom: 10px;
    color: #b8c6db;
    font-weight: bold;
}

.predict-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 20px;
    margin: 0 5px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.predict-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.predict-btn.active {
    background: #ffd700;
    color: #1a1a2e;
    border-color: #ffd700;
}

/* ==================== POKER GAME ==================== */
.poker-container {
    max-width: 900px;
    margin: 0 auto;
}

.poker-table {
    background: linear-gradient(135deg, #0f5132 0%, #198754 100%);
    border-radius: 150px;
    padding: 50px;
    margin-bottom: 30px;
    border: 5px solid #ffd700;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.dealer-hand, .player-hand {
    margin: 30px 0;
}

.dealer-hand h3, .player-hand h3 {
    color: #ffd700;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
}

.hand-type {
    text-align: center;
    color: #b8c6db;
    margin-top: 10px;
    font-size: 0.95em;
}

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

/* ==================== KENO GAME ==================== */
.keno-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.keno-numbers {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.keno-numbers h3 {
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.3em;
}

.keno-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    max-width: 500px;
}

.keno-cell {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.keno-cell:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffd700;
}

.keno-cell.selected {
    background: #ffd700;
    color: #1a1a2e;
    border-color: #ffd700;
    font-weight: bold;
}

.keno-cell.drawn {
    background: #4ade80;
    color: #fff;
    border-color: #4ade80;
    animation: kenoDrawn 0.3s ease;
}

@keyframes kenoDrawn {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.keno-controls {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    min-width: 250px;
}

.keno-picks {
    color: #ffd700;
    font-weight: bold;
    margin: 15px 0;
    font-size: 1.1em;
}

.keno-paytable {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    margin-top: 20px;
}

.keno-paytable h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

/* ==================== GAME MESSAGE ==================== */
.game-message {
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInMessage 0.3s ease;
}

@keyframes slideInMessage {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-message.win {
    background: rgba(74, 222, 128, 0.2);
    border: 2px solid #4ade80;
    color: #4ade80;
}

.game-message.lose {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
    color: #ef4444;
}

.game-message.info {
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

/* ==================== FOOTER ==================== */
.casino-footer {
    margin-top: 60px;
    padding: 30px;
    text-align: center;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.casino-footer p {
    color: #b8c6db;
    margin-bottom: 15px;
}

.reset-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
    color: #ef4444;
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .casino-header {
        flex-direction: column;
        gap: 20px;
    }

    .logo h1 {
        font-size: 1.8em;
    }

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

    .slots-container {
        flex-direction: column;
    }

    .roulette-container {
        flex-direction: column;
    }

    .roulette-wheel-container {
        flex: none;
    }

    .roulette-wheel {
        width: 300px;
        height: 300px;
    }

    .numbers-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .number-cell.green {
        grid-column: span 7;
    }

    .casino-nav {
        gap: 5px;
    }

    .nav-btn {
        min-width: 80px;
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .game-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
