/* Subscription popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: popupSlideIn 0.3s ease-out;
}

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

.popup-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #777;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.popup-close:hover {
    background-color: #f0f0f0;
}

.popup-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
    color: rgb(var(--lingobingo-navy));
}

.popup-price {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgb(var(--lingobingo-gold), 0.5);
    border-radius: 14px;
    background: rgb(var(--lingobingo-cream), 0.55);
    color: rgb(var(--lingobingo-navy));
    text-align: center;
    margin-bottom: 24px;
}

.popup-price .subscription-price-label {
    font-size: 24px;
    font-weight: 600;
    color: #666;
}

.popup-price .subscription-old-price {
    margin-top: 4px;
    font-size: 24px;
    color: #777;
}

.popup-price .subscription-sale-price {
    margin-top: 6px;
    font-size: 24px;
    line-height: 1.2;
    color: rgb(var(--lingobingo-blue));
}

.popup-input-group {
    margin-bottom: 20px;
}

.popup-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #3c3c3c;
}

.popup-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    direction: ltr;
    text-align: left;
}

.popup-input:focus {
    outline: none;
    border-color: rgb(var(--lingobingo-blue));
}

.popup-submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: rgb(var(--lingobingo-blue));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.popup-submit:hover {
    background-color: rgb(var(--lingobingo-navy));
}

.popup-submit:active {
    transform: scale(0.98);
}

.popup-error {
    display: none;
    background-color: rgb(var(--lingobingo-cream));
    border: 2px solid rgb(var(--lingobingo-gold));
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.popup-error.show {
    display: block;
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.popup-error-title {
    font-size: 16px;
    font-weight: bold;
    color: rgb(var(--lingobingo-honey));
    margin-bottom: 8px;
}

.popup-error-message {
    font-size: 14px;
    color: #666;
}

.popup-features {
    background: linear-gradient(135deg, rgb(var(--lingobingo-blue)) 0%, rgb(var(--lingobingo-navy)) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.popup-features-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 16px;
}

.popup-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    transition: transform 0.2s, background 0.2s;
}

.popup-feature-item:hover {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.popup-feature-item:last-child {
    margin-bottom: 0;
}

.popup-feature-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.popup-feature-text {
    color: white;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}
