﻿/* referral share modal styles */
.ff-share-msg {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #334155;
}

.ff-share-link {
    display: block;
    margin: 6px 0 12px;
    padding: 6px 8px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: ui-monospace,Menlo,Consolas,monospace;
    font-size: 12px;
    color: #0f172a;
    word-break: break-all;
}

.ff-share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ff-share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(16,24,40,.06);
}

    .ff-share-item i {
        font-size: 16px;
    }

    /* Brand colors */
    .ff-share-item.wa {
        background: #25D366;
        color: #fff;
    }
    /* WhatsApp */
    .ff-share-item.sms {
        background: #0ea5e9;
        color: #fff;
    }
    /* SMS (sky-500) */
    .ff-share-item.mail {
        background: #334155;
        color: #fff;
    }
    /* Email (slate-700) */
    .ff-share-item.tg {
        background: #229ED9;
        color: #fff;
    }
    /* Telegram */
    .ff-share-item.tw {
        background: #000;
        color: #fff;
    }
    /* X / Twitter */
    .ff-share-item.rd {
        background: #FF4500;
        color: #fff;
    }
    /* Reddit */
    .ff-share-item.copy {
        background: #111827;
        color: #fff;
    }
    /* Copy */

    .ff-share-item:hover {
        filter: brightness(0.98);
    }

/* =========================================================
       NAMESPACE: ffref-
       px-based sizing to avoid rem/html font-size shrink on sites
       ========================================================= */

#ffref-modalRoot,
#ffref-modalRoot *,
#ffref-modalRoot *::before,
#ffref-modalRoot *::after {
    box-sizing: border-box;
}

#ffref-modalRoot {
    all: initial;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    color: #fff !important;
    position: fixed;
    inset: 0;
    z-index: 10;
    display: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

    #ffref-modalRoot * {
        font-family: inherit !important;
    }

    #ffref-modalRoot.ffref-isOpen,
    #ffref-modalRoot[aria-hidden='false'] {
        display: flex;
        align-items: center;
        justify-content: center;
    }

#ffref-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
}

#ffref-dialog {
    position: relative;
    width: min(980px, calc(100% - 32px));
    max-width: 100%;
    border-radius: 18px;
    padding: 20px;
    background: radial-gradient(900px 600px at 15% 10%, rgba(255,44,150,0.22), transparent 60%), radial-gradient(800px 500px at 90% 20%, rgba(80,73,155,0.25), transparent 55%), linear-gradient(180deg, rgba(18,12,26,0.98), rgba(10,8,16,0.98));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 22px 70px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,44,150,0.10) inset;
    max-height: calc(100svh - 32px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    animation: ffrefModalIn 220ms ease-out forwards;
}

@keyframes ffrefModalIn {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#ffref-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

#ffref-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 7px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.02em;
    /*background: rgba(255,44,150,0.16);*/
    /*border: 1px solid rgba(255,44,150,0.35);*/
    color: #ffd3ea;
    white-space: nowrap;
    max-width: 100%;
}

#ffref-badgeLogo {
    height: 38px;
    width: auto;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}

#ffref-topbarRight {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

#ffref-optoutLabel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: rgba(255,255,255,0.86);
    font-weight: 900;
    font-size: 14px;
    white-space: nowrap;
}

#ffref-optoutCheckbox {
    width: 16px;
    height: 16px;
    accent-color: #ff2c96;
}

#ffref-closeX {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
    padding-bottom: 5px;
}

    #ffref-closeX:hover {
        background: rgba(255,255,255,0.10);
        border-color: rgba(255,255,255,0.20);
        transform: scale(1.02);
    }

#ffref-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

#ffref-heroTitle {
    margin: 0;
    font-weight: 950;
    line-height: 1.05;
    font-size: clamp(27px, 3.4vw, 42px);
}

#ffref-heroSub {
    margin: 9px 0 0;
    color: rgba(255,255,255,0.86);
    line-height: 1.45;
    font-size: clamp(16px, 1.55vw, 18px);
}

    #ffref-heroSub strong {
        color: #fff;
    }

#ffref-heroTrust1,
#ffref-heroTrust2 {
    margin: 9px 0 0;
    color: rgba(255,255,255,0.72);
    line-height: 1.35;
    font-size: 15px;
}

#ffref-statBox {
    width: 142px;
    height: 142px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    /*background:
        radial-gradient(80px 80px at 30% 25%, rgba(255,44,150,0.40), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.20));*/
    border: 1px solid rgba(255,44,150,0.25);
    box-shadow: 0 0 0 1px rgba(255,44,150,0.10) inset;
    text-align: center;
    padding: 12px;
    max-width: 100%;
}

#ffref-statNum {
    font-weight: 950;
    font-size: 50px;
    line-height: 1;
    color: #ff2c96;
    text-shadow: 0 10px 30px rgba(255,44,150,0.35);
    margin: 0;
}

