/* ==========================================================================
   SIFOR 2.0 — Interactive Living Sticker Honeycomb Hive & Match Notifications
   True interlocking hexagonal honeycomb layout where every cell showcases the
   authentic Layer 0 (First Frame) die-cut sticker artwork + in-app 1-click
   Instagram/Social match notification banner.
   ========================================================================== */

.sifor-hive-section {
    position: relative;
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 12px 16px 96px;
}

.sifor-hive-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 22px;
    margin-bottom: 16px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 61, 133, 0.14) 0%, rgba(124, 58, 237, 0.12) 52%, rgba(56, 189, 248, 0.12) 100%);
    border: 2px solid var(--border-ink, rgba(255, 255, 255, 0.16));
    box-shadow: var(--shadow-hard, 0 10px 28px rgba(0, 0, 0, 0.16));
}

.sifor-hive-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sifor-hive-title {
    margin: 0;
    font-family: var(--font-display, 'Fredoka', sans-serif);
    font-size: clamp(22px, 3vw, 30px);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sifor-hive-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
}

.sifor-hive-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.sifor-hive-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    border: 2px solid #111111;
    background: #111111;
    color: #ffffff;
    font-family: var(--font-display, 'Fredoka', sans-serif);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 0 #000000;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sifor-hive-cta-btn:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #000000;
}

.hero-action-chip {
    height: 44px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
}

/* ==========================================================================
   3-Step Instant Clarity Explainer for First-Timers
   ========================================================================== */
.sifor-hive-explainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.sifor-explainer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 20px;
    background: var(--color-surface, rgba(255, 255, 255, 0.05));
    border: 1.5px solid var(--border-ink, rgba(255, 255, 255, 0.16));
    box-shadow: var(--shadow-hard-sm, 0 3px 0 #0f172a);
    backdrop-filter: blur(8px);
}

.sifor-explainer-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.sifor-explainer-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sifor-explainer-body strong {
    font-family: var(--font-display, 'Fredoka', sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-text, #ffffff);
}

.sifor-explainer-body span {
    font-size: 12px;
    opacity: 0.82;
    line-height: 1.3;
    color: var(--color-text, #ffffff);
}

/* Tap Hint directly above Honeycomb */
.sifor-hive-tap-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 16px;
    margin: 4px auto 16px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.12);
    border: 1.5px dashed rgba(124, 58, 237, 0.38);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-text, #ffffff);
    opacity: 0.92;
    cursor: default;
    user-select: none;
}

.sifor-tap-bounce {
    display: inline-block;
    animation: siforTapBounce 1.6s ease-in-out infinite;
}

@keyframes siforTapBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.sifor-lbl-mobile { display: none; }
.sifor-lbl-desktop { display: inline; }

/* ==========================================================================
   In-App Match Notification Banner (1-Click Social Network Handoff)
   ========================================================================== */
.sifor-match-notif-banner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(168, 255, 0, 0.14) 0%, rgba(0, 240, 255, 0.14) 55%, rgba(255, 0, 127, 0.14) 100%);
    border: 2.5px solid #0f172a;
    box-shadow: 0 6px 0 #0f172a, 0 12px 28px rgba(0, 0, 0, 0.15);
}

.sifor-match-notif-banner[hidden] {
    display: none !important;
}

.sifor-match-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.sifor-match-notif-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #a8ff00;
    color: #0f172a;
    border: 2px solid #0f172a;
    font-family: var(--font-display, 'Fredoka', sans-serif);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 #0f172a;
}

.sifor-match-notif-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sifor-match-notif-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 16px;
    background: var(--color-surface, rgba(255, 255, 255, 0.9));
    color: var(--color-text, #0f172a);
    border: 2px solid #0f172a;
    box-shadow: 0 3px 0 #0f172a;
}

.sifor-match-notif-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13.5px;
}

.sifor-match-notif-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.sifor-match-oneclick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 2px solid #0f172a;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: #ffffff;
    font-family: var(--font-display, 'Fredoka', sans-serif);
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 3px 0 #0f172a;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.sifor-match-oneclick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 #0f172a;
}

