#osmani-free-pack-app {
    --ofp-accent: #b88935;
    --ofp-surface: #11110f;
    --ofp-border: rgba(255, 255, 255, .11);
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    isolation: isolate;
}

#osmani-free-pack-app,
#osmani-free-pack-app * { box-sizing: border-box; }

.ofp-lock-scroll {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.ofp-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(7, 7, 7, .68);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.ofp-no-backdrop {
    background: rgba(0, 0, 0, .12);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.ofp-modal {
    position: fixed;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: min(var(--ofp-width, 920px), calc(100vw - 40px));
    max-height: min(760px, calc(100dvh - 40px));
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    direction: ltr;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--ofp-accent) 48%, transparent);
    border-radius: 22px;
    background: var(--ofp-surface);
    color: #fff;
    box-shadow: 0 40px 110px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 255, 255, .035) inset;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -47%) scale(.965);
    transition: opacity .3s ease, transform .42s cubic-bezier(.22, 1, .36, 1), visibility .3s ease;
    overscroll-behavior: contain;
}

.ofp-is-open .ofp-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ofp-is-open .ofp-modal {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.ofp-media {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    background: #181714;
}

.ofp-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 55%, rgba(0, 0, 0, .18)), linear-gradient(0deg, rgba(0, 0, 0, .3), transparent 40%);
    pointer-events: none;
}

.ofp-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 510px;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
    filter: saturate(.95) contrast(1.03);
}

.ofp-content {
    direction: rtl;
    min-width: 0;
    padding: 56px 50px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
    background: #11110f;
    background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--ofp-accent) 13%, transparent), transparent 38%), #11110f;
}

.ofp-content::-webkit-scrollbar { width: 5px; }
.ofp-content::-webkit-scrollbar-thumb { border-radius: 5px; background: rgba(255, 255, 255, .18); }

.ofp-brand {
    margin: 0 0 23px;
    color: var(--ofp-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2em;
    direction: ltr;
    text-align: right;
}

.ofp-brand span { opacity: .62; }

.ofp-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: #c4c0b9;
    font-size: 12px;
}

.ofp-eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--ofp-accent);
}

.ofp-content h2 {
    margin: 0 0 8px;
    color: #fff;
    font: inherit;
    font-size: clamp(24px, 2.6vw, 31px);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -.45px;
}

.ofp-content h3 {
    margin: 0 0 18px;
    color: #c9c9c9;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
}

.ofp-desc {
    margin: 0 0 18px;
    color: #efefef;
    font-size: 14px;
    line-height: 2;
}

