/* ========== 1. ROOT & RESET ========== */
:root {
    /* فونت‌های جدید */
    --font-body: 'IRANSans', 'Sahel', 'Vazirmatn', sans-serif;
    --font-title: 'Vazirmatn', sans-serif;
    --font-logo: 'Poppins', sans-serif;
    
    --color-text: #ececec;
    --color-bg: #050505;
    --color-primary: #d4af37;
    --color-glass-border: rgba(255, 255, 255, 0.15);
    --color-glass-bg: rgba(20, 20, 20, 0.4);
    --color-dark-panel: rgba(10, 10, 10, 0.8);
    --glow-primary: 0 0 20px rgba(212, 175, 55, 0.5);
    --glow-primary-faint: 0 0 25px rgba(212, 175, 55, 0.2);
    --shadow-convex: inset 0 1px 1px rgba(255,255,255,0.4), inset 0 -5px 15px rgba(0,0,0,0.3), 0 15px 35px rgba(0,0,0,0.5);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    direction: rtl;
    line-height: 1.8;
    overflow-x: hidden;
}

/* TYPOGRAPHY */
h1, h2, h3, .btn-primary, .hero-big-link, .tab-btn-header { 
    font-family: var(--font-title); 
    font-weight: 800;
}
p { text-align: justify; text-justify: inter-word; opacity: 0.9; }
a { text-decoration: none; color: var(--color-primary); transition: 0.3s; }

/* ========== 2. 3D MAGLEV HEADER (Updated) ========== */
.main-header-3d {
    position: fixed;
    top: 25px; left: 0; right: 0;
    display: flex; justify-content: center;
    z-index: 1000;
    pointer-events: none;
    transition: box-shadow 0.4s ease;
}

.header-scroll-wrapper {
    position: relative;
    border-radius: 35px;
    padding: 2px;
    overflow: visible;
    pointer-events: all;
}
#header-scroll-fill {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 35px;
    background: linear-gradient(90deg, var(--color-primary), #ffe694, var(--color-primary));
    width: 0%;
    transition: width 0.1s linear;
}
.header-glass-body {
    position: relative; z-index: 2;
    pointer-events: all;
    display: flex; align-items: center; gap: 2rem;
    padding: 0.8rem 2.5rem;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 33px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-convex);
    transition: box-shadow 0.4s ease;
}
.header-glass-body:hover {
    box-shadow: var(--shadow-convex), var(--glow-primary-faint);
}

.logo-header {
    font-family: var(--font-logo);
    font-size: 1.6rem; letter-spacing: 3px; color: #fff;
    font-weight: 200;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.main-nav { position: relative; display: flex; }

.nav-item {
    position: relative; z-index: 2;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-item > a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-family: var(--font-body);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item.magnified {
    transform: scale(1.25);
}
.nav-item.magnified > a {
    color: var(--color-primary);
    text-shadow: var(--glow-primary);
}
.nav-item.active-section > a {
    color: var(--color-primary);
    text-shadow: var(--glow-primary);
}

#nav-indicator {
    position: absolute;
    top: 10%; height: 80%;
    left: 0; width: 0;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 25px;
    z-index: 1;
    opacity: 0;
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.2), var(--glow-primary-faint);
    backdrop-filter: blur(5px) brightness(1.2);
    transition: opacity 0.3s;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    right: 50%;
    transform: translateX(50%);
    width: 250px;
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--color-glass-border);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 10;
}
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
.dropdown-menu a {
    display: block;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 10px;
    transition: 0.3s;
}
.dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-primary);
}


