/**
 * Stakhr-Safar Stylesheet
 * Theme: Aquatic, Glassmorphism, Fluid Animations
 */

/* ==========================================================================
   معرفی فونت سفارشی (Peyda Font)
   ========================================================================== */
@font-face {
    font-family: 'Peyda';
    src: url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.eot');
    src: url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.woff2') format('woff2'),
    url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.woff') format('woff'),
    url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   متغیرهای سراسری (CSS Variables)
   تمامی رنگ‌ها، گرادینت‌ها و تنظیمات پایه در اینجا تعریف شده‌اند
   ========================================================================== */
:root {
    /* فونت اصلی سایت */
    --main-font: 'Peyda', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

    /* رنگ‌های پایه و متن */
    --accent-blue: #00f2fe;
    --text-light: #e2e8f0;
    --text-white: #ffffff;
    --text-muted: #a0aec0;
    --aquatic-deep-abyss: #0a192f;

    /* پس‌زمینه‌های شیشه‌ای (Glassmorphism) */
    --glass-bg: rgba(10, 25, 47, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --sf-glass-bg: rgba(38, 44, 51, 0.253);
    --sf-glass-border: rgba(255, 255, 255, 0.116);
    --brand-glass-main: linear-gradient(135deg, rgba(16, 43, 81, 0.49) 0%, rgba(14, 40, 79, 0.54) 100%);
    --brand-glass-card: linear-gradient(135deg, rgba(28, 62, 110, 0.7) 0%, rgba(14, 40, 79, 0.85) 100%);
    --glass-hull-bg: linear-gradient(135deg, rgba(16, 43, 81, 0.5) 0%, rgba(7, 24, 48, 0.7) 100%);

    /* گرادینت‌ها و افکت‌های نئونی */
    --neon-aqua-cyan: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --neon-glow-cyan: #00f2fe;
    --neon-blue-flow: #0072ff;
    --neon-blue-glow: 0 0 30px rgba(0, 242, 254, 0.45);
    --premium-glow-border: rgba(0, 242, 254, 0.15);
    --brand-hover-neon: linear-gradient(135deg, rgba(43, 215, 224, 0.9) 0%, rgba(32, 185, 205, 0.9) 100%);
    --grad-text-aquatic: linear-gradient(90deg, #bef8fb 0%, #9ee4f0 100%);
    --grad-icon-circle: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(0, 114, 255, 0.25) 100%);
    --sf-grad-primary: linear-gradient(135deg, #3ecaf0 0%, #00ddff 100%);
    --sf-grad-dark: linear-gradient(180deg, rgba(16, 37, 66, 0.85) 0%, rgba(6, 18, 36, 0.95) 100%);
    --sf-grad-meta: linear-gradient(90deg, #11375daa 0%, #08728faf 100%);

    /* سایه‌ها */
    --fluid-text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    --card-liquid-border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   ریست و تنظیمات پایه (Reset & Base)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--main-font);
    /* اعمال فونت روی تمام عناصر */
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* جلوگیری از اسکرول افقی */
    position: relative;
    max-width: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    min-height: 100vh;
    /* گرادینت سه رنگه لوکس: سرمه‌ای عمیق، آبی اقیانوسی و آبی تیره */
    background: linear-gradient(135deg, #0a234a, #0a315b, #06204d);
    background-size: 400% 400%;
    animation: oceanFluid 15s ease infinite;
    font-family: var(--main-font);
    /* استفاده از متغیر فونت */
}

/* انیمیشن حرکت پس‌زمینه برای حس زنده بودن آب */
@keyframes oceanFluid {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================================================
   حباب‌های متحرک پس‌زمینه (Background Bubbles)
   ========================================================================== */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    /* حباب‌ها مانع کلیک روی المان‌های سایت نمی‌شوند */
}

/* استایل هر حباب به صورت مینیمال و شیشه‌ای */
.bubble {
    position: absolute;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), inset 0 0 4px rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: floatUp linear infinite;
}

/* انیمیشن بالا رفتن حباب‌ها و محو شدن تدریجی */
@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-110vh) scale(1.2);
        opacity: 0;
    }
}

/* کانتینر اصلی محتوا برای قرارگیری روی حباب‌ها */
.site-content {
    position: relative;
    z-index: 2;
    width: 100%;
}


/* ==========================================================================
   نوبار فوق‌لوکس (Elite Floating Island Navbar)
   ========================================================================== */
.elite-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 20px;
    transition: padding 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    /* برای اینکه فضای خالی اطراف کپسول مزاحم کلیک نشود */
}

/* ساختار کپسولی شیشه‌ای */
.header-island {
    pointer-events: auto;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(8, 22, 45, 0.45);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(0, 242, 254, 0.05);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(-100px);
    animation: dropDownIsland 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

@keyframes dropDownIsland {
    to {
        transform: translateY(0);
    }
}

/* حالت اسکرول خورده (تبدیل کپسول به نوار کامل) */
.elite-header.scrolled {
    padding: 0;
}

.elite-header.scrolled .header-island {
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    background: rgba(6, 18, 38, 0.75);
    padding: 15px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ---------------- Logo ---------------- */
.header-logo .flex-col-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.logo-text {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.3));
    transition: filter 0.3s ease;
}

.magnetic-wrap:hover .logo-text {
    filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.6));
}

.logo-sub {
    font-size: 9px;
    color: #94a3b8;
    letter-spacing: 1.5px;
    margin-top: -3px;
}

/* ---------------- Desktop Nav & Liquid Indicator ---------------- */
.island-nav .nav-links {
    position: relative;
    display: flex;
    align-items: center;
    /* این خط اضافه شد تا ارتفاع دقیق محاسبه بشه */
    list-style: none;
    gap: 10px;
}

.nav-item {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.nav-item:hover,
.nav-item.active {
    color: #a6f3fd;
    text-shadow: 0 0 10px rgba(45, 245, 245, 0.575);
}

/* قطره مایع متحرک زیر لینک‌ها */
.liquid-indicator {
    position: absolute;
    top: 0;
    left: 0;
    /* ثابت کردن نقطه صفر مختصات */
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 30px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
    /* انیمیشن یکپارچه روی فرم و حرکت */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    width 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    height 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.4s ease;
}

.island-nav:hover .liquid-indicator {
    opacity: 1;
}

/* ---------------- Magnetic Logic (برای لوگو باقی می‌ماند) ---------------- */
.magnetic-wrap {
    display: inline-block;
    padding: 10px;
    margin: -10px;
    cursor: pointer;
}

.magnetic-inner {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* ---------------- Elite Action Pills (دکمه‌های کپسولی جدید) ---------------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.elite-pill {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    max-width: 44px;
    /* در حالت عادی فقط به اندازه آیکون باز است */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    overflow: hidden;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.4, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pill-icon {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.4s ease;
}

.pill-icon svg {
    width: 19px;
    height: 19px;
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.pill-text {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transform: translateX(15px);
    /* جابجایی به راست برای ورود نرم */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding-right: 2px;
    padding-left: 20px;
    z-index: 2;
}

/* افکت پر شدن مایع نئونی */
.elite-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: right;
    /* چون سایت راست‌چین است، مایع از راست به چپ پر می‌شود */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
}

/* تعامل هاور (Hover) - جادوی باز شدن کپسول */
.elite-pill:hover {
    max-width: 160px;
    /* کپسول کش می‌آید و باز می‌شود */
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.25);
}

.elite-pill:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.elite-pill:hover .pill-icon svg {
    color: #040c1a;
    /* تیره شدن آیکون روی پس‌زمینه فیروزه‌ای */
    transform: scale(1.15) rotate(-5deg);
    /* یک چرخش و بزرگنمایی ریز و جذاب */
}

.elite-pill:hover .pill-text {
    opacity: 1;
    transform: translateX(0);
    color: #040c1a;
}

/* تنظیمات بج سبد خرید (Cart Notification) */
.cart-pill::after {
    content: attr(data-count);
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #ff0055, #ff3366);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.6);
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* افکت فنریِ بج سبد خرید هنگام هاور */
.cart-pill:hover::after {
    transform: scale(1.1) translateY(-2px);
    border: 2px solid #00f2fe;
}

/* ---------------- Modern Burger Menu ---------------- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.2);
    position: relative;
}

.burger-lines {
    width: 20px;
    height: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.burger-lines span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.burger-lines span:nth-child(1) {
    top: 0;
}

.burger-lines span:nth-child(2) {
    top: 6px;
    width: 70%;
    right: 0;
}

.burger-lines span:nth-child(3) {
    top: 12px;
}

.menu-toggle.open .burger-lines span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.menu-toggle.open .burger-lines span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.menu-toggle.open .burger-lines span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}


/* ---------------- Fluid Circular Mobile Menu ---------------- */
.fluid-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    pointer-events: none;
    overflow: hidden;
}

/* پس‌زمینه که مثل قطره آب باز می‌شود */
.sidebar-water-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 18, 38, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* نقطه شروع باز شدن دایره (حدوداً جای دکمه همبرگری در RTL) */
    clip-path: circle(0px at 40px 40px);
    transition: clip-path 0.8s cubic-bezier(0.65, 0, 0.15, 1);
}

.fluid-sidebar.active {
    pointer-events: auto;
}

.fluid-sidebar.active .sidebar-water-bg {
    /* دایره به اندازه کل صفحه بزرگ می‌شود */
    clip-path: circle(150% at 40px 40px);
}

.sidebar-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.fluid-sidebar .sidebar-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
}

