@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --primary: #4D96FF;
    --primary-light: #eff6ff;
    --text: #1e293b;
    --bg: #f8fafc;
    --glass: rgba(255, 255, 255, 0.95);
}

* { box-sizing: border-box; outline: none; }
body { margin: 0; font-family: 'Vazirmatn', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

/* =========================================
   FIX: محدود کردن سایز تمام آیکون‌های سایت
   ========================================= */
svg {
    width: 24px;
    height: 24px;
    min-width: 24px; /* جلوگیری از له شدن */
    max-width: 24px; /* جلوگیری از غول شدن */
    display: inline-block;
    vertical-align: middle;
}

/* 1. نوار پیشرفت */
#progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 9999; }
#progress-bar { height: 100%; background: var(--primary); width: 0%; transition: width 0.1s; box-shadow: 0 0 10px var(--primary); }

/* 2. هدر */
header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 100;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.flex-center { display: flex; align-items: center; gap: 10px; }

/* 3. لوگو پیشرفته (کادر مربعی نئونی) */
.logo-wrapper {
    position: relative;
    width: 52px;  /* سایز کلی کادر */
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px; /* گوشه‌های گرد مربع */
    overflow: hidden;    /* بریدن اضافات */
    box-shadow: 0 8px 20px rgba(77, 150, 255, 0.2); /* سایه نرم */
    background: white;
}

/* انیمیشن نور چرخان (پشت زمینه) */
.logo-wrapper::before {
    content: '';
    position: absolute;
    width: 200%; 
    height: 200%;
    /* گرادینت که حکم نور چرخان را دارد */
    background: conic-gradient(transparent, transparent, transparent, var(--primary));
    animation: spin 4s linear infinite; /* سرعت چرخش */
}

/* لایه سفید داخلی (برای اینکه فقط حاشیه دیده شود) */
.logo-wrapper::after {
    content: '';
    position: absolute;
    inset: 3px; /* ضخامت خط دور لوگو */
    background: white; 
    border-radius: 14px;
}

/* خود عکس لوگو */
.logo-img {
    position: relative;
    width: 40px; 
    height: 40px; 
    border-radius: 10px; 
    object-fit: cover; 
    z-index: 5; /* عکس باید روی همه لایه‌ها باشد */
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

/* 4. منو و لینک‌ها */
.desktop-menu { display: flex; align-items: center; gap: 5px; }
.nav-link {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 12px;
    text-decoration: none; color: #64748b; font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
/* تنظیم سایز دقیق آیکون‌های منو */
.nav-link svg { width: 20px; height: 20px; stroke-width: 2px; }

.nav-link:hover { background-color: var(--primary-light); color: var(--primary); }
.nav-link:hover svg { transform: translateY(-3px); }

/* 5. دکمه ورود */
.auth-btn {
    background: var(--primary); color: white; padding: 10px 20px;
    border-radius: 14px; text-decoration: none; font-weight: bold; font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(77, 150, 255, 0.3);
    display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.auth-btn svg { width: 18px; height: 18px; stroke: white; } /* آیکون دکمه سفید باشد */
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(77, 150, 255, 0.5); }

/* رسپانسیو */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 5px; }

@media (max-width: 900px) {
    .desktop-menu { display: none; }
    .mobile-toggle { display: block; }
}

/* استایل کارت‌ها */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.card { background: white; border-radius: 20px; padding: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: 0.3s; }
.card:hover { transform: translateY(-7px); box-shadow: 0 20px 40px rgba(77,150,255,0.15); }

/* ========================
   بخش قهرمان (Hero Section)
   ======================== */
.hero-section {
    position: relative;
    padding: 100px 0; /* فاصله از بالا و پایین */
    overflow: hidden;
    /* گرادینت محو آبی در پس‌زمینه */
    background: radial-gradient(circle at 10% 20%, rgba(77, 150, 255, 0.1) 0%, transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* متن فضای بیشتر، تصویر کمتر */
    align-items: center;
    gap: 40px;
}

/* 1. کپسول شعار (وقتی شهر خوابه...) */
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(77, 150, 255, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 20px;
    border: 1px solid rgba(77, 150, 255, 0.2);
    box-shadow: 0 4px 10px rgba(77, 150, 255, 0.05);
}

/* 2. تیتر اصلی */
.hero-title {
    font-size: 3rem; /* خیلی بزرگ */
    font-weight: 900;
    line-height: 1.3;
    color: #1e293b;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-title span { color: var(--primary); } /* کلمه آکادمی رنگی شود */

/* 3. زیرتیتر */
.hero-desc {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 35px;
}

/* 4. دکمه بزرگ قهرمان */
.hero-btn {
    padding: 14px 32px;
    font-size: 1.1rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(77, 150, 255, 0.4);
    animation: pulse 2s infinite;
}
.hero-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(77, 150, 255, 0.6);
}

/* انیمیشن تپش دکمه */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(77, 150, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(77, 150, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(77, 150, 255, 0); }
}

/* 5. المان بصری سمت چپ (ساعت انتزاعی با CSS) */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* دایره شیشه‌ای بزرگ */
.glass-clock {
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    animation: float 6s ease-in-out infinite;
}
/* عقربه‌های ساعت نمادین */
.clock-hand {
    position: absolute;
    bottom: 50%; left: 50%;
    transform-origin: bottom center;
    background: var(--primary);
    border-radius: 4px;
}
.hand-1 { width: 4px; height: 80px; animation: spin 12s linear infinite; }
.hand-2 { width: 4px; height: 50px; opacity: 0.7; animation: spin 60s linear infinite; }

/* شناور بودن */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* رسپانسیو */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-badge, .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-visual { height: 300px; margin-top: 30px; }
    .hero-title { font-size: 2.2rem; }
}

/* ========================
   بخش انتخاب مقطع (Grade Selector)
   ======================== */
.grade-section {
    padding: 60px 0;
    text-align: center;
    background: #fff;
    position: relative;
}

/* راهنمای متنی */
.grade-hint {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
    font-weight: 500;
}
.grade-hint span { color: var(--primary); font-weight: 800; }

/* گرید کارت‌ها */
.grade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* استایل کارت مقطع */
.grade-card {
    background: rgba(255,255,255,0.8);
    border: 2px solid #f1f5f9;
    border-radius: 24px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* انیمیشن فنری */
    position: relative;
    overflow: hidden;
}

/* آیکون انتزاعی داخل کارت (با CSS) */
.grade-icon {
    width: 60px; height: 60px;
    border-radius: 18px;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    transition: 0.3s;
}

/* تم‌های رنگی برای هر مقطع */
/* ابتدایی: آبی و نارنجی (شاد) */
.grade-kids { --theme: #4D96FF; --bg-theme: #eff6ff; }
.grade-kids .grade-icon { background: var(--bg-theme); color: var(--theme); }

/* متوسطه اول: بنفش و فیروزه‌ای (رویایی) */
.grade-teens { --theme: #A29BFE; --bg-theme: #f3e5f5; }
.grade-teens .grade-icon { background: var(--bg-theme); color: var(--theme); }

/* متوسطه دوم: آبی الکتریک و سبز (تکنولوژی) */
.grade-high { --theme: #0066FF; --bg-theme: #e3f2fd; }
.grade-high .grade-icon { background: var(--bg-theme); color: var(--theme); }

/* هاور کارت‌ها */
.grade-card:hover {
    transform: translateY(-10px);
    border-color: var(--theme);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.grade-card:hover .grade-icon {
    background: var(--theme);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* کلاس فعال (وقتی انتخاب شد) */
.grade-card.active {
    background: var(--theme);
    color: white;
    border-color: var(--theme);
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.grade-card.active .grade-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}
.grade-card.active p { color: rgba(255,255,255,0.9); }

/* کانتینر محتوای وابسته (که قراره ظاهر بشه) */
#grade-content-area {
    margin-top: 50px;
    min-height: 100px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}
#grade-content-area.show {
    opacity: 1;
    transform: translateY(0);
}

/* باکس پیام خالی */
.empty-state {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    padding: 40px;
    color: #64748b;
}

/* ========================
   بخش‌های وابسته (Dependent Sections)
   ======================== */
.dependent-section { padding: 40px 0; }
.section-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; width: 6px; height: 24px; background: var(--primary); border-radius: 4px; }

/* --- 1. بنر سحرخیزی (Gamification) --- */
.gami-banner {
    background: linear-gradient(135deg, #4D96FF 0%, #6C5CE7 100%);
    border-radius: 24px;
    padding: 40px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 50px rgba(77, 150, 255, 0.3);
    overflow: hidden;
    position: relative;
    margin-bottom: 60px;
}
.gami-text h3 { font-size: 2rem; margin: 0 0 10px 0; font-weight: 900; }
.gami-text p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; line-height: 1.8; margin-bottom: 25px; }

/* آیکون خورشید با CSS خالص */
.sun-css {
    width: 80px; height: 80px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 40px #FFD700;
    position: relative;
    animation: sunPulse 3s infinite alternate;
}
@keyframes sunPulse { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.1); opacity: 1; } }

/* --- 2. اسلایدر بمب سرعت (CSS Scroll Snap) --- */
.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.speed-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* جادوی CSS */
    gap: 20px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch; /* نرمی در موبایل */
    scrollbar-width: none; /* مخفی کردن اسکرول بار فایرفاکس */
}
.speed-slider::-webkit-scrollbar { display: none; /* مخفی کردن اسکرول بار کروم */ }

.slide-card {
    flex: 0 0 280px; /* عرض ثابت کارت‌ها */
    scroll-snap-align: start;
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #f1f5f9;
    transition: 0.3s;
    position: relative;
}
.slide-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--primary); }

