/**
 * FurryNestLab Smart Exit-Intent Recovery Modal Styles
 */

/* 1. Backdrop Overlay */
.fnl-exit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999995;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    font-family: var(--font-body, 'DM Sans', -apple-system, sans-serif);
}

.fnl-exit-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* 2. Modal Card */
.fnl-exit-modal {
    background: #ffffff;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.fnl-exit-modal-overlay.is-active .fnl-exit-modal {
    transform: scale(1) translateY(0);
}

/* 3. Close Button */
.fnl-exit-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    z-index: 10;
}

.fnl-exit-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

/* 4. Content Area */
.fnl-exit-content {
    padding: 32px 28px 24px;
    text-align: center;
}

.fnl-exit-badge {
    background: #ccfbf1;
    color: #0f766e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.fnl-exit-title {
    font-size: 23px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.fnl-exit-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

/* 5. Coupon Container */
.fnl-exit-coupon-box {
    background: #f8fafc;
    border: 2px dashed #0d9488;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.fnl-exit-code-wrap {
    text-align: left;
}

.fnl-exit-code-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.fnl-exit-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 18px;
    font-weight: 900;
    color: #0d9488;
    letter-spacing: 2px;
}

.fnl-exit-copy-btn {
    background: #0d9488;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.fnl-exit-copy-btn:hover {
    background: #0f766e;
}

.fnl-exit-copy-btn:active {
    transform: scale(0.96);
}

.fnl-exit-copy-btn.is-copied {
    background: #10b981;
}

/* 6. Claim CTA Row */
.fnl-exit-cta-row {
    margin-bottom: 14px;
}

.fnl-exit-claim-btn {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
    transition: background 0.15s, transform 0.1s;
    box-sizing: border-box;
}

.fnl-exit-claim-btn:hover {
    background: #0d9488;
    transform: translateY(-1px);
}

.fnl-exit-claim-btn:active {
    transform: scale(0.98);
}

/* 7. Trust Bar */
.fnl-exit-trust {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

/* 8. Responsive Adjustments */
@media (max-width: 480px) {
    .fnl-exit-content {
        padding: 26px 18px 18px;
    }
    .fnl-exit-title {
        font-size: 20px;
    }
    .fnl-exit-coupon-box {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .fnl-exit-code-wrap {
        text-align: center;
    }
    .fnl-exit-copy-btn {
        width: 100%;
        justify-content: center;
    }
    .fnl-exit-trust {
        flex-direction: column;
        gap: 4px;
    }
}
