
    /* 3D Coverflow Slider Styles */
    .slider-container {
        position: relative;
        width: 100%;
        height: 400px;
        display: flex;
        justify-content: center;
        align-items: center;
        perspective: 1000px;
        overflow: hidden;
    }

    .slide {
        position: absolute;
        width: 60%;
        max-width: 600px;
        height: 300px;
        transition: transform 0.5s ease, opacity 0.5s ease, z-index 0.5s ease;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        background-color: #ffffff;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.8;
        transition: opacity 0.3s;
    }

    .slide:hover img { opacity: 1; }

    .slide-content {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1.5rem;
        background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    .slide.active {
        transform: translateX(0) scale(1) translateZ(0);
        z-index: 3;
        opacity: 1;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    }
    .slide.prev { transform: translateX(-40%) scale(0.8) translateZ(-100px); z-index: 2; opacity: 0.6; }
    .slide.next { transform: translateX(40%) scale(0.8) translateZ(-100px); z-index: 2; opacity: 0.6; }
    .slide.hidden-slide { transform: scale(0.5) translateZ(-200px); opacity: 0; z-index: 1; pointer-events: none; }

    /* Mobile Mockup with Video */
    .mobile-frame {
        position: relative;
        width: 340px;
        height: 680px;
        border-radius: 48px;
        border: 12px solid #1e293b;
        background-color: #000;
        box-shadow: 0 0 0 2px #475569, 0 30px 60px -12px rgba(0, 0, 0, 0.4);
        margin: 0 auto;
        padding: 4px;
    }
    .mobile-frame::before {
        content: '';
        position: absolute;
        top: 140px;
        left: -15px;
        width: 3px;
        height: 40px;
        background: #475569;
        border-radius: 4px 0 0 4px;
        box-shadow: 0 60px 0 0 #475569;
        z-index: 1;
    }
    .mobile-frame::after {
        content: '';
        position: absolute;
        top: 160px;
        right: -15px;
        width: 3px;
        height: 60px;
        background: #475569;
        border-radius: 0 4px 4px 0;
        z-index: 1;
    }
    .mobile-screen {
        position: relative;
        width: 100%;
        height: 100%;
        border-radius: 36px;
        overflow: hidden;
        background-color: #000;
    }
    .mobile-img {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }
    .mobile-img.active { opacity: 1; }

    .notch {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 30px;
        background-color: #000;
        border-radius: 20px;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 12px;
    }
    .notch::after {
        content: '';
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #111;
        box-shadow: inset 0 0 4px rgba(255,255,255,0.1), inset 0 0 6px rgba(0,0,0,0.8);
    }
    
/* Keep the video header below Dynamic Island */

#videoSection #mobileScreen {
    position: relative;
    background-color: #075D4F;
    overflow: hidden;
}

#videoSection .sevin-showcase-video {
    position: absolute;
    top: 44px;
    left: 0;
    width: 100%;
    height: calc(100% - 44px);

    object-fit: cover;
    object-position: center top;

    display: block;
    z-index: 1;
}

/* Dynamic Island remains above video */
#videoSection #mobileScreen > .absolute.top-3 {
    z-index: 30;
}

@media (max-width: 640px) {
    #videoSection .sevin-showcase-video {
        top: 40px;
        height: calc(100% - 40px);
    }
}

    /* ─── Explore Grid (جایگزین Canvas Slider) ───────────────────────────
       دو ردیف به‌صورت پیش‌فرض باز است؛ برای دیدن بقیه، داخل همین باکس
       اسکرول می‌شود (نه صفحه). ارتفاع بر اساس aspect-[3/4] کارت‌ها و گپ
       تخمین زده شده — با توجه به تعداد ستون در هر breakpoint قابل تنظیم است.
    */
    #exploreGrid {
        max-height: 640px; /* حدوداً ۲ ردیف در چیدمان ۲/۳ ستونی موبایل و تبلت */
    }
    @media (min-width: 1024px) {
        #exploreGrid { max-height: 520px; } /* در دسکتاپ (۵ ستون) کارت‌ها کوتاه‌تر می‌شوند */
    }
    #exploreGrid::-webkit-scrollbar { width: 6px; }
    #exploreGrid::-webkit-scrollbar-track { background: transparent; }
    #exploreGrid::-webkit-scrollbar-thumb { background-color: #e2e8f0; border-radius: 10px; }


    /* Initial state: show first 10 cards */
    #exploreGrid .sevin-post:nth-child(n+11) {
        display: none;
    }

    /* Expanded state: show all cards */
    #exploreGrid.is-expanded .sevin-post:nth-child(n+11) {
        display: block;
    }

    /* Smooth anchor scrolling */
    #communitySection {
        scroll-margin-top: 90px;
    }

    #exploreGrid {
        scroll-margin-top: 90px;
    }

    /* Accessibility */
    @media (prefers-reduced-motion: reduce) {
        #exploreGrid .sevin-post {
            transition: none !important;
        }

        #exploreGrid .sevin-post img {
            transition: none !important;
        }
    }