.sifor-match-accept-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 2px solid #0f172a;
    background: #a8ff00;
    color: #0f172a;
    font-family: var(--font-display, 'Fredoka', sans-serif);
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 3px 0 #0f172a;
    transition: transform 0.14s ease;
}

.sifor-match-accept-btn:hover {
    transform: translateY(-2px);
}

/* Social Discovery Filter Bar */
.sifor-hive-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.sifor-hive-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.sifor-hive-filter-row::-webkit-scrollbar {
    display: none;
}

.sifor-hive-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1.5px solid var(--border-ink, rgba(127, 127, 127, 0.28));
    background: var(--color-surface, rgba(255, 255, 255, 0.06));
    color: var(--color-text, inherit);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.sifor-hive-chip:hover {
    transform: translateY(-1px);
}

.sifor-hive-chip.is-active {
    background: #ff1694;
    color: #ffffff;
    border-color: #ff1694;
    box-shadow: none;
    outline: none;
}

.sifor-hive-chip:focus,
.sifor-hive-chip:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.sifor-hive-search-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.sifor-hive-search {
    flex: 1;
    min-width: 220px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid var(--border-ink, rgba(127, 127, 127, 0.3));
    background: var(--color-surface, rgba(255, 255, 255, 0.06));
    color: var(--color-text, inherit);
    font-size: 14px;
}

.sifor-hive-style-select {
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1.5px solid var(--border-ink, rgba(127, 127, 127, 0.3));
    background: var(--color-surface, rgba(255, 255, 255, 0.06));
    color: var(--color-text, inherit);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* ==========================================================================
   TRUE INTERLOCKING HONEYCOMB HIVE LAYOUT
   Staggered hexagonal rows where odd rows interlock between even rows,
   and every cell showcases the real Layer 0 (First-Frame) die-cut sticker.
   ========================================================================== */
.sifor-honeycomb-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 8px 60px;
    position: relative;
    box-sizing: border-box;
}

.sifor-hive-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    width: 100%;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

