/* ========================================
   PLAN CHANGE CONFIRMATION MODAL
   ======================================== */

.plan-change-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    animation: modalFadeIn 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.plan-change-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-change-content {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.98), rgba(40, 40, 60, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* Icon Container */
.plan-change-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(139, 92, 246, 0.2));
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: iconBounce 0.6s ease;
}

.plan-change-icon.upgrade {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 197, 94, 0.2));
    border-color: var(--success);
}

.plan-change-icon.downgrade {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.2));
    border-color: var(--warning);
}

/* Content */
.plan-change-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-change-message {
    text-align: center;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Plan Info Card */
.plan-change-info {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.plan-change-from-to {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.plan-change-plan-box {
    flex: 1;
    text-align: center;
}

.plan-change-plan-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.plan-change-plan-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.plan-change-plan-price {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.plan-change-arrow {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Features List */
.plan-change-features {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-change-features h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-change-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.plan-change-feature i {
    color: var(--success);
}

/* Warning for downgrades */
.plan-change-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.plan-change-warning i {
    color: var(--warning);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.plan-change-warning-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Buttons */
.plan-change-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.plan-change-btn {
    flex: 1;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.plan-change-btn-cancel {
    background: rgba(107, 114, 128, 0.2);
    border: 1px solid rgba(107, 114, 128, 0.3);
    color: var(--text-muted);
}

.plan-change-btn-cancel:hover {
    background: rgba(107, 114, 128, 0.3);
    border-color: rgba(107, 114, 128, 0.5);
    transform: translateY(-2px);
}

.plan-change-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.plan-change-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

.plan-change-btn-confirm.upgrade {
    background: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
    border-color: var(--success);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.plan-change-btn-confirm.upgrade:hover {
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

.plan-change-btn-confirm.downgrade {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-color: var(--warning);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.plan-change-btn-confirm.downgrade:hover {
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
}

/* Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .plan-change-content {
        padding: 2rem 1.5rem;
    }

    .plan-change-from-to {
        flex-direction: column;
        gap: 0.5rem;
    }

    .plan-change-arrow {
        transform: rotate(90deg);
    }

    .plan-change-buttons {
        flex-direction: column-reverse;
    }
}