/* --- 3. کارت‌های ویدیو (Micro-learning) --- */
.video-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    cursor: pointer;
}
.video-thumb { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s; }
.video-card:hover .video-thumb { opacity: 0.6; transform: scale(1.05); }

/* دکمه Play با CSS خالص (مثلث) */
.play-btn-css {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.5);
    transition: 0.3s;
}
.play-btn-css::after {
    content: '';
    width: 0; height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid white; /* مثلث سفید */
    margin-left: 4px;
}
.video-card:hover .play-btn-css { transform: translate(-50%, -50%) scale(1.2); background: var(--primary); border-color: var(--primary); }

/* --- 4. کارت‌های مقاله --- */
.article-card {
    background: white; border-radius: 20px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s;
}
.article-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.article-img { width: 100%; height: 180px; object-fit: cover; }
.article-body { padding: 20px; }
.article-title { font-weight: bold; margin-bottom: 10px; color: var(--text); }
.article-meta { font-size: 0.8rem; color: #94a3b8; display: flex; justify-content: space-between; }

/* دکمه شیشه‌ای */
.glass-btn {
    background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4);
    color: white; padding: 10px 25px; border-radius: 12px; text-decoration: none; font-weight: bold;
    backdrop-filter: blur(5px); transition: 0.3s; display: inline-block;
}
.glass-btn:hover { background: white; color: var(--primary); }