/* Mobile Screens (< 640px) - True 2 / 1 Interlocking Honeycomb Hive */
@media (max-width: 639px) {
    .sifor-lbl-desktop { display: none; }
    .sifor-lbl-mobile { display: inline; }

    .sifor-hive-section {
        padding: 6px 8px 60px;
    }
    .sifor-hive-hero {
        padding: 14px 16px;
        margin-bottom: 12px;
        border-radius: 20px;
        gap: 12px;
    }
    .sifor-hive-title {
        font-size: 21px;
    }
    .sifor-hive-subtitle {
        font-size: 13px;
        line-height: 1.35;
    }
    .sifor-hive-hero-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .sifor-hive-cta-btn {
        flex: 1 1 auto;
        justify-content: center;
        height: 40px;
        font-size: 13.5px;
        padding: 0 16px;
    }
    .hero-action-chip {
        height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    .sifor-hive-explainer {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        gap: 10px;
        padding: 2px 2px 6px;
        margin-bottom: 14px;
        -webkit-overflow-scrolling: touch;
    }
    .sifor-hive-explainer::-webkit-scrollbar {
        display: none;
    }
    .sifor-explainer-item {
        flex: 0 0 250px;
        padding: 10px 12px;
        border-radius: 16px;
    }

    .sifor-hive-controls {
        gap: 8px;
        margin-bottom: 12px;
    }
    .sifor-hive-chip {
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }
    .sifor-hive-search-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .sifor-hive-search {
        width: 100%;
        min-width: 0;
        height: 38px;
        font-size: 13px;
        box-sizing: border-box;
    }
    .sifor-hive-style-select {
        width: 100%;
        height: 38px;
        font-size: 12.5px;
        box-sizing: border-box;
    }

    .sifor-honeycomb-grid {
        padding: 10px 4px 50px;
        overflow-x: hidden;
    }
    .sifor-hive-row {
        gap: 12px;
        flex-wrap: nowrap;
    }
    .sifor-hive-row + .sifor-hive-row {
        margin-top: -34px;
    }
    .sifor-hive-cell {
        width: 156px;
        flex: 0 0 156px;
        max-width: calc(50vw - 12px);
    }
    .sifor-hive-sticker-diecut {
        width: 140px;
        height: 140px;
        max-width: calc(50vw - 18px);
        max-height: calc(50vw - 18px);
    }
    .sifor-hive-cell-footer {
        margin-top: 4px;
        gap: 3px;
    }
    .sifor-hive-creator-row {
        font-size: 11px;
        gap: 4px;
    }
    .sifor-hive-social-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    .sifor-hive-style-pill {
        font-size: 9px;
        padding: 2px 7px;
        top: 4px;
        right: -2px;
    }
    .sifor-hive-layer-pill {
        font-size: 8.5px;
        padding: 2px 6px;
        top: 4px;
        left: -2px;
    }
    .sifor-hive-thought-pill {
        font-size: 10px;
        padding: 2px 8px;
        max-width: 130px;
        bottom: 2px;
    }
    .sifor-hive-constellation-pill {
        font-size: 9px;
        padding: 2px 7px;
        top: -6px;
    }
    .sifor-hive-constellation-partner-orb {
        width: 28px;
        height: 28px;
        font-size: 14px;
        bottom: 24px;
        right: 0px;
    }
}

/* Tablet Screens (640px to 979px) - 3 / 2 Interlocking Honeycomb Hive */
@media (min-width: 640px) and (max-width: 979px) {
    .sifor-honeycomb-grid {
        padding: 16px 8px 60px;
    }
    .sifor-hive-row {
        gap: 16px;
        flex-wrap: nowrap;
    }
    .sifor-hive-row + .sifor-hive-row {
        margin-top: -30px;
    }
    .sifor-hive-cell {
        width: 195px;
        flex: 0 0 195px;
    }
    .sifor-hive-sticker-diecut {
        width: 170px;
        height: 170px;
    }
}

/* Desktop Screens (>= 980px) - 4 / 3 (or 5 / 4) Interlocking Honeycomb Hive */
@media (min-width: 980px) {
    .sifor-hive-row {
        gap: 22px;
        flex-wrap: nowrap;
    }
    .sifor-hive-row + .sifor-hive-row {
        margin-top: -28px;
    }
    .sifor-hive-cell {
        width: 246px;
        flex: 0 0 246px;
    }
    .sifor-hive-sticker-diecut {
        width: 210px;
        height: 210px;
    }
}

.sifor-hive-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: z-index 0s, transform 0.25s ease;
    z-index: 2;
    box-sizing: border-box;
}

.sifor-hive-cell:hover,
.sifor-hive-cell:focus-visible,
.sifor-hive-cell:active {
    z-index: 15;
}

/* First-Frame Die-Cut Sticker Stage (Pure Sticker + Text Underneath, No Hexagon Backdrop) */
.sifor-hive-sticker-diecut {
    position: relative;
    width: 210px;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.28s ease;
    animation: siforStickerIdleFloat 4.2s ease-in-out infinite;
    animation-delay: var(--sticker-delay, 0s);
}

.sifor-hive-sticker-diecut::before {
    display: none;
    /* Hex backdrop disabled per pure sticker layout (legacy clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%)) */
}

.sifor-hive-cell.is-constellation .sifor-hive-sticker-diecut {
    filter: none;
}

.sifor-hive-sticker-inner {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent;
    clip-path: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    overflow: visible;
}

.sifor-hive-cell:hover .sifor-hive-sticker-diecut {
    transform: translateY(-10px) scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.22));
}

/* Isolated Die-Cut Sticker Button Picked from Inside the Snackable */
.sifor-hive-sticker-inner svg,
.sifor-hive-sticker-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    overflow: visible;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
    animation: siforStickerPulse 3s ease-in-out infinite;
    animation-delay: var(--sticker-delay, 0s);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sifor-hive-cell:hover .sifor-hive-sticker-inner svg,
.sifor-hive-cell:hover .sifor-hive-sticker-inner img {
    transform: scale(1.1) rotate(3deg);
}