/* ========== 3. HERO SECTION (Updated) ========== */
#hero {
    height: 100vh; position: relative; overflow: hidden;
    display: flex; justify-content: center; align-items: center;
}
.video-backgrounds { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.video-bg { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; transition: 0.6s ease; }
.video-bg.active { opacity: 0.9; transform: scale(1.05); }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.hero-content-center { position: relative; z-index: 5; pointer-events: none; }
.logo-main {
    font-family: var(--font-logo); font-size: 8rem; color: #fff;
    text-shadow: 0 0 30px rgba(255,255,255,0.5), var(--glow-primary);
    letter-spacing: 15px;
    font-weight: 200;
}
.hero-bottom-nav {
    position: absolute; bottom: 8vh; left: 0; width: 100%;
    display: flex; justify-content: space-around;
    z-index: 10; padding: 0 5%;
}
.hero-big-link {
    font-size: 3.5rem; color: rgba(255,255,255,0.5);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.hero-big-link:hover {
    color: var(--color-primary); transform: translateY(-20px) scale(1.1);
    text-shadow: var(--glow-primary); opacity: 1;
}

/* ========== 4. 3D PARALLAX SECTIONS ========== */
.content-section-3d {
    min-height: 110vh;
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    perspective: 1000px; 
    background-size: cover; background-position: center;
    padding: 15vh 0;
}
#buy { background-image: linear-gradient(#000000b3, #000000b3), url('../img/luxet-buy.jpg'); }
#sell { background-image: linear-gradient(#000000b3, #000000b3), url('../img/luxet-sale.webp'); }
#auth { background-image: linear-gradient(#000000b3, #000000b3), url('../img/luxet-realorfake.webp'); }
#repair { background-image: linear-gradient(#000000b3, #000000b3), url('../img/luxet-repair.webp'); }
#loan { background-image: linear-gradient(#000000b3, #000000b3), url('../img/luxet-loan.webp'); } 

.parallax-container {
    width: 90%; max-width: 1400px;
    display: flex; align-items: center; justify-content: space-between;
    transform-style: preserve-3d;
    
    /* [جدید] انیمیشن ورود سه‌بعدی */
    opacity: 0;
    transform: scale(0.9);
    /* [تغییر] ترنزیشن برای انیمیشن ورود و حذف Tilt */
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
/* [جدید] کلاسی که جاوااسکریپت برای فعال‌سازی انیمیشن اضافه می‌کند */
.parallax-container.is-visible {
    opacity: 1;
    transform: scale(1);
}
/* [حذف شد] ترنزیشن اضافی برای افکت کج شدن (tilt) که تکرار شده بود */


.title-layer {
    flex: 0 0 35%;
    transform: translateZ(80px);
    align-self: flex-start;
    padding-top: 2rem;
}
.title-layer h2 {
    font-size: 4.5rem; color: rgba(255,255,255,0.9);
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
}
.title-layer::before {
    content: attr(data-title);
    position: absolute; top: -60px; right: -80px;
    font-family: var(--font-logo); font-size: 10rem;
    opacity: 0.04; pointer-events: none;
    transform: translateZ(-150px);
}
.content-layer {
    flex: 0 0 60%;
    transform: translateZ(0px);
    height: auto; 
}
.content-layer:hover ~ .title-layer h2 {
    color: var(--color-primary);
    text-shadow: var(--glow-primary);
}

.reversed-layout .parallax-container { flex-direction: row-reverse; }

.glass-panel {
    background: var(--color-glass-bg);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--color-glass-border);
    border-radius: 30px; padding: 3rem 4rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    height: auto; 
}

/* استایل منوی ناوبری داخلی (خارج از پنل) */
.section-submenu-nav {
    display: flex;
    justify-content: flex-start; 
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem; 
    padding: 0 1rem; 
}
.section-submenu-nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}
.section-submenu-nav a:hover,
.section-submenu-nav a.active {
    color: var(--color-primary);
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--color-primary);
    box-shadow: var(--glow-primary-faint);
}

