  /* ==========================================
           متغیرهای رنگی
           ========================================== */
        :root {
            --primary: #7c3aed;
            --primary-dark: #5b21b6;
            --primary-hover: #6d28d9;
            --primary-light: #a855f7;
            --primary-bg: #f3e8ff;
            --primary-pale: #faf5ff;
            --dark: #1e1b2e;
            --gray: #6b7280;
            --gray-light: #9ca3af;
            --white: #ffffff;
            --shadow-sm: rgba(124, 58, 237, 0.06);
            --shadow-md: rgba(124, 58, 237, 0.12);
            --shadow-lg: rgba(124, 58, 237, 0.20);
            --shadow-xl: rgba(124, 58, 237, 0.28);
            --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            --radius-xl: 24px;
            --radius-lg: 18px;
            --radius-md: 14px;
            --radius-sm: 12px;
            --p: var(--primary);
            --pd: var(--primary-dark);
            --pl: var(--primary-pale);
            --d: var(--dark);
            --g: var(--gray);
            --gl: var(--gray-light);
            --w: var(--white);
            --r: #ef4444;
            --gr: #10b981;
            --o: #f59e0b;
            --b: #e2e8f0;
            --rd: 20px;
            --rs: 12px;
            --t: var(--transition);
        }

        /* ==========================================
   RESET & BASE - بهینه برای موبایل
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* جلوگیری از بزرگ شدن فونت در موبایل */
    -webkit-tap-highlight-color: transparent; /* حذف هایلایت آبی در موبایل */
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #faf8ff;
    color: var(--dark);
    direction: rtl;
    /* حذف display:flex برای موبایل */
    /* استفاده از min-height: 100dvh به جای 100vh برای موبایل */
    min-height: 100dvh;
    line-height: 1.6;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی در موبایل */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   کانتینر اصلی - جایگزین display:flex
   ========================================== */
.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

/* ==========================================
   محتوای اصلی - کشش خودکار
   ========================================== */
.main-content {
    flex: 1 0 auto;
}

/* ==========================================
   فوتر - چسبیده به پایین
   ========================================== */