.fluid-sidebar .sidebar-item {
    font-size: 28px;
    /* فونت بسیار درشت و لوکس تایپوگرافی */
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: all 0.4s ease;
    display: inline-block;
    position: relative;
}

.fluid-sidebar .sidebar-item.active,
.fluid-sidebar .sidebar-item:hover {
    color: #fff;
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
    transform: scale(1.1);
}

/* انیمیشن آبشاری (Stagger) برای متن‌ها */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fluid-sidebar.active .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* تاخیر آبشاری */
.fluid-sidebar.active .stagger-item:nth-child(1) {
    transition-delay: 0.2s;
}

.fluid-sidebar.active .stagger-item:nth-child(2) {
    transition-delay: 0.3s;
}

.fluid-sidebar.active .stagger-item:nth-child(3) {
    transition-delay: 0.4s;
}

.fluid-sidebar.active .stagger-item:nth-child(4) {
    transition-delay: 0.5s;
}

.fluid-sidebar.active .stagger-item:nth-child(5) {
    transition-delay: 0.6s;
}

.fluid-sidebar.active .stagger-item:nth-child(6) {
    transition-delay: 0.7s;
}

.fluid-sidebar.active .sidebar-footer-logo {
    transition-delay: 0.9s;
    margin-top: 50px;
}