/* ========== 5. TABS SYSTEM (برای بخش‌های غیر از اصالت) ========== */
.tab-header-nav { display: flex; gap: 1.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.tab-btn-header {
    background: none; border: none; padding-bottom: 1rem;
    font-size: 1.2rem; color: rgba(255,255,255,0.5); cursor: pointer;
    position: relative; transition: 0.3s;
}
.tab-btn-header.active { color: var(--color-primary); }
.tab-btn-header.active::after {
    content: ''; position: absolute; bottom: -1px; right: 0;
    width: 100%; height: 2px; background: var(--color-primary);
    box-shadow: var(--glow-primary);
}
.tabs-container { position: relative; min-height: 280px; }
.tab-content {
    position: absolute; inset: 0; opacity: 0;
    pointer-events: none; transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(30px) scale(0.95);
}
.tab-content.active { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }
.tab-content h3 { font-size: 1.8rem; color: var(--color-primary); margin-bottom: 1rem; }
.cta-button {
    display: inline-block; margin-top: 2rem;
    padding: 1rem 3rem; background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--color-primary); border-radius: 12px;
    color: var(--color-primary); font-weight: 700;
    transition: 0.3s; cursor: pointer;
}
.cta-button:hover { background: var(--color-primary); color: #000; box-shadow: var(--glow-primary); }

/* ========== 5B. AUTHENTICATION SECTION CAROUSEL (اکنون در مودال استفاده می‌شود) ========== */
.section-carousel-wrapper {
    width: 100%;
    overflow: hidden; /* کلید اصلی کاروسل */
    position: relative;
    height: auto;
    
    /* [حذف شد] فعال کردن پرسپکتیو برای افکت‌های سه‌بعدی (Tilt) */
}
.section-carousel-track {
    display: flex;
    width: 500%; /* 100% * 5 اسلاید */
    height: 100%; /* [تغییر] ارتفاع 100% برای پر کردن مودال */
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1); /* [تغییر] انیمیشن نرم‌تر */
}
.section-carousel-slide {
    width: 20%; /* 100% / 5 اسلاید */
    flex-shrink: 0;
    height: 100%; /* [تغییر] ارتفاع 100% */
    vertical-align: top;
    
    /* [جدید] اسکرول داخلی برای هر اسلاید */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem 3rem 5rem 3rem; /* فاصله داخلی برای اسکرول */
}
/* افزودن نوار اسکرول سفارشی (اختیاری) */
.section-carousel-slide::-webkit-scrollbar {
    width: 8px;
}
.section-carousel-slide::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}
.section-carousel-slide::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

/* پنل تیره برای اسلایدهای 2 تا 5 */
.dark-panel {
    background: var(--color-dark-panel);
    backdrop-filter: blur(30px);
    border: 1px solid var(--color-glass-border);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    padding: 2.5rem 3rem;
    height: auto; /* [تغییر] ارتفاع خودکار */
    min-height: 100%; /* [جدید] حداقل 100% ارتفاع اسلاید */
    
    /* [حذف شد] ترنزیشن نرم برای افکت کج شدن (tilt) */
}
/* حذف padding اضافه از پنل شیشه‌ای وقتی داخل اسلاید است */
.section-carousel-slide .glass-panel {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    /* بازگرداندن padding داخلی پنل شیشه‌ای اصلی */
    padding: 3rem 4rem;
    background: var(--color-glass-bg);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--color-glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    height: auto; /* [تغییر] ارتفاع خودکار */
    min-height: 100%; /* [جدید] حداقل 100% ارتفاع اسلاید */
    
    /* [حذف شد] ترنزیشن نرم برای افکت کج شدن (tilt) */
}

/* استایل‌های محتوای داخلی پنل تیره */
.dark-panel h3 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}
.dark-panel h4 {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-glass-border);
    padding-bottom: 0.5rem;
}
.dark-panel p.auth-intro {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}
/* [جدید] باکس "آیا می‌دانستید؟" */
.auth-know-box {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}
.auth-know-box h4 {
    color: var(--color-primary);
    border: none;
    padding: 0;
    margin: 0 0 0.5rem 0;
}
.auth-know-box p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* اسلاید 2: فرآیند کار */
.auth-process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.auth-process-step {
    text-align: center;
}
.auth-process-step img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 1px solid var(--color-glass-border);
}
.auth-process-step h4 {
    font-size: 1.3rem;
    color: var(--color-primary);
    border: none;
    margin: 0 0 0.5rem 0;
    padding: 0;
}
.auth-process-step p {
    font-size: 0.95rem;
    text-align: center;
    opacity: 0.8;
}
.auth-certification {
    text-align: center;
}
.auth-certification img {
    max-width: 100%;
    width: 600px;
    border-radius: 15px;
    margin-bottom: 2rem;
}

