/* ============================================================
   AFFINITY CORE – Stiluri globale (updated)
   ============================================================ */

/* Upgrade block */
.upgrade-block {
    text-align: center;
    background: rgba(255, 79, 138, 0.1);
    border: 1px solid rgba(255, 79, 138, 0.2);
    border-radius: 18px;
    padding: 30px 20px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(255, 0, 102, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
}

.upgrade-block p {
    color: #f9f4ff;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.upgrade-btn {
    background: linear-gradient(135deg, #ff4f8a, #ff0066);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 12px 30px rgba(255, 0, 102, 0.35);
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* Premium modal */
.premium-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.premium-modal-overlay.visible { 
    display: flex; 
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.premium-modal {
    background: rgba(10, 6, 18, 0.95);
    border-radius: 26px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.premium-modal::before {
    content: "";
    position: absolute;
    inset: -100px;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 0, 102, 0.28) 0, transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(140, 92, 255, 0.18) 0, transparent 50%);
    opacity: 0.9;
    z-index: 0;
    pointer-events: none;
}

.premium-modal > * {
    position: relative;
    z-index: 1;
}

.premium-modal h2 {
    margin-top: 0;
    color: #f9f4ff;
    font-size: 28px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff4f8a, #ff9ad5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.premium-modal p {
    color: #e7ddff;
    font-size: 15px;
    line-height: 1.6;
    margin: 15px 0 30px;
}

.premium-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.premium-actions button {
    border: none;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.premium-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #e7ddff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.premium-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.premium-pay {
    background: linear-gradient(135deg, #ff4f8a, #ff0066);
    color: #fff;
    box-shadow: 0 12px 30px rgba(255, 0, 102, 0.35);
}

.premium-pay:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* Responsive pentru modal */
@media (max-width: 900px) {
    .premium-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .premium-actions button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .upgrade-btn, .premium-actions button {
        width: 100%;
        max-width: 300px;
    }
}