/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #ffd700;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.logo-container h1 {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

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

.fastloto-link {
    display: flex;
    align-items: center;
}

.fastloto-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #ff4757, #ff3838);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.3);
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 0.9rem;
}

.fastloto-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn {
    background: linear-gradient(45deg, #3742fa, #2f3542);
    color: white;
}

.logout-btn {
    background: linear-gradient(45deg, #ff4757, #ff3838);
    color: white;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-section {
    display: flex;
    align-items: center;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
    font-size: 1.5rem;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Register Section */
.register-section {
    margin-bottom: 50px;
}

.register-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.register-card h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #ffd700;
}

.register-card input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.register-card input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

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

.register-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Wheel Section */
.wheel-section {
    margin-bottom: 50px;
}

.wheel-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wheel-container h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.wheel-info {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.wheel-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

#wheelCanvas {
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    border: 3px solid #ffd700;
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.wheel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.spin-btn {
    padding: 15px 40px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

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

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

.countdown {
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: bold;
}

.spin-result {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    border: 2px solid #ffd700;
}

.wheel-prizes {
    text-align: left;
}

.wheel-prizes h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.prize-item {
    background: rgba(255, 215, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.prize-item:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

/* Confirm Section */
.confirm-section {
    margin-bottom: 50px;
}

.confirm-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.confirm-card h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.confirm-card p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

#prizeText {
    font-size: 1.5rem;
    font-weight: bold;
    color: #25d366;
    margin-bottom: 25px;
}

.confirm-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Games Section */
.games-section {
    margin-bottom: 50px;
}

.games-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffd700;
}

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

.game-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #ffd700;
}

.game-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.game-item h3 {
    font-size: 1.3rem;
    color: #ffd700;
    margin-bottom: 10px;
}

.game-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.play-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Auth Section Main */
.auth-section-main {
    margin-bottom: 50px;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-tab {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.auth-tab.active {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    border-color: #ffd700;
}

.auth-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

.auth-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.auth-card, .register-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.auth-card h2, .register-card h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #ffd700;
}

.auth-card input, .register-card input, .auth-card textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-card input::placeholder, .register-card input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

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

.auth-submit-btn, .register-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-submit-btn:hover, .register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.error-message {
    color: #ff4757;
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

.success-message {
    color: #2ed573;
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

/* Videos Section */
.videos-section {
    margin-bottom: 50px;
}

.videos-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffd700;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.video-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    height: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.video-thumbnail i {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.video-thumbnail:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.video-item h3 {
    padding: 20px 20px 10px;
    font-size: 1.2rem;
    color: #ffd700;
}

.video-item p {
    padding: 0 20px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px 0;
    text-align: center;
    border-top: 2px solid #ffd700;
}

.footer p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffed4e;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo-container h1 {
        font-size: 2rem;
    }
    
    .whatsapp-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    #wheelCanvas {
        width: 300px;
        height: 300px;
    }
    
    .wheel-controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .prizes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .logo-container h1 {
        font-size: 1.5rem;
    }
    
    #wheelCanvas {
        width: 250px;
        height: 250px;
    }
    
    .prizes-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffed4e;
}