/* ریسپانسیو */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-island {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .elite-pill {
        height: 38px;
        max-width: 38px !important;
        /* در موبایل به شکل دایره ثابت می‌ماند */
    }

    .pill-icon {
        height: 38px;
        min-width: 38px;
    }

    .pill-text {
        display: none;
        /* مخفی کردن متن در موبایل */
    }

    .cart-pill::after {
        top: 2px;
        right: 2px;
        width: 14px;
        height: 14px;
        font-size: 9px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .logo-text {
        font-size: 20px;
    }

    .fluid-sidebar .sidebar-item {
        font-size: 22px;
    }
}


/* ==========================================================================
   هیرو مینیمال و شیک (Elegant Minimalist Hero)
   ========================================================================== */
.hero-section-elegant {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../images/hero.png') center center / cover no-repeat;
    overflow: hidden;
}

/* اورلی بسیار نرم و سینمایی برای آرام کردن پس‌زمینه شلوغ */
.hero-overlay-elegant {
    position: absolute;
    inset: 0;
    /* ایجاد یک سایه نرم دور تا دور و تیرگی ملایم برای خوانایی عالی متن */
    background: linear-gradient(to bottom, rgba(4, 15, 36, 0.4) 0%, rgba(4, 15, 36, 0.85) 100%),
    radial-gradient(circle at center, transparent 0%, rgba(4, 15, 36, 0.6) 100%);
    z-index: 1;
}

.hero-content-elegant {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
    margin-top: -20px;
}

/* برای انیمیشن ورود لوکس (Slide Up Reveal) */
.hero-text-wrapper {
    overflow: hidden;
    padding: 5px 20px;
}

.hero-title-elegant {
    font-size: clamp(55px, 8vw, 100px);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
    margin: 0;
    text-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    /* سایه عمیق برای جدا شدن از بک‌گراند */
    transform: translateY(100%);
    animation: slideUpReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
    position: relative;
}

/* یک هاله نوری فیروزه‌ای بسیار ظریف پشت متن اصلی */
.hero-title-elegant::after {
    content: 'استخر صفار';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: transparent;
    text-shadow: 0 0 45px rgba(0, 242, 254, 0.3);
    z-index: -1;
}

.hero-subtitle-elegant {
    font-size: clamp(15px, 2vw, 20px);
    color: #e2e8f0;
    line-height: 2.2;
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpSmooth 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* ---------------- دکمه‌های مینیمال و شیشه‌ای ---------------- */
.hero-buttons-elegant {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpSmooth 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

.btn-elegant {
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* دکمه اصلی (شیشه‌ای با حاشیه فیروزه‌ای) */
.primary-elegant {
    background: rgba(0, 242, 254, 0.08);
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.3);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.1);
}

.primary-elegant:hover {
    background: #00f2fe;
    color: #040c1a;
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.3);
    transform: translateY(-3px);
}

/* دکمه دوم (شیشه‌ای با حاشیه سفید) */
.secondary-elegant {
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-elegant:hover {
    background: #ffffff;
    color: #040c1a;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.15);
}

/* ---------------- نشانگر اسکرول فوق ساده ---------------- */
.scroll-minimal {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 5;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.2s;
}

.scroll-minimal span {
    font-size: 10px;
    letter-spacing: 3px;
    color: #94a3b8;
}

.scroll-line-track {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-line-runner {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00f2fe;
    animation: lineDrop 2s ease-in-out infinite;
}

/* ---------------- انیمیشن‌های کلاسیک و تمیز ---------------- */
@keyframes slideUpReveal {
    to {
        transform: translateY(0);
    }
}

@keyframes fadeUpSmooth {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineDrop {
    0% {
        top: -100%;
    }

    50%,
    100% {
        top: 100%;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ریسپانسیو هیرو */
@media (max-width: 576px) {
    .hero-buttons-elegant {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-elegant {
        width: 100%;
    }

    .hero-text-wrapper {
        padding: 5px 10px;
    }
}

/* ==========================================================================
   درباره ما (Editorial & Asymmetrical About Us)
   ========================================================================== */
.about-elite-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 120px 0;
    direction: rtl;
    background: transparent;
    overflow: hidden;
}

.ambient-flare {
    position: absolute;
    top: 50%;
    left: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.04) 0%, transparent 60%);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

.about-elite-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* چیدمان نامتقارن: متن کمتر، عکس بیشتر */
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ---------------- ستون متن (Right Side) ---------------- */
.about-content-side {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.elite-badge {
    font-size: 11px;
    letter-spacing: 3px;
    color: #00f2fe;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.elite-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.elite-accent-line {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    border-radius: 2px;
}

.elite-text {
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 2.1;
    color: #cbd5e1;
    font-weight: 300;
    text-align: justify;
}

.text-highlight {
    font-weight: 700;
    color: #e2e8f0;
}

.text-neon {
    font-weight: 700;
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* ---------------- اکشن‌ها (دکمه + سوشال) ---------------- */
.elite-actions {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-elite-glass {
    position: relative;
    padding: 14px 35px;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 100px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-elite-glass .btn-text {
    position: relative;
    z-index: 2;
    font-size: 14px;
    font-weight: 600;
    color: #00f2fe;
    transition: color 0.4s ease;
}

.btn-glow-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.btn-elite-glass:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.2);
    border-color: transparent;
}

.btn-elite-glass:hover .btn-glow-hover {
    opacity: 1;
}

.btn-elite-glass:hover .btn-text {
    color: #040c1a;
}

.elite-socials {
    display: flex;
    gap: 12px;
}

.social-orb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.social-orb svg {
    width: 17px;
    height: 17px;
}

.social-orb:hover {
    transform: translateY(-4px);
    border-color: transparent;
    color: #fff;
}

.social-orb.yt:hover {
    background: #ff0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.social-orb.ig:hover {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    box-shadow: 0 5px 15px rgba(238, 42, 123, 0.3);
}

.social-orb.tg:hover {
    background: #0088cc;
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}


/* ---------------- ستون تصاویر (Left Side - Asymmetrical) ---------------- */
.about-visual-side {
    display: flex;
    gap: 25px;
    height: 500px;
    /* ارتفاع ثابت برای ایجاد افکت پله‌ای */
    align-items: center;
}

.gallery-col {
    flex: 1;
    height: 80%;
    /* تصاویر کشیده و مستطیلی */
}

/* تصویر اول پایین‌تر، تصویر دوم بالاتر */
.col-down {
    transform: translateY(30px);
}

.col-up {
    transform: translateY(-30px);
}

.fluid-holder-elite {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, filter;
}

.slide-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.4s ease-in-out, transform 1.4s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.slide-img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide-img.morphing-out {
    opacity: 0;
    transform: scale(0.95);
    filter: blur(4px);
    z-index: 1;
}

/* کپشن شناور مات درون عکس */
.glass-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(4, 12, 26, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 5;
    width: 85%;
    text-align: center;
    transition: transform 0.4s ease, bottom 0.4s ease;
}

.glass-caption span {
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.5px;
}

/* افکت هاور روی تصاویر (لرزش مایع) */
.fluid-holder-elite:hover {
    filter: url('#pool-liquid-shake');
    transform: scale(1.02);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 242, 254, 0.15);
}

.fluid-holder-elite:hover .glass-caption {
    bottom: 25px;
    border-color: rgba(0, 242, 254, 0.4);
}

/* ---------------- انیمیشن‌های ورود (Reveal) ---------------- */
.reveal-item {
    opacity: 0;
    will-change: transform, opacity;
}

.fade-slide-up {
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.fade-slide-right {
    transform: translateX(60px);
    transition: all 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.liquid-reveal-section.active .fade-slide-up {
    opacity: 1;
    transform: translateY(0);
}

.liquid-reveal-section.active .fade-slide-right {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.liquid-reveal-section.active .delay-3 {
    transition-delay: 0.45s;
}

.liquid-reveal-section.active .delay-4 {
    transition-delay: 0.6s;
}

/* ---------------- ریسپانسیو ---------------- */
@media (max-width: 1024px) {
    .about-elite-container {
        grid-template-columns: 1fr;
        /* تبدیل به تک ستون در تبلت */
        gap: 50px;
    }

    .about-content-side {
        align-items: center;
        text-align: center;
    }

    .elite-text {
        text-align: center;
        max-width: 700px;
    }

    .elite-actions {
        justify-content: center;
    }

    .gallery-col {
        height: 350px;
    }

    .col-down,
    .col-up {
        transform: translateY(0);
    }

    /* حذف پله‌ای بودن در موبایل */
    .about-visual-side {
        height: auto;
    }
}

/* ریسپانسیو اختصاصی بخش تصاویر درباره ما */
@media (max-width: 576px) {
    .about-visual-side {
        flex-direction: column;
        height: auto;
    }

    /* تصاویر زیر هم */
    .gallery-col {
        flex: none;
        /* 💎 کلید حل مشکل ناپدید شدن عکس‌ها 💎 */
        width: 100%;
        min-height: 280px;
        /* تضمین ارتفاع در موبایل */
        height: 280px;
        transform: translate(0, 0) !important;
        /* جلوگیری از باگ تداخل انیمیشن‌ها و پرش به بیرون صفحه */
    }
}

/* ==========================================================================
   خدمات مهندسی (Services)
   ========================================================================== */
.brand-services-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 120px 0;
    background: var(--brand-glass-main);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    direction: rtl;
}

.services-container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 80px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.services-title-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.glow-wave-dot {
    width: 10px;
    height: 10px;
    background: #00f2fe;
    border-radius: 50%;
    box-shadow: 0 0 20px #00f2fe;
    animation: pulseGlow 2s infinite alternate;
}

.services-main-title {
    font-size: 2.4rem;
    font-weight: 900;
    background: var(--grad-text-aquatic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.services-floating-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.9;
    font-weight: 400;
    animation: deepWaterFloat 6s ease-in-out infinite alternate;
}

.unified-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.fusion-card {
    background: var(--brand-glass-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(45px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.5s ease;
}

.fusion-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card-ambient-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 50%, rgba(0, 242, 254, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.card-text-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
    height: 100%;
}

.service-icon-box {
    width: 52px;
    height: 52px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00f2fe;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-icon-box svg {
    width: 26px;
    height: 26px;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.3s ease;
}

.service-card-text {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.6;
    font-weight: 350;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-arrow {
    margin-top: auto;
    color: #4facfe;
    transition: transform 0.4s ease, color 0.3s ease;
}

.card-footer-arrow svg {
    width: 18px;
    height: 18px;
    transform: scaleX(-1);
}

.card-brand-side {
    flex: 0 0 125px;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.brand-fluid-blob {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.05);
    animation: eliteLiquidWobble 10s ease-in-out infinite alternate;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-core-img {
    width: 72%;
    height: 72%;
    object-fit: contain;
    border-radius: 50%;
    opacity: 0.8;
    filter: saturate(90%) brightness(0.9);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-mini-overlay {
    position: absolute;
    bottom: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.5px;
    opacity: 0.7;
    text-shadow: var(--fluid-text-shadow);
    transition: all 0.3s ease;
}

.fusion-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 25px 50px rgba(0, 242, 254, 0.15);
}

.fusion-card:hover .card-ambient-glow {
    opacity: 1;
}

.fusion-card:hover .service-icon-box {
    background: var(--neon-aqua-cyan);
    color: #ffffff;
    transform: scale(1.05) rotate(-6deg);
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.3);
}

.fusion-card:hover .service-card-title {
    color: #00f2fe;
}

.fusion-card:hover .card-footer-arrow {
    transform: translateX(-6px);
    color: #00f2fe;
}

.fusion-card:hover .brand-fluid-blob {
    border-color: rgba(0, 242, 254, 0.5);
    background: rgba(16, 42, 78, 0.5);
    box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.2);
    animation-duration: 5s;
}

.fusion-card:hover .brand-core-img {
    opacity: 1;
    filter: saturate(100%) brightness(1.05);
    transform: scale(1.08);
}

.fusion-card:hover .brand-mini-overlay {
    color: #00f2fe;
    opacity: 1;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

@keyframes eliteLiquidWobble {
    0% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    }

    50% {
        border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
    }

    100% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    }
}

@keyframes deepWaterFloat {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-6px);
    }
}

.svg-anim-wave path {
    animation: wm 3s linear infinite;
}

.svg-anim-gear {
    animation: gs 8s linear infinite;
}

.svg-anim-steam path {
    animation: sr 2s ease-in-out infinite alternate;
}

@keyframes wm {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-4px);
    }
}

@keyframes gs {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sr {
    0% {
        transform: translateY(2px);
        opacity: 0.4;
    }

    100% {
        transform: translateY(-2px);
        opacity: 1;
    }
}

/* مدیا کوئری خدمات */
@media (max-width: 1150px) {
    .unified-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .unified-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .fusion-card {
        padding: 16px;
        gap: 12px;
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .card-brand-side {
        width: 85px;
        height: 85px;
        flex: 0 0 85px;
        align-self: flex-end;
    }

    .services-main-title {
        font-size: 1.8rem;
    }

    .services-floating-desc {
        font-size: 0.95rem;
    }

    .service-card-title {
        font-size: 1.1rem;
    }

    .service-card-text {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .unified-services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* یک ستونه در موبایل خیلی کوچک */
    .fusion-card {
        padding: 12px;
    }

    .card-brand-side {
        width: 65px;
        height: 65px;
        flex: 0 0 65px;
    }

    .brand-mini-overlay {
        display: none;
    }
}

/* ==========================================================================
   شوکیس و پروژه‌ها (Elite Before/After Showcase)
   ========================================================================== */
.aquatic-showcase-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 120px 0;
    background: var(--brand-glass-main);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    direction: rtl;
}

.showcase-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.showcase-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    /* کادر عکس‌ها بزرگتر است */
    gap: 70px;
    align-items: center;
}

/* ---------------- سمت راست (تایپوگرافی) ---------------- */
.showcase-text-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.showcase-elite-title {
    font-size: clamp(30px, 3.5vw, 45px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 5px;
}

.text-gradient {
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.showcase-elite-desc {
    font-size: clamp(15px, 1.2vw, 17px);
    color: #cbd5e1;
    line-height: 2;
    text-align: justify;
    font-weight: 300;
}

.showcase-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    border-right: 2px solid rgba(0, 242, 254, 0.3);
    padding-right: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
}

.feature-item svg {
    width: 18px;
    height: 18px;
    color: #00f2fe;
}

.mt-4 {
    margin-top: 25px;
    align-self: flex-start;
}

/* ---------------- سمت چپ (اسلایدر تعاملی) ---------------- */
.ba-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    /* ابعاد سینمایی و عریض */
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 242, 254, 0.05);
    background: rgba(4, 12, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    direction: ltr;
    /* برای کارکرد صحیح اسلایدر ریاضی */
    overflow: hidden;
}

.ba-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.ba-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

/* ساختار جادویی Before/After */
.ba-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ba-image {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* تا مزاحم درگ کردن نشود */
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* لایه After (پس زمینه) */
.ba-after {
    z-index: 1;
}

/* لایه Before (رویی که برش می‌خورد) */
.ba-before {
    z-index: 2;
    /* این خط جادویی، عکس را بر اساس متغیر pos برش می‌دهد */
    clip-path: polygon(0 0, var(--pos) 0, var(--pos) 100%, 0 100%);
}

/* بج‌های نام‌گذاری روی عکس‌ها */
.ba-badge {
    position: absolute;
    bottom: 25px;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(4, 12, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: inherit;
    z-index: 5;
}

.badge-left {
    left: 25px;
    color: #fca5a5;
}

.badge-right {
    right: 25px;
    color: #a7f3d0;
}

/* دستگیره شیشه‌ای وسط */
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    transform: translateX(-50%);
    width: 40px;
    z-index: 4;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ba-handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ffffff;
    box-shadow: 0 0 10px #00f2fe;
}

.ba-handle-btn {
    position: relative;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.3);
    transition: transform 0.2s;
}

.ba-handle-btn svg {
    width: 16px;
    height: 16px;
}

/* اینپوت جادویی (کنترلر مخفی) */
.ba-range-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    /* موس دو طرفه */
    z-index: 10;
    margin: 0;
}

.ba-range-input:active ~ .ba-handle .ba-handle-btn {
    transform: scale(0.9);
    background: #00f2fe;
    border-color: #00f2fe;
    color: #040c1a;
}

/* دات‌های نشانگر اسلاید */
.slide-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 15;
}

.slide-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicators .indicator.active {
    width: 24px;
    border-radius: 4px;
    background: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* انیمیشن ورود (Reveal) */
.fade-slide-node {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.fade-slide-node.show-node {
    opacity: 1;
    transform: translateY(0);
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .showcase-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .showcase-text-side {
        align-items: center;
        text-align: center;
    }

    .showcase-features {
        border-right: none;
        border-bottom: 2px solid rgba(0, 242, 254, 0.3);
        padding-right: 0;
        padding-bottom: 15px;
        flex-direction: row;
        justify-content: center;
    }

    .mt-4 {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .ba-slider-container {
        aspect-ratio: 1 / 1;
        /* در موبایل مربع می‌شود تا فضای خوبی بدهد */
    }

    .ba-handle-btn {
        width: 40px;
        height: 40px;
        padding: 0 3px;
    }

    .ba-handle-btn svg {
        width: 14px;
        height: 14px;
    }

    .ba-badge {
        font-size: 11px;
        padding: 6px 12px;
        bottom: 15px;
    }

    .badge-left {
        left: 15px;
    }

    .badge-right {
        right: 15px;
    }

    .showcase-features {
        flex-direction: column;
    }
}

/* ==========================================================================
   نقشه راه مهندسی (Workflow / Pipeline)
   ========================================================================== */
.hydraulic-flow-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 90px 0 135px 0;
    overflow: hidden;
    direction: rtl;
    border-bottom: 1px solid var(--glass-border);
}

.flow-fluid-analyzer {
    position: absolute;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.03) 0%, transparent 70%);
    top: 20%;
    left: 15%;
    pointer-events: none;
    z-index: 1;
}

.flow-container {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ---------------- هدر نقشه راه ---------------- */
.flow-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-bottom: 80px;
}

.flow-subtitle {
    font-size: clamp(14px, 1.2vw, 16px);
    color: #cbd5e1;
    font-weight: 300;
    max-width: 600px;
    line-height: 1.8;
    margin-top: 5px;
}

.flow-badge {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--neon-glow-cyan);
    background: rgba(0, 242, 254, 0.06);
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 242, 254, 0.15);
    font-weight: 700;
}

.flow-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
}

.hydraulic-pipeline-wrapper {
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
}

.pipeline-main-axis {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(-50%);
}

.pipeline-core-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, transparent, var(--neon-glow-cyan), var(--neon-blue-flow), transparent);
    background-size: 100% 200%;
    transition: height 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pipeline-core-glow.pulse-active {
    height: 100%;
    animation: waterPulseFlow 2.5s linear infinite;
}

.flow-step-node {
    display: flex;
    width: 100%;
    margin-bottom: -60px;
    position: relative;
    opacity: 0;
    will-change: transform, opacity;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-right {
    justify-content: flex-start;
    padding-left: 50%;
    transform: translateX(40px);
}

.step-left {
    justify-content: flex-end;
    padding-right: 50%;
    transform: translateX(-40px);
}

.flow-step-node.flow-activated {
    opacity: 1;
    transform: translateX(0);
}

.flow-node-pointer {
    position: absolute;
    left: 50%;
    top: 45px;
    width: 14px;
    height: 14px;
    background: #0a192f;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 5;
    transition: all 0.4s ease;
}

.pointer-core {
    width: 4px;
    height: 4px;
    background: #64748b;
    border-radius: 50%;
    margin: 3px auto 0 auto;
    transition: all 0.4s ease;
}

.flow-glass-hull {
    width: 88%;
    max-width: 440px;
    min-height: 170px;
    background: var(--glass-hull-bg);
    border: 1px solid rgba(0, 242, 254, 0.12);
    border-radius: 20px;
    padding: 26px 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-right .flow-glass-hull {
    margin-left: 15px;
}

.step-left .flow-glass-hull {
    margin-right: 15px;
}

.step-icon-box {
    flex: 0 0 46px;
    height: 46px;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-glow-cyan);
    transition: all 0.4s ease;
}

.step-icon-box svg {
    width: 22px;
    height: 22px;
}

.step-content-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.step-desc {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.75;
    font-weight: 350;
    text-align: justify;
    margin-bottom: 14px;
}

.step-features-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.step-features-specs span {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 400;
}

.flow-step-node.flow-activated:hover .flow-glass-hull {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 30px 60px rgba(0, 242, 254, 0.1);
}

.flow-step-node.flow-activated:hover .step-icon-box {
    background: var(--neon-glow-cyan);
    color: #0a192f;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    transform: scale(1.05);
}

.flow-step-node.flow-activated:hover .flow-node-pointer {
    border-color: var(--neon-glow-cyan);
    background: var(--neon-glow-cyan);
    box-shadow: 0 0 10px var(--neon-glow-cyan);
}

.flow-step-node.flow-activated:hover .pointer-core {
    background: #ffffff;
}

.flow-step-node.flow-activated:hover .step-title {
    color: var(--neon-glow-cyan);
}

.flow-step-node.flow-activated:hover .step-features-specs span {
    color: #ffffff;
    transition: color 0.3s;
}

@keyframes waterPulseFlow {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 200%;
    }
}

@media (max-width: 850px) {
    .pipeline-main-axis {
        left: auto;
        right: 20px;
        transform: none;
    }

    .flow-step-node {
        padding-left: 0 !important;
        padding-right: 45px !important;
        justify-content: flex-start !important;
        margin-bottom: 24px;
    }

    .step-right,
    .step-left {
        transform: translateX(-30px);
    }

    .flow-node-pointer {
        left: auto !important;
        right: 13px !important;
        top: 35px;
        transform: none;
    }

    .flow-glass-hull {
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        min-height: auto;
    }

    .flow-main-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hydraulic-flow-section {
        padding: 60px 0;
    }

    .flow-main-title {
        font-size: 1.45rem;
    }

    .flow-glass-hull {
        padding: 20px;
        gap: 14px;
    }

    .step-icon-box {
        flex: 0 0 40px;
        height: 40px;
        border-radius: 10px;
    }

    .step-icon-box svg {
        width: 20px;
        height: 20px;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .step-desc {
        font-size: 0.84rem;
        line-height: 1.65;
        margin-bottom: 10px;
    }

    .step-features-specs {
        gap: 8px;
    }

    .step-features-specs span {
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   محصولات (Products Slider) - Fully Responsive & Optimized
   ========================================================================== */
.products-section {
    width: 92%;
    max-width: 1400px;
    margin: 100px auto;
    position: relative;
    padding: 40px 30px;
    background: rgba(5, 31, 32, 0.058);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    z-index: 15;
    direction: rtl;
    /* تضمین راست‌چین بودن کل سکشن */
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(20px, 4vw, 24px);
    /* ریسپانسیو شدن تایپوگرافی تایتل */
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.liquid-drop {
    width: 14px;
    height: 14px;
    background: #00f2fe;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation: morphDrop 4s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 241, 254, 0.2);
    /* سایه کمی قوی‌تر برای دیده شدن بهتر */
    flex-shrink: 0;
}

@keyframes morphDrop {

    0%,
    100% {
        border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    }

    50% {
        border-radius: 40% 60% 40% 60% / 50% 50% 50% 50%;
    }
}

.view-all-link {
    text-decoration: none;
    background: rgba(0, 242, 254, 0.08);
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* جلوگیری از شکستن دکمه در موبایل */
}

.view-all-link:hover {
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    /* استفاده از گرادینت اصلی و درخشان برند */
    color: #040c1a;
    /* تغییر رنگ متن به سرمه‌ای تیره برای تضاد و خوانایی فوق‌العاده */
    border-color: transparent;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.45);
    /* هاله نوری فیروزه‌ای هماهنگ */
    transform: translateY(-3px);
    /* یک حرکت ملایم به سمت بالا برای حس تعامل لوکس */
}

/* ---------------- کانتینر اسلایدر ---------------- */
.products-slider {
    display: flex;
    gap: 20px;
    /* کاهش گپ برای موبایل و مدیریت بهتر در دسکتاپ */
    overflow-x: auto;
    padding: 20px 5px 40px 5px;
    /* پدینگ پایین بیشتر برای جا دادن سایه‌ها */
    scrollbar-width: none;
    /* پنهان کردن اسکرول‌بار در فایرفاکس */
    -ms-overflow-style: none;
    /* پنهان کردن در IE/Edge */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* اسکرول نرم در iOS */
    /* نکته کلیدی: ایجاد پدینگ امن در دو طرف برای وسط‌چین شدن کارت‌ها در موبایل */
    scroll-padding: 0 15px;
}

.products-slider::-webkit-scrollbar {
    display: none;
    /* پنهان کردن اسکرول‌بار در کروم و سافاری */
}

.liquid-gate {
    filter: url('#liquid-goo');
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------------- استایل کارت محصول ---------------- */
.liquid-card {
    opacity: 0;
    transform: scale(0.5) translateY(80px);
    transition: opacity 1s ease, transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.liquid-reveal-container.active .liquid-card {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.liquid-reveal-container.active .liquid-card:nth-child(1) {
    transition-delay: 0.1s;
}

.liquid-reveal-container.active .liquid-card:nth-child(2) {
    transition-delay: 0.2s;
}

.liquid-reveal-container.active .liquid-card:nth-child(3) {
    transition-delay: 0.3s;
}

.liquid-reveal-container.active .liquid-card:nth-child(4) {
    transition-delay: 0.4s;
}

.liquid-reveal-container.active .liquid-card:nth-child(5) {
    transition-delay: 0.5s;
}

.liquid-reveal-container.active .liquid-card:nth-child(6) {
    transition-delay: 0.6s;
}

.liquid-reveal-container.active .liquid-gate {
    filter: none;
}

.product-card.liquid-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 260px;
    /* جلوگیری از بیش از حد کوچک شدن کارت‌ها */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 36px;
    /* کمی گردی کمتر برای هماهنگی با عرض جدید */
    padding: 20px;
    /* پدینگ بهینه شده */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    /* فاصله داخلی کمتر */
    scroll-snap-align: center;
    /* تراز شدن کارت در وسط صفحه در هنگام اسکرول */
    z-index: 1;
    transition: border-radius 0.8s cubic-bezier(0.3, 1, 0.2, 1), transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
}

.liquid-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.2) 0%, rgba(4, 21, 45, 0.95) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

/* رفع باگ پرش هاور در موبایل با Media Query */
@media (hover: hover) {
    .product-card.liquid-card:hover {
        transform: translateY(-8px) scale(1.02);
        border-color: rgba(0, 242, 254, 0.5);
        border-radius: 12% 18% 22% 14% / 15% 15% 19% 19%;
        /* نوسان کنترل شده */
        box-shadow: 0 20px 40px -15px rgba(4, 12, 26, 0.7), 0 0 30px -5px rgba(0, 242, 254, 0.3), inset 0 0 25px rgba(0, 242, 254, 0.2);
        animation: cardLiquidWave 4s linear infinite alternate;
    }

    .product-card.liquid-card:hover .liquid-bg {
        opacity: 1;
    }

    .product-card.liquid-card:hover .img-wrapper {
        border-radius: 28% 36% 32% 40% / 36% 32% 40% 34%;
    }

    .product-card.liquid-card:hover .img-wrapper img {
        transform: scale(1.05);
    }

    .product-card.liquid-card:hover .product-name {
        color: #ffffff;
        text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    }

    .price-btn:hover {
        border-color: #00f2fe;
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    }

    .price-btn:hover .btn-text {
        color: #040c1a;
    }

    .price-btn:hover::before {
        bottom: 0;
        animation: btnLiquidWave 1.2s linear infinite;
    }
}

@keyframes cardLiquidWave {
    0% {
        border-radius: 12% 15% 15% 15% / 19% 19% 19% 19%;
    }

    33% {
        border-radius: 19% 15% 19% 15% / 19% 19% 19% 19%;
    }

    66% {
        border-radius: 19% 19% 11% 19% / 20% 20% 19% 21%;
    }

    100% {
        border-radius: 13% 18% 21% 19% / 18% 19% 18% 19%;
    }
}

.img-wrapper {
    width: 100%;
    height: 180px;
    /* ارتفاع بهینه شده برای موبایل و دسکتاپ */
    background: #ffffff;
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: border-radius 0.7s cubic-bezier(0.3, 1, 0.2, 1);
    position: relative;
    z-index: 2;
}

.img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    /* جلوگیری از دو خطی شدن نام‌های طولانی و بهم ریختن ارتفاع کارت‌ها */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-btn {
    width: 100%;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 10;
    transition: all 0.4s ease;
}

.price-btn .btn-text {
    font-size: 13px;
    font-weight: 700;
    color: #00f2fe;
    position: relative;
    z-index: 3;
    transition: color 0.4s ease;
}

.price-btn::before {
    content: '';
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
    bottom: -115%;
    z-index: 2;
    /* تغییر رنگ تاج موج به فیروزه‌ای خالص (%2300f2fe) و اصلاح گرادینت پس‌زمینه به آبی عمیق اقیانوسی لوکس */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V95c150,0,150,20,300,20s150-20,300-20,150,20,300,20,150-20,300-20V0Z' fill='%2300f2fe'/%3E%3C/svg%3E"),
    linear-gradient(to top, #0072ff 0%, #00f2fe 100%);
    background-position: top center;
    background-repeat: repeat-x, no-repeat;
    background-size: 50% 10px, 100% 100%;
    transform: scaleY(-1);
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* بخش کدهای هوور (تغییر رنگ‌ها برای خوانایی و درخشش نئونی دکمه) */
.price-btn:hover {
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.45);
}

.price-btn:hover .btn-text {
    color: #040c1a;
    /* تغییر رنگ متن به سرمه‌ای عمیق روی مایع فیروزه‌ای برای کنتراست خیره‌کننده */
}

.price-btn:hover::before {
    bottom: 0;
    animation: btnLiquidWave 1.2s linear infinite;
}

@keyframes btnLiquidWave {
    0% {
        transform: scaleY(-1) translateX(0);
    }

    100% {
        transform: scaleY(-1) translateX(-50%);
    }
}

/* ---------------- ناوبری نقطه‌ای ---------------- */
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    /* فاصله بهینه */
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-dots .dot.active {
    background: #00f2fe;
    width: 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 241, 254, 0.3);
}

/* ==========================================================================
   ریسپانسیو (Responsive Breakpoints)
   ========================================================================== */
/* ==========================================================================
   ریسپانسیو محصولات (۲ ستونه در موبایل)
   ========================================================================== */
@media (max-width: 1200px) {

    /* تبلت‌های بزرگ: ۳ کارت */
    .product-card.liquid-card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 900px) {

    /* تبلت‌های کوچک: ۳ کارت فشرده‌تر */
    .product-card.liquid-card {
        flex: 0 0 calc(33.333% - 15px);
    }
}

@media (max-width: 650px) {
    .products-section {
        padding: 25px 15px;
        width: 96%;
        border-radius: 24px;
    }

    .products-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .view-all-link {
        align-self: flex-end;
    }

    .products-slider {
        gap: 12px;
        /* فاصله بین کارت‌ها در موبایل */
        padding: 10px 5px 20px 5px;
        scroll-padding: 0 5px;
    }

    /* جادوی موبایل: دقیقاً ۲ کارت در هر نما (۵۰ درصد عرض منهای نصف فاصله) */
    .product-card.liquid-card {
        flex: 0 0 calc(50% - 6px);
        min-width: unset;
        border-radius: 24px;
        padding: 12px;
        gap: 12px;

        /* در موبایل، کارت‌ها در وسط تراز می‌شوند تا کاربر بتواند לبه‌های کارت‌های کناری را ببیند */
        scroll-snap-align: center;
    }

    /* کوچک کردن باکس عکس متناسب با عرض جدید */
    .img-wrapper {
        height: 120px;
        border-radius: 18px;
        padding: 8px;
    }

    /* کوچک کردن تایپوگرافی برای جلوگیری از به هم ریختگی */
    .product-name {
        font-size: 12px;
        white-space: normal;
        /* اجازه دو خطی شدن نام‌های طولانی در فضای کوچک */
        line-height: 1.4;
        height: 34px;
        /* ثابت نگه داشتن ارتفاع متن */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .price-btn {
        padding: 8px;
        border-radius: 10px;
    }

    .price-btn .btn-text {
        font-size: 11px;
    }
}

@media (max-width: 400px) {

    /* برای موبایل‌های خیلی باریک، فاصله را کمتر می‌کنیم تا ۲ کارت راحت‌تر جا شوند */
    .products-slider {
        gap: 8px;
    }

    .product-card.liquid-card {
        flex: 0 0 calc(50% - 4px);
        padding: 10px;
        scroll-snap-align: center;
        /* تکرار برای اطمینان */
    }

    .img-wrapper {
        height: 110px;
    }

    .product-name {
        font-size: 11px;
    }

    .price-btn .btn-text {
        font-size: 10px;
    }
}


/* ==========================================================================
   دسته بندی‌ها (Categories Bubble Grid) - Ultra Luxury Edition
   ========================================================================== */
.pool-categories-section {
    width: 100%;
    max-width: 1400px;
    margin: 120px auto;
    padding: 60px 30px;
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 70px;
    position: relative;
}

/* هماهنگ‌سازی هدر با سایر سکشن‌های لوکس سایت */
.pool-categories-section .categories-header {
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pool-categories-section .justify-center {
    justify-content: center;
}

.pool-categories-section .mt-4 {
    margin-top: 16px;
}

.pool-categories-section .mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.categories-grid-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.category-bubble-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-decoration: none;
    outline: none;
    position: relative;
    will-change: transform;
    animation: organicOrbFloat 5s ease-in-out infinite alternate;
}

/* حرکت شناور نوسانی و نرم اختصاصی اورب‌ها */
.category-bubble-card:nth-child(even) {
    animation-duration: 6s;
    animation-delay: 0.7s;
}

@keyframes organicOrbFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* فریم اورب مایع شیشه‌ای با انعکاس‌های نوری سه‌بعدی */
.bubble-liquid-frame {
    width: 190px;
    height: 190px;
    position: relative;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(0, 242, 254, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 45px rgba(4, 12, 26, 0.5),
    inset 0 0 20px rgba(0, 242, 254, 0.15),
    inset -10px -10px 25px rgba(0, 114, 255, 0.1);
    overflow: hidden;
    will-change: transform, border-radius, filter;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s, border-radius 0.7s ease;
}

/* ایجاد خط بازتاب براق روی شیشه اورب (Glossy Surface effect) */
.bubble-liquid-frame::before {
    content: '';
    position: absolute;
    top: 6%;
    left: 15%;
    width: 45%;
    height: 22%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), transparent);
    border-radius: 50% / 35%;
    z-index: 4;
    transform: rotate(-12deg);
    pointer-events: none;
}

/* هاله نئونی زیرپوستی درون قاب */
.category-orb-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(0, 242, 254, 0.25) 0%, transparent 65%);
    z-index: 3;
    mix-blend-mode: screen;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.category-img-src {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: saturate(90%) brightness(0.85);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.gradient-water-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 30%, rgba(4, 15, 36, 0.75) 100%);
    pointer-events: none;
    z-index: 2;
}

/* تایتل مینیمال و شیک اورب‌ها با افکت ترکینگ حرفه‌ای */
.category-bubble-title {
    font-size: 15px;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.3px;
    transition: color 0.4s ease, transform 0.4s ease, text-shadow 0.4s ease;
}

/* افکت‌های هاور پیشرفته بیولوژیکی جلی ماتی */
.category-bubble-card:hover {
    animation-play-state: paused;
}

.category-bubble-card:hover .bubble-liquid-frame {
    filter: url('#fluid-bubble-jelly');
    transform: scale(1.15) translateY(-5px);
    border-color: rgba(0, 242, 254, 0.6);
    box-shadow: 0 30px 60px rgba(0, 242, 254, 0.25),
    0 0 40px rgba(0, 242, 254, 0.15),
    inset 0 0 30px rgba(0, 242, 254, 0.4);
    animation: jellyBubbleMorph 2.5s linear infinite alternate;
}

.category-bubble-card:hover .category-img-src {
    transform: scale(1.15);
    filter: saturate(110%) brightness(1.05);
}

.category-bubble-card:hover .category-orb-glow {
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.4) 0%, transparent 70%);
}

.category-bubble-card:hover .category-bubble-title {
    color: #00f2fe;
    transform: translateY(3px);
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
}

/* ریسپانسیو کاملا متناسب */
@media (max-width: 992px) {
    .categories-grid-container {
        gap: 35px;
    }

    .bubble-liquid-frame {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 650px) {
    .pool-categories-section {
        margin: 60px auto;
        gap: 45px;
    }

    .categories-grid-container {
        gap: 20px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* چیدمان منظم ۲ ستونه در موبایل */
        justify-items: center;
    }

    .bubble-liquid-frame {
        width: 140px;
        height: 140px;
    }

    .category-bubble-title {
        font-size: 13px;
    }
}

/* ==========================================================================
   وبلاگ و مقالات (Latest Blogs) - Fully Responsive Luxury
   ========================================================================== */
.latest-blogs-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 80px 0;
    background: var(--sf-glass-bg);
    overflow: hidden;
    border-bottom: 1px solid var(--sf-glass-border);
    direction: rtl;
}

.blogs-container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;
}

.blogs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.blogs-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-dot {
    width: 12px;
    height: 12px;
    background: var(--sf-grad-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.4);
}

.blogs-main-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.view-all-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-white);
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.blog-card {
    border-radius: 24px 8px 24px 8px;
    background: rgba(0, 42, 79, 0.64);
    border-top: 1px solid var(--sf-glass-border);
    border-bottom: 1px solid var(--sf-glass-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    will-change: transform, opacity;
    /* مقادیر اولیه برای انیمیشن در JS کنترل می‌شود */
    transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.15), border-radius 0.6s ease, box-shadow 0.5s ease;
}

