/* ═══════════════════════════════════════════
   TSF Newsletter — Frontend Styles
   Sticky bar + Exit modal (hidden by default)
   ═══════════════════════════════════════════ */

/* ─── Sticky Bottom Bar ─── */
.tsf-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(7,8,10,0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid #1e222e;
    padding: 14px 40px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Outfit', sans-serif;
}
.tsf-sticky-bar.tsf-show {
    display: flex;
    transform: translateY(0);
}
.tsf-sticky-bar p {
    font-size: 0.88rem;
    font-weight: 500;
    color: #8890a0;
    margin: 0;
}
.tsf-sticky-bar p strong { color: #eef0f4; }

.tsf-sticky-form {
    display: flex;
    gap: 8px;
}
.tsf-sticky-form .tsf-input {
    background: #151820;
    border: 1px solid #1e222e;
    border-radius: 100px;
    padding: 10px 18px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #eef0f4;
    outline: none;
    width: 220px;
    transition: border-color 0.2s;
}
.tsf-sticky-form .tsf-input::placeholder { color: #4a5060; }
.tsf-sticky-form .tsf-input:focus { border-color: #00e87b; }
.tsf-sticky-form .tsf-btn {
    background: #00e87b;
    color: #07080a;
    border: none;
    padding: 10px 22px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    white-space: nowrap;
}
.tsf-sticky-form .tsf-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,232,123,0.15);
}
.tsf-sticky-close {
    background: none;
    border: none;
    color: #4a5060;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 4px 8px;
    transition: color 0.2s;
    line-height: 1;
}
.tsf-sticky-close:hover { color: #eef0f4; }
.tsf-sticky-bar .tsf-message { display: none; }

/* ─── Exit Intent Modal ─── */
.tsf-exit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: none;
    place-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'Outfit', sans-serif;
}
.tsf-exit-overlay.tsf-show {
    display: grid;
    opacity: 1;
}
.tsf-exit-modal {
    background: #0e1014;
    border: 1px solid #1e222e;
    border-radius: 24px;
    padding: 48px 44px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    transform: scale(0.92);
    transition: transform 0.3s;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.tsf-exit-overlay.tsf-show .tsf-exit-modal {
    transform: scale(1);
}
.tsf-exit-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #4a5060;
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.tsf-exit-close:hover { color: #eef0f4; }
.tsf-exit-modal h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    color: #eef0f4;
    margin: 0 0 8px;
}
.tsf-exit-modal p {
    color: #8890a0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 20px;
}
.tsf-exit-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tsf-exit-form .tsf-input {
    background: #151820;
    border: 1.5px solid #1e222e;
    border-radius: 100px;
    padding: 15px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: #eef0f4;
    outline: none;
    text-align: center;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.tsf-exit-form .tsf-input::placeholder { color: #4a5060; }
.tsf-exit-form .tsf-input:focus {
    border-color: #00e87b;
    box-shadow: 0 0 0 3px rgba(0,232,123,0.15);
}
.tsf-exit-form .tsf-btn {
    background: #00e87b;
    color: #07080a;
    border: none;
    padding: 15px 28px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}
.tsf-exit-form .tsf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,232,123,0.2);
}
.tsf-exit-form .tsf-message {
    font-size: 0.82rem;
    font-weight: 500;
    min-height: 18px;
    opacity: 0;
    transition: opacity 0.3s;
    margin-top: 2px;
}
.tsf-exit-form .tsf-message.show { opacity: 1; }
.tsf-exit-form .tsf-message.success { color: #00e87b; }
.tsf-exit-form .tsf-message.error { color: #ff4757; }
.tsf-exit-skip {
    margin-top: 14px;
    font-size: 0.78rem;
    color: #4a5060;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.tsf-exit-skip:hover { color: #8890a0; }

/* ─── Shared states ─── */
.tsf-btn.is-loading { opacity: 0.7; pointer-events: none; }
.tsf-btn.is-success { background: #00b85f !important; }
.tsf-btn.is-error { background: #ff4757 !important; color: #fff !important; }
@keyframes tsf-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
.tsf-input.shake { animation: tsf-shake 0.35s ease; }

/* ─── Mobile ─── */
@media (max-width: 768px) {
    .tsf-sticky-bar {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 8px;
    }
    .tsf-sticky-bar p {
        width: 100%;
        text-align: center;
        font-size: 0.8rem;
    }
    .tsf-sticky-form { width: 100%; }
    .tsf-sticky-form .tsf-input { flex: 1; width: auto; }
    .tsf-exit-modal { padding: 36px 24px; }
}
