/* Copied unchanged from the old site's inline <style> blocks:
   user/includes/style.blade.php, user/layouts/master.blade.php (head) and user/home.blade.php. */
    .boostDiv b {
        position: absolute;
        left: 0;
        right: 0;
        text-align: center;
        top: 0;
        color: #fff;
        margin-top: 1px;
    }
    .boostDiv{
        cursor: pointer;
    }

    #shareModal,
    #reportModal {
        z-index: 1000005 !important;
    }

    video::-internal-media-controls-download-button {
        display: none;
    }

    video::-webkit-media-controls-enclosure {
        overflow: hidden;
    }

    .followButton {
        text-decoration: none !important;
    }

    .followBtn {
        font-size: 16px;
        color: #FFFFFF;
        padding: 7px 18px;
        border-radius: 5px;
        background: linear-gradient(135deg, #50BDDC, #95F8FE);
        font-weight: 400;
    }

    .text-gradient-info {
        color: #2beaf6;
    }

    #searchResults .challenge-entry-card {
        height: 100% !important;
    }

    .shouri-tip .tooltip-inner {
        background-color: white;
        color: black;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        /* Adds shadow to the tooltip */
        border-radius: 20px;
    }

    .shouri-tip .tooltip-arrow::before {
        border-width: 10px !important;
        /* Slightly larger arrow */

    }

    /* Adjust arrow positioning for each placement to account for larger size */
    .shouri-tip.bs-tooltip-top .tooltip-arrow::before,
    .shouri-tip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
        border-top-color: white !important;
        /* Match arrow color to background */
        margin-bottom: -2px;
        /* Slight adjustment for positioning */
    }

    .shouri-tip.bs-tooltip-right .tooltip-arrow::before,
    .shouri-tip.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
        border-right-color: white !important;
        margin-left: -2px;
    }

    .shouri-tip.bs-tooltip-bottom .tooltip-arrow::before,
    .shouri-tip.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
        border-bottom-color: white !important;
        margin-top: -2px;
    }

    .shouri-tip.bs-tooltip-left .tooltip-arrow::before,
    .shouri-tip.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
        border-left-color: white !important;
        margin-right: -2px;
    }

    .homeFollowBtn {
        cursor: pointer;
    }
    .cursor-pointer{
        cursor: pointer;
    }
    #messageAlertModal{
        z-index: 999999 !important;
    }
        .cursor-pointer {
            cursor: pointer;
        }

        .boost-spinner-modal.show {
            z-index: 99999999 !important;
        }

        .loading-bar {
            background: #1895BB;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 9999999999;
            height: 7px;
            transition: all 0.8s;
        }

        .store-link-btns {
            position: fixed;
            bottom: 0;
            background: white;
            z-index: 9999999 !important;
        }

        .insight-record-content img {
            object-fit: cover !important;
        }

        .card-modal-content {
            padding: 0 !important;
            border: none !important;
            background: transparent !important;
            margin: 0;
        }

        .card-modal-content .modal-body {
            padding: 0 !important;
        }

        .bg-gradient-warning {
            background: linear-gradient(135deg, #FEBA2B, #FF3E3A) !important;
        }

        .share-img,
        .arrow-icon,
        .challenge-entry-card {
            cursor: pointer;
        }

        .elastic-input {
            resize: none;
            overflow-y: hidden;
            min-height: 4rem;
            max-height: 5rem;
            width: 100%;
            border: 0;
        }

        #followersModalBody,
        .followers-modal-list {
            max-height: 54vh;
            overflow-y: auto;
        }

        #followersModalBody div,
        .followers-modal-list div {
            text-align: left;
        }

        .uh-filter-btn-apply.disabled {
            pointer-events: none;
            opacity: 0.5;
        }
        /* When heighlight challenge in view */
        .highlight-view #filterBtn,
        .highlight-view #filterBtn:hover,
        .highlight-view .home-srch-btn,
        .highlight-view .home-srch-btn:hover,
        .highlight-view .wallet-btn,
        .highlight-view .wallet-btn:hover,
        .highlight-view .content-drop-down,
        .highlight-view .content-drop-down:hover {
            background: linear-gradient(90deg, #FFC451 0%, #C78606 100%) !important;
            border: none !important;
            color: #fff !important;

        }

        .highlight-view .challenge-video-highlight.in-view {
            border: 4px solid #C78606 !important;
        }
        .support-bg {
            clip-path: none;
            background-color: transparent;
            justify-content: center;
            align-items: center;
            width: 70px;
            height: 73px;
            aspect-ratio: 1 / 1;
            display: flex;
            border-radius: 0px;
            filter: drop-shadow(rgba(150, 249, 255, 0.5) 0px 0px 8px);
            mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2280%22%20height%3D%2273%22%20viewBox%3D%220%200%2080%2073%22%20fill%3D%22none%22%3E%0A%3Cpath%20d%3D%22M15.3919%206.29189C17.6442%202.39761%2021.8%200%2026.2901%200H53.7099C58.2%200%2062.3558%202.39761%2064.6081%206.29189L78.3108%2030.0354C80.5631%2033.9297%2080.5631%2038.7249%2078.3108%2042.6192L64.6081%2066.3627C62.3558%2070.257%2058.2%2072.6546%2053.7099%2072.6546H26.2901C21.8%2072.6546%2017.6442%2070.257%2015.3919%2066.3627L1.68922%2042.6192C-0.563073%2038.7249%20-0.563073%2033.9297%201.68922%2030.0354L15.3919%206.29189Z%22%20fill%3D%22url(%23paint0_linear_220_25808)%22%2F%3E%0A%3Cdefs%3E%0A%3ClinearGradient%20id%3D%22paint0_linear_220_25808%22%20x1%3D%220.00363273%22%20y1%3D%2236.3273%22%20x2%3D%2280.0109%22%20y2%3D%2236.3273%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%0A%3Cstop%20stop-color%3D%22%2396F9FF%22%2F%3E%0A%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2350BCDD%22%2F%3E%0A%3C%2FlinearGradient%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E");
            mask-size: contain;
            mask-repeat: no-repeat;
            background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2280%22%20height%3D%2273%22%20viewBox%3D%220%200%2080%2073%22%20fill%3D%22none%22%3E%0A%3Cpath%20d%3D%22M15.3919%206.29189C17.6442%202.39761%2021.8%200%2026.2901%200H53.7099C58.2%200%2062.3558%202.39761%2064.6081%206.29189L78.3108%2030.0354C80.5631%2033.9297%2080.5631%2038.7249%2078.3108%2042.6192L64.6081%2066.3627C62.3558%2070.257%2058.2%2072.6546%2053.7099%2072.6546H26.2901C21.8%2072.6546%2017.6442%2070.257%2015.3919%2066.3627L1.68922%2042.6192C-0.563073%2038.7249%20-0.563073%2033.9297%201.68922%2030.0354L15.3919%206.29189Z%22%20fill%3D%22url(%23paint0_linear_220_25808)%22%2F%3E%0A%3Cdefs%3E%0A%3ClinearGradient%20id%3D%22paint0_linear_220_25808%22%20x1%3D%220.00363273%22%20y1%3D%2236.3273%22%20x2%3D%2280.0109%22%20y2%3D%2236.3273%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%0A%3Cstop%20stop-color%3D%22%2396F9FF%22%2F%3E%0A%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2350BCDD%22%2F%3E%0A%3C%2FlinearGradient%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E");
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center center;
        }

        .support-bg img {
            width: 40%;
            height: auto;
            object-fit: contain;
            max-width: 50%;
            filter: brightness(0) invert(1);
            margin-bottom: 5px;
        }

        #playgroundItems {
            scroll-snap-type: y mandatory;
            overflow-y: scroll;
        }

        /* ── End-of-feed / Empty-feed card ─────────────────────── */
        #uh-end-of-feed {
            scroll-snap-align: start;
            height: 100vh;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #fff;
        }

        .bgd-container {
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            padding: 40px 20px;
            text-align: center;
            background-color: #ffffff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        .bgd-img-box {
            width: 100%;
            max-width: 250px;
            height: auto;
            margin-bottom: 30px;
            position: relative;
            display: flex;
            justify-content: center;
        }

        @keyframes bgd-float {
            0% {
                transform: translateY(0px);
            }

            50% {
                transform: translateY(-12px);
            }

            100% {
                transform: translateY(0px);
            }
        }

        .bgd-img {
            width: 100%;
            height: auto;
            display: block;
            animation: bgd-float 3s ease-in-out infinite;
            filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
        }

        .bgd-title {
            font-size: 24px;
            font-weight: 700;
            color: #111111;
            margin: 0 0 8px 0;
            line-height: 1.2;
        }

        .bgd-desc {
            font-size: 16px;
            color: #666666;
            margin: 0 0 32px 0;
            line-height: 1.5;
            padding: 0 10px;
        }

        .bgd-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background-color: #000000;
            color: #ffffff;
            text-decoration: none;
            padding: 14px 32px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .bgd-btn:hover {
            background-color: #333333;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
            color: #fff;
        }

        .bgd-btn:active {
            transform: translateY(0);
        }

        .bgd-icon {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .uh-feed-item {
            scroll-snap-align: start;
            height: 50vh;
            /* width: 100%; */
        }

        /* --- Video container: parent fills available space, video fills parent --- */
        .uh-feed-card-image-wrap {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .uh-feed-card-image-wrap video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100% !important;
            height: 100% !important;
            object-fit: cover;
        }

        .uh-feed-card-image-wrap img.uh-feed-card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* --- Overlay: stretches to match video area, centers content --- */
        .uh-video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            pointer-events: none;
        }

        /* --- Play icon --- */
        .uh-video-play-icon {
            display: none;
            width: clamp(40px, 8vw, 70px);
            height: clamp(40px, 8vw, 70px);
            background: rgba(0, 0, 0, 0.50);
            border-radius: 50%;
            align-items: center;
            justify-content: center;
        }

        .uh-video-play-icon i {
            color: #fff;
            font-size: clamp(20px, 4vw, 36px);
            margin-left: 3px;
        }

        .uh-video-play-icon.is-visible {
            display: flex;
        }

        /* --- Buffering dots --- */
        .uh-video-buffering {
            display: none;
        }

        .uh-video-buffering.is-visible {
            display: flex;
            gap: clamp(4px, 1vw, 8px);
        }

        .uh-video-buffering .uh-dot {
            width: clamp(6px, 1.5vw, 12px);
            height: clamp(6px, 1.5vw, 12px);
            background: #fff;
            border-radius: 50%;
            animation: uhDotPulse 1.2s ease-in-out infinite;
        }

        .uh-video-buffering .uh-dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .uh-video-buffering .uh-dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes uhDotPulse {

            0%,
            80%,
            100% {
                opacity: 0.3;
                transform: scale(0.8);
            }

            40% {
                opacity: 1;
                transform: scale(1.2);
            }
        }

        /* --- YouTube-style Video Progress Bar --- */
        .uh-video-progress-wrap {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            z-index: 15;
            cursor: pointer;
            padding: 6px 0 0 0;
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .uh-feed-card-image-wrap:hover .uh-video-progress-wrap,
        .uh-video-progress-wrap.is-dragging {
            opacity: 1;
        }

        .uh-video-progress-bar {
            position: relative;
            width: 100%;
            height: 3px;
            background: rgba(255, 255, 255, 0.3);
            transition: height 0.15s ease;
        }

        .uh-video-progress-wrap:hover .uh-video-progress-bar,
        .uh-video-progress-wrap.is-dragging .uh-video-progress-bar {
            height: 6px;
        }

        .uh-video-progress-filled {
            height: 100%;
            width: 0%;
            background: #ff0000;
            border-radius: 0 1px 1px 0;
            pointer-events: none;
            position: relative;
        }

        .uh-video-progress-buffered {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 0%;
            background: rgba(255, 255, 255, 0.4);
            pointer-events: none;
        }

        .uh-video-progress-thumb {
            position: absolute;
            right: -6px;
            top: 50%;
            transform: translateY(-50%) scale(0);
            width: 12px;
            height: 12px;
            background: #ff0000;
            border-radius: 50%;
            transition: transform 0.15s ease;
            pointer-events: none;
        }

        .uh-video-progress-wrap:hover .uh-video-progress-thumb,
        .uh-video-progress-wrap.is-dragging .uh-video-progress-thumb {
            transform: translateY(-50%) scale(1);
        }