/* اسلاید 3: راهنمای تصاویر */
.auth-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem; /* [تغییر] فاصله بیشتر */
}
.auth-tip {
    background: rgba(0,0,0,0.2);
    border-radius: 15px;
    border: 1px solid var(--color-glass-border);
    padding: 1rem;
    text-align: center;
}
.auth-tip img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.auth-tip h4 { font-size: 1.1rem; color: var(--color-primary); border: none; padding: 0; margin: 0; }
.auth-tip p { font-size: 0.9rem; text-align: center; opacity: 0.8; }

.auth-guide-category { margin-bottom: 2.5rem; } /* [تغییر] فاصله بیشتر */
.auth-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}
.auth-guide-grid div {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--color-glass-border);
}
.auth-guide-grid img { width: 100%; display: block; }
.auth-guide-grid span {
    display: block;
    font-size: 0.8rem;
    text-align: center;
    padding: 0.5rem;
    background: rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.7);
}

/* اسلاید 4: برندها و کالاها */
.auth-what-we-do-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.auth-what-we-do-grid div {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--color-glass-border);
    text-align: center;
}
.auth-what-we-do-grid img { width: 100%; }
.auth-what-we-do-grid span {
    display: block;
    font-family: var(--font-title);
    font-weight: 700;
    padding: 0.75rem 0.5rem;
    color: var(--color-text);
}

.auth-brand-list {
    list-style: none;
    columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
    gap: 1rem;
    padding-right: 1.5rem;
}
.auth-brand-list li {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}

/* اسلاید 5: خدمات */
.auth-service-item {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--color-primary);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--glow-primary-faint);
}
.auth-service-item h4 {
    border: none;
    padding: 0;
    margin: 0 0 1rem 0;
    color: var(--color-primary);
}
.auth-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.auth-addon {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--color-glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex; /* [جدید] فلکس برای چیدمان بهتر */
    flex-direction: column;
}
.auth-addon h5 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.auth-addon strong {
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.75rem;
}
.auth-addon p {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: left;
    flex-grow: 1; /* [جدید] باعث می‌شود پاراگراف فضا را پر کند */
}