@keyframes siforPartBob {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-5px) rotate(1.5deg); }
}
@keyframes siforPartSpark {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.18) rotate(18deg); }
}
@keyframes siforPartSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.sifor-hive-sticker-inner .anim-alien-bob,
.sifor-hive-sticker-inner .anim-ufo-hover,
.sifor-hive-sticker-inner .anim-cryo-float,
.sifor-hive-sticker-inner .ls-part-float {
    animation: siforPartBob 3.2s ease-in-out infinite;
    transform-origin: center;
}
.sifor-hive-sticker-inner .anim-spark,
.sifor-hive-sticker-inner .ls-part-pulse,
.sifor-hive-sticker-inner .ls-part-wiggle {
    animation: siforPartSpark 1.8s ease-in-out infinite;
    transform-origin: center;
}
.sifor-hive-sticker-inner .anim-portal-spin,
.sifor-hive-sticker-inner .ls-part-spin {
    animation: siforPartSpin 12s linear infinite;
    transform-origin: center;
}

/* Ludo Art Style Pill on Sticker Corner */
.sifor-hive-style-pill {
    position: absolute;
    top: 8px;
    right: -4px;
    z-index: 5;
    background: #fde047;
    color: #0f172a;
    border: 2px solid #0f172a;
    border-radius: 999px;
    padding: 3px 10px;
    font-family: var(--font-display, 'Fredoka', sans-serif);
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 3px 0 #0f172a;
    white-space: nowrap;
}

/* First-Frame / Multi-Layer Peel Indicator Pill */
.sifor-hive-layer-pill {
    position: absolute;
    top: 8px;
    left: -4px;
    z-index: 5;
    background: #a8ff00;
    color: #0f172a;
    border: 2px solid #0f172a;
    border-radius: 999px;
    padding: 2.5px 9px;
    font-family: var(--font-display, 'Fredoka', sans-serif);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.03em;
    box-shadow: 0 3px 0 #0f172a;
    white-space: nowrap;
}

/* Mini Thought Whisper Bubble on Bottom of Honeycomb Cell */
.sifor-hive-thought-pill {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: #ffffff;
    color: #0f172a;
    border: 2.5px solid #0f172a;
    border-radius: 999px;
    padding: 4px 13px;
    font-family: var(--font-display, 'Fredoka', sans-serif);
    font-size: 12px;
    font-weight: 800;
    max-width: 205px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 4px 0 #0f172a;
}

/* Living Constellation Badge (Two Connected Humans) */
.sifor-hive-constellation-pill {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    color: #0f172a;
    border: 2px solid #0f172a;
    border-radius: 999px;
    padding: 3px 10px;
    font-family: var(--font-display, 'Fredoka', sans-serif);
    font-size: 10.5px;
    font-weight: 800;
    box-shadow: 0 3px 0 #0f172a;
    white-space: nowrap;
}

.sifor-hive-constellation-partner-orb {
    position: absolute;
    bottom: 34px;
    right: 2px;
    z-index: 6;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid #0f172a;
    box-shadow: 0 4px 0 #0f172a, 0 0 14px rgba(253, 224, 71, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Creator Handle, Matched Human Pill & Social Platform Discovery Icons under Sticker */
.sifor-hive-cell-footer {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
    position: relative;
    z-index: 4;
}

.sifor-hive-creator-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.sifor-hive-creator-link {
    color: var(--color-text, inherit);
    text-decoration: none;
}

.sifor-hive-creator-link:hover {
    text-decoration: underline;
}

.sifor-hive-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.sifor-hive-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border-ink, rgba(127, 127, 127, 0.35));
    background: var(--color-surface, rgba(255, 255, 255, 0.08));
    color: var(--color-text, inherit);
    font-size: 13px;
    text-decoration: none;
    transition: transform 0.14s ease, background 0.14s ease;
}

.sifor-hive-social-icon:hover {
    transform: scale(1.15);
    background: #ff3d85;
    color: #ffffff;
}

@keyframes siforStickerIdleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(1.2deg); }
}

@keyframes siforStickerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* Full-Screen Zero-UI Sticker Stage Modal when tapping a sticker in the Hive */
.sifor-hive-stage-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 9500;
    background: #09080f;
    display: flex;
    flex-direction: column;
}

