/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

 .header-logo {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 15px;
     margin-bottom: 15px;
 }
 
 .logo-icon {
     width: 60px;
     height: 60px;
     border-radius: 50%;
     box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
     animation: logoGlow 2s ease-in-out infinite alternate;
 }
 
 @keyframes logoGlow {
     0% { 
         box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
         transform: scale(1);
     }
     100% { 
         box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
         transform: scale(1.05);
     }
 }
 
 .header h1 {
     font-size: 3rem;
     font-weight: 900;
     background: linear-gradient(45deg, #8b0000, #dc143c);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     margin-bottom: 10px;
 }

 .subtitle {
     font-size: 1.2rem;
     color: #333;
     font-weight: 700;
 }
 
 .header-cta {
     margin-top: 15px;
     padding: 15px;
     background: rgba(220, 20, 60, 0.9);
     border-radius: 10px;
     border: 2px solid #fff;
 }
 
 .header-cta p {
     color: #fff;
     font-size: 1rem;
     margin-bottom: 10px;
 }
 
 .header-cta .btn {
     font-size: 1rem;
     padding: 8px 20px;
     text-decoration: none;
     display: inline-block;
 }

/* Control Panel */
.control-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.balance-section, .betting-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.amount {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.currency {
    color: #ffd700;
    font-weight: 700;
}

.bet-controls, .paylines-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bet-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bet-input input {
    width: 100px;
    padding: 8px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
}

.bet-input input:focus {
    outline: none;
    border-color: #ffed4e;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

select {
    padding: 8px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 1rem;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    background: linear-gradient(45deg, #dc143c, #ff6347);
    color: #fff;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.6);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.5rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Slot Machine Display */
.slot-machine {
    position: relative;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(45deg, #2c1810, #4a2c2a);
    border-radius: 20px;
    border: 3px solid #ffd700;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.reels-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.reel {
    background: linear-gradient(180deg, #1a1a2e, #16213e);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 10px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.symbol {
    font-size: 3rem;
    margin: 5px 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.symbol.winning {
    animation: winningPulse 0.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px #ffd700);
}

@keyframes winningPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

/* Game Controls */
.game-controls {
    text-align: center;
    margin: 30px 0;
}

.secondary-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* RTP Settings */
.rtp-settings {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

#rtpSlider {
    width: 100%;
    max-width: 400px;
    margin: 15px 0;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, #dc143c, #ffd700, #32cd32);
    outline: none;
}

#rtpSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rtp-info {
    margin-top: 10px;
    color: #ccc;
    font-size: 0.9rem;
}

/* Statistics Panel */
.stats-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    backdrop-filter: blur(10px);
}

.stats-panel h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffd700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
}

/* Paytable */
.paytable {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
}

.paytable h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffd700;
}

.paytable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.paytable-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-align: center;
}

.paytable-symbol {
    font-size: 2rem;
    margin-bottom: 10px;
}

.paytable-payout {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffd700;
}

/* History Panel */
.history-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
}

.history-panel h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffd700;
}

.history-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 4px solid #ffd700;
}

.history-result {
    font-weight: 700;
}

.history-result.win {
    color: #32cd32;
}

.history-result.loss {
    color: #dc143c;
}

/* Game Rules Section */
.game-rules {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    backdrop-filter: blur(10px);
}

 .rules-header {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 15px;
     margin-bottom: 30px;
 }
 
 .rules-icon {
     width: 50px;
     height: 50px;
     border-radius: 50%;
     box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
 }
 
 .game-rules h2 {
     text-align: center;
     margin-bottom: 0;
     color: #ffd700;
     font-size: 2rem;
 }

.rules-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.rule-item {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.rule-item h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.rule-item p {
    line-height: 1.6;
    color: #ccc;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
}

 .footer-logo {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 15px;
     margin-bottom: 20px;
 }
 
 .footer-logo-icon {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
 }
 
 .casino-tools h3 {
     text-align: center;
     margin-bottom: 20px;
     color: #ffd700;
 }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.tool-link {
    display: block;
    padding: 15px;
    background: linear-gradient(45deg, #dc143c, #ff6347);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

 .tool-link:hover {
     transform: translateY(-3px);
     box-shadow: 0 8px 25px rgba(220, 20, 60, 0.6);
 }
 
 .casino-cta {
     text-align: center;
     margin-top: 20px;
     padding: 20px;
     background: linear-gradient(45deg, #ffd700, #ffed4e);
     border-radius: 15px;
     border: 2px solid #333;
 }
 
 .casino-cta p {
     color: #333;
     font-size: 1.1rem;
     margin-bottom: 15px;
 }
 
 .casino-cta .btn {
     font-size: 1.2rem;
     padding: 15px 30px;
     text-decoration: none;
     display: inline-block;
 }

.social-sharing h4 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffd700;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.share-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.disclaimer {
    text-align: center;
    padding: 20px;
    background: rgba(220, 20, 60, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(220, 20, 60, 0.5);
}

.disclaimer p {
    color: #ffb6c1;
    font-size: 0.9rem;
}

/* Animations */
@keyframes spin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.spinning .symbol {
    animation: spin 0.1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
         .header-logo {
         flex-direction: column;
         gap: 10px;
     }
     
     .logo-icon {
         width: 50px;
         height: 50px;
     }
     
     .header h1 {
         font-size: 2rem;
     }
    
    .control-panel {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .reels-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .symbol {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .rules-content {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .reels-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-large {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
    
    .secondary-controls {
        flex-direction: column;
        align-items: center;
    }
}

/* Loading and Win Animations */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.win-animation {
    animation: winFlash 0.5s ease-in-out 3;
}

@keyframes winFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.jackpot {
    animation: jackpotGlow 1s ease-in-out infinite alternate;
}

@keyframes jackpotGlow {
    0% { 
        box-shadow: 0 0 20px #ffd700, 0 0 40px #ffd700, 0 0 60px #ffd700;
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 30px #ffd700, 0 0 60px #ffd700, 0 0 90px #ffd700;
        transform: scale(1.05);
    }
}
