.premium-upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.premium-upgrade-modal-content {
    background: #202737;
    border-radius: 0.5rem;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #3D415A;
    animation: slideInUp 0.3s ease;
}

.premium-upgrade-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #3D415A;
}

.premium-upgrade-modal-header h4 {
    color: #fff;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.premium-upgrade-modal-close {
    background: none;
    border: none;
    color: #8B8FA3;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.premium-upgrade-modal-close:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.premium-upgrade-modal-body {
    padding: 1.5rem;
    text-align: center;
}

.premium-upgrade-icon {
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 1.5rem;
}

.premium-upgrade-explanation {
    margin-bottom: 1.5rem;
}

.premium-upgrade-explanation h5 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.premium-upgrade-explanation p {
    color: #BBBFD9;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-size: 0.925rem;
}

.premium-upgrade-benefits {
    text-align: left;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-upgrade-benefits h5 {
    color: #fff;
    margin-bottom: 1.25rem;
    font-size: 1.075rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
}

.premium-upgrade-benefits h5 i {
    color: #ffc107;
    font-size: 1.1rem;
}

.premium-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 67, 159, 0.3);
}

.benefit-item i {
    color: #ffc107;
    font-size: 1rem;
    min-width: 1.25rem;
    text-align: center;
}

.benefit-item span {
    color: #BBBFD9;
    font-size: 0.875rem;
    line-height: 1.3;
}

.benefit-item strong {
    color: #fff;
    font-weight: 600;
}

.premium-upgrade-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #3D415A;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.premium-upgrade-btn {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.2) 100%);
    color: #ffc107;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    text-decoration: none;
}

.premium-upgrade-btn:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.2) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    color: #ffc107;
    text-decoration: none;
}

.premium-upgrade-cancel {
    background: transparent;
    color: #8B8FA3;
    border: 1px solid #3D415A;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.premium-upgrade-cancel:hover {
    color: #fff;
    border-color: #5C6FFF;
    background-color: rgba(92, 111, 255, 0.1);
}

@media (max-width: 480px) {
    .premium-benefits-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .benefit-item {
        padding: 0.75rem;
    }
    
    .premium-upgrade-benefits {
        padding: 1rem;
    }
    
    .premium-upgrade-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .premium-upgrade-modal-footer {
        flex-direction: column;
    }
    
    .premium-upgrade-btn,
    .premium-upgrade-cancel {
        width: 100%;
        justify-content: center;
    }
}

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

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

.premium-upgrade-modal.warning-modal .premium-upgrade-modal-content {
    border-color: #ffc107;
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.3);
}

.premium-upgrade-modal.warning-modal .premium-modal-title {
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.premium-upgrade-continue {
    background: linear-gradient(45deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(19, 132, 150, 0.3);
}

.premium-upgrade-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 132, 150, 0.4);
    background: linear-gradient(45deg, rgb(19, 132, 150), #17a2b8);
}

.premium-upgrade-btn.warning {
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.2));
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.premium-upgrade-btn.warning:hover {
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.2));
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
    border: 1px solid rgba(255, 193, 7, 0.3);
}
