/* Reset و تنظیمات اولیه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Floating Menu - Apple Style */
.floating-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-100%);
}

.floating-menu.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.menu-logo {
    flex-shrink: 0;
    margin-left: 24px;
}

.logo-image {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}

.logo-image:hover {
    opacity: 1;
    transform: scale(1.05);
}

.menu-items {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
    margin-right: 24px;
}

.menu-item {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}

.menu-item:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #007AFF, #00D4FF);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item:hover::after {
    width: 100%;
}

.menu-actions {
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* جلوگیری از اسکرول پس‌زمینه */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.mobile-menu .menu-item {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu .menu-item:last-child {
    border-bottom: none;
}

.mobile-menu .menu-item:hover {
    color: #007AFF;
    transform: scale(1.05);
}

/* Phone Item Styles */
.phone-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white !important;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.phone-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.phone-item:hover::before {
    left: 100%;
}

.phone-item:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #20c997, #28a745);
}

.phone-icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
    flex-shrink: 0;
}

.phone-number {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 11px;
    direction: ltr;
}

/* Mobile Phone Item */
.mobile-menu .phone-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white !important;
    border-radius: 10px;
    margin: 8px 0;
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    direction: ltr;
}

.mobile-menu .phone-item:hover {
    transform: scale(1.03);
    background: linear-gradient(135deg, #20c997, #28a745);
}

.mobile-menu .phone-icon {
    width: 14px;
    height: 14px;
}

.mobile-menu .phone-item .phone-number {
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
}

/* Phone Dropdown Styles */
.phone-dropdown {
    position: relative;
    display: inline-block;
}

.phone-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white !important;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.phone-dropdown-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.phone-dropdown-toggle:hover::before {
    left: 100%;
}

.phone-dropdown-toggle:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #20c997, #28a745);
}

.phone-dropdown-toggle .phone-number {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dropdown-arrow {
    width: 10px;
    height: 10px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.phone-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.phone-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-dropdown:hover .phone-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.phone-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    font-size: 14px;
    direction: ltr;
}

.phone-option:hover {
    background: rgba(40, 167, 69, 0.2);
    transform: translateX(5px);
}

.phone-option .phone-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    direction: rtl;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
}

/* Blurred background image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('bg.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px);
    transform: scale(1.1);
    z-index: -1;
    opacity: 0.6;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* انتخاب کیس */