.sifor-hive-stage-modal[hidden] {
    display: none !important;
}

.sifor-hive-stage-iframe {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    border: 0;
    background: transparent;
    z-index: 1;
}

.sifor-hive-stage-topbar {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: 14px;
    right: auto;
    z-index: 10;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    pointer-events: none;
}

.sifor-hive-stage-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 2.5px solid #171719;
    background: #FFFFFF;
    color: #171719;
    font-family: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    pointer-events: auto;
    box-shadow: 0 3.5px 0 #171719, 0 8px 20px rgba(23, 23, 25, 0.22);
    transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.12s ease;
}

.sifor-hive-stage-pill:hover {
    background: #50F5BC;
}

.sifor-hive-stage-pill:active {
    transform: translateY(2px);
    box-shadow: 0 1.5px 0 #171719;
}

/* Bottom Social Discovery Bar hidden inside Full-Screen Sticker Overlay */
.sifor-hive-stage-social-bar {
    display: none !important;
}

/* ==========================================================================
   SIFOR Manifesto — Subtle ("A Bit Hidden") Triggers & Modal
   ========================================================================== */

.sifor-manifesto-spark-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0 4px;
    margin-left: 2px;
    color: inherit;
    font-size: 11px;
    line-height: 1;
    opacity: 0.32;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
    vertical-align: middle;
}

.sifor-manifesto-spark-btn:hover,
.sifor-manifesto-spark-btn:focus-visible {
    opacity: 1;
    color: currentColor;
    transform: scale(1.15);
    outline: none;
}

.sifor-manifesto-whisper-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding: 8px 0 18px;
}

.sifor-manifesto-whisper-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    border: 1.5px dashed rgba(23, 23, 25, 0.25);
    background: transparent;
    color: var(--sifor-muted-text, #817A95);
    font-family: var(--font-display, 'Lilita One', 'Fredoka', sans-serif);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    opacity: 0.38;
    cursor: pointer;
    transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.sifor-manifesto-whisper-btn:hover,
.sifor-manifesto-whisper-btn:focus-visible {
    opacity: 1;
    transform: scale(1.05);
    border-style: solid;
    border-color: var(--sifor-ink, #171719);
    color: var(--sifor-ink, #171719);
    outline: none;
}

.sifor-manifesto-whisper-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.sifor-manifesto-foot-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 4px;
    margin: 4px auto 0;
    opacity: 0.32;
    cursor: pointer;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.sifor-manifesto-foot-seal:hover,
.sifor-manifesto-foot-seal:focus-visible {
    opacity: 1;
    transform: scale(1.12);
    outline: none;
}

.sifor-manifesto-foot-seal img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.sifor-manifesto-sigil {
    color: inherit;
    font-size: 12px;
}

.sifor-manifesto-footer-link {
    background: none;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    opacity: 0.72;
}

.sifor-manifesto-footer-link:hover,
.sifor-manifesto-footer-link:focus-visible {
    opacity: 1;
}

.sifor-manifesto-corner-btn {
    position: fixed;
    left: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 55;
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 30px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #000000;
    color: #ffffff;
    font-family: var(--font-display, 'Fredoka', sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    opacity: 0.45;
    cursor: pointer;
    transition: opacity 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
}

.sifor-page .sifor-manifesto-corner-btn {
    bottom: max(68px, calc(env(safe-area-inset-bottom) + 58px));
}

.sifor-manifesto-corner-sigil {
    font-size: 12px;
    line-height: 1;
    color: #ffffff;
}

.sifor-manifesto-corner-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.28s ease, opacity 0.24s ease, margin-left 0.24s ease;
}

.sifor-manifesto-corner-btn:hover,
.sifor-manifesto-corner-btn:focus-visible {
    opacity: 1;
    border-color: #ffffff;
    padding: 0 12px;
    outline: none;
}

.sifor-manifesto-corner-btn:hover .sifor-manifesto-corner-label,
.sifor-manifesto-corner-btn:focus-visible .sifor-manifesto-corner-label {
    max-width: 90px;
    opacity: 1;
    margin-left: 6px;
}

.sifor-manifesto-modal {
    position: fixed;
    inset: 0;
    z-index: 9800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    box-sizing: border-box;
}

.sifor-manifesto-modal[hidden] {
    display: none !important;
}

.sifor-manifesto-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 16, 0.86);
    backdrop-filter: blur(6px);
}

.sifor-manifesto-card {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: min(88dvh, 860px);
    overflow-y: auto;
    border-radius: 26px;
    background: #0b0b10;
    color: #ffffff;
    border: 2.5px solid #3CC2E8;
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 22, 148, 0.35);
    padding: 24px 30px 34px;
    box-sizing: border-box;
}