#ffref-statLabel {
    margin: 6px 0 0;
    font-weight: 850;
    font-size: 15px;
    color: rgba(255,255,255,0.90);
    line-height: 1.15;
}

#ffref-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 16px;
    margin-top: 4px;
}

#ffref-cardHow,
#ffref-cardRef {
    border-radius: 16px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    max-width: 100%;
}

#ffref-cardRef {
    background: radial-gradient(500px 280px at 30% 0%, rgba(255,44,150,0.18), transparent 60%), linear-gradient(180deg, rgba(80,73,155,0.16), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,44,150,0.18);
    box-shadow: 0 0 0 1px rgba(255,44,150,0.10) inset;
}

#ffref-stepsTitle {
    margin: 0 0 12px;
    font-weight: 950;
    font-size: 17px;
    color: rgba(255,255,255,0.92);
}

#ffref-stepsWrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
}

.ffref-stepItem {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    border-radius: 14px;
    padding: 12px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.10);
}

.ffref-stepNum {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    color: #fff;
    background: rgba(255,44,150,0.22);
    border: 1px solid rgba(255,44,150,0.35);
    flex: 0 0 auto;
}

.ffref-stepText {
    margin: 0;
    color: rgba(255,255,255,0.88);
    font-weight: 800;
    line-height: 1.25;
    font-size: 16px;
}

.ffref-stepHint {
    margin: 3px 0 0;
    color: rgba(255,255,255,0.68);
    line-height: 1.25;
    font-size: 15px;
    font-weight: 700;
}

#ffref-fineprint {
    margin: 14px 0 0;
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

#ffref-refLabel {
    margin: 0 0 7px;
    color: rgba(255,255,255,0.78);
    font-weight: 800;
    font-size: 15px;
}

#ffref-linkRow {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

#ffref-referralCodeInput {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 14px 15px;
    border-radius: 12px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.92);
    outline: none;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

#ffref-copyCodeBtn {
    flex: 0 0 auto;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
    white-space: nowrap;
}

    #ffref-copyCodeBtn:hover {
        background: rgba(255,255,255,0.10);
        border-color: rgba(255,255,255,0.22);
        transform: translateY(-1px);
    }

#ffref-orDivider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 14px 0 6px;
    color: rgba(255,255,255,0.70);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

    #ffref-orDivider::before,
    #ffref-orDivider::after {
        content: '';
        height: 1px;
        flex: 1 1 auto;
        background: rgba(255,255,255,0.16);
    }

    #ffref-orDivider span {
        display: inline-block;
    }

/* NEW: label above share preview */
#ffref-shareLabel {
    margin: 12px 0 6px;
    font-weight: 900;
    font-size: 13px;
    color: rgba(255,255,255,0.78);
    letter-spacing: 0.01em;
}

#ffref-sharePreview {
    margin-top: 0;
    border-radius: 14px;
    padding: 14px 14px;
    background: radial-gradient(420px 220px at 20% 0%, rgba(255,44,150,0.16), transparent 60%), linear-gradient(180deg, rgba(0,0,0,0.18), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 0 0 1px rgba(255,44,150,0.08) inset;
    max-width: 100%;
}

#ffref-shareText {
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
    font-size: 16px;
    color: rgba(255,255,255,0.92);
}

    #ffref-shareText strong {
        color: #fff;
    }

#ffref-actions {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.ffref-btn {
    width: 100%;
    padding: 16px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-weight: 950;
    font-size: 1.7rem;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

    .ffref-btn:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,0.10);
        border-color: rgba(255,255,255,0.22);
    }

#ffref-primaryBtn {
    border-color: rgba(255,44,150,0.40);
    background: linear-gradient(180deg, rgba(255,44,150,0.96), rgba(230,28,128,0.96));
    box-shadow: 0 10px 30px rgba(255,44,150,0.25);
}

    #ffref-primaryBtn:hover {
        background: linear-gradient(180deg, rgba(255,44,150,1), rgba(230,28,128,1));
    }

#ffref-snoozeBtn {
    background: rgba(0,0,0,0.18);
    border-color: rgba(255,255,255,0.12);
    font-weight: 850;
}

#ffref-bottomRow {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

#ffref-closeBtn {
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.18);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
    white-space: nowrap;
}

    #ffref-closeBtn:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.20);
    }

#ffref-demoWrap {
    padding: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#ffref-openBtn {
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
}

@media (max-width: 860px) {
    #ffref-grid {
        grid-template-columns: 1fr;
    }

    #ffref-hero {
        grid-template-columns: 1fr;
    }

    #ffref-statBox {
        width: 100%;
        height: auto;
        border-radius: 16px;
        padding: 14px;
    }

    #ffref-statNum {
        font-size: 45px;
    }

    #ffref-statLabel {
        font-size: 16px;
    }

    #ffref-topbarRight {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 520px) {
    #ffref-linkRow {
        flex-direction: column;
        align-items: stretch;
    }

    #ffref-copyCodeBtn {
        width: 100%;
    }

    #ffref-closeBtn {
        width: 100%;
    }
}