.blog-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    border-radius: 12px 24px 12px 24px;
    box-shadow: 0 30px 60px rgba(0, 198, 255, 0.2);
    border-color: rgba(0, 198, 255, 0.4);
}

.blog-image-wrapper {
    width: 100%;
    height: 230px;
    overflow: hidden;
    position: relative;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-img {
    transform: scale(1.1) rotate(-1deg);
}

.blog-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 20px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.6;
    height: 64px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-more-btn {
    align-self: flex-start;
    position: relative;
    padding: 10px 24px;
    border-radius: 20px;
    border: 1px solid rgba(0, 198, 255, 0.4);
    background: rgba(0, 198, 255, 0.05);
    color: #00c6ff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease, border-color 0.4s ease;
}

.view-all-btn::before,
.blog-more-btn::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -100%;
    height: 100%;
    z-index: -1;
    transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-all-btn:hover::before,
.blog-more-btn:hover::before {
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V45c100,0,200,20,300,20s200-20,300-20,200,20,300,20,200-20,300-20V0Z' fill='%2300c6ff'/%3E%3C/svg%3E"),
    linear-gradient(to top, #00d0ff 80%, transparent);
    background-position: top center;
    background-repeat: repeat-x, no-repeat;
    background-size: 50% 12px, 100% 100%;
    transform: scaleY(-1);
}

.view-all-btn:hover,
.blog-more-btn:hover {
    color: var(--text-white);
    border-color: #00c6ff;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
}

.arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover .arrow-icon {
    transform: translateX(-5px);
}

.blog-footer-meta {
    background: var(--sf-grad-meta);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 500;
}

.meta-right,
.meta-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item svg {
    width: 15px;
    height: 15px;
    opacity: 0.9;
}

/* ================== ریسپانسیو فوق‌حرفه‌ای مقالات ================== */
@media (max-width: 1024px) {
    .blogs-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 10px 5px 40px 5px;
        /* پدینگ پایین برای جلوگیری از بریده شدن سایه‌ها */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .blogs-grid::-webkit-scrollbar {
        display: none;
    }

    .blog-card {
        flex: 0 0 calc(50% - 10px);
        /* 2 کارت در تبلت */
        min-width: 320px;
        scroll-snap-align: center;
    }
}

@media (max-width: 768px) {
    .blogs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 30px;
    }

    .view-all-btn {
        align-self: flex-end;
    }

    .blog-card {
        /* جادوی UI اپلیکیشنی: کارت‌ها کامل نشان داده می‌شوند اما لبه‌ی کارت بعدی مشخص است */
        flex: 0 0 calc(100% - 40px);
        min-width: 280px;
    }

    .blogs-main-title {
        font-size: 1.6rem;
    }

    .blog-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .blog-card {
        flex: 0 0 calc(100% - 20px);
    }

    .blog-title {
        font-size: 1.1rem;
        height: 54px;
    }

    .blog-content {
        padding: 20px;
    }
}


/* ==========================================================================
   فوتر (Main Footer)
   ========================================================================== */
.main-footer {
    position: relative;
    width: 100%;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    padding: 70px 0 25px 0;
    margin-top: 80px;
    overflow: hidden;
}

.footer-water-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 85%, rgba(0, 49, 52, 0.127) 0%, transparent 40%), radial-gradient(circle at 85% 20%, rgba(13, 33, 50, 0.142) 0%, transparent 45%);
    z-index: 1;
    pointer-events: none;
    animation: footerWaterMove 10s ease-in-out infinite alternate;
}