.sifor-manifesto-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.sifor-manifesto-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
}

.sifor-manifesto-lang-btn {
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--sifor-font-ui, 'Nunito', system-ui, sans-serif);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.sifor-manifesto-lang-btn:hover,
.sifor-manifesto-lang-btn:focus-visible {
    color: #ffffff;
    outline: none;
}

.sifor-manifesto-lang-btn.is-active {
    background: #FF1694;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 22, 148, 0.45);
}

.sifor-manifesto-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sifor-manifesto-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.4;
    fill: none;
}

.sifor-manifesto-close:hover,
.sifor-manifesto-close:focus-visible {
    background: #ffffff;
    color: #0b0b10;
    border-color: #ffffff;
    outline: none;
}

.sifor-manifesto-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px auto 14px;
    text-align: center;
}

.sifor-manifesto-logo {
    display: block;
    width: 168px;
    height: 164px;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 6px 18px rgba(60, 194, 232, 0.28));
}

.sifor-manifesto-body[hidden] {
    display: none !important;
}

.sifor-manifesto-title {
    margin: 0 0 6px;
    font-family: var(--font-display, 'Lilita One', 'Fredoka', sans-serif);
    font-size: clamp(24px, 3.8vw, 32px);
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: #ffffff !important;
    text-align: center;
}

.sifor-manifesto-subtitle {
    margin: 0 0 22px !important;
    text-align: center;
    font-size: 16px !important;
    line-height: 1.45 !important;
    color: #3CC2E8 !important;
    letter-spacing: 0.02em;
}

.sifor-manifesto-subtitle strong {
    color: #3CC2E8 !important;
    font-weight: 800;
}

.sifor-manifesto-body p {
    margin: 0 0 15px;
    font-size: 15.5px;
    line-height: 1.68;
    color: rgba(255, 255, 255, 0.94);
}

.sifor-manifesto-body strong {
    color: #ffffff;
    font-weight: 800;
}

.sifor-manifesto-highlight {
    margin: 22px 0 0 !important;
    padding: 12px 18px;
    border-left: 3.5px solid #FFE24C;
    background: rgba(255, 226, 76, 0.08);
    border-radius: 0 12px 12px 0;
    font-size: 17px !important;
    color: #FFE24C !important;
}

.sifor-manifesto-highlight strong {
    color: #FFE24C !important;
}

.sifor-manifesto-body-ar {
    direction: rtl;
    text-align: right;
    font-family: 'Nunito', 'Segoe UI', Tahoma, 'Geeza Pro', 'Arial', system-ui, sans-serif;
}

.sifor-manifesto-body-ar .sifor-manifesto-title {
    font-family: 'Segoe UI', Tahoma, 'Geeza Pro', 'Nunito', system-ui, sans-serif;
    font-weight: 900;
    line-height: 1.35;
}

.sifor-manifesto-body-ar p {
    font-size: 16.5px;
    line-height: 1.85;
}

.sifor-manifesto-body-ar .sifor-manifesto-highlight {
    border-left: 0;
    border-right: 3.5px solid #FFE24C;
    border-radius: 12px 0 0 12px;
}

@media (max-width: 639px) {
    .sifor-manifesto-card {
        padding: 20px 18px 26px;
        border-radius: 22px;
    }
    .sifor-manifesto-logo {
        width: 136px;
        height: 133px;
    }
    .sifor-manifesto-body p {
        font-size: 14.5px;
        line-height: 1.64;
    }
    .sifor-manifesto-body-ar p {
        font-size: 15.5px;
        line-height: 1.82;
    }
}

