/* Offer popup styles, inline in the rankyfy.com homepage. */
/* Offer modal — every rule is scoped to .rfo so it can't leak into (or be broken by) page styles */
    .rfo {
        --rfo-accent: #FF5500;
        --rfo-accent-2: #FF8A3D;
        --rfo-ink: #111827;
        --rfo-body: #4B5563;
        --rfo-muted: #6B7280;
        --rfo-line: #ECEEF3;
        --rfo-ease: cubic-bezier(.22, 1, .36, 1);
        position: fixed;
        inset: 0;
        z-index: 100050;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        font-family: inherit;
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
    }

    .rfo[hidden] {
        display: none !important;
    }

    .rfo *,
    .rfo *::before,
    .rfo *::after {
        box-sizing: border-box;
    }

    .rfo-sr {
        position: absolute !important;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .rfo-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(10, 10, 18, .55);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        opacity: 0;
        transition: opacity .4s ease;
    }

    .rfo-dialog {
        position: relative;
        width: 100%;
        max-width: 860px;
        max-height: calc(100vh - 40px);
        max-height: calc(100dvh - 40px);
        display: grid;
        grid-template-columns: 1fr 1fr;
        overflow: hidden;
        border-radius: 26px;
        background: #fff;
        box-shadow: 0 40px 100px rgba(0, 0, 0, .32);
        outline: none;
        opacity: 0;
        transform: translateY(28px) scale(.94);
        transition: opacity .45s ease, transform .6s var(--rfo-ease);
    }

    .rfo.is-open .rfo-backdrop { opacity: 1; }
    .rfo.is-open .rfo-dialog { opacity: 1; transform: none; }
    .rfo.is-closing .rfo-backdrop { opacity: 0; transition-duration: .3s; }
    .rfo.is-closing .rfo-dialog { opacity: 0; transform: translateY(16px) scale(.97); transition-duration: .3s; }

    /* Close */
    .rfo-close {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 3;
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        padding: 0;
        margin: 0;
        border: 1px solid var(--rfo-line);
        border-radius: 50%;
        background: rgba(255, 255, 255, .95);
        color: var(--rfo-ink);
        cursor: pointer;
        transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
    }

    .rfo-close svg { transition: transform .35s var(--rfo-ease); }
    .rfo-close:hover { background: #FFF1EA; color: var(--rfo-accent); border-color: rgba(255, 85, 0, .3); }
    .rfo-close:hover svg { transform: rotate(90deg); }
    .rfo-close:active { transform: scale(.94); }

    /* Visual side: warm panel with the offer artwork */
    .rfo-visual {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 36px 26px;
        overflow: hidden;
        background:
            radial-gradient(circle at 30% 20%, #FFF7F0 0%, transparent 55%),
            radial-gradient(circle at 80% 85%, #FFD9C2 0%, transparent 60%),
            linear-gradient(160deg, #FFF3EA 0%, #FFE6D6 100%);
    }

    .rfo-dots {
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255, 85, 0, .16) 1.2px, transparent 1.2px);
        background-size: 18px 18px;
        mask-image: radial-gradient(circle at 50% 50%, #000 15%, transparent 72%);
        -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 15%, transparent 72%);
    }

    .rfo-glow {
        position: absolute;
        border-radius: 50%;
        filter: blur(36px);
    }

    .rfo-glow--one {
        width: 280px;
        height: 200px;
        left: 50%;
        top: 50%;
        margin: -80px 0 0 -140px;
        background: rgba(255, 106, 26, .35);
        animation: rfo-breathe 4s ease-in-out infinite;
    }

    .rfo-glow--two {
        width: 160px;
        height: 160px;
        right: -40px;
        top: -40px;
        background: rgba(255, 196, 120, .55);
        animation: rfo-drift 9s ease-in-out infinite alternate;
    }

    .rfo-art {
        position: relative;
        z-index: 1;
        display: block;
        width: 100%;
        max-width: 380px;
        height: auto;
        filter: drop-shadow(0 22px 28px rgba(201, 66, 0, .28));
        transform: scale(.8) rotate(-8deg);
        opacity: 0;
        transition: transform .9s var(--rfo-ease) .1s, opacity .5s ease .1s;
    }

    .rfo.is-open .rfo-art {
        opacity: 1;
        transform: none;
        animation: rfo-bob 4.5s ease-in-out 1s infinite;
    }

    .rfo-save-chip {
        position: absolute;
        z-index: 2;
        left: 22px;
        bottom: 22px;
        padding: 7px 13px;
        border-radius: 999px;
        font-size: 12.5px;
        font-weight: 800;
        color: #fff;
        background: #111827;
        box-shadow: 0 10px 22px rgba(17, 24, 39, .25);
        transform: translateY(10px);
        opacity: 0;
        transition: transform .5s var(--rfo-ease) .55s, opacity .4s ease .55s;
    }

    .rfo.is-open .rfo-save-chip { transform: rotate(-4deg); opacity: 1; }

    /* little twinkling sparkles */
    .rfo-spark {
        position: absolute;
        z-index: 2;
        width: 14px;
        height: 14px;
        background: var(--rfo-accent);
        clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
        animation: rfo-twinkle 2.6s ease-in-out infinite;
    }

    .rfo-spark--a { top: 16%; left: 14%; }
    .rfo-spark--b { top: 12%; right: 20%; width: 10px; height: 10px; animation-delay: -.9s; background: #FFB347; }
    .rfo-spark--c { bottom: 20%; right: 12%; width: 12px; height: 12px; animation-delay: -1.7s; }

    /* Content side */
    .rfo-body {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 26px 32px 24px;
        overflow-y: auto;
        color: var(--rfo-body);
    }

    .rfo-body > * {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity .5s ease, transform .6s var(--rfo-ease);
    }

    .rfo.is-open .rfo-body > * { opacity: 1; transform: none; }
    .rfo.is-open .rfo-body > *:nth-child(1) { transition-delay: .10s; }
    .rfo.is-open .rfo-body > *:nth-child(2) { transition-delay: .15s; }
    .rfo.is-open .rfo-body > *:nth-child(3) { transition-delay: .20s; }
    .rfo.is-open .rfo-body > *:nth-child(4) { transition-delay: .25s; }
    .rfo.is-open .rfo-body > *:nth-child(5) { transition-delay: .30s; }
    .rfo.is-open .rfo-body > *:nth-child(6) { transition-delay: .35s; }
    .rfo.is-open .rfo-body > *:nth-child(7) { transition-delay: .40s; }

    .rfo-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-right: 44px;
        font-size: 16px;
        font-weight: 800;
        letter-spacing: -0.01em;
        color: var(--rfo-ink);
    }

    .rfo-brand img {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

    .rfo-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .rfo-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 999px;
        font-size: 12.5px;
        font-weight: 700;
        color: var(--rfo-muted);
        background: #F3F4F6;
    }

    .rfo-badge--hot {
        color: #fff;
        background: linear-gradient(135deg, var(--rfo-accent-2), var(--rfo-accent));
        box-shadow: 0 6px 14px rgba(255, 85, 0, .3);
        animation: rfo-pop 2.8s ease-in-out 1.2s infinite;
    }

    .rfo-offer {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin: 0;
    }

    .rfo-eyebrow {
        font-size: 12.5px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--rfo-accent);
    }

    .rfo-price-row {
        display: flex;
        align-items: baseline;
        gap: 10px;
        line-height: 1;
    }

    .rfo-price {
        font-size: 58px;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
        background: linear-gradient(135deg, var(--rfo-accent-2), var(--rfo-accent) 60%, #E64600);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .rfo-price-old {
        position: relative;
        font-size: 24px;
        font-weight: 700;
        color: #9CA3AF;
    }

    /* strike line draws itself once the modal opens */
    .rfo-price-old::after {
        content: "";
        position: absolute;
        left: -3px;
        right: -3px;
        top: 52%;
        height: 2.5px;
        border-radius: 2px;
        background: #EF4444;
        transform: scaleX(0) rotate(-8deg);
        transform-origin: left center;
        transition: transform .5s var(--rfo-ease) .7s;
    }

    .rfo.is-open .rfo-price-old::after { transform: scaleX(1) rotate(-8deg); }

    .rfo-price-per {
        font-size: 16px;
        font-weight: 600;
        color: var(--rfo-muted);
    }

    .rfo-desc {
        margin: 0;
        font-size: 14.5px;
        line-height: 1.55;
        color: var(--rfo-body);
    }

    .rfo-desc strong {
        color: var(--rfo-ink);
        font-weight: 700;
    }

    .rfo-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px 12px;
    }

    .rfo-list li {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 0;
        font-size: 13.5px;
        font-weight: 500;
        line-height: 1.3;
        color: var(--rfo-ink);
    }

    .rfo-list li::before { content: none; }

    .rfo-list svg {
        flex: none;
        width: 20px;
        height: 20px;
        padding: 3px;
        border-radius: 50%;
        color: #fff;
        background: #10B981;
    }

    .rfo-cta {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 54px;
        margin-top: 4px;
        padding: 0 20px;
        overflow: hidden;
        border-radius: 999px;
        font-size: 15.5px;
        font-weight: 700;
        color: #fff !important;
        text-decoration: none !important;
        background: linear-gradient(135deg, #FF7A2F, var(--rfo-accent) 55%, #E64600);
        box-shadow: 0 14px 30px rgba(255, 85, 0, .32);
        transition: transform .2s ease, box-shadow .25s ease;
    }

    /* shine sweep */
    .rfo-cta::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
        transform: translateX(-100%);
        animation: rfo-shine 3.2s ease-in-out 1s infinite;
    }

    .rfo-cta svg,
    .rfo-cta span { position: relative; }
    .rfo-cta svg { flex: none; transition: transform .25s ease; }
    .rfo-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(255, 85, 0, .42); }
    .rfo-cta:hover .rfo-cta-arrow { transform: translateX(4px); }
    .rfo-cta:hover .rfo-cta-tag { transform: rotate(-12deg); }
    .rfo-cta:active { transform: scale(.98); }

    .rfo-links {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--rfo-line);
    }

    .rfo-link {
        padding: 0;
        margin: 0;
        border: 0;
        background: none;
        font: inherit;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--rfo-accent) !important;
        text-decoration: none !important;
        cursor: pointer;
    }

    .rfo-link:hover { text-decoration: underline !important; }
    .rfo-link--muted { color: var(--rfo-muted) !important; font-weight: 500; }

    .rfo-close:focus-visible,
    .rfo-cta:focus-visible,
    .rfo-link:focus-visible {
        outline: 2px solid var(--rfo-accent);
        outline-offset: 3px;
    }

    @keyframes rfo-bob {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        50% { transform: translateY(-10px) rotate(-1.5deg); }
    }

    @keyframes rfo-breathe {
        0%, 100% { transform: scale(1); opacity: .8; }
        50% { transform: scale(1.12); opacity: 1; }
    }

    @keyframes rfo-drift {
        from { transform: translate(0, 0); }
        to { transform: translate(-24px, 18px); }
    }

    @keyframes rfo-twinkle {
        0%, 100% { transform: scale(.6) rotate(0deg); opacity: .4; }
        50% { transform: scale(1.1) rotate(45deg); opacity: 1; }
    }

    @keyframes rfo-pop {
        0%, 86%, 100% { transform: scale(1); }
        92% { transform: scale(1.08); }
    }

    @keyframes rfo-shine {
        0%, 60% { transform: translateX(-100%); }
        100% { transform: translateX(100%); }
    }

    /* Tablet / phone: stacked, slides up from the bottom */
    @media (max-width: 767px) {
        .rfo {
            align-items: flex-end;
            padding: 0;
        }

        .rfo-dialog {
            grid-template-columns: 1fr;
            max-height: 92vh;
            max-height: 92dvh;
            border-radius: 24px 24px 0 0;
            overflow-y: auto;
            transform: translateY(100%);
        }

        .rfo.is-closing .rfo-dialog { transform: translateY(100%); }

        .rfo-visual { padding: 22px 20px 18px; }
        .rfo-art { max-width: 250px; }
        .rfo-save-chip { left: 16px; bottom: 14px; font-size: 11.5px; }

        .rfo-body {
            padding: 20px 20px calc(18px + env(safe-area-inset-bottom));
            overflow: visible;
            gap: 12px;
        }

        .rfo-brand { padding-right: 0; }
        .rfo-price { font-size: 48px; }
        .rfo-list { grid-template-columns: 1fr; gap: 8px; }

        .rfo-links {
            flex-direction: column-reverse;
            align-items: center;
            gap: 10px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .rfo-backdrop,
        .rfo-dialog,
        .rfo-body > *,
        .rfo-art,
        .rfo-save-chip,
        .rfo-price-old::after {
            transition-duration: .01ms !important;
            transition-delay: 0s !important;
        }

        .rfo-glow,
        .rfo-spark,
        .rfo-art,
        .rfo-badge--hot,
        .rfo-cta::after {
            animation: none !important;
        }
    }
