/* ============================================
   PlanGate — Feature Gating Styles
   ============================================ */

/* Lock Badge — small indicator on buttons */
.plan-gate-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    padding: 1px 6px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 6px;
    line-height: 1;
    text-transform: uppercase;
    flex-shrink: 0;
}

.plan-gate-lock-badge svg {
    width: 8px;
    height: 8px;
}

/* Upgrade Modal Overlay */
.plan-gate-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0px);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    padding: 16px;
}

.plan-gate-modal-overlay.active {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
}

/* Modal Card */
.plan-gate-modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.plan-gate-modal-overlay.active .plan-gate-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Icon Circle */
.plan-gate-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b45309;
}

/* Title */
.plan-gate-modal-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 6px;
}

/* Feature Name */
.plan-gate-modal-feature {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Description */
.plan-gate-modal-desc {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* CTA Text */
.plan-gate-modal-cta {
    font-size: 12px;
    font-weight: 600;
    color: #e60023;
    margin-bottom: 20px;
}

/* Actions Container */
.plan-gate-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Upgrade Button */
.plan-gate-btn-upgrade {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #E60023, #CC001F);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.25);
}

.plan-gate-btn-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(230, 0, 35, 0.35);
}

/* Dismiss Button */
.plan-gate-btn-dismiss {
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-gate-btn-dismiss:hover {
    background: #f8fafc;
    color: #64748b;
}

/* Locked Template Card Overlay */
.plan-gate-template-locked {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}

.plan-gate-template-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(148, 163, 184, 0.06) 8px,
        rgba(148, 163, 184, 0.06) 16px
    );
    pointer-events: none;
}

/* Upgrade Prompt Card (shown after locked templates) */
.plan-gate-upgrade-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    border: 2px dashed #fbbf24;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
}

.plan-gate-upgrade-card:hover {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fef9c3, #fef08a);
    transform: translateY(-1px);
}

.plan-gate-upgrade-card svg {
    color: #b45309;
}

.plan-gate-upgrade-card-title {
    font-size: 11px;
    font-weight: 800;
    color: #92400e;
}

.plan-gate-upgrade-card-desc {
    font-size: 10px;
    font-weight: 500;
    color: #a16207;
    line-height: 1.4;
}
