  
        /* --- متغیرها --- */
        :root {
            --primary: #0f172a;
            --accent: #3b82f6;
            --success: #10b981;
            --warning: #f59e0b;
            --purple: #8b5cf6;
            --bg-gray: #f1f5f9;
            --sidebar-bg: #ffffff;
            --card-bg: #ffffff;
            --text-main: #334155;
            --text-light: #64748b;
            --border-radius: 20px;
            --border-color: #e2e8f0;
            --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * { box-sizing: border-box; margin: 0; padding: 0; outline: none; font-family: 'Vazirmatn', sans-serif; text-decoration: none; }
        body { background-color: var(--bg-gray); color: var(--text-main); display: flex; height: 100vh; overflow: hidden; }

        /* --- Mobile Menu Button --- */
        .mobile-menu-btn { display: none; position: fixed; top: 20px; right: 20px; z-index: 1001; background: white; border: none; width: 45px; height: 45px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); color: var(--accent); font-size: 20px; cursor: pointer; align-items: center; justify-content: center; }
        .overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(2px); z-index: 1002; }
        .overlay.active { display: block; }

        /* --- سایدبار ثابت --- */
        .sidebar { width: 260px; background-color: var(--sidebar-bg); border-left: 1px solid var(--border-color); display: flex; flex-direction: column; padding: 20px; z-index: 1003; transition: transform 0.3s; flex-shrink: 0; height: 100vh; }
        .sidebar.active { transform: translateX(0); }
        .brand-logo { font-size: 22px; font-weight: 800; color: var(--accent); display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid #f1f5f9; }
        .nav-menu { display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; }
        .nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 12px; color: var(--text-light); font-weight: 500; font-size: 14px; transition: 0.2s; cursor: pointer; }
        .nav-item:hover { background-color: #f1f5f9; color: var(--accent); transform: translateX(-5px); }
        .nav-item.active { background-color: #eff6ff; color: var(--accent); font-weight: 700; }
        .nav-item i { width: 20px; text-align: center; font-size: 18px; }
        .sidebar-footer { margin-top: auto; border-top: 1px solid #f1f5f9; padding-top: 20px; display: flex; align-items: center; gap: 10px; }
        .user-avatar { width: 40px; height: 40px; background: #eff6ff; color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }

        /* --- محتوای اصلی --- */
        .main-content { flex: 1; padding: 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 30px; scroll-behavior: smooth; }

        /* هدر صفحه */
        .page-header { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
        .header-title { font-size: 24px; font-weight: 800; color: var(--primary); }

        /* --- Law Categories Grid --- */
        .law-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }

        .law-card {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 25px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border-color);
            border-right: 5px solid transparent;
            transition: var(--transition);
            cursor: pointer;
            position: relative;
            text-decoration: none;
            color: inherit;
        }

        .law-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
        }

        /* رنگ‌بندی اختصاصی حاشیه */
        .law-card.blue { border-right-color: var(--accent); }
        .law-card.green { border-right-color: var(--success); }
        .law-card.purple { border-right-color: var(--purple); }
        .law-card.orange { border-right-color: var(--warning); }

        .law-card.blue:hover .cat-icon-box { background: var(--accent); color: white; }
        .law-card.green:hover .cat-icon-box { background: var(--success); color: white; }
        .law-card.purple:hover .cat-icon-box { background: var(--purple); color: white; }
        .law-card.orange:hover .cat-icon-box { background: var(--warning); color: white; }

        .card-header { display: flex; justify-content: space-between; align-items: center; }
        
        .cat-icon-box {
            width: 60px; height: 60px; border-radius: 16px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.8rem; transition: var(--transition);
        }

        .arrow-circle {
            width: 35px; height: 35px; border-radius: 50%; border: 1px solid #e2e8f0;
            display: flex; align-items: center; justify-content: center;
            color: var(--text-light); transition: var(--transition);
        }
        .law-card:hover .arrow-circle { background: var(--text-main); color: white; border-color: var(--text-main); transform: translateX(-5px); }

        .cat-title { font-size: 1.15rem; font-weight: 800; color: var(--text-main); margin-top: 5px; }
        .cat-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

        .cat-footer { margin-top: auto; padding-top: 15px; border-top: 1px dashed #e2e8f0; display: flex; justify-content: flex-end; align-items: center; }
        
        /* استایل آیکون‌ها */
        .icon-blue { background: #eff6ff; color: #3b82f6; }
        .icon-green { background: #ecfdf5; color: #10b981; }
        .icon-purple { background: #f5f3ff; color: #8b5cf6; }
        .icon-orange { background: #fff7ed; color: #f97316; }

        /* --- Responsive --- */
        @media (max-width: 768px) {
            body { display: block; overflow: auto; }
            .mobile-menu-btn { display: flex; }
            .sidebar { position: fixed; top: 0; right: 0; height: 100vh; width: 280px; transform: translateX(100%); box-shadow: -5px 0 20px rgba(0,0,0,0.1); }
            .main-content { padding: 80px 20px 20px 20px; height: auto; overflow: visible; }
            .page-header { flex-direction: column; align-items: flex-start; gap: 15px; }
            .law-grid { grid-template-columns: 1fr; }
        }
   