
        /* ===================== */
        /* 🎨 طراحی مدرن متمرکز بر موبایل */
        /* ===================== */
        
        /* ===== متغیرهای سیستم (بهینه‌شده) ===== */
        :root {
            /* پالت رنگی علمی خاک‌شناسی - بهبود یافته */
            --soil-primary: #8B4513;
            --soil-primary-light: #A0522D;
            --soil-secondary: #D2691E;
            --soil-light: #D2B48C;
            --soil-dark: #654321;
            --soil-accent: #228B22;
            --soil-accent-light: #32CD32;
            --water-blue: #1E90FF;
            --lab-dark: #2F4F4F;
            
            /* رنگ‌های accent */
            --accent-green: #2E8B57;
            --accent-blue: #1E90FF;
            --accent-red: #DC143C;
            --accent-yellow: #FFD700;
            --accent-purple: #8b5cf6;
            --accent-teal: #0f766e;
            
            /* رنگ‌های متنی - کنتراست بهبود یافته */
            --text-primary: #1A1A1A;
            --text-secondary: #4A4A4A;
            --text-light: #7A7A7A;
            --text-on-dark: #FFFFFF;
            
            /* رنگ‌های پس‌زمینه */
            --bg-primary: #FFFBF5;
            --bg-secondary: #F9F5F0;
            --card-bg: #FFFFFF;
            --card-shadow: 0 4px 16px rgba(139, 69, 19, 0.08);
            --card-shadow-hover: 0 8px 32px rgba(139, 69, 19, 0.15);
            
            /* سایه‌های بهینه‌شده */
            --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
            --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
            
            /* ابعاد و فاصله‌ها */
            --radius-xs: 6px;
            --radius-sm: 10px;
            --radius-md: 14px;
            --radius-lg: 18px;
            --radius-xl: 24px;
            --radius-2xl: 32px;
            --radius-full: 9999px;
            
            /* فاصله‌های استاندارد موبایل */
            --space-xs: 6px;
            --space-sm: 12px;
            --space-md: 16px;
            --space-lg: 24px;
            --space-xl: 32px;
            --space-2xl: 48px;
            --space-3xl: 64px;
            
            /* ابعاد لمسی */
            --touch-min: 44px;
            --touch-sm: 48px;
            --touch-md: 52px;
            --touch-lg: 56px;
            
            /* تایپوگرافی */
            --font-size-xs: 0.75rem;    /* 12px */
            --font-size-sm: 0.875rem;   /* 14px */
            --font-size-base: 1rem;     /* 16px */
            --font-size-lg: 1.125rem;   /* 18px */
            --font-size-xl: 1.25rem;    /* 20px */
            --font-size-2xl: 1.5rem;    /* 24px */
            --font-size-3xl: 1.875rem;  /* 30px */
            --font-size-4xl: 2.25rem;   /* 36px */
            
            --font-weight-light: 300;
            --font-weight-normal: 400;
            --font-weight-medium: 500;
            --font-weight-semibold: 600;
            --font-weight-bold: 700;
            --font-weight-extrabold: 800;
            
            /* انیمیشن‌ها */
            --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-bounce: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
        
        /* ===== ریست و پایه ===== */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }
        
        html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, 'Helvetica Neue', sans-serif;
            background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
            color: var(--text-primary);
            line-height: 1.6;
            letter-spacing: -0.01em;
            min-height: 100vh;
            overflow-x: hidden;
            font-size: var(--font-size-base);
            font-weight: var(--font-weight-normal);
        }
        
        /* بهبود تایپوگراسی برای فارسی */
        @supports (font-variation-settings: normal) {
            body {
                font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            }
        }
        
        /* ===== تایپوگرافی ===== */
        h1, h2, h3, h4, h5, h6 {
            font-weight: var(--font-weight-bold);
            line-height: 1.2;
            margin-bottom: var(--space-sm);
        }
        
        h1 {
            font-size: var(--font-size-3xl);
        }
        
        h2 {
            font-size: var(--font-size-2xl);
        }
        
        h3 {
            font-size: var(--font-size-xl);
        }
        
        p {
            margin-bottom: var(--space-md);
            line-height: 1.6;
        }
        
        a {
            color: var(--soil-primary);
            text-decoration: none;
            transition: color var(--transition-fast);
        }
        
        a:hover {
            color: var(--soil-secondary);
        }
        
        /* ===== کانتینر اصلی ===== */
        .container {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            padding: var(--space-sm);
        }
        
        @media (min-width: 640px) {
            .container {
                padding: var(--space-md);
                max-width: 640px;
            }
        }
        
        @media (min-width: 768px) {
            .container {
                padding: var(--space-lg);
                max-width: 768px;
            }
        }
        
        @media (min-width: 1024px) {
            .container {
                padding: var(--space-xl);
                max-width: 1024px;
            }
        }
        
        @media (min-width: 1280px) {
            .container {
                max-width: 1280px;
            }
        }
        
        /* ===== هدر ===== */
        .mobile-header {
            background: linear-gradient(135deg, var(--soil-primary) 0%, var(--soil-secondary) 100%);
            border-radius: var(--radius-xl);
            padding: var(--space-lg);
            margin-bottom: var(--space-2xl);
            color: var(--text-on-dark);
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            isolation: isolate;
        }
        
        .mobile-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, 
                rgba(255,255,255,0.3) 0%,
                rgba(255,255,255,0.6) 50%,
                rgba(255,255,255,0.3) 100%);
            z-index: 1;
        }
        
        .mobile-header::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 60%);
            z-index: -1;
        }
        
        .header-content {
            position: relative;
            z-index: 2;
            text-align: center;
        }
        
        .header-icon {
            width: 64px;
            height: 64px;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(12px);
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto var(--space-md);
            font-size: 1.75rem;
            border: 2px solid rgba(255, 255, 255, 0.25);
            box-shadow: var(--shadow-md);
            transition: transform var(--transition-normal);
        }
        
        .header-icon:hover {
            transform: scale(1.05) rotate(5deg);
        }
        
        .header-title {
            font-size: var(--font-size-2xl);
            font-weight: var(--font-weight-extrabold);
            margin-bottom: var(--space-xs);
            text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
            line-height: 1.2;
            letter-spacing: -0.02em;
        }
        
        .header-subtitle {
            font-size: var(--font-size-sm);
            opacity: 0.95;
            max-width: 500px;
            margin: 0 auto var(--space-lg);
            line-height: 1.5;
            font-weight: var(--font-weight-medium);
        }
        
        .header-stats {
            display: flex;
            justify-content: center;
            gap: var(--space-sm);
            margin-top: var(--space-md);
            flex-wrap: wrap;
        }
        
        @media (max-width: 480px) {
            .header-stats {
                flex-direction: column;
                align-items: center;
            }
        }
        
        .stat-badge {
            background: rgba(255, 255, 255, 0.15);
            padding: var(--space-xs) var(--space-sm);
            border-radius: var(--radius-full);
            font-size: var(--font-size-xs);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all var(--transition-normal);
            text-decoration: none;
            color: inherit;
            cursor: pointer;
            font-weight: var(--font-weight-medium);
            min-height: var(--touch-min);
        }
        
        .stat-badge:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .stat-badge:active {
            transform: translateY(0);
        }
        
        /* ===== دسته‌بندی‌ها ===== */
        .mobile-category {
            margin-bottom: var(--space-2xl);
            animation: slideUp 0.5s ease forwards;
        }
        
        .category-header-mobile {
            display: flex;
            align-items: center;
            gap: var(--space-md);
            margin-bottom: var(--space-xl);
            padding-bottom: var(--space-md);
            border-bottom: 2px solid rgba(139, 69, 19, 0.1);
        }
        
        .category-icon-mobile {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, var(--soil-primary), var(--soil-secondary));
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-on-dark);
            font-size: 1.25rem;
            flex-shrink: 0;
            box-shadow: var(--shadow-md);
            transition: transform var(--transition-normal);
        }
        
        .category-icon-mobile:hover {
            transform: scale(1.05);
        }
        
        .category-title-mobile {
            font-size: var(--font-size-xl);
            font-weight: var(--font-weight-bold);
            color: var(--text-primary);
            line-height: 1.3;
            margin-bottom: var(--space-xs);
        }
        
        .category-desc-mobile {
            font-size: var(--font-size-sm);
            color: var(--text-secondary);
            line-height: 1.5;
            font-weight: var(--font-weight-medium);
        }
        
        /* ===== سیستم گرید ===== */
        .mobile-grid {
            display: grid;
            gap: var(--space-lg);
            grid-template-columns: 1fr;
        }
        
        @media (min-width: 480px) and (max-width: 767px) {
            .mobile-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: var(--space-md);
            }
        }
        
        @media (min-width: 768px) and (max-width: 1023px) {
            .mobile-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: var(--space-lg);
            }
        }
        
        @media (min-width: 1024px) {
            .mobile-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: var(--space-lg);
            }
        }
        
        @media (min-width: 1280px) {
            .mobile-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        
        /* ===== کارت‌ها ===== */
        .mobile-card {
            background: var(--card-bg);
            border-radius: var(--radius-xl);
            padding: var(--space-lg);
            box-shadow: var(--card-shadow);
            transition: all var(--transition-normal);
            border: 1px solid rgba(139, 69, 19, 0.1);
            height: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
            min-height: 340px;
        }
        
        .mobile-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--card-shadow-hover);
            border-color: rgba(139, 69, 19, 0.2);
        }
        
        .card-top-bar {
            height: 4px;
            background: linear-gradient(90deg, var(--soil-primary), var(--soil-secondary));
            margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-md);
            border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        }
        
        .ai-sparkle {
            position: absolute;
            top: 16px;
            left: 16px;
            color: var(--accent-yellow);
            font-size: 1rem;
            z-index: 2;
            background: rgba(255, 215, 0, 0.1);
            padding: 4px 8px;
            border-radius: var(--radius-full);
            border: 1px solid rgba(255, 215, 0, 0.2);
            backdrop-filter: blur(4px);
        }
        
        .card-badge-mobile {
            background: linear-gradient(135deg, var(--soil-primary), var(--soil-secondary));
            color: var(--text-on-dark);
            padding: 6px 12px;
            border-radius: var(--radius-full);
            font-size: var(--font-size-xs);
            font-weight: var(--font-weight-bold);
            display: inline-block;
            margin-bottom: var(--space-md);
            box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
            align-self: flex-start;
            letter-spacing: 0.5px;
        }
        
        .card-icon-mobile {
            width: 56px;
            height: 56px;
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: var(--text-on-dark);
            margin-bottom: var(--space-md);
            box-shadow: var(--shadow-md);
            flex-shrink: 0;
            transition: transform var(--transition-normal);
        }
        
        .mobile-card:hover .card-icon-mobile {
            transform: scale(1.05);
        }
        
        .card-title-mobile {
            font-size: var(--font-size-lg);
            font-weight: var(--font-weight-bold);
            color: var(--text-primary);
            margin-bottom: var(--space-sm);
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .card-desc-mobile {
            font-size: var(--font-size-sm);
            color: var(--text-secondary);
            margin-bottom: var(--space-md);
            flex-grow: 1;
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        /* ===== ویژگی‌های علمی ===== */
        .features-compact {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: var(--space-md) 0;
        }
        
        .feature-tag-mobile {
            background: rgba(139, 69, 19, 0.08);
            color: var(--soil-primary);
            padding: 6px 12px;
            border-radius: var(--radius-full);
            font-size: var(--font-size-xs);
            font-weight: var(--font-weight-medium);
            border: 1px solid rgba(139, 69, 19, 0.15);
            transition: all var(--transition-fast);
            white-space: nowrap;
        }
        
        .feature-tag-mobile:hover {
            background: rgba(139, 69, 19, 0.12);
            transform: translateY(-1px);
        }
        
        .feature-tag-ai {
            background: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.1));
            color: var(--accent-purple);
            border-color: rgba(106, 17, 203, 0.2);
        }
        
        /* ===== اطلاعات فنی ===== */
        .tech-info-mobile {
            background: rgba(255, 179, 0, 0.08);
            border-radius: var(--radius-lg);
            padding: var(--space-md);
            margin: var(--space-md) 0;
            border: 1px solid rgba(255, 179, 0, 0.2);
            font-size: var(--font-size-sm);
        }
        
        .tech-item-mobile {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
            color: var(--text-primary);
        }
        
        .tech-item-mobile:last-child {
            margin-bottom: 0;
        }
        
        /* ===== دکمه‌های کارت ===== */
        .card-actions {
            display: flex;
            gap: var(--space-sm);
            margin-top: var(--space-lg);
            flex-direction: column;
        }
        
        @media (min-width: 480px) {
            .card-actions {
                flex-direction: row;
                flex-wrap: wrap;
            }
        }
        
        @media (max-width: 479px) {
            .card-actions {
                gap: 10px;
            }
            
            .touch-button {
                width: 100%;
            }
        }
        
        .touch-button {
            flex: 1;
            padding: var(--space-md) var(--space-lg);
            background: linear-gradient(135deg, var(--soil-primary), var(--soil-secondary));
            color: var(--text-on-dark);
            border: none;
            border-radius: var(--radius-lg);
            font: inherit;
            font-weight: var(--font-weight-semibold);
            cursor: pointer;
            transition: all var(--transition-normal);
            text-align: center;
            text-decoration: none;
            box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
            position: relative;
            overflow: hidden;
            -webkit-appearance: none;
            min-height: var(--touch-min);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: var(--font-size-sm);
            letter-spacing: 0.3px;
        }
        
        .touch-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.7s ease;
        }
        
        .touch-button:hover::before {
            left: 100%;
        }
        
        .touch-button:hover {
            background: linear-gradient(135deg, var(--soil-primary-light), var(--soil-secondary));
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(139, 69, 19, 0.25);
        }
        
        .touch-button:active {
            transform: translateY(0);
            transition-duration: 0.1s;
            box-shadow: 0 2px 6px rgba(139, 69, 19, 0.2);
        }
        
        .touch-button-ai {
            background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
        }
        
        .touch-button-ai:hover {
            background: linear-gradient(135deg, #7c3aed, #6d28d9);
            box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
        }
        
        .touch-button-secondary {
            background: linear-gradient(135deg, var(--accent-teal), #0d9488);
            box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
        }
        
        .touch-button-secondary:hover {
            background: linear-gradient(135deg, #0d9488, #14b8a6);
            box-shadow: 0 8px 20px rgba(15, 118, 110, 0.3);
        }
        
        .touch-button-tertiary {
            background: linear-gradient(135deg, var(--accent-blue), #3b82f6);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
        }
        
        .touch-button-tertiary:hover {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
        }
        
        /* ===== ناوبری شناور ===== */
        .mobile-nav-float {
            position: fixed;
            bottom: var(--space-lg);
            right: var(--space-lg);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: var(--space-sm);
            pointer-events: none;
        }
        
        @media (max-width: 480px) {
            .mobile-nav-float {
                bottom: var(--space-md);
                right: var(--space-md);
            }
        }
        
        .nav-button {
            width: var(--touch-lg);
            height: var(--touch-lg);
            background: linear-gradient(135deg, var(--soil-primary), var(--soil-secondary));
            color: var(--text-on-dark);
            border: none;
            border-radius: var(--radius-full);
            font-size: 1.25rem;
            cursor: pointer;
            transition: all var(--transition-bounce);
            box-shadow: 0 6px 20px rgba(139, 69, 19, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: auto;
            position: relative;
            overflow: hidden;
        }
        
        .nav-button::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
            opacity: 0;
            transition: opacity var(--transition-fast);
        }
        
        .nav-button:hover {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 10px 30px rgba(139, 69, 19, 0.35);
        }
        
        .nav-button:hover::after {
            opacity: 1;
        }
        
        .nav-button:active {
            transform: scale(0.95);
            transition-duration: 0.1s;
        }
        
        /* ===== فوتر ===== */
        .mobile-footer {
            background: linear-gradient(135deg, var(--lab-dark), #363636);
            color: var(--text-on-dark);
            border-radius: var(--radius-xl);
            padding: var(--space-2xl) var(--space-xl);
            margin-top: var(--space-2xl);
            text-align: center;
            box-shadow: var(--shadow-xl);
            position: relative;
            overflow: hidden;
            isolation: isolate;
        }
        
        .mobile-footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, 
                rgba(255,255,255,0.2) 0%,
                rgba(255,255,255,0.4) 50%,
                rgba(255,255,255,0.2) 100%);
            z-index: 1;
        }
        
        .footer-content {
            position: relative;
            z-index: 2;
        }
        
        .footer-icon {
            width: 64px;
            height: 64px;
            background: rgba(255, 255, 255, 0.12);
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.75rem;
            margin: 0 auto var(--space-lg);
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(8px);
        }
        
        .footer-title {
            font-size: var(--font-size-xl);
            font-weight: var(--font-weight-bold);
            margin-bottom: var(--space-sm);
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }
        
        .footer-text {
            opacity: 0.9;
            font-size: var(--font-size-sm);
            max-width: 500px;
            margin: 0 auto var(--space-lg);
            line-height: 1.6;
            font-weight: var(--font-weight-medium);
        }
        
        .footer-version {
            margin-top: var(--space-xl);
            opacity: 0.7;
            font-size: var(--font-size-xs);
            letter-spacing: 0.5px;
        }
        
        /* ===== مودال‌ها ===== */
        .modal-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            padding: var(--space-md);
            backdrop-filter: blur(6px);
            animation: fadeIn 0.3s ease;
        }
        
        .modal-content {
            background: var(--card-bg);
            border-radius: var(--radius-xl);
            width: 100%;
            max-width: 800px;
            max-height: 85vh;
            overflow: hidden;
            box-shadow: var(--shadow-xl);
            animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 1px solid rgba(139, 69, 19, 0.1);
        }
        
        .modal-header {
            background: linear-gradient(135deg, var(--soil-primary), var(--soil-secondary));
            color: var(--text-on-dark);
            padding: var(--space-xl);
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .modal-header h3 {
            margin: 0;
            font-size: var(--font-size-xl);
            font-weight: var(--font-weight-bold);
            line-height: 1.3;
        }
        
        .close-btn {
            background: rgba(255, 255, 255, 0.15);
            border: none;
            color: var(--text-on-dark);
            font-size: 2rem;
            cursor: pointer;
            padding: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
            border-radius: var(--radius-full);
            flex-shrink: 0;
        }
        
        .close-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: scale(1.1);
        }
        
        .close-btn:active {
            transform: scale(0.95);
        }
        
        .modal-body {
            padding: var(--space-xl);
            overflow-y: auto;
            max-height: calc(85vh - 140px);
        }
        
        /* استایل مخصوص فرمول‌ها */
        .formulas-section {
            margin-bottom: var(--space-xl);
        }
        
        .formulas-section h4 {
            color: var(--soil-primary);
            margin-top: 0;
            margin-bottom: var(--space-lg);
            padding-bottom: var(--space-sm);
            border-bottom: 2px solid rgba(139, 69, 19, 0.1);
            font-size: var(--font-size-lg);
            font-weight: var(--font-weight-bold);
        }
        
        .formula-item {
            background: rgba(139, 69, 19, 0.04);
            border-radius: var(--radius-lg);
            padding: var(--space-lg);
            margin-bottom: var(--space-lg);
            border: 1px solid rgba(139, 69, 19, 0.1);
            transition: transform var(--transition-normal);
        }
        
        .formula-item:hover {
            transform: translateY(-2px);
            background: rgba(139, 69, 19, 0.06);
        }
        
        .formula-display {
            font-family: 'Cambria Math', 'Times New Roman', Georgia, serif;
            text-align: center;
            padding: var(--space-lg);
            background: rgba(139, 69, 19, 0.02);
            border-radius: var(--radius-md);
            margin-bottom: var(--space-lg);
            border: 2px solid rgba(139, 69, 19, 0.1);
            font-size: var(--font-size-lg);
            overflow-x: auto;
            direction: ltr;
            font-weight: var(--font-weight-medium);
            color: var(--text-primary);
        }
        
        .variables-table {
            width: 100%;
            border-collapse: collapse;
            font-size: var(--font-size-sm);
            margin-top: var(--space-md);
        }
        
        .variables-table th {
            background: rgba(139, 69, 19, 0.08);
            color: var(--soil-primary);
            padding: var(--space-md) var(--space-lg);
            text-align: right;
            border-bottom: 2px solid rgba(139, 69, 19, 0.2);
            font-weight: var(--font-weight-semibold);
            font-size: var(--font-size-sm);
        }
        
        .variables-table td {
            padding: var(--space-md) var(--space-lg);
            border-bottom: 1px solid rgba(139, 69, 19, 0.1);
            text-align: right;
            vertical-align: top;
        }
        
        .variables-table tr:hover {
            background: rgba(139, 69, 19, 0.02);
        }
        
        .variable-symbol {
            font-family: 'Cambria Math', 'Times New Roman', serif;
            font-weight: var(--font-weight-bold);
            color: var(--accent-teal);
            direction: ltr;
            font-size: var(--font-size-sm);
        }
        
        /* استایل مخصوص مراحل */
        .steps-section {
            margin-bottom: var(--space-xl);
        }
        
        .steps-section h4 {
            color: var(--soil-primary);
            margin-top: 0;
            margin-bottom: var(--space-lg);
            padding-bottom: var(--space-sm);
            border-bottom: 2px solid rgba(139, 69, 19, 0.1);
            font-size: var(--font-size-lg);
            font-weight: var(--font-weight-bold);
        }
        
        .steps-list {
            margin: 0;
            padding-right: var(--space-xl);
            line-height: 1.8;
            color: var(--text-primary);
            list-style-position: outside;
        }
        
        .steps-list li {
            margin-bottom: var(--space-md);
            text-align: right;
            padding-right: var(--space-sm);
            position: relative;
        }
        
        .steps-list li::marker {
            color: var(--soil-primary);
            font-weight: var(--font-weight-bold);
        }
        
        .modal-footer {
            margin-top: var(--space-xl);
            padding-top: var(--space-lg);
            border-top: 1px solid rgba(139, 69, 19, 0.1);
        }
        
        .modal-info {
            display: flex;
            gap: var(--space-lg);
            flex-wrap: wrap;
            font-size: var(--font-size-xs);
            color: var(--text-secondary);
            justify-content: center;
        }
        
        .modal-info span {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: rgba(139, 69, 19, 0.05);
            border-radius: var(--radius-full);
            border: 1px solid rgba(139, 69, 19, 0.1);
        }
        
        /* ===== انیمیشن‌ها ===== */
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(40px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
        
        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        @keyframes pulse {
            0%, 100% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0.8;
                transform: scale(0.98);
            }
        }
        
        @keyframes float {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }
        
        .animate-slide-up {
            animation: slideUp 0.5s ease forwards;
        }
        
        .animate-fade-in {
            animation: fadeIn 0.6s ease forwards;
        }
        
        .animate-slide-in-right {
            animation: slideInRight 0.5s ease forwards;
        }
        
        .animate-pulse {
            animation: pulse 2s ease-in-out infinite;
        }
        
        .animate-float {
            animation: float 3s ease-in-out infinite;
        }
        
        /* ===== بهبود‌های دسترسی‌پذیری ===== */
        :focus-visible {
            outline: 3px solid var(--soil-primary);
            outline-offset: 3px;
            border-radius: var(--radius-sm);
        }
        
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        
        /* ===== حالت تاریک ===== */
        @media (prefers-color-scheme: dark) {
            :root {
                --text-primary: #ECF0F1;
                --text-secondary: #BDC3C7;
                --text-light: #95A5A6;
                --text-on-dark: #FFFFFF;
                
                --bg-primary: #1A1A2E;
                --bg-secondary: #16213E;
                --card-bg: #2D3748;
                --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
                --card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.4);
            }
            
            body {
                background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
            }
            
            .mobile-card {
                border-color: rgba(255, 255, 255, 0.1);
            }
            
            .tech-info-mobile {
                background: rgba(255, 255, 255, 0.05);
                border-color: rgba(255, 255, 255, 0.1);
            }
            
            .feature-tag-mobile {
                background: rgba(255, 255, 255, 0.1);
                border-color: rgba(255, 255, 255, 0.15);
            }
            
            .modal-content {
                background: var(--card-bg);
                border-color: rgba(255, 255, 255, 0.1);
            }
            
            .formula-display {
                background: #374151;
                border-color: #4B5563;
                color: #E5E7EB;
            }
            
            .variables-table th {
                background: rgba(139, 69, 19, 0.2);
                color: #FBBF24;
            }
            
            .variables-table td {
                border-color: #4B5563;
            }
            
            .steps-list li {
                color: #E5E7EB;
            }
        }
        
        /* ===== لودینگ استیت ===== */
        .skeleton {
            background: linear-gradient(90deg, 
                rgba(139, 69, 19, 0.05) 25%, 
                rgba(139, 69, 19, 0.1) 50%, 
                rgba(139, 69, 19, 0.05) 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
            border-radius: var(--radius-md);
        }
        
        @keyframes loading {
            0% {
                background-position: 200% 0;
            }
            100% {
                background-position: -200% 0;
            }
        }
        
        /* ===== بهینه‌سازی‌های خاص موبایل ===== */
        @media (max-width: 480px) {
            /* کاهش padding در موبایل */
            .container {
                padding: var(--space-xs);
            }
            
            .mobile-header {
                padding: var(--space-md);
                border-radius: var(--radius-lg);
                margin-bottom: var(--space-xl);
            }
            
            .header-title {
                font-size: var(--font-size-xl);
            }
            
            .header-icon {
                width: 56px;
                height: 56px;
                font-size: 1.5rem;
            }
            
            .mobile-card {
                padding: var(--space-md);
                min-height: 320px;
                border-radius: var(--radius-lg);
            }
            
            .card-title-mobile {
                font-size: var(--font-size-base);
            }
            
            .card-actions {
                margin-top: var(--space-md);
            }
            
            .touch-button {
                padding: var(--space-sm) var(--space-md);
                font-size: var(--font-size-xs);
                min-height: 40px;
            }
            
            .modal-content {
                width: 95%;
                max-height: 90vh;
                border-radius: var(--radius-lg);
            }
            
            .modal-header {
                padding: var(--space-lg);
            }
            
            .modal-body {
                padding: var(--space-lg);
                max-height: calc(90vh - 120px);
            }
            
            .formula-item {
                padding: var(--space-md);
            }
            
            .formula-display {
                padding: var(--space-md);
                font-size: var(--font-size-base);
            }
            
            .variables-table th,
            .variables-table td {
                padding: var(--space-sm) var(--space-md);
                font-size: var(--font-size-xs);
            }
        }
        
        /* ===== بهبود‌های ظریف ===== */
        .glass-effect {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .hover-lift {
            transition: transform var(--transition-normal), box-shadow var(--transition-normal);
        }
        
        .hover-lift:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }
        
        .text-gradient {
            background: linear-gradient(135deg, var(--soil-primary), var(--soil-secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* ===== خطوط تقسیم‌کننده ===== */
        .divider {
            height: 1px;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(139, 69, 19, 0.2), 
                transparent);
            margin: var(--space-xl) 0;
            border: none;
        }
        
        /* ===== بادگن/نوتیفیکیشن ===== */
        .notification {
            position: fixed;
            top: var(--space-lg);
            right: var(--space-lg);
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            padding: var(--space-md) var(--space-lg);
            box-shadow: var(--shadow-lg);
            border-left: 4px solid var(--soil-primary);
            animation: slideInRight 0.3s ease;
            z-index: 1000;
            max-width: 400px;
        }
        
        /* ===== اسکرول بار سفارشی ===== */
        .modal-body::-webkit-scrollbar {
            width: 8px;
        }
        
        .modal-body::-webkit-scrollbar-track {
            background: rgba(139, 69, 19, 0.05);
            border-radius: var(--radius-full);
        }
        
        .modal-body::-webkit-scrollbar-thumb {
            background: rgba(139, 69, 19, 0.2);
            border-radius: var(--radius-full);
        }
        
        .modal-body::-webkit-scrollbar-thumb:hover {
            background: rgba(139, 69, 19, 0.3);
        }
        
        /* ===== استایل برای چاپ ===== */
        @media print {
            .mobile-nav-float,
            .touch-button,
            .nav-button {
                display: none !important;
            }
            
            .mobile-card {
                break-inside: avoid;
                box-shadow: none;
                border: 1px solid #ddd;
            }
            
            body {
                background: white !important;
                color: black !important;
            }
        }
    