.ofp-status {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    margin-bottom: 16px;
    padding: 9px 12px;
    border: 1px solid var(--ofp-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: #d7d7d7;
    font-size: 11px;
    line-height: 1.65;
}

.ofp-status-ok {
    border-color: color-mix(in srgb, var(--ofp-accent) 54%, transparent);
    background: color-mix(in srgb, var(--ofp-accent) 11%, transparent);
    color: #f1d795;
}

.ofp-action,
.ofp-close,
.ofp-side-tab {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    font-family: inherit;
    text-transform: none;
    -webkit-tap-highlight-color: transparent;
}

.ofp-action {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    background: linear-gradient(115deg, var(--ofp-accent), #d8b66f);
    background: linear-gradient(115deg, var(--ofp-accent), color-mix(in srgb, var(--ofp-accent) 72%, #fff));
    color: #17110a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    cursor: pointer;
    box-shadow: 0 12px 30px color-mix(in srgb, var(--ofp-accent) 22%, transparent);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.ofp-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 16px 36px color-mix(in srgb, var(--ofp-accent) 30%, transparent);
}

.ofp-action span {
    display: inline-block;
    margin-right: 7px;
    transition: transform .2s ease;
}

.ofp-action:hover span { transform: translateX(-4px); }

.ofp-footnote {
    margin-top: 12px;
    color: #777;
    font-size: 10px;
    line-height: 1.8;
    text-align: center;
}

.ofp-close {
    position: absolute;
    z-index: 5;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0 0 3px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: rgba(10, 10, 10, .58);
    color: #fff;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.ofp-close:hover {
    transform: rotate(90deg);
    border-color: var(--ofp-accent);
    background: var(--ofp-accent);
    color: #17110a;
}

/* The collapsed control always stays at the exact right-center of the viewport. */
.ofp-side-tab {
    position: fixed;
    z-index: 3;
    top: 50%;
    right: max(0px, env(safe-area-inset-right));
    min-height: 146px;
    padding: 17px 10px;
    border: 1px solid var(--ofp-accent);
    border-right: 0;
    border-radius: 12px 0 0 12px;
    background: rgba(17, 17, 15, .97);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .025em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(110%, -50%);
    box-shadow: 0 14px 42px rgba(0, 0, 0, .32);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, visibility .25s ease, background .2s ease;
}

.ofp-side-tab::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 0;
    width: 2px;
    height: 40px;
    border-radius: 2px;
    background: var(--ofp-accent);
}

.ofp-side-tab:hover { background: #1d1b17; }

.ofp-app.ofp-ready:not(.ofp-is-open) .ofp-side-tab {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, -50%);
}

.ofp-is-open .ofp-side-tab {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(110%, -50%);
}

.ofp-action:focus-visible,
.ofp-close:focus-visible,
.ofp-side-tab:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.ofp-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 767px) {
    .ofp-backdrop {
        background: rgba(5, 5, 5, .74);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }

    .ofp-modal {
        width: calc(100vw - 20px);
        height: min(720px, calc(var(--ofp-viewport-height, 100dvh) - 20px));
        max-height: calc(var(--ofp-viewport-height, 100dvh) - 20px);
        grid-template-columns: 1fr;
        grid-template-rows: clamp(155px, 31dvh, 235px) minmax(0, 1fr);
        border-radius: 18px;
        transform: translate(-50%, -46%) scale(.975);
    }

    .ofp-media { min-height: 0; }

    .ofp-media::after { background: linear-gradient(0deg, rgba(17, 17, 15, .55), transparent 47%); }

    .ofp-media img {
        min-height: 0;
        object-position: center 43%;
    }

    .ofp-content {
        justify-content: flex-start;
        padding: 22px 20px max(18px, env(safe-area-inset-bottom));
        background: #11110f;
        background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--ofp-accent) 12%, transparent), transparent 40%), #11110f;
    }

    .ofp-brand { margin-bottom: 11px; font-size: 10px; }
    .ofp-eyebrow { margin-bottom: 6px; font-size: 10px; }

    .ofp-content h2 {
        margin-bottom: 5px;
        font-size: clamp(20px, 6vw, 24px);
        line-height: 1.5;
    }

    .ofp-content h3 {
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 1.8;
    }

    .ofp-desc {
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 1.9;
    }

    .ofp-status {
        width: 100%;
        margin-bottom: 12px;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 10px;
    }

    .ofp-action {
        flex: 0 0 auto;
        min-height: 45px;
        border-radius: 10px;
        padding: 10px 14px;
        font-size: 12px;
    }

    .ofp-footnote { margin-top: 8px; font-size: 9px; }

    .ofp-close {
        top: max(10px, env(safe-area-inset-top));
        right: 10px;
        width: 40px;
        height: 40px;
        background: rgba(6, 6, 6, .72);
    }

    .ofp-side-tab {
        right: max(0px, env(safe-area-inset-right));
        min-height: 126px;
        padding: 14px 9px;
        border-radius: 11px 0 0 11px;
        font-size: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    }
}

@media (max-width: 380px) {
    .ofp-modal {
        width: calc(100vw - 14px);
        height: calc(var(--ofp-viewport-height, 100dvh) - 14px);
        max-height: calc(var(--ofp-viewport-height, 100dvh) - 14px);
        grid-template-rows: minmax(135px, 28dvh) minmax(0, 1fr);
        border-radius: 15px;
    }

    .ofp-content { padding: 17px 16px max(14px, env(safe-area-inset-bottom)); }
    .ofp-content h2 { font-size: 19px; }
    .ofp-content h3 { font-size: 11px; }
    .ofp-desc { font-size: 11px; line-height: 1.8; }
    .ofp-footnote { display: none; }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 560px) {
    .ofp-modal {
        width: calc(100vw - 18px);
        height: calc(var(--ofp-viewport-height, 100dvh) - 16px);
        max-height: calc(var(--ofp-viewport-height, 100dvh) - 16px);
        grid-template-columns: minmax(190px, 40%) minmax(0, 1fr);
        grid-template-rows: 1fr;
    }

    .ofp-media img { min-height: 100%; }
    .ofp-content { padding: 22px 42px 18px 24px; }
    .ofp-brand { margin-bottom: 8px; }
    .ofp-content h2 { font-size: 19px; }
    .ofp-content h3 { margin-bottom: 7px; }
    .ofp-desc { margin-bottom: 8px; line-height: 1.75; }
    .ofp-status { margin-bottom: 8px; }
    .ofp-footnote { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ofp-modal,
    .ofp-backdrop,
    .ofp-side-tab,
    .ofp-action,
    .ofp-close,
    .ofp-action span {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
