/* ═══════════════════════════════════════════════
   🚫 جلوگیری از Layout Shift و پرش اسکرول
   ═══════════════════════════════════════════════ */

/* رزرو کردن فضای scrollbar از اول */
html {
    scrollbar-gutter: stable;
    /* جلوگیری از پرش موقع لود */
    overflow-anchor: none;
}

/* جلوگیری از overflow افقی به خاطر کارت‌های -800px */
body {
    overflow-x: hidden !important;
    /* Reset اسکرول */
    scroll-behavior: auto;
}

/* ✅ کانتینر کارت‌ها نباید overflow افقی درست کنه */
.card-stack,
#heroCardStackV2 {
    position: relative;
}

/* ✅ Hero Section - رزرو کردن ارتفاع از اول */
.hero-section,
#heroV2 {
    min-height: 75vh;
    min-height: 75dvh; /* برای موبایل واقعی */
    contain: layout;
}

/* ✅ Canvas سبد - سایز اولیه ثابت */
#heroBasketCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-cards-side {
    /* رزرو کردن فضا از اول */
    min-height: 500px;
    contain: layout;
}

@media (max-width: 992px) {
    .hero-cards-side {
        min-height: 400px;
    }
}

/* ✅ استوری‌ها - جلوگیری از پرش */
.stories-section {
    contain: layout;
    /* رزرو ارتفاع */
    min-height: 130px;
}

@media (max-width: 480px) {
    .stories-section {
        min-height: 110px;
    }
}

/* ✅ عناصر با data-anim که اول opacity 0 دارن */
[data-anim] {
    /* transform قبلی رو حفظ کن ولی فضا رو اشغال نکن */
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* ═══════════════════════════════════════════════
   جلوگیری از پرش موقع لود GSAP
   ═══════════════════════════════════════════════ */
.gsap-loading [data-anim] {
    visibility: hidden;
}

.gsap-loaded [data-anim] {
    visibility: visible;
}

/* ============================================ */
/* 🎬 HYPER ARIAN - HERO v3.3 (FULL RESPONSIVE) */
/* ============================================ */

.hero-v2 {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: visible;
    padding: 0 0 80px;
}

/* === Canvas === */
.hero-canvas-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#heroBasketCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* === Container === */
.hero-v2-container {
    position: relative;
    z-index: 5;
    width: 100%;
}

.hero-v2-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
    width: 100%;
}

/* === متن === */
.hero-v2-text {
    text-align: right;
    min-height: 200px;
}

