/* Premium Styles */
.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.premium-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.premium-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 25px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.premium-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-premium-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-premium-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.premium-features-list {
    padding: 25px;
    background: #f8f9fa;
}

.premium-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
}

.premium-feature-item i {
    color: var(--success);
    font-size: 18px;
}

.premium-plans {
    padding: 25px;
    display: grid;
    gap: 20px;
}

.premium-plan {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.premium-plan:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.1);
}

.premium-plan.popular {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.05), rgba(255, 107, 139, 0.05));
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.plan-price {
    text-align: center;
    margin-bottom: 10px;
}

.price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.period {
    font-size: 16px;
    color: #666;
}

.plan-saving {
    text-align: center;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 5px;
}

.plan-desc {
    text-align: center;
    color: #999;
    font-size: 14px;
}

.premium-terms {
    padding: 25px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.premium-terms p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.terms-link {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

.terms-link:hover {
    text-decoration: underline;
}

.premium-status {
    padding: 30px;
    text-align: center;
}

.status-active {
    margin-bottom: 30px;
}

.status-active i {
    font-size: 64px;
    color: var(--success);
    margin-bottom: 15px;
}

.status-active h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.status-active p {
    color: #666;
    font-size: 16px;
}

.premium-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.manage-subscription-btn,
.restore-purchases-btn {
    padding: 15px;
    border-radius: 25px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.manage-subscription-btn:hover,
.restore-purchases-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.loading-content i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 18px;
    color: #333;
}

/* Update premium promo card to be clickable */
.premium-promo-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.premium-promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

/* Activation Success Styles */
.activation-success {
    padding: 30px;
    text-align: center;
}

.activation-success i {
    font-size: 64px;
    color: var(--success);
    margin-bottom: 20px;
}

.activation-success h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.activation-success p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.premium-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.benefit i {
    font-size: 24px;
    color: var(--primary);
}

.benefit span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.start-premium-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
}

/* Premium Notification Styles */
.premium-notification {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .premium-modal {
        max-height: 95vh;
    }
    
    .premium-plans {
        grid-template-columns: 1fr;
    }
    
    .premium-benefits {
        grid-template-columns: 1fr;
    }
    
    .price {
        font-size: 28px;
    }
    
    .plan-name {
        font-size: 18px;
    }
}