/* ==========================================================================
   GPU-Friendly Mobile Feed & Smooth Touch Swiping (Part 1.3)
   ========================================================================== */
@keyframes sf_float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-7px) rotate(1.8deg); } }
@keyframes sf_bounce { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-9px) scale(1.03, 0.97); } }
@keyframes sf_jelly { 0%, 100% { transform: scale(1, 1); } 40% { transform: scale(1.05, 0.95); } 70% { transform: scale(0.96, 1.04); } }
@keyframes sf_sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes sf_pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes sf_spin { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-5px); } }
@keyframes sf_glitch { 0%, 92%, 100% { transform: translate(0, 0); } 94% { transform: translate(-2.5px, 1.5px); } 97% { transform: translate(2.5px, -1.5px); } }

.sf-rig-float, .rig-float { transform-origin: 50% 50%; animation: sf_float 3.4s ease-in-out infinite; }
.sf-rig-bounce, .rig-bounce { transform-origin: 50% 50%; animation: sf_bounce 3.2s ease-in-out infinite; }
.sf-rig-jelly, .rig-jelly { transform-origin: 50% 50%; animation: sf_jelly 3.4s ease-in-out infinite; }
.sf-rig-sway, .rig-sway { transform-origin: 50% 50%; animation: sf_sway 3.6s ease-in-out infinite; }
.sf-rig-pulse, .rig-pulse { transform-origin: 50% 50%; animation: sf_pulse 3.2s ease-in-out infinite; }
.sf-rig-spin, .rig-spin { transform-origin: 50% 50%; animation: sf_spin 3.8s ease-in-out infinite; }
.sf-rig-glitch, .rig-glitch { transform-origin: 50% 50%; animation: sf_glitch 3.6s ease-in-out infinite; }

.sifor-hive-cell,
.sf-sticker-cell {
    content-visibility: auto;
    contain-intrinsic-size: 160px 180px;
    contain: layout paint style;
}

/* Pause feed sticker animations when off-screen, scrolling, or when a player modal is open */
.sifor-hive-cell:not(.is-in-view) *,
.sf-sticker-cell:not(.is-in-view) *,
body.is-scrolling-feed .sifor-hive-cell *,
body.is-scrolling-feed .sf-sticker-cell *,
body.gallery-player-open .sifor-hive-cell *,
body.gallery-player-open .sf-sticker-cell *,
body.sifor-hive-modal-open .sifor-hive-cell *,
body.sifor-hive-modal-open .sf-sticker-cell * {
    animation-play-state: paused !important;
}

/* Lightweight CSS drop-shadow instead of expensive per-cell SVG feMorphology + feDropShadow filters */
.sifor-hive-sticker-inner svg,
.sifor-hive-sticker-inner img {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
    will-change: transform;
}

/* Instant sticker preview overlay inside modal during swipe transitions */
.sifor-hive-swipe-preview {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #E9F9FE 55%, #BFEAF7 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.sifor-hive-swipe-preview.is-visible {
    opacity: 1;
}

.sifor-hive-swipe-preview-sticker {
    width: 148px;
    height: 148px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sifor-hive-swipe-preview-title {
    font-family: var(--font-display, 'Lilita One', 'Fredoka', sans-serif);
    font-size: 18px;
    color: #171719;
    text-align: center;
    padding: 0 20px;
}

.sifor-hive-stage-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #171719;
    background: rgba(255, 255, 255, 0.92);
    color: #171719;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 0 #171719;
}

.sifor-hive-stage-nav-prev { left: 8px; }
.sifor-hive-stage-nav-next { right: 8px; }

@media (max-width: 768px) {
    .sifor-hive-stage-backdrop,
    .sifor-manifesto-backdrop,
    .sifor-explainer-item,
    #siforHiveStageModal,
    #siforStickerModal,
    #galleryPlayer {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .sifor-hive-stage-backdrop {
        background: rgba(11, 14, 23, 0.94) !important;
    }
}