.main-footer {
    flex-shrink: 0;
}

        img { max-width: 100%; height: auto; }

        ::-webkit-scrollbar { width: 5px; }
        ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

        /* ==========================================
           هدر - طراحی مدرن
           ========================================== */
        .header-container-wrapper {
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 14px 0;
            transition: var(--transition);
        }
        .header-container-wrapper.scrolled {
            padding: 8px 0;
        }
        .main-header {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 100px;
            box-shadow: 0 8px 32px var(--shadow-md);
            border: 1px solid rgba(124, 58, 237, 0.1);
            transition: var(--transition);
        }
        .header-container-wrapper.scrolled .main-header {
            box-shadow: 0 12px 40px var(--shadow-lg);
            background: rgba(255, 255, 255, 0.95);
        }
        .header-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 24px;
            gap: 16px;
        }
        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            flex-shrink: 0;
        }
        .logo-img {
            height: 44px;
            width: auto;
            object-fit: contain;
            transition: transform 0.3s ease;
        }
        .logo:hover .logo-img { transform: scale(1.06); }

        .main-nav .navbar-nav { gap: 6px; }
        .main-nav .nav-link {
            color: var(--dark);
            font-size: 14px;
            font-weight: 600;
            transition: var(--transition);
            padding: 8px 16px !important;
            border-radius: 30px;
            position: relative;
        }
        .main-nav .nav-link.active {
            color: var(--primary);
            background-color: var(--primary-bg);
            font-weight: 700;
        }
        .main-nav .nav-link:hover {
            color: var(--primary);
            background-color: var(--primary-pale);
        }

        .icon-btn-clean {
            background: #f5f3fa;
            border: none;
            color: var(--dark);
            font-size: 17px;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            border-radius: 50%;
        }
        .icon-btn-clean:hover {
            color: var(--primary);
            background-color: var(--primary-bg);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px var(--shadow-sm);
        }
        .cart-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: var(--white);
            font-size: 10px;
            font-weight: 700;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 3px 8px rgba(239, 68, 68, 0.5);
            border: 2px solid var(--white);
            animation: pulse-badge 2s infinite;
        }
        @keyframes pulse-badge {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.15); }
        }

        .btn-account {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: var(--white) !important;
            padding: 11px 24px;
            border-radius: 50px;
            text-decoration: none;
            font-size: 13.5px;
            font-weight: 700;
            box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }
        .btn-account:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
            color: var(--white) !important;
        }

        .search-box-header {
            display: flex;
            align-items: center;
            background: #f5f3fa;
            border: 2px solid transparent;
            border-radius: 50px;
            padding: 5px;
            transition: var(--transition);
            width: 220px;
        }
        .search-box-header:focus-within {
            background: #fff;
            border-color: var(--primary);
            box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.08);
            width: 250px;
        }
        .search-input-header {
            border: none;
            background: transparent;
            padding: 8px 14px 8px 4px;
            font-size: 13px;
            font-weight: 500;
            width: 100%;
            font-family: 'Vazirmatn', sans-serif;
            color: var(--dark);
            outline: none;
        }
        .search-input-header::placeholder { color: #b0a8c0; font-size: 12px; }
        .search-btn-header {
            background: var(--primary);
            color: #fff;
            border: none;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            flex-shrink: 0;
            font-size: 13px;
        }
        .search-btn-header:hover {
            background: var(--primary-hover);
            transform: scale(1.08);
        }


        /* ==========================================
           Hero
           ========================================== */
        .hero-section {
            background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
            color: #fff;
            padding: 70px 20px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .hero-section::before {
            content: '';
            position: absolute;
            top: -100px; left: -100px;
            width: 300px; height: 300px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 50%;
        }
        .hero-section::after {
            content: '';
            position: absolute;
            bottom: -60px; right: -60px;
            width: 200px; height: 200px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 50%;
        }
        .hero-title { font-size: 36px; font-weight: 900; margin-bottom: 10px; position: relative; z-index: 1; }
        .hero-subtitle { font-size: 16px; opacity: .85; position: relative; z-index: 1; }

        /* ==========================================
           Content
           ========================================== */
        .about-container { max-width: 1000px; margin: 0 auto; padding: 40px 20px 60px; flex: 1; }

        .content-card {
            background: #fff;
            border: 1px solid var(--b);
            border-radius: var(--rd);
            padding: 32px;
            margin-bottom: 24px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
        }
        .content-card h2 {
            font-size: 22px;
            font-weight: 900;
            color: var(--d);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .content-card h2::before {
            content: '';
            display: inline-block;
            width: 6px;
            height: 26px;
            background: var(--p);
            border-radius: 3px;
        }
        .content-card p { font-size: 14px; color: var(--g); line-height: 2.2; margin-bottom: 12px; }
        .content-card p:last-child { margin-bottom: 0; }

        .team-img {
            max-width: 100%;
            max-height: 350px;
            border-radius: var(--rd);
            box-shadow: 0 10px 40px rgba(0, 0, 0, .1);
            object-fit: cover;
            margin-bottom: 30px;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        /* Stats */
        .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
        .stat-card {
            background: #fff;
            border: 1px solid var(--b);
            border-radius: var(--rd);
            padding: 20px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
        }
        .stat-card .stat-icon { font-size: 26px; color: var(--p); margin-bottom: 8px; }
        .stat-card .stat-num { font-size: 22px; font-weight: 900; color: var(--d); }
        .stat-card .stat-label { font-size: 11px; color: var(--g); font-weight: 600; margin-top: 4px; }

        /* Timeline */
        .timeline { position: relative; padding-right: 30px; }
        .timeline::before {
            content: '';
            position: absolute;
            right: 8px; top: 0; bottom: 0;
            width: 2px;
            background: linear-gradient(180deg, var(--p), #e2e8f0);
        }
        .timeline-item { position: relative; margin-bottom: 24px; padding-right: 20px; }
        .timeline-item::before {
            content: '';
            position: absolute;
            right: -26px; top: 6px;
            width: 14px; height: 14px;
            border-radius: 50%;
            background: var(--p);
            border: 3px solid var(--pl);
            box-shadow: 0 0 0 4px rgba(124, 58, 237, .1);
        }
        .timeline-item .year { font-size: 13px; font-weight: 800; color: var(--p); margin-bottom: 4px; }
        .timeline-item p { font-size: 13px; color: var(--g); line-height: 1.8; margin: 0; }

        /* Values */
        .values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
        .value-card {
            background: #fff;
            border: 1px solid var(--b);
            border-radius: var(--rd);
            padding: 24px 20px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
            transition: var(--t);
        }
        .value-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(124, 58, 237, .1); }
        .value-card .v-icon {
            width: 56px; height: 56px;
            border-radius: 50%;
            margin: 0 auto 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
        }
        .value-card h4 { font-weight: 800; font-size: 14px; color: var(--d); margin-bottom: 6px; }
        .value-card p { font-size: 12px; color: var(--g); line-height: 1.8; margin: 0; }

        /* Contact */
        .contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
        .contact-card {
            background: #fff;
            border: 1px solid var(--b);
            border-radius: var(--rd);
            padding: 20px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
        }
        .contact-card i { font-size: 28px; color: var(--p); margin-bottom: 10px; }
        .contact-card strong { display: block; font-size: 14px; color: var(--d); }
        .contact-card span { font-size: 11px; color: var(--gl); margin-top: 4px; display: block; }

        @media (max-width: 992px) {
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .values-grid { grid-template-columns: 1fr; }
            .contact-grid { grid-template-columns: 1fr; }
        }
        @media (max-width: 768px) {
            .hero-title { font-size: 26px; }
            .content-card { padding: 20px; }
        }