/* ========== 6. FOOTER & MISC ========== */
#footer {
    margin-top: 0; border-radius: 50px 50px 0 0;
    border-bottom: none; padding: 5rem 10% 2rem;
}
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 4rem; margin-bottom: 3rem; }
.footer-section h3, .footer-section h4 { color: #fff; margin-bottom: 1.5rem; font-family: var(--font-title); font-weight: 700; }
.logo-footer { font-family: var(--font-logo); letter-spacing: 3px; font-weight: 200; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 1rem; }
.footer-section ul li a { color: rgba(255,255,255,0.6); }
.footer-section ul li a:hover { color: var(--color-primary); }
.text-input {
    width: 100%; padding: 1rem; margin-bottom: 1rem;
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; color: #fff; font-family: var(--font-body);
}
.btn-primary {
    width: 100%; padding: 1rem; background: var(--color-primary);
    border: none; border-radius: 12px; cursor: pointer;
    font-size: 1.1rem; transition: 0.3s;
    font-family: var(--font-title);
    font-weight: 700;
}
.btn-primary:hover { background: #fff; box-shadow: var(--glow-primary); color: #000; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); color: rgba(255,255,255,0.4); }

.footer-contact-info { margin-top: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; color: rgba(255,255,255,0.7); }
.contact-item svg { width: 24px; height: 24px; stroke: var(--color-primary); flex-shrink: 0; }
.contact-item span { font-family: var(--font-body); }

.contact-item a {
    color: rgba(255,255,255,0.7);
    font-family: var(--font-body);
    text-decoration: none;
    transition: 0.3s;
}
.contact-item a:hover {
    color: var(--color-primary);
}


#scrollTopBtn {
    position: fixed; bottom: 30px; left: 30px; width: 50px; height: 50px;
    background: var(--color-primary); border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    z-index: 999; cursor: pointer; opacity: 0.8; transition: 0.3s;
    border: none;
}
#scrollTopBtn svg { width: 24px; height: 24px; stroke: #000; }
#scrollTopBtn:hover { opacity: 1; transform: scale(1.1); box-shadow: var(--glow-primary); }

/* ========== 7. POPUP MODAL STYLES ========== */
.popup-wrapper {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.popup-wrapper.show { opacity: 1; pointer-events: all; }
.popup-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
}
.popup-content {
    position: relative; z-index: 2001;
    width: 90%; max-width: 600px;
    padding: 3rem; border-radius: 20px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.popup-wrapper.show .popup-content { transform: scale(1); }
.popup-close {
    position: absolute; top: 1.5rem; left: 1.5rem;
    background: none; border: none; font-size: 2rem;
    color: #fff; opacity: 0.7; cursor: pointer;
}
.popup-content h3 { font-size: 2rem; color: var(--color-primary); margin-bottom: 1.5rem; }
.popup-contact { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
    display: inline-flex; align-items: center; gap: 1rem;
    font-family: var(--font-body); font-size: 1.1rem;
    color: #fff; font-weight: 500;
}
.contact-link:hover { color: var(--color-primary); }
.contact-link svg { width: 24px; height: 24px; fill: var(--color-primary); }


/* ========== [جدید] 9. AUTH FULLSCREEN MODAL ========== */
#auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
#auth-modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}
.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.9); /* [تغییر] بسیار کدر طبق درخواست */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}
.auth-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    
    /* انیمیشن ورود مودال */
    opacity: 0;
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
#auth-modal-overlay.show .auth-modal-content {
    opacity: 1;
    transform: scale(1);
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    border-bottom: 1px solid var(--color-glass-border);
    flex-shrink: 0;
    background: rgba(10, 10, 10, 0.5); /* کمی پس‌زمینه برای هدر */
}
.auth-modal-header h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
}
.auth-modal-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid var(--color-glass-border);
    flex-shrink: 0;
    position: sticky; /* [جدید] منوی چسبان (اما چون کل اسلاید اسکرول می‌خورد، این ممکن است به تنهایی کار نکند) */
    top: 0;
    z-index: 10;
}
.auth-modal-nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    cursor: pointer;
}
.auth-modal-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.auth-modal-nav-link.active {
    color: var(--color-primary);
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--color-primary);
    box-shadow: var(--glow-primary-faint);
}

/* [تغییر] wrapper کاروسل اکنون فضای باقی‌مانده را پر می‌کند */
#auth-modal-overlay .section-carousel-wrapper {
    flex-grow: 1;
    height: 100%; /* ارتفاع را می‌گیرد تا ترک 100% کار کند */
}


/* ========== 8. MOBILE & TABLET RESPONSIVENESS ========== */

.mobile-header, .native-bottom-nav, .mobile-menu-overlay { display: none; }

