/**
 * NOX AI VIP PANEL - Design Casino Premium
 */

/* Panel VIP principal */
#vip {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-y: auto;
}

#vip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 20, 147, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.vip-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Header VIP */
.vip-header {
    text-align: center;
    margin-bottom: 40px;
}

.vip-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ff1493);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vipShimmer 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    margin-bottom: 10px;
}

.vip-subtitle {
    color: #a0a0a0;
    font-size: 1.2rem;
    font-weight: 400;
}

@keyframes vipShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Bouton VIP amélioré */
.btn-vip-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    height: 36px;
    white-space: nowrap;
}

.btn-vip-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
    color: #000;
}

.btn-vip-upgrade .btn-icon {
    font-size: 0.9em;
    margin-left: 4px;
    opacity: 0.9;
}

.btn-vip-upgrade:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-vip-upgrade::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-vip-upgrade:hover::before {
    left: 100%;
}

/* Effet de lueur au survol */
@keyframes btnGlow {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
    100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
}

.btn-vip-upgrade:hover {
    animation: btnGlow 2s infinite;
}

/* Carte de statut VIP */
.vip-status-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.vip-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.vip-status-card:hover::before {
    left: 100%;
}

/* Statut actif */
.vip-active {
    border-color: rgba(0, 255, 136, 0.5);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.vip-status-content {
    text-align: center;
}

.vip-status-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.vip-status-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.vip-status-subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 20px;
}

.vip-days-left {
    display: inline-block;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.vip-code-info {
    color: #666;
    font-size: 0.9rem;
}

/* Formulaire d'activation */
.vip-activation {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    text-align: center;
}

.vip-activation h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.vip-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 15px;
}

#vipCodeInput {
    flex: 1;
    padding: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    backdrop-filter: blur(10px);
}

#vipCodeInput::placeholder {
    color: #666;
    text-transform: none;
    letter-spacing: normal;
}

#vipCodeInput:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.vip-activate-btn {
    padding: 15px 25px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.vip-activate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.vip-help {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin: 0;
}

/* Fonctionnalités VIP */
.vip-features {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.vip-features h3 {
    color: #ffd700;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 25px;
}

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

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.feature-content h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-content p {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* États de chargement */
.vip-loading {
    text-align: center;
    padding: 40px;
    color: #a0a0a0;
}

.vip-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages d'erreur et succès */
.vip-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.vip-message.success {
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.vip-message.error {
    background: linear-gradient(45deg, rgba(255, 71, 87, 0.2), rgba(255, 71, 87, 0.1));
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

/* Responsive */
@media (max-width: 768px) {
    .vip-form {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: center;
    }
    
    .vip-title {
        font-size: 2.2rem;
    }
}

/* Animations */
.vip-status-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Effet de pulsation pour les éléments VIP actifs */
.vip-active .vip-days-left {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}