.case-selector {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.case-option {
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.case-option:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.case-option.active {
    border-color: #007AFF;
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.5);
    transform: scale(1.1);
}

.case-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.case-name {
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.case-option:hover .case-name {
    opacity: 1;
    color: #007AFF;
}

.case-option.active .case-name {
    color: #007AFF;
    opacity: 1;
}

/* نمایشگر تصاویر */
.image-viewer {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* متن روی عکس - Overlay */
.image-text-overlay {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 5;
    padding: 30px 40px;
    max-width: 90%;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.image-text-overlay.visible {
    opacity: 1;
    transform: translateX(-50%);
}

.overlay-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    /* بک‌گراند مشکی شفاف برای خوانایی بهتر */
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 20px;
    border-radius: 12px;
}

.overlay-description {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
    /* بک‌گراند مشکی شفاف برای خوانایی بهتر */
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 16px;
    border-radius: 10px;
}

.image-text-overlay.visible .overlay-title,
.image-text-overlay.visible .overlay-description {
    opacity: 1;
    transform: translateY(0);
}

.case-image {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transform-style: preserve-3d;
    image-rendering: optimizeSpeed;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    opacity: 1;
    border-radius: 20px;
}

/* افکت چرخش سه بعدی */
.case-image.rotating {
    animation: rotate3d 0.5s ease-in-out;
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.05); }
    100% { transform: rotateY(360deg) scale(1); }
}

/* اسکرول بار - نمایش در همه پیج‌ها */
.scrollbar-container {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.scrollbar-track {
    width: 12px;
    height: 400px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.scrollbar-track:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scaleX(1.1);
}

.scrollbar-thumb {
    width: 100%;
    height: 20px;
    background: linear-gradient(135deg, #007AFF, #00D4FF);
    border-radius: 6px;
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00D4FF, #007AFF);
    transform: scaleY(1.1);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.5);
}

.scrollbar-thumb:active {
    cursor: grabbing;
    transform: scaleY(1.05);
}

/* مخفی کردن scroll hint برای دسکتاپ */
.scrollbar-container::after {
    display: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Case Selector Mobile */
    .case-selector {
        left: 15px;
        gap: 15px;
    }
    
    .case-option {
        width: 80px;
        height: 80px;
    }
    
    .case-preview {
        width: 50px;
        height: 50px;
    }
    
    .case-name {
        font-size: 10px;
        margin-top: 5px;
    }
    
    /* Floating Menu Mobile */
    .menu-container {
        padding: 10px 16px;
    }
    
    .menu-items {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .logo-image {
        height: 36px;
    }
    
    .menu-logo {
        margin-left: 16px;
    }
    
    .case-image {
        max-width: 100vw;
        max-height: 100vh;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
        border-radius: 15px;
    }
    
    /* Mobile adjustments */
    .scrollbar-container {
        right: 15px;
    }
    
    .scrollbar-track {
        width: 14px; /* بزرگ‌تر برای لمس راحت‌تر */
        height: 250px; /* بلندتر برای کنترل بهتر */
        background: rgba(255, 255, 255, 0.25); /* واضح‌تر */
        border: 2px solid rgba(255, 255, 255, 0.15);
    }
    
    .scrollbar-thumb {
        height: 25px; /* بزرگ‌تر برای لمس راحت‌تر */
        box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
        /* منطقه لمسی بزرگ‌تر */
        position: relative;
    }
    
    /* افزایش منطقه لمسی برای اسکرول بار در موبایل */
    .scrollbar-thumb::before {
        content: '';
        position: absolute;
        top: -10px;
        bottom: -10px;
        left: -10px;
        right: -10px;
        /* منطقه لمسی نامرئی بزرگ‌تر */
    }
    
    .scrollbar-track:hover {
        transform: scaleX(1.15);
        background: rgba(255, 255, 255, 0.35);
    }
    
    /* افزودن indicator برای نشان دادن امکان استفاده از اسکرول بار */
    .scrollbar-container::after {
        display: block !important;
        content: '↕';
        position: absolute;
        top: -30px;
        right: 50%;
        transform: translateX(50%);
        color: rgba(255, 255, 255, 0.5);
        font-size: 16px;
        animation: scrollHint 2s ease-in-out infinite;
    }
    
    @keyframes scrollHint {
        0%, 100% {
            opacity: 0.3;
            transform: translateX(50%) translateY(0);
        }
        50% {
            opacity: 0.8;
            transform: translateX(50%) translateY(5px);
        }
    }
    
    /* مخفی کردن scroll hint بعد از اولین استفاده */
    body.scrollbar-used .scrollbar-container::after {
        animation: fadeOut 0.5s forwards;
    }
    
    @keyframes fadeOut {
        to {
            opacity: 0;
            display: none;
        }
    }
    
    
    .image-text-overlay {
        bottom: 60px;
        padding: 20px 25px;
        max-width: 90%;
    }
    
    .overlay-title {
        font-size: 18px;
        margin-bottom: 10px;
        background: rgba(0, 0, 0, 0.6);
        padding: 10px 16px;
        border-radius: 10px;
    }
    
    .overlay-description {
        font-size: 14px;
        background: rgba(0, 0, 0, 0.5);
        padding: 8px 14px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .case-image {
        max-width: 100vw;
        max-height: 100vh;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
        border-radius: 12px;
    }
    
    .scrollbar-track {
        width: 16px; /* حتی بزرگ‌تر برای موبایل‌های کوچک */
        height: 200px;
        background: rgba(255, 255, 255, 0.3); /* خیلی واضح‌تر */
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .scrollbar-thumb {
        height: 30px; /* خیلی بزرگ‌تر برای لمس راحت */
        box-shadow: 0 3px 10px rgba(0, 122, 255, 0.5);
        background: linear-gradient(135deg, #007AFF, #00D4FF);
    }
    
    .scrollbar-container {
        right: 10px;
    }
    
    /* نمایش واضح‌تر scroll indicator */
    .scrollbar-container::after {
        font-size: 18px;
        animation-duration: 1.5s;
    }
    
    /* افزایش منطقه لمسی */
    .scrollbar-thumb::before {
        top: -15px;
        bottom: -15px;
        left: -15px;
        right: -15px;
    }
    
    
    .image-text-overlay {
        bottom: 40px;
        padding: 15px 20px;
        max-width: 92%;
    }
    
    .overlay-title {
        font-size: 16px;
        margin-bottom: 8px;
        background: rgba(0, 0, 0, 0.6);
        padding: 8px 14px;
        border-radius: 8px;
    }
    
    .overlay-description {
        font-size: 12px;
        background: rgba(0, 0, 0, 0.5);
        padding: 6px 12px;
        border-radius: 6px;
    }
}

/* کلاس برای تصاویر آماده */
.image-ready {
    opacity: 1;
}

/* حالت تاچ برای تصویر */
.case-image.touching {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

/* بهبود عملکرد تاچ */
.touch-active {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* Touch Feedback - نشانگر بصری ساده در حین swipe */
.touch-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.touch-feedback[data-direction="down"] {
    border-color: rgba(0, 122, 255, 0.8);
    box-shadow: 0 0 30px rgba(0, 122, 255, 0.4);
}

.touch-feedback[data-direction="up"] {
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

/* انیمیشن pulse برای touch feedback */
@keyframes touchPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.touch-feedback {
    animation: touchPulse 0.5s ease-in-out infinite;
}

/* Swipe Hint - راهنمای اولیه برای موبایل */
.swipe-hint {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 2000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.swipe-hint.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.swipe-hint-content {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 122, 255, 0.5);
    border-radius: 20px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(0, 122, 255, 0.3);
}

.swipe-hint-icon {
    font-size: 40px;
    animation: swipeAnimation 1.5s ease-in-out infinite;
}

.swipe-hint-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    max-width: 250px;
    line-height: 1.5;
}

@keyframes swipeAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive برای swipe hint */
@media (max-width: 480px) {
    .swipe-hint {
        bottom: 80px;
    }
    
    .swipe-hint-content {
        padding: 15px 25px;
    }
    
    .swipe-hint-icon {
        font-size: 35px;
    }
    
    .swipe-hint-text {
        font-size: 12px;
        max-width: 200px;
    }
}

/* Page Navigation System */
.page-navigation {
    position: fixed;
    top: 50%;
    right: 90px; /* فاصله بیشتر از لبه برای جلوگیری از تداخل با scrollbar */
    transform: translateY(-50%);
    z-index: 1000;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-navigation.visible {
    opacity: 1;
}

.page-indicators {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.page-indicator:hover {
    opacity: 1;
    transform: translateX(-5px);
    background: rgba(0, 0, 0, 0.5);
}

.page-indicator.active {
    opacity: 1;
    background: linear-gradient(135deg, #007AFF, #00D4FF);
    transform: translateX(-8px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.page-indicator.active .indicator-dot {
    background: white;
    transform: scale(1.2);
}

.indicator-label {
    color: white;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* Page System - Vertical Stacking Animation */
.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100%) scale(0.95);
    z-index: 1;
    transform-origin: center center;
    overflow: visible;
}

.page.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    z-index: 5;
}

/* پیج قبلی کمی کوچک‌تر و بالاتر برود تا حس depth بیشتری داشته باشد */
.page.previous {
    transform: translateY(-5%) scale(0.95);
    opacity: 0.6;
    z-index: 5;
    visibility: visible;
    filter: brightness(0.8);
}

/* انیمیشن smooth برای تغییر پیج‌ها */
.page {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* پیج اول (کیس‌ها) همیشه در پس‌زمینه نمایش داده شود */
#page-0 {
    z-index: 2;
}

#page-0.active {
    z-index: 10;
}

/* افکت overlay برای حس عمق بیشتر */
.page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.page.previous::before {
    opacity: 1;
}

/* Team Video Page Styles - Large but not Full Screen */
.team-video-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    background: #000;
    padding: 40px 40px 20px 40px;
}

/* Team Title Above Video */
.team-title-above {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007AFF;
    margin-top: 120px;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #007AFF, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 122, 255, 0.3);
}

.team-video {
    width: 100%;
    max-width: 1200px;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Video Controls Overlay */
.video-controls-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.team-video-wrapper:hover .video-controls-overlay {
    opacity: 1;
}

.video-control-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.video-control-btn:hover {
    background: rgba(0, 122, 255, 0.9);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.5);
}

.video-control-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Team Information - Simple Text Below Video */
.team-info-simple {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    width: 90%;
}

.team-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #007AFF;
    margin-bottom: 15px;
    text-align: center;
}

.team-text {
    color: white;
    line-height: 1.6;
}

.team-text p {
    margin: 8px 0;
    font-size: 1rem;
}

.team-text strong {
    color: #00D4FF;
    font-weight: 600;
}

/* Responsive Design for Team Video */
@media (max-width: 768px) {
    .team-video-container {
        padding: 15px 20px 10px 20px;
    }
    
    .team-title-above {
        font-size: 2rem;
        margin-top: 80px;
        margin-bottom: 15px;
    }
    
    .team-video {
        max-width: 100%;
        max-height: 50vh;
        border-radius: 12px;
    }
    
    .video-controls-overlay {
        bottom: 15px;
        left: 15px;
        gap: 10px;
    }
    
    .video-control-btn {
        width: 45px;
        height: 45px;
    }
    
    .video-control-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .team-info-simple {
        bottom: 240px;
        padding: 15px 20px;
        max-width: 95%;
    }
    
    .team-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .team-text p {
        font-size: 0.9rem;
        margin: 6px 0;
    }
}

@media (max-width: 480px) {
    .team-video-container {
        padding: 10px 15px 5px 15px;
    }
    
    .team-title-above {
        font-size: 1.8rem;
        margin-top: 70px;
        margin-bottom: 10px;
    }
    
    .team-video {
        max-height: 45vh;
        border-radius: 10px;
    }
    
    .video-controls-overlay {
        bottom: 12px;
        left: 12px;
        gap: 8px;
    }
    
    .video-control-btn {
        width: 40px;
        height: 40px;
    }
    
    .video-control-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .team-info-simple {
        bottom: 230px;
        padding: 12px 15px;
        max-width: 98%;
    }
    
    .team-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .team-text p {
        font-size: 0.8rem;
        margin: 5px 0;
    }
}

/* Posters Page Styles - Horizontal Carousel */
.posters-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.posters-header {
    text-align: center;
    margin-bottom: 40px;
    z-index: 10;
}

.posters-title {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #007AFF, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.posters-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 400;
}

/* Carousel Container */
.posters-slider {
    width: 100%;
    max-width: 1400px;
    position: relative;
    padding: 20px 60px;
    overflow: hidden;
}

/* Track برای نگه‌داری تصاویر */
.posters-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* هر تصویر پوستر */
.poster-item {
    flex: 0 0 calc(20% - 16px); /* 5 تصویر در ردیف */
    aspect-ratio: 2/3;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.poster-item:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 122, 255, 0.4);
    z-index: 10;
}

.poster-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.poster-item:hover img {
    transform: scale(1.1);
}

/* Overlay gradient */
.poster-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.poster-item:hover::after {
    opacity: 1;
}

/* Navigation Buttons - چپ و راست */
.posters-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 20;
    opacity: 0.8;
}

.posters-nav-btn:hover {
    background: rgba(0, 122, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.5);
    opacity: 1;
}

.posters-nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

.posters-nav-btn.prev-btn {
    left: 10px;
}

.posters-nav-btn.next-btn {
    right: 10px;
}

.posters-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* Navigation Info - نمایش تعداد */
.posters-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    z-index: 10;
}

.posters-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.posters-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.posters-dot.active {
    background: linear-gradient(135deg, #007AFF, #00D4FF);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.6);
}

/* Footer Page Styles */
.footer-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 40px 40px 40px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Footer */
.footer-container::-webkit-scrollbar {
    width: 8px;
}

.footer-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.footer-container::-webkit-scrollbar-thumb {
    background: rgba(0, 122, 255, 0.5);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.footer-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 122, 255, 0.8);
}

.footer-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-info {
    color: white;
    width: 100%;
}

.footer-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #007AFF, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Grid */
.footer-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
    width: 100%;
}

.footer-feature {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.footer-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.2);
    border-color: rgba(0, 122, 255, 0.3);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    line-height: 1.4;
}

.feature-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Contact Section - Minimal Design */
.footer-contact {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 50px;
    padding: 35px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.contact-value {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-weight: 400;
}

.contact-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 30px 0;
}

.contact-phones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.phone-number {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: all 0.25s ease;
    text-align: center;
    direction: ltr;
    font-family: 'Courier New', monospace;
}

.phone-number:hover {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.3);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}


/* Page Transition Indicator */

/* Scroll Indicators for Page Transitions */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.scroll-indicator.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid rgba(0, 0, 0, 0.7);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* Enhanced Page Navigation with Auto-Switch Hints */
.page-indicator.auto-switch-hint {
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.5);
}

@keyframes pulse {
    0%, 100% { 
        transform: translateX(-8px) scale(1);
        box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
    }
    50% { 
        transform: translateX(-8px) scale(1.05);
        box-shadow: 0 12px 35px rgba(0, 122, 255, 0.5);
    }
}

/* Touch Feedback Mobile Responsive */
@media (max-width: 768px) {
    .touch-feedback {
        width: 55px;
        height: 55px;
        border-width: 2.5px;
    }
}

@media (max-width: 480px) {
    .touch-feedback {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
}

/* Mobile Responsive for Pages */
@media (max-width: 768px) {
    /* افکت scale کمتر برای موبایل */
    .page {
        transform: translateY(100%) scale(0.98);
    }
    
    .page.previous {
        transform: translateY(-3%) scale(0.98);
    }
    
    .page-navigation {
        top: auto;
        bottom: 100px;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
    }
    
    .page-indicators {
        flex-direction: row;
        gap: 10px;
    }
    
    .page-indicator {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .indicator-label {
        font-size: 12px;
    }
    
    .posters-container {
        padding: 40px 20px;
    }
    
    .posters-title {
        font-size: 24px;
    }
    
    .posters-subtitle {
        font-size: 14px;
    }
    
    .posters-slider {
        padding: 15px 20px;
        max-width: 100%;
    }
    
    /* Grid layout برای نمایش همه تصاویر */
    .posters-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        gap: 12px;
        transition: none;
    }
    
    /* 3 تصویر ردیف اول، 2 تصویر ردیف دوم */
    .poster-item {
        flex: none;
        width: 100%;
        aspect-ratio: 2/3;
    }
    
    /* تصویر چهارم و پنجم در وسط ردیف دوم */
    .poster-item:nth-child(4) {
        grid-column: 1 / 2;
    }
    
    .poster-item:nth-child(5) {
        grid-column: 2 / 3;
    }
    
    /* مخفی کردن دکمه‌های navigation */
    .posters-nav-btn {
        display: none;
    }
    
    .posters-navigation {
        margin-top: 15px;
    }
    
    /* مخفی کردن dots چون همه تصاویر نمایش داده می‌شوند */
    .posters-dots {
        display: none;
    }
    
    .footer-container {
        padding: 70px 20px 30px 20px;
    }
    
    .footer-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .footer-features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 35px;
    }
    
    .footer-feature {
        padding: 20px;
    }
    
    .feature-icon {
        font-size: 30px;
    }
    
    .feature-title {
        font-size: 15px;
    }
    
    .feature-desc {
        font-size: 13px;
    }
    
    .footer-contact {
        margin-top: 35px;
        padding: 25px 20px;
    }
    
    .contact-label {
        font-size: 12px;
    }
    
    .contact-value {
        font-size: 15px;
    }
    
    .contact-divider {
        margin: 25px 0;
    }
    
    .contact-phones {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .phone-number {
        font-size: 14px;
        padding: 13px 16px;
    }
}

@media (max-width: 480px) {
    .page-navigation {
        bottom: 90px;
    }
    
    .page-indicator {
        padding: 4px 8px;
        gap: 6px;
    }
    
    .indicator-label {
        font-size: 10px;
    }
    
    .posters-container {
        padding: 30px 10px;
    }
    
    .posters-title {
        font-size: 20px;
    }
    
    .posters-subtitle {
        font-size: 12px;
    }
    
    .posters-slider {
        padding: 10px 15px;
        max-width: 100%;
    }
    
    /* Grid layout کوچک‌تر برای موبایل‌های کوچک */
    .posters-track {
        gap: 8px;
    }
    
    /* کاهش سایز تصاویر */
    .poster-item {
        border-radius: 10px;
    }
    
    .poster-item:hover {
        transform: scale(1.05) translateY(-5px);
    }
    
    /* مخفی کردن navigation */
    .posters-nav-btn {
        display: none;
    }
    
    .posters-dots {
        display: none;
    }
    
    .footer-container {
        padding: 60px 15px 25px 15px;
    }
    
    .footer-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .footer-features {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .footer-feature {
        padding: 18px;
    }
    
    .feature-icon {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .feature-title {
        font-size: 14px;
    }
    
    .feature-desc {
        font-size: 12px;
    }
    
    .footer-contact {
        margin-top: 30px;
        padding: 22px 18px;
    }
    
    .contact-label {
        font-size: 11px;
    }
    
    .contact-value {
        font-size: 14px;
    }
    
    .contact-divider {
        margin: 22px 0;
    }
    
    .contact-phones {
        gap: 7px;
    }
    
    .phone-number {
        font-size: 13px;
        padding: 12px 14px;
    }
}

/* Telegram Button - Clean & Minimal */
.telegram-section {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.telegram-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.telegram-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0088cc, #00a8ff);
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.telegram-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.telegram-button:hover::before {
    left: 100%;
}

.telegram-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 136, 204, 0.4);
    background: linear-gradient(135deg, #00a8ff, #0088cc);
}

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

.telegram-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .telegram-section {
        bottom: 20px;
        left: 20px;
    }
    
    .telegram-button {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .telegram-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 30px;
    }
    
    .menu-logo {
        margin-left: 12px;
    }
    
    .telegram-section {
        bottom: 15px;
        left: 15px;
    }
    
    .telegram-button {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }
    
    .telegram-icon {
        width: 16px;
        height: 16px;
    }
}

/* Popular Configs Overlay */
.popular-configs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    /* جلوگیری از اسکرول پس‌زمینه */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.popular-configs-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.popular-configs-modal {
    width: min(1100px, 100%);
    max-height: 90vh;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.popular-configs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 16px;
}

.popular-configs-title h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 8px;
}

.popular-configs-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.7;
}

.popular-configs-close {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popular-configs-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(6deg);
}

.popular-configs-body {
    padding: 24px 32px 32px;
    overflow-y: auto;
}

.popular-configs-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    justify-content: center;
    padding: 48px 0;
}