/* رسپانسیو */
@media (max-width: 768px) {
    .gami-banner { flex-direction: column; text-align: center; padding: 30px; }
    .sun-css { margin-top: 30px; }
}

/* ========================
   آیکون‌های CSS خالص (Pure CSS Icons)
   بدون عکس، بدون فونت، سرعت نور! ⚡
   ======================== */

/* کلاس پایه برای همه آیکون‌ها */
.css-icon {
    display: inline-block;
    position: relative;
    box-sizing: border-box;
}

/* 1. آیکون موشک (برای دبستان) - Rocket */
.icon-rocket {
    width: 20px; height: 36px;
    background: currentColor; /* رنگ از تم کارت میاد */
    border-top-right-radius: 100%;
    border-top-left-radius: 100%;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    position: relative;
    transform: rotate(45deg);
}
.icon-rocket::after { /* پنجره موشک */
    content: ''; position: absolute;
    top: 10px; left: 50%; transform: translateX(-50%);
    width: 8px; height: 8px;
    background: white; border-radius: 50%;
}
.icon-rocket::before { /* آتش موشک */
    content: ''; position: absolute;
    bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid #FF6B6B; /* رنگ آتش */
}

/* 2. آیکون لامپ (برای متوسطه اول) - Bulb */
.icon-bulb {
    width: 24px; height: 24px;
    background: white;
    border: 3px solid currentColor;
    border-radius: 50%;
    position: relative;
}
.icon-bulb::after { /* پایه لامپ */
    content: ''; position: absolute;
    bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 10px; height: 8px;
    background: currentColor;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
.icon-bulb::before { /* رشته داخل لامپ */
    content: ''; position: absolute;
    top: 6px; left: 50%; transform: translateX(-50%);
    width: 2px; height: 6px;
    background: currentColor;
}

/* 3. آیکون هدف (برای متوسطه دوم) - Target */
.icon-target {
    width: 32px; height: 32px;
    border: 3px solid currentColor;
    border-radius: 50%;
    position: relative;
}
.icon-target::after { /* نقطه وسط */
    content: ''; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    background: currentColor;
    border-radius: 50%;
}
.icon-target::before { /* تیر خورده به هدف */
    content: ''; position: absolute;
    top: -5px; right: -5px;
    width: 20px; height: 3px;
    background: #FF6B6B;
    transform: rotate(45deg);
    border-radius: 2px;
}

/* 4. آیکون الماس (برای اسلایدر خدمات) - Diamond */
.icon-diamond {
    width: 16px; height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 0 0 0 3px currentColor; /* حاشیه رنگی */
}

/* --- آیکون ساعت زنگ‌دار (Alarm Clock) --- */
.icon-alarm {
    width: 20px; height: 20px;
    border: 2px solid currentColor; /* رنگ متن */
    border-radius: 50%;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px; /* فاصله از متن */
}
.icon-alarm::before { /* عقربه‌ها */
    content: ''; position: absolute;
    top: 50%; left: 50%;
    width: 1px; height: 7px;
    background: currentColor;
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(45deg);
}
.icon-alarm::after { /* دکمه بالا */
    content: ''; position: absolute;
    top: -4px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 2px;
    background: currentColor;
    border-radius: 2px;
}
/* انیمیشن زنگ زدن */
.gami-text:hover .icon-alarm { animation: ring 0.5s infinite ease-in-out; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }

/* --- آیکون کلاه فارغ‌التحصیلی (Graduation Cap) --- */
.icon-grad {
    width: 24px; height: 12px;
    border: 2px solid currentColor;
    border-radius: 2px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    transform: skewX(-10deg); /* کج کردن برای پرسپکتیو */
    margin-left: 10px;
}
.icon-grad::before { /* منگوله */
    content: ''; position: absolute;
    top: 5px; right: -4px;
    width: 2px; height: 10px;
    background: #FF6B6B; /* رنگ منگوله قرمز */
    transform: rotate(15deg);
}
.icon-grad::after { /* بخش پایین کلاه */
    content: ''; position: absolute;
    top: 10px; left: 4px;
    width: 14px; height: 6px;
    border: 2px solid currentColor;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

/* --- آیکون کپسول (Pill) --- */
.icon-pill {
    width: 24px; height: 12px;
    background: linear-gradient(90deg, var(--primary) 50%, white 50%); /* دو رنگ */
    border: 2px solid var(--primary);
    border-radius: 10px;
    display: inline-block;
    vertical-align: middle;
    transform: rotate(-30deg);
    margin-left: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

/* --- آیکون سرعت (Speed Arrow) --- */
.icon-speed {
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 16px solid var(--primary); /* مثلث آبی */
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    transform: rotate(45deg);
}
.icon-speed::after { /* دنباله آتش */
    content: ''; position: absolute;
    top: 16px; left: -4px;
    width: 8px; height: 4px;
    background: #FF6B6B;
    border-radius: 4px;
    filter: blur(2px);
}

/* --- آیکون قلم (Feather Pen) --- */
.icon-pen {
    width: 6px; height: 30px;
    background: currentColor;
    transform: rotate(30deg);
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    border-radius: 2px;
    position: relative;
}
.icon-pen::before { /* نوک قلم */
    content: ''; position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 0;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-top: 5px solid currentColor;
}
.icon-pen::after { /* خط نوشتاری */
    content: ''; position: absolute;
    bottom: -2px; right: 2px;
    width: 10px; height: 2px;
    background: #FF6B6B;
    border-radius: 2px;
}

/* ========================
   فوتر مدرن (Modern Footer)
   ======================== */
.main-footer {
    background: white;
    border-top: 1px solid #f1f5f9;
    padding: 60px 0 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* توری نقطه‌ای محو در پس‌زمینه برای زیبایی */
.main-footer::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px; opacity: 0.3; pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr; /* تقسیم فضا */
    gap: 40px;
    margin-bottom: 40px;
    position: relative; z-index: 1;
}

/* ستون اول: برند */
.footer-brand h2 { font-size: 1.5rem; margin: 15px 0; color: var(--text); font-weight: 900; }
.footer-desc { color: #64748b; line-height: 1.8; font-size: 0.95rem; text-align: justify; }

/* ستون اطلاعات تماس */
.footer-contact-item {
    display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px;
    color: #475569; font-weight: 500;
}
.contact-icon-box {
    width: 40px; height: 40px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* دکمه‌های سوشال (شبکه‌های اجتماعی) */
.social-box {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}
.social-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}
.social-btn svg { width: 20px; height: 20px; fill: currentColor; } /* سایز استاندارد آیکون‌ها */

/* افکت هاور رنگی برای هر شبکه (برندینگ) */
.social-btn:hover { transform: translateY(-5px); color: white; border-color: transparent; }

/* رنگ‌های اختصاصی هاور */
.s-telegram:hover { background: #229ED9; box-shadow: 0 5px 15px rgba(34, 158, 217, 0.4); }
.s-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4); }
.s-linkedin:hover { background: #0077b5; box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4); }
.s-twitter:hover { background: #1DA1F2; box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4); }
.s-aparat:hover { background: #EA1D5D; box-shadow: 0 5px 15px rgba(234, 29, 93, 0.4); }
.s-rubika:hover { background: #71249C; box-shadow: 0 5px 15px rgba(113, 36, 156, 0.4); }
.s-bale:hover { background: #30A66C; box-shadow: 0 5px 15px rgba(48, 166, 108, 0.4); }
.s-soroush:hover { background: #0597F2; box-shadow: 0 5px 15px rgba(5, 151, 242, 0.4); }

/* کپی رایت پایین */
.footer-copy {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    color: #94a3b8;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-contact-item { justify-content: center; }
}

/* ========================
   صفحه ورود و ثبت نام (نسخه نهایی و اصلاح شده)
   ======================== */
.auth-body {
    background: #f1f5f9;
    display: flex; justify-content: center; align-items: center;
    flex-direction: column; height: 100vh; margin: 0;
}

.auth-container {
    background-color: #fff;
    border-radius: 25px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
    width: 900px;
    max-width: 100%;
    min-height: 700px;
    /* نکته حیاتی: جهت کانتینر باید چپ‌چین باشد تا انیمیشن خراب نشود */
    direction: ltr; 
}

/* کانتینر فرم‌ها */
.form-container {
    position: absolute; top: 0; height: 100%; transition: all 0.6s ease-in-out;
    padding: 40px; 
    display: flex; flex-direction: column; justify-content: center;
    text-align: center;
    /* داخل فرم‌ها را دوباره راست‌چین میکنیم */
    direction: rtl; 
}

.sign-in-container { left: 0; width: 50%; z-index: 2; }
.sign-up-container { left: 0; width: 50%; opacity: 0; z-index: 1; }

/* انیمیشن جابجایی */
.auth-container.right-panel-active .sign-in-container { transform: translateX(100%); }
.auth-container.right-panel-active .sign-up-container { 
    transform: translateX(100%); opacity: 1; z-index: 5; animation: show 0.6s; 
}

@keyframes show { 
    0%, 49.99% { opacity: 0; z-index: 1; } 
    50%, 100% { opacity: 1; z-index: 5; } 
}

/* پنل رنگی (Overlay) */
.overlay-container {
    position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
    overflow: hidden; transition: transform 0.6s ease-in-out; z-index: 100;
}
.auth-container.right-panel-active .overlay-container { transform: translateX(-100%); }

.overlay {
    background: #4D96FF;
    background: linear-gradient(to right, #4D96FF, #6C5CE7);
    background-repeat: no-repeat; background-size: cover; background-position: 0 0;
    color: #FFFFFF; position: relative; left: -100%; height: 100%; width: 200%;
    transform: translateX(0); transition: transform 0.6s ease-in-out;
}
.auth-container.right-panel-active .overlay { transform: translateX(50%); }

.overlay-panel {
    position: absolute; display: flex; align-items: center; justify-content: center;
    flex-direction: column; padding: 0 40px; text-align: center;
    top: 0; height: 100%; width: 50%; transform: translateX(0); transition: transform 0.6s ease-in-out;
    direction: rtl; /* متن‌های داخل پنل رنگی هم راست‌چین شوند */
}

.overlay-left { transform: translateX(-20%); }
.auth-container.right-panel-active .overlay-left { transform: translateX(0); }
.overlay-right { right: 0; transform: translateX(0); }
.auth-container.right-panel-active .overlay-right { transform: translateX(20%); }

/* استایل ورودی‌ها */
.input-group { margin-bottom: 15px; width: 100%; text-align: right; }
.input-group label { font-size: 0.8rem; font-weight: bold; margin-bottom: 5px; display: block; color: #64748b; }
.input-group input, .input-group select, .input-group textarea {
    background-color: #f8fafc; border: 1px solid #e2e8f0; padding: 12px 15px; width: 100%;
    border-radius: 12px; font-family: 'Vazirmatn', sans-serif; transition: 0.3s;
    text-align: right; direction: rtl;
}

/* کارت‌های نقش */
.role-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 15px 0; width: 100%; }
.role-card {
    background: white; border: 2px solid #e2e8f0; border-radius: 12px; padding: 10px;
    cursor: pointer; transition: 0.3s; display: flex; flex-direction: column; align-items: center;
}
.role-card.selected { background: #eff6ff; border-color: #4D96FF; color: #4D96FF; }

/* موبایل */
@media (max-width: 768px) {
    .auth-container { width: 100%; min-height: 800px; border-radius: 0; display: block; overflow-y: auto; }
    .form-container { width: 100%; height: auto; position: relative; padding: 20px; top: 0; }
    .overlay-container { display: none; } 
    .sign-up-container { opacity: 1; z-index: 5; display: none; }
    .auth-container.right-panel-active .sign-in-container { display: none; }
    .auth-container.right-panel-active .sign-up-container { display: block; transform: none; }
}