@media (max-width: 1024px) {
    .main-header-3d { display: none; }
    
    .mobile-header {
        position: fixed; top: 0; left: 0; width: 100%;
        display: flex; justify-content: space-between; align-items: center;
        padding: 1rem 1.5rem; z-index: 1000;
        background: rgba(10, 10, 10, 0.7);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid var(--color-glass-border);
    }
    .logo-header-mobile {
        font-family: var(--font-logo); font-weight: 200;
        font-size: 1.8rem; letter-spacing: 3px; color: #fff;
    }
    .mobile-hamburger {
        display: flex; flex-direction: column; gap: 6px;
        background: none; border: none; cursor: pointer;
    }
    .mobile-hamburger span {
        width: 30px; height: 3px; background: #fff;
        border-radius: 2px;
    }
    
    .native-bottom-nav {
        position: fixed; bottom: 0; left: 0; width: 100%;
        display: flex; justify-content: space-around;
        background: rgba(10, 10, 10, 0.8);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--color-glass-border);
        z-index: 1000;
        padding: 0.5rem 0;
    }
    .native-nav-item {
        display: flex; flex-direction: column; align-items: center;
        gap: 4px; color: rgba(255,255,255,0.6);
        font-size: 0.7rem;
        font-family: var(--font-body);
        flex: 1;
        text-align: center;
    }
    .native-nav-item.active { color: var(--color-primary); }
    .native-nav-item svg { width: 22px; height: 22px; fill: currentColor; }

    .mobile-menu-overlay {
        position: fixed; inset: 0; z-index: 2000;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(10px);
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        opacity: 0; pointer-events: none;
        transform: translateY(-100%);
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }
    .mobile-menu-overlay.open { opacity: 1; pointer-events: all; transform: translateY(0); }
    .mobile-menu-close {
        position: absolute; top: 1.5rem; right: 1.5rem;
        background: none; border: none; color: #fff;
        font-size: 3rem; cursor: pointer;
    }
    .mobile-menu-nav { display: flex; flex-direction: column; text-align: center; gap: 2rem; }
    .mobile-menu-link {
        font-family: var(--font-title); font-weight: 700;
        font-size: 2.5rem; color: #fff;
    }
    .mobile-menu-contact {
        margin-top: 4rem; text-align: center;
        color: rgba(255,255,255,0.7);
    }
    .mobile-menu-contact h4 { font-size: 1.2rem; margin-bottom: 1rem; }
    .mobile-menu-contact p { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
    .mobile-menu-contact p svg { width: 20px; height: 20px; fill: var(--color-primary); }

    .logo-main { font-size: 4rem; letter-spacing: 8px; }
    .hero-bottom-nav {
        bottom: 12vh;
        padding: 0 2%;
    }
    .hero-big-link:hover { transform: none; }

    .content-section-3d { padding: 15vh 5%; height: auto; min-height: 100vh; }
    .parallax-container {
        flex-direction: column;
        gap: 2rem; width: 100%;
    }
    .title-layer {
        flex-basis: auto; width: 100%;
        transform: translateZ(0);
        text-align: center;
    }
    .title-layer h2 { font-size: 3rem; }
    .title-layer::before { font-size: 6rem; top: -20px; right: 0; left: 0; margin: auto; text-align: center; }
    .content-layer {
        flex-basis: auto; width: 100%;
        transform: translateZ(0);
    }
    .reversed-layout .parallax-container { flex-direction: column; }
    .glass-panel { padding: 2rem; }
    .tabs-container { min-height: 320px; }

    /* ریسپانسیو بخش اصالت و کاروسل */
    .section-submenu-nav {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding: 0;
    }
    .section-submenu-nav a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    /* [جدید] ریسپانسیو مودال اصالت */
    .auth-modal-header { padding: 1rem 1.5rem; }
    .auth-modal-header h3 { font-size: 1.2rem; }
    .auth-modal-nav {
        justify-content: flex-start;
        overflow-x: auto; /* اسکرول افقی منوی مودال */
        flex-wrap: nowrap;
        padding: 0.75rem 1rem;
    }
    .auth-modal-nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        flex-shrink: 0; /* جلوگیری از کوچک شدن لینک‌ها */
    }
    .section-carousel-slide {
        padding: 1.5rem; /* پدینگ کمتر در موبایل */
    }
    .section-carousel-slide .glass-panel {
        padding: 2rem;
    }
    .dark-panel {
        padding: 1.5rem;
    }
    .dark-panel h3 { font-size: 1.8rem; }
    .auth-brand-list { columns: 2; -webkit-columns: 2; -moz-columns: 2; }
    .auth-addons-grid { grid-template-columns: 1fr; }


    .footer-content { grid-template-columns: 1fr; gap: 3rem; }
    #footer { padding: 4rem 5% 10rem; border-radius: 30px 30px 0 0; }
}

@media (max-width: 480px) {
    .logo-main { font-size: 3rem; letter-spacing: 5px; }
    .hero-big-link { font-size: 1.5rem; }
    
    .title-layer h2 { font-size: 2.5rem; }
    .glass-panel { padding: 1.5rem; }
    .tab-btn-header { font-size: 1rem; }
    .tabs-container { min-height: 380px; }
    .cta-button { padding: 0.8rem 1.5rem; width: 100%; text-align: center; }
    
    .popup-content { width: 95%; padding: 2rem 1.5rem; }

    /* ریسپانسیو بخش اصالت */
    .section-carousel-slide { padding: 1rem; }
    .section-carousel-slide .glass-panel {
        padding: 1.5rem;
    }
    .auth-brand-list { columns: 1; -webkit-columns: 1; -moz-columns: 1; }
    .auth-guide-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}