.popular-configs-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #00D4FF;
    border-radius: 50%;
    animation: popular-spinner 0.8s linear infinite;
}

@keyframes popular-spinner {
    to {
        transform: rotate(360deg);
    }
}

.popular-configs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.popular-config-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.popular-config-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.45), rgba(0, 212, 255, 0.2));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.popular-config-card h3 {
    font-size: 18px;
    color: #fff;
    line-height: 1.6;
}

.popular-config-price {
    font-size: 20px;
    font-weight: 600;
    color: #00d4ff;
}

.popular-config-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.popular-config-meta span {
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 999px;
}

.popular-config-components {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.popular-config-component {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.popular-config-component span:first-child {
    color: rgba(255, 255, 255, 0.6);
}

.popular-configs-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.popular-configs-empty strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.popular-configs-retry-btn {
    margin-top: 16px;
    padding: 10px 24px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #007aff, #00d4ff);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popular-configs-retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 122, 255, 0.35);
}

@media (max-width: 768px) {
    .popular-configs-modal {
        border-radius: 20px;
        max-height: 95vh;
        padding: 8px;
    }

    .popular-configs-header {
        flex-direction: column;
        padding: 16px;
    }

    .popular-configs-body {
        padding: 8px 16px 16px;
    }

    .popular-configs-list {
        grid-template-columns: 1fr;
    }
}