.hero-v2-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(230, 0, 0, 0.15);
    color: var(--brand-red);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(230, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

[data-theme="dark"] .hero-v2-badge {
    background: rgba(26, 28, 35, 0.7);
    border-color: rgba(255, 51, 51, 0.25);
}

.hero-v2-badge img {
    width: 22px;
    height: 22px;
}

.hero-v2-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 30px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.title-row {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
}

.title-row.gradient {
    background: linear-gradient(135deg, var(--brand-red) 0%, #ff5050 50%, #ff8080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-v2-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin: 0 0 35px;
    max-width: 540px;
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

.hero-v2-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

.btn-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.btn-v2-primary {
    background: var(--brand-red);
    color: #fff;
    box-shadow: 
        0 10px 30px rgba(230, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-v2-primary:hover {
    box-shadow: 
        0 15px 40px rgba(230, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-v2-primary svg {
    transition: transform 0.3s ease;
}

.btn-v2-primary:hover svg {
    transform: translateX(-5px);
}

.btn-v2-outline {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-v2-outline {
    background: rgba(26, 28, 35, 0.5);
}

.btn-v2-outline:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
    background: rgba(230, 0, 0, 0.05);
}

/* ============================================ */
/* 🖼️ MODERN HERO SLIDER (سایز کاملاً ثابت و قفل شده) */
/* ============================================ */
.hero-v2-slider-wrapper {
    position: relative;
    /* 🔴 ابعاد کاملاً ثابت برای دسکتاپ (دیگر کش نمی‌آید) */
    width: 340px !important;
    height: 460px !important;
    margin: 0 auto; /* همیشه وسط‌چین می‌ماند */
    
    background-color: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25), 0 15px 30px rgba(230, 0, 0, 0.1);
    border: 5px solid #fff;
    z-index: 20;
    cursor: grab;
    touch-action: pan-y;
    opacity: 0; 
}

.hero-v2-slider-wrapper:active {
    cursor: grabbing;
}

[data-theme="dark"] .hero-v2-slider-wrapper {
    border-color: #2a2d35;
    background-color: #2a2d35;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 15px 30px rgba(255, 51, 51, 0.1);
}

.hero-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide img {
    width: 100%; 
    height: 100%;
    /* 🔴 عکس به زور کل کادر رو پر میکنه و سفیدی نمیذاره */
    object-fit: cover !important; 
    border-radius: 18px;
    pointer-events: none;
    -webkit-user-drag: none;
    display: block;
}

/* ============================================ */
/* 🔵 دکمه‌های نقطه‌ای پایین اسلایدر            */
/* ============================================ */
.hero-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot:hover { background: rgba(0, 0, 0, 0.5); }
.hero-dot.active {
    background: var(--brand-red, #e60000);
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(230, 0, 0, 0.5);
}

/* ============================================ */
/* 🎛️ دکمه‌های مینیمال اسلایدر (چپ و راست)      */
/* ============================================ */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--text-primary, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 1; 
}

.hero-slider-nav:hover {
    background: var(--brand-red, #e60000);
    color: #fff;
    border-color: var(--brand-red, #e60000);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-nav.btn-right { right: 15px; }
.hero-slider-nav.btn-left { left: 15px; }

[data-theme="dark"] .hero-slider-nav {
    background: rgba(26, 28, 35, 0.8);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================ */
/* 📱 سایزهای ثابت برای تبلت و موبایل           */
/* ============================================ */
@media (max-width: 992px) { 
    .hero-v2-slider-wrapper { 
        width: 300px !important; 
        height: 400px !important; 
    } 
}
@media (max-width: 768px) { 
    .hero-v2-slider-wrapper { 
        width: 280px !important; 
        height: 380px !important; 
        display: block !important;
    } 
    .hero-slider-nav { display: none !important; }
}
@media (max-width: 480px) { 
    .hero-v2-slider-wrapper { 
        width: 260px !important; 
        height: 360px !important; 
    } 
}


/* === Scroll Indicator === */
.hero-v2-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    will-change: opacity;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: linear-gradient(180deg, transparent, var(--brand-red), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, transparent, #fff, transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -50%; }
    100% { top: 150%; }
}

/* ============================================ */
/* 📱 HERO - RESPONSIVE                         */
/* ============================================ */
@media (max-width: 992px) {
    .hero-v2 {
        padding: 30px 0 80px;
        min-height: auto;
    }
    
    .hero-v2-split {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        padding: 10px;
    }
    
    .hero-v2-text {
        text-align: center;
    }
    
    .hero-v2-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-v2-buttons {
        justify-content: center;
    }
    
    .hero-v2-cards {
        height: 480px;
        min-height: 480px;
    }
    
    .card-stack-v2 {
        width: 280px;
        height: 380px;
    }
}

@media (max-width: 768px) {
    .hero-v2 {
        padding: 0px 0 80px;
        overflow: hidden;
    }
    
    .hero-v2-title {
        font-size: 2.2rem;
    }
    
    .hero-v2-desc {
        font-size: 1rem;
    }
    
    .hero-v2-buttons {
        flex-direction: column-reverse !important;
        width: 100%;
    }
    
    .btn-v2 {
        width: 80%;
    }
    
    /* ✅ کارت‌ها در موبایل نمایش داده میشن */
    .hero-v2-cards {
        display: flex !important;
        height: 420px;
        min-height: 420px;
    }
    
    .card-stack-v2 {
        width: 240px;
        height: 320px;
    }
    
    /* Canvas کمی محو تا متن خوانا باشه */
    .hero-canvas-wrapper {
        opacity: 0.5;
    }
    
    .hero-v2-scroll {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero-v2-cards {
        height: 360px;
        min-height: 360px;
    }
    
    .card-stack-v2 {
        width: 200px;
        height: 280px;
    }
    
    .hero-canvas-wrapper {
        opacity: 0.4;
    }
}

/* === Orbs === */
.global-3d-elements {
    z-index: 0 !important;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.orb {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* === Header === */
.site-header {
    z-index: 1000 !important;
}

/* === Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Lenis === */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* === حذف Hero قدیمی === */
.hero-section {
    display: none !important;
}

/* ============================================ */
/* 📸 STORIES SECTION - Animated v1.0          */
/* ============================================ */
.story-item {
    opacity: 0;
    transform: translateY(-60px) scale(0.7);
    will-change: opacity, transform;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.story-item.story-loaded {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.story-item:hover {
    transform: translateY(-8px) scale(1.08) !important;
}

.story-item:hover .story-ring {
    box-shadow: 0 15px 30px rgba(230, 0, 0, 0.25);
}

.story-ring {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, box-shadow;
}

.story-ring span img,
.story-ring span > * {
    will-change: transform;
    animation: storyIconFloat 3s ease-in-out infinite;
}

@keyframes storyIconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(-3deg); }
}

.story-item:nth-child(1) .story-ring span img,
.story-item:nth-child(1) .story-ring span > * { animation-delay: 0s; }
.story-item:nth-child(2) .story-ring span img,
.story-item:nth-child(2) .story-ring span > * { animation-delay: 0.4s; }
.story-item:nth-child(3) .story-ring span img,
.story-item:nth-child(3) .story-ring span > * { animation-delay: 0.8s; }
.story-item:nth-child(4) .story-ring span img,
.story-item:nth-child(4) .story-ring span > * { animation-delay: 1.2s; }

.story-ring.active {
    position: relative;
    background: linear-gradient(45deg, var(--brand-red), #ff6b6b, #ff9999, var(--brand-red)) !important;
    background-size: 300% 300% !important;
    animation: storyRingGradient 4s ease infinite;
}

@keyframes storyRingGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.story-ring.active::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid var(--brand-red);
    opacity: 0;
    animation: storyPulse 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes storyPulse {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.3); }
}

.story-ring.seen {
    background: var(--border-color) !important;
    opacity: 0.6;
}

.story-ring.seen::before {
    display: none !important;
}

.story-text {
    transition: color 0.3s ease;
    margin-top: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

.story-item:hover .story-text {
    color: var(--brand-red);
}

/* ============================================ */
/* 📜 BIOGRAPHY SECTION v4.1 - FIXED            */
/* Desktop: Scroll Animation + Side Canvas      */
/* Tablet/Mobile: Static Vertical               */
/* ============================================ */

.bio-section-v2 {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 50px 0 80px;
    margin-top: 30px;
}

/* ============================================ */
/* Container - مهم: relative                    */
/* ============================================ */
.bio-section-v2 > .container {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
}

/* ============================================ */
/* Canvas 3D Wrapper - دسکتاپ                   */
/* ============================================ */
.bio-3d-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#bioCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================ */
/* Split Layout                                 */
/* ============================================ */
.bio-split {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

/* ============================================ */
/* 💎 Liquid Glass Card                         */
/* ============================================ */
.bio-text-side {
    direction: rtl;
    text-align: right;
    will-change: transform;
    position: relative;
    z-index: 5;
    top: 0; /* ⬅️ از 50px به 0 */
    padding: 28px 45px;
    max-width: 635px;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.55) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 30px 30px rgba(230, 0, 0, 0.08),
        0 10px 30px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


[data-theme="dark"] .bio-text-side {
    background: linear-gradient(135deg, rgba(26, 28, 35, 0.7) 0%, rgba(26, 28, 35, 0.5) 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Shimmer */
.liquid-shimmer {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 0%, rgba(230, 0, 0, 0.4) 25%, rgba(255, 107, 157, 0.4) 50%, rgba(230, 0, 0, 0.4) 75%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background-size: 200% 200%;
    animation: shimmerMove 4s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes shimmerMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

/* Badge */
.bio-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(230, 0, 0, 0.2);
    color: var(--brand-red);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.78rem;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.08);
}

[data-theme="dark"] .bio-badge {
    background: rgba(255, 255, 255, 0.05);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-red);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--brand-red);
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Title & Desc */
.bio-title {
    font-size: clamp(2.1rem, 3vw, 2.3rem);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 14px;
    color: var(--text-primary);
    opacity: 1;
    transform: translateY(20px);
    position: relative;
    z-index: 2;
    text-align: center;
}

.bio-desc {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 10px;
    opacity: 1;
    transform: translateY(20px);
    position: relative;
    z-index: 2;
}

.bio-desc strong {
    color: var(--text-primary);
    font-weight: 800;
}

/* Stats Cards */
.bio-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(230, 0, 0, 0.2);
    opacity: 1;
    transform: translateY(20px);
    position: relative;
    z-index: 2;
}

.bio-stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

[data-theme="dark"] .bio-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.bio-stat-card:hover {
    transform: translateY(-6px) scale(1.03);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(230, 0, 0, 0.3);
    box-shadow: 0 15px 30px rgba(230, 0, 0, 0.15);
}

.stat-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.08), rgba(255, 107, 157, 0.08));
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.bio-stat-card:hover .stat-card-icon {
    transform: scale(1.1) rotate(-8deg);
}

.stat-card-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(230, 0, 0, 0.2));
}

.stat-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
    z-index: 2;
}

.bio-stat-num {
    font-size: 1.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-red) 0%, #ff6b9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    white-space: nowrap;
}

.bio-stat-num .plus {
    font-size: 1rem;
    -webkit-text-fill-color: var(--brand-red);
    color: var(--brand-red);
}

.bio-stat-card span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 700;
    margin-top: 2px;
    line-height: 1.3;
    white-space: nowrap;
}

.stat-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(230, 0, 0, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.bio-stat-card:hover .stat-card-glow {
    opacity: 1;
}

.bio-stat-card.stat-highlight {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.08) 0%, rgba(255, 107, 157, 0.08) 100%);
    border-color: rgba(230, 0, 0, 0.2);
}

.bio-stat-card.stat-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
    animation: highlightLine 2s linear infinite;
}

@keyframes highlightLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================ */
/* 💻 DESKTOP - باکس سمت راست، سبد سمت چپ      */
/* ============================================ */
@media (min-width: 993px) {
    .bio-3d-wrapper {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
        pointer-events: none;
    }
    
    /* ✅ باکس متن سمت راست */
    .bio-split {
        justify-content: center !important;
        padding-right: 20px;
    }
    
    .bio-text-side {
        margin-right: 0;
    }
}

/* ============================================ */
/* 📱 TABLET (≤992px) - عمودی، بدون scroll      */
/* ============================================ */
@media (max-width: 992px) {
    .bio-section-v2 {
        min-height: auto !important;
        height: auto !important;
        padding: 60px 20px 50px;
        margin-top: 0;
        overflow: hidden;
        display: block !important;
        align-items: unset !important;
    }
    
    .bio-section-v2 > .container {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
        height: auto !important;
    }
    
    /* ⬆️ متن باکس - اول (بالا) */
    .bio-split {
        order: 1 !important;
        min-height: auto !important;
    }
    
    .bio-text-side {
        transform: none !important;
        top: 0 !important;
        padding: 30px 35px;
        max-width: 100%;
        width: 100%;
    }
    
    /* ⬇️ Canvas - دوم (پایین) */
    .bio-3d-wrapper {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 400px !important;
        opacity: 1 !important;
        z-index: 2 !important;
        margin-top: 0;
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    #bioCanvas {
        width: 100% !important;
        height: 100% !important;
        display: block;
        margin: 0 auto;
    }
    
    .aurora-blob {
        opacity: 0.25;
    }
}

/* ============================================ */
/* 📱 MOBILE (≤768px)                           */
/* ============================================ */
@media (max-width: 768px) {
    .bio-section-v2 {
        padding: 40px 15px;
    }
    
    .bio-text-side {
        padding: 25px 20px;
        width: 100%;
        margin: 0 auto;
    }
    
    .bio-3d-wrapper {
        height: 380px !important;
    }
    
    .bio-title {
        font-size: 1.8rem;
    }
    
    .bio-desc {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .bio-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .bio-stat-card {
        flex-direction: row;
        justify-content: flex-start;
        gap: 14px;
        padding: 12px 16px;
        text-align: right;
    }
    
    .stat-card-content {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }
    
    .bio-stat-num {
        font-size: 1.3rem;
    }
    
    .blob-orange {
        display: none;
    }
}

/* ============================================ */
/* 📱 SMALL MOBILE (≤480px)                     */
/* ============================================ */
@media (max-width: 480px) {
    .bio-section-v2 {
        padding: 90px 10px 60px 10px;
    }
    
    .bio-text-side {
        padding: 40px 16px;
        border-radius: 22px;
    }
    
    .bio-3d-wrapper {
        height: 320px !important;
    }
    
    .bio-title {
        font-size: 1.6rem;
    }
}