@keyframes footerWaterMove {
    0% {
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg);
    }

    100% {
        transform: scale(1.08) rotate(2deg);
        filter: hue-rotate(10deg);
    }
}

.footer-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 50px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* اطلاعات تماس برند */
.col-brand .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-info li:hover {
    color: #fff;
}

.contact-info .icon {
    width: 18px;
    height: 18px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.en-text {
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
}

/* شبکه‌های اجتماعی */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

.social-btn[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 5px 20px rgba(238, 42, 123, 0.5);
}

.social-btn[aria-label="Telegram"]:hover {
    background: linear-gradient(135deg, #26a5e4, #1d93d2);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 5px 20px rgba(38, 165, 228, 0.5);
}

.social-btn[aria-label="YouTube"]:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
}

/* لینک‌های سریع */
.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 2px;
    background: var(--accent-blue);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    position: relative;
    padding: 2px 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-links a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.footer-links a:hover::after {
    width: 100%;
}

/* دکمه‌های ورود و عضویت */
.footer-about-text {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
}

.footer-auth-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-btn {
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer-btn svg,
.footer-btn span {
    position: relative;
    z-index: 3;
    transition: color 0.4s ease;
}

.auth-login {
    background: rgba(0, 242, 254, 0.08);
    color: var(--accent-blue);
    border-color: rgba(0, 242, 254, 0.2);
}

.auth-register {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

.footer-btn::before {
    content: '';
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
    bottom: -110%;
    z-index: 2;
    transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

@keyframes btnWaveFlow {
    0% {
        transform: translateX(0) scaleY(-1);
    }

    100% {
        transform: translateX(-50%) scaleY(-1);
    }
}

.auth-login:hover {
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.auth-login:hover svg,
.auth-login:hover span {
    color: #040c1a;
}

.auth-login:hover::before {
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V45c100,0,200,20,300,20s200-20,300-20,200,20,300,20,200-20,300-20V0Z' fill='%23ffffff'/%3E%3C/svg%3E"), linear-gradient(to top, #ffffff 80%, transparent);
    background-position: top center;
    background-repeat: repeat-x, no-repeat;
    background-size: 50% 12px, 100% 100%;
    animation: btnWaveFlow 1.5s linear infinite;
}

.auth-register:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

.auth-register:hover svg,
.auth-register:hover span {
    color: #040c1a;
}

.auth-register:hover::before {
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V45c100,0,200,20,300,20s200-20,300-20,200,20,300,20,200-20,300-20V0Z' fill='%234facfe'/%3E%3C/svg%3E"), linear-gradient(to top, #4facfe 80%, transparent);
    background-position: top center;
    background-repeat: repeat-x, no-repeat;
    background-size: 50% 12px, 100% 100%;
    animation: btnWaveFlow 1.5s linear infinite;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* کپی رایت */
.footer-bottom {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1400px;
    margin: 50px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    font-size: 13px;
    direction: ltr;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-col {
        align-items: center;
        text-align: center;
    }

    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .col-brand .footer-logo {
        align-items: center;
    }

    .footer-auth-buttons {
        justify-content: center;
        width: 100%;
    }
}


/* ==========================================================================
   سایدبار آکواتیک الیت - نسخه با هاورهای انیمیشنی فوق‌پیشرفته
   ========================================================================== */

/* مخفی شدن نرم و لوکس هدر */
.elite-header.header-hidden {
    transform: translateY(-120%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

/* ساختار سایدبار با فیزیک حرکتی 3D */
.auth-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 2000;

    background: linear-gradient(165deg, rgba(7, 24, 53, 0.94) 0%, rgba(5, 19, 43, 0.97) 100%);
    backdrop-filter: blur(30px) saturate(220%);
    -webkit-backdrop-filter: blur(30px) saturate(220%);

    border-left: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: -25px 0 60px rgba(0, 0, 0, 0.7), inset 2px 0 20px rgba(0, 242, 254, 0.12);

    perspective: 1000px;
    transform: translateX(105%) rotateY(-5deg);
    transform-origin: right center;
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.auth-drawer.active {
    transform: translateX(0) rotateY(0deg);
}

/* افکت زنده بازتاب نور آب */
.auth-drawer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.08) 0%, rgba(0, 119, 255, 0.03) 45%, transparent 70%);
    animation: poolWaterFlow 14s infinite linear;
    pointer-events: none;
    z-index: 0;
}

@keyframes poolWaterFlow {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.15);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* هدر سایدبار */
.drawer-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 35px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.drawer-close-btn:hover {
    background: rgba(255, 0, 85, 0.2);
    border-color: #ff0055;
    color: #ff0055;
    transform: rotate(180deg) scale(1.12);
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.5), inset 0 0 10px rgba(255, 0, 85, 0.3);
}

.drawer-close-btn svg {
    width: 20px;
    height: 20px;
}

/* بدنه سایدبار */
.drawer-body {
    position: relative;
    z-index: 2;
    padding: 35px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* ---------------- انیمیشن تغییر فرم‌ها (Liquid Cross-Slide) ---------------- */
.auth-view {
    display: none;
    opacity: 0;
    filter: blur(10px);
    transform: translateX(40px) scale(0.96);
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-view.exiting {
    opacity: 0;
    filter: blur(10px);
    transform: translateX(-40px) scale(0.96);
}

.auth-view.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    filter: blur(0px);
    transform: translateX(0) scale(1);
}

/* ---------------- انیمیشن آبشاری عناصر داخل فرم ---------------- */
.auth-view .auth-heading,
.auth-view .input-group,
.auth-view .form-row,
.auth-view .btn-auth-submit,
.auth-view .auth-switch-text,
.auth-view .profile-card-header,
.auth-view .info-tile,
.auth-view .profile-actions {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-view.active .auth-heading {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .form-row {
    transition-delay: 0.15s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .input-group:nth-child(1) {
    transition-delay: 0.15s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .input-group:nth-child(2) {
    transition-delay: 0.22s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .input-group:nth-child(3) {
    transition-delay: 0.29s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .input-group:nth-child(4) {
    transition-delay: 0.36s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .input-group:nth-child(5) {
    transition-delay: 0.43s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .btn-auth-submit {
    transition-delay: 0.48s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .auth-switch-text {
    transition-delay: 0.55s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .profile-card-header {
    transition-delay: 0.12s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .info-tile:nth-child(1) {
    transition-delay: 0.22s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .info-tile:nth-child(2) {
    transition-delay: 0.32s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .profile-actions {
    transition-delay: 0.42s;
    opacity: 1;
    transform: translateY(0);
}

/* تایپوگرافی */
.auth-heading {
    margin-bottom: 30px;
}

.auth-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #00f2fe;
    letter-spacing: 1px;
    margin-bottom: 8px;
    background: rgba(0, 242, 254, 0.08);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 254, 0.25);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
    transition: all 0.3s ease;
}

.auth-badge:hover {
    background: rgba(0, 242, 254, 0.18);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

.auth-heading h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.auth-heading p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}

/* ---------------- فرم‌ها و اینپوت‌های نئونی شناور ---------------- */
.elite-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    position: relative;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.input-group:hover {
    background: rgba(0, 242, 254, 0.02);
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: transparent !important;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 14px;
    outline: none;
    border-radius: 0;
    transition: all 0.4s ease;
}

.input-group label {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 13px;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: -12px;
    right: 0;
    font-size: 11px;
    color: #00f2fe;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe, #4facfe, #00f2fe);
    box-shadow: 0 0 15px #00f2fe;
    transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(-50%);
}

.input-group input:focus ~ .input-glow,
.input-group:hover .input-glow {
    width: 100%;
}

.form-options {
    display: flex;
    justify-content: flex-end;
}

.forgot-link {
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #00f2fe;
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.7);
    transform: translateX(-3px);
}

/* ---------------- دکمه ثبت انیمیشنی فوق‌آکواتیک (Ultra-Liquid Submit Button) ---------------- */
.btn-auth-submit {
    position: relative;
    margin-top: 10px;
    padding: 16px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #00f2fe 0%, #0077ff 50%, #00d2ff 100%);
    background-size: 200% 200%;
    color: #030a16;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    box-shadow: 0 4px 4px #00171847, 0 0 4px #0010223b;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* افکت نور انعکاسی مورب (Sheen Wave) */
.btn-auth-submit::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 70%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: rotate(25deg);
    transition: left 0.75s ease;
}

/* موج مایع گستردنی موقع هاور (Liquid Expand Ripple) */
.btn-auth-submit::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

/* حالت هاور دکمه ثبت */
.btn-auth-submit:hover {
    transform: translateY(-4px) scale(1.025);
    background-position: 100% 0%;
    box-shadow: 0 7px 7px rgba(0, 242, 254, 0.5), 0 0 7px rgba(0, 119, 255, 0.4);
    background: linear-gradient(135deg, #b0f3f7 0%, #5db2f7 50%, #82d7e7 100%);
}

.btn-auth-submit:hover::before {
    left: 140%;
}

.btn-auth-submit:hover::after {
    width: 320px;
    height: 320px;
    opacity: 1;
}

/* انیمیشن آیکون فلش داخل دکمه */
.btn-auth-submit svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-auth-submit:hover svg {
    transform: translateX(-8px) scale(1.15);
}

/* افکت کلیک دکمه (Active state) */
.btn-auth-submit:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 18px rgba(0, 242, 254, 0.3);
}

/* دکمه‌های سوئیچ فرم */
.auth-switch-text {
    margin-top: auto;
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

.link-btn {
    background: none;
    border: none;
    color: #00f2fe;
    font-weight: 700;
    cursor: pointer;
    margin-right: 5px;
    position: relative;
    font-size: 13px;
    transition: all 0.3s ease;
}

.link-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe, #0077ff);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: right;
    box-shadow: 0 0 8px #00f2fe;
}

.link-btn:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
}

.link-btn:hover::after {
    transform: scaleX(0);
    transform-origin: left;
}

/* هدر پروفایل */
.profile-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
}

.user-avatar-glow {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #00f2fe, #0077ff);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
    margin-bottom: 12px;
    animation: avatarPulse 4s infinite alternate;
    transition: transform 0.4s ease;
}

.user-avatar-glow:hover {
    transform: scale(1.06) rotate(4deg);
}

@keyframes avatarPulse {
    0% {
        box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    }
    100% {
        box-shadow: 0 0 38px rgba(0, 242, 254, 0.65);
    }
}

.avatar-inner {
    width: 100%;
    height: 100%;
    background: #061226;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00f2fe;
}

.avatar-inner svg {
    width: 36px;
    height: 36px;
}

.profile-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.user-main-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin: 0;
}

.user-badge-vip {
    font-size: 10.5px;
    font-weight: 700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 3px 12px;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
    transition: all 0.3s ease;
}

.user-badge-vip:hover {
    background: rgba(255, 215, 0, 0.22);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

/* ---------------- پنل شیشه‌ای یکپارچه نمایش اطلاعات ---------------- */
.profile-details-panel {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 20px;
    padding: 10px 22px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: inset 0 0 25px rgba(0, 242, 254, 0.03), 0 10px 30px rgba(0, 0, 0, 0.25);
    margin-bottom: 25px;
}

.details-row {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

.details-row:last-child {
    border-bottom: none;
}

/* حالت دو ستونه برای نام و نام خانوادگی */
.details-row.dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bullet-dot {
    width: 5px;
    height: 5px;
    background: #00f2fe;
    border-radius: 50%;
    box-shadow: 0 0 6px #00f2fe;
    display: inline-block;
}

.field-value {
    font-size: 14.5px;
    color: #f1f5f9;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.field-value.highlight {
    color: #00f2fe;
    font-family: inherit;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.field-value.address-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #cbd5e1;
    font-weight: 500;
}

/* ---------------- دکمه‌های اکشن پروفایل ---------------- */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.btn-profile-action {
    padding: 15px;
    border-radius: 30px;
    border: none;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-profile-action.primary {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(0, 119, 255, 0.12));
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.35);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.1);
}

.btn-profile-action.primary svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-profile-action.primary:hover {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(0, 119, 255, 0.25));
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.35);
    transform: translateY(-3px);
    color: #ffffff;
}

.btn-profile-action.primary:hover svg {
    transform: translateX(-4px);
}

.btn-profile-action.logout {
    background: rgba(255, 51, 102, 0.06);
    color: #ff3366;
    border: 1px solid rgba(255, 51, 102, 0.22);
}

.btn-profile-action.logout:hover {
    background: rgba(255, 51, 102, 0.18);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .auth-drawer {
        width: 100vw;
        border-left: none;
    }

    .drawer-body {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   بخش دکمه‌های اکشن پروفایل و دکمه ویرایش (Secondary Action Button)
   ========================================================================== */

/* کانتینر اصلی دکمه‌های پروفایل */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    width: 100%;
}

/* استایل پایه مشترک تمام دکمه‌های اکشن */
.btn-profile-action {
    position: relative;
    width: 100%;
    padding: 15px 20px;
    border-radius: 30px;
    border: none;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-profile-action span {
    position: relative;
    z-index: 2;
    letter-spacing: -0.2px;
}

.btn-profile-action svg {
    position: relative;
    z-index: 2;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

/* ==========================================================================
   دکمه اختصاصی ویرایش اطلاعات (Secondary)
   ========================================================================== */
.btn-profile-action.secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 242, 254, 0.03) 100%);
    color: #e2e8f0;
    border: 1px solid rgba(0, 242, 254, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 12px rgba(0, 242, 254, 0.03);
}

/* افکت موج نوری مورب موقع هاور (Sheen Light Wave) */
.btn-profile-action.secondary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(0, 242, 254, 0.25) 50%,
            transparent 100%
    );
    transform: rotate(25deg);
    transition: left 0.75s ease;
    z-index: 1;
    pointer-events: none;
}

/* حالت هاور دکمه ویرایش */
.btn-profile-action.secondary:hover {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(0, 119, 255, 0.15) 100%);
    color: #00f2fe;
    border-color: rgba(0, 242, 254, 0.55);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.22), inset 0 0 15px rgba(0, 242, 254, 0.1);
}

/* رد شدن نور مورب با هاور */
.btn-profile-action.secondary:hover::before {
    left: 140%;
}

/* چرخش و بزرگ‌نمایی آیکون قلم ویرایش در هاور */
.btn-profile-action.secondary:hover svg {
    transform: rotate(-10deg) scale(1.18);
    color: #00f2fe;
    filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.8));
}

/* حالت کلیک لمسی / اکتیو (Active State) */
.btn-profile-action.secondary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.15);
}


/* ==========================================================================
   ریسپانسیو کامل (Mobile & Tablet Adjustments)
   ========================================================================== */

/* تبلت و نمایشگرهای متوسط */
@media (max-width: 768px) {
    .btn-profile-action {
        padding: 14px 18px;
        font-size: 13px;
    }
}

/* موبایل‌های کوچک تا متوسط (زیر ۴۸۰ پیکسل) */
@media (max-width: 480px) {
    .profile-actions {
        gap: 10px;
    }

    .btn-profile-action {
        padding: 13px 16px;
        font-size: 12.5px;
        border-radius: 25px;
    }

    .btn-profile-action svg {
        width: 15px;
        height: 15px;
    }
}

/* پشتیبانی از حالت کاهش حرکات (Accessibility / Reduced Motion) */
@media (prefers-reduced-motion: reduce) {
    .btn-profile-action,
    .btn-profile-action svg,
    .btn-profile-action.secondary::before {
        transition: none !important;
        transform: none !important;
    }
}


/* ==========================================================================
   Order History View (Sidebar Integration)
   ========================================================================== */
.orders-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 10px;
}

.orders-list-container::-webkit-scrollbar {
    width: 4px;
}

.orders-list-container::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.3);
    border-radius: 4px;
}

.order-history-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.order-history-card:hover {
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.05);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.order-track {
    font-size: 13px;
    color: #00f2fe;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.order-status {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

/* Status Colors Based on Django Choices */
.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-processing {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-shipped {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.status-delivered {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-canceled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.order-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-info {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
}

.info-label {
    color: #94a3b8;
}

.info-val {
    color: #e2e8f0;
    font-weight: 600;
}

.empty-orders {
    text-align: center;
    padding: 50px 0;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.05);
}

.empty-orders svg {
    width: 54px;
    height: 54px;
    opacity: 0.3;
}

/* ==========================================================================
   دکمه‌های ورود و عضویت فوتر (استایل لوکس و کپسولی)
========================================================================== */
.footer-auth-buttons {
    display: flex;
    gap: 16px;
    margin-top: 25px;
    flex-wrap: wrap;
    width: 100%;
}

.footer-btn {
    flex: 1; /* باعث می‌شود هر دو دکمه دقیقاً هم‌اندازه شوند */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 52px;
    padding: 0 20px;
    border-radius: 40px; /* تبدیل به حالت کپسولی و لوکس */
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-btn .btn-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    transition: color 0.4s ease;
    display: block;
}

.footer-btn span {
    position: relative;
    z-index: 3;
    transition: color 0.4s ease;
    line-height: 1;
}

.auth-login {
    background: rgba(0, 242, 254, 0.08);
    color: var(--accent-blue);
    border-color: rgba(0, 242, 254, 0.2);
}

.auth-register {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

/* افکت موج مایع برای هاور */
.footer-btn::before {
    content: '';
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
    bottom: -110%;
    z-index: 2;
    transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.auth-login:hover {
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.auth-login:hover .btn-icon,
.auth-login:hover span {
    color: #040c1a;
}

.auth-login:hover::before {
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V45c100,0,200,20,300,20s200-20,300-20,200,20,300,20,200-20,300-20V0Z' fill='%23ffffff'/%3E%3C/svg%3E"), linear-gradient(to top, #ffffff 80%, transparent);
    background-position: top center;
    background-repeat: repeat-x, no-repeat;
    background-size: 50% 12px, 100% 100%;
    animation: btnWaveFlow 1.5s linear infinite;
}

.auth-register:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    transform: translateY(-3px);
}

.auth-register:hover .btn-icon,
.auth-register:hover span {
    color: #040c1a;
}

.auth-register:hover::before {
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V45c100,0,200,20,300,20s200-20,300-20,200,20,300,20,200-20,300-20V0Z' fill='%234facfe'/%3E%3C/svg%3E"), linear-gradient(to top, #4facfe 80%, transparent);
    background-position: top center;
    background-repeat: repeat-x, no-repeat;
    background-size: 50% 12px, 100% 100%;
    animation: btnWaveFlow 1.5s linear infinite;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 480px) {
    .footer-auth-buttons {
        flex-direction: column; /* در موبایل دکمه‌ها زیر هم قرار می‌گیرند */
    }
}

        /* مخفی کردن دایره قرمز در صورتی که سبد خرید خالی باشد */
        .cart-pill[data-count="0"]::after {
            display: none !important;
        }

        /* ========================================================= */
        /* استایل دکمه‌های فوتر برای کاربر لاگین شده (رفع باگ تداخل) */
        /* ========================================================= */
        .auth-profile-btn {
            background: rgba(0, 242, 254, 0.08);
            color: var(--accent-blue);
            border-color: rgba(0, 242, 254, 0.2);
        }

        .auth-profile-btn:hover {
            border-color: #ffffff;
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
            transform: translateY(-2px);
        }

        .auth-profile-btn:hover .btn-icon, .auth-profile-btn:hover span {
            color: #040c1a;
        }

        .auth-profile-btn:hover::before {
            bottom: 0;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V45c100,0,200,20,300,20s200-20,300-20,200,20,300,20,200-20,300-20V0Z' fill='%23ffffff'/%3E%3C/svg%3E"), linear-gradient(to top, #ffffff 80%, transparent);
            background-position: top center;
            background-repeat: repeat-x, no-repeat;
            background-size: 50% 12px, 100% 100%;
            animation: btnWaveFlow 1.5s linear infinite;
        }

        .auth-consult-btn {
            background: rgba(255, 255, 255, 0.02);
            color: #fff;
        }

        .auth-consult-btn:hover {
            border-color: var(--accent-blue);
            box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
            transform: translateY(-2px);
        }

        .auth-consult-btn:hover .btn-icon, .auth-consult-btn:hover span {
            color: #040c1a;
        }

        .auth-consult-btn:hover::before {
            bottom: 0;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V45c100,0,200,20,300,20s200-20,300-20,200,20,300,20,200-20,300-20V0Z' fill='%234facfe'/%3E%3C/svg%3E"), linear-gradient(to top, #4facfe 80%, transparent);
            background-position: top center;
            background-repeat: repeat-x, no-repeat;
            background-size: 50% 12px, 100% 100%;
            animation: btnWaveFlow 1.5s linear infinite;
        }

