/* ========================================
   INACTIVE SUBSCRIPTION GATEWAY MODAL
======================================== */
.sub-guard-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.sub-guard-overlay.active {
    display: flex;
}

.sub-guard-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 22px;
    padding: 32px 24px 24px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
    border-top: 5px solid #dc3545;
    animation: subGuardPop 0.22s ease-out;
}

.sub-guard-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.sub-guard-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.sub-guard-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-guard-badge {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 10px;
    border-radius: 20px;
    background: rgba(220, 53, 69, 0.12);
    color: #b02a37;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.sub-guard-title {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
}

.sub-guard-text {
    margin: 0 0 18px;
    font-size: 0.94rem;
    line-height: 1.55;
    color: #4b5563;
}

.sub-guard-plan-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.sub-guard-plan-label {
    color: #64748b;
    font-weight: 600;
}

.sub-guard-plan-price {
    color: #16853a;
    font-weight: 800;
    font-size: 1rem;
}

.sub-guard-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sub-guard-btn-primary {
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #28a745, #16853a);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.28);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.sub-guard-btn-primary:active {
    transform: scale(0.97);
    opacity: 0.92;
}

.sub-guard-btn-secondary {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sub-guard-btn-secondary:hover {
    background: #f8fafc;
}

/* Standalone fallback body if subscription-guard.html is opened directly */
body.sub-guard-standalone {
    margin: 0;
    min-height: 100vh;
    background: #f4f7fa;
    font-family: inherit;
}

@keyframes subGuardPop {
    from {
        opacity: 0;
        transform: scale(0.86);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}