 /* --- متغیرها --- */
        :root {
            --primary-bg: #f8fafc;
            --sidebar-bg: #ffffff;
            --text-main: #1e293b;
            --text-light: #64748b;
            --accent-teal: #0ea5e9;
            --border-color: #e2e8f0;
            --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
            --card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
        }

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

        /* --- Mobile Menu --- */
        .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-teal); 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 --- */
        .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-teal); 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: #f0f9ff; color: var(--accent-teal); transform: translateX(-5px); }
        .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: #e0f2fe; color: #0284c7; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }

        /* --- Main Content --- */
        .main-content { flex: 1; padding: 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 25px; }

        .page-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
        .back-btn { width: 45px; height: 45px; border-radius: 14px; background: white; display: flex; align-items: center; justify-content: center; color: var(--text-main); box-shadow: var(--card-shadow); transition: 0.2s; cursor: pointer; flex-shrink: 0; border: 1px solid var(--border-color); }
        .back-btn:hover { background-color: var(--accent-teal); color: white; border-color: var(--accent-teal); transform: translateX(3px); }
        .page-title { font-size: 26px; font-weight: 900; color: var(--text-main); margin-left: auto; letter-spacing: -0.5px; }

        /* --- Search Box --- */
        .search-container { position: relative; width: 100%; max-width: 450px; }
        .search-input { width: 100%; padding: 14px 50px 14px 20px; border: 2px solid #e2e8f0; border-radius: 16px; font-size: 15px; transition: 0.3s; background: white; box-shadow: var(--card-shadow); }
        .search-input:focus { border-color: var(--accent-teal); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1); }
        .search-icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 18px; }

        /* --- Grid & Cards --- */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 25px;
            padding-bottom: 40px;
        }

        .info-card {
            background: white;
            border-radius: 20px;
            box-shadow: var(--card-shadow);
            border: 1px solid var(--border-color);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            animation: fadeIn 0.5s ease-out;
        }

        .info-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--card-hover-shadow);
        }

        /* نوار رنگی بالای کارت */
        .card-top-accent {
            height: 6px;
            width: 100%;
            background: linear-gradient(90deg, #3b82f6, #0ea5e9);
        }

        .card-header {
            padding: 20px 25px;
            border-bottom: 1px solid #f1f5f9;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #ffffff;
        }

        .header-title {
            font-weight: 800;
            color: var(--text-main);
            font-size: 17px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .header-title i {
            color: var(--accent-teal);
            font-size: 18px;
            background: #e0f2fe;
            padding: 8px;
            border-radius: 10px;
        }

        .code-badge {
            background: #f1f5f9;
            color: var(--text-light);
            font-weight: 800;
            font-size: 14px;
            padding: 6px 12px;
            border-radius: 10px;
            border: 1px solid #e2e8f0;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 60px;
        }
        
        .code-label { font-size: 10px; color: #94a3b8; margin-bottom: 2px; }
        .code-value { font-size: 18px; color: #334155; font-family: 'Segoe UI', sans-serif; }

        .card-body {
            padding: 25px;
            font-size: 15px;
            line-height: 2.2;
            text-align: justify;
            color: #475569;
            background: #ffffff;
        }

        /* رنگ‌بندی داینامیک برای نوار بالای کارت */
        .card-color-1 .card-top-accent { background: linear-gradient(90deg, #3b82f6, #6366f1); }
        .card-color-2 .card-top-accent { background: linear-gradient(90deg, #10b981, #0ea5e9); }
        .card-color-3 .card-top-accent { background: linear-gradient(90deg, #f59e0b, #f97316); }
        .card-color-4 .card-top-accent { background: linear-gradient(90deg, #ec4899, #8b5cf6); }

        @keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

        /* 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%); z-index: 1003; }
            .main-content { padding: 80px 20px 20px 20px; height: auto; }
            .cards-grid { grid-template-columns: 1fr; }
            .page-header { gap: 15px; }
            .search-container { max-width: 100%; order: 3; margin-top: 5px; }
            .page-title { width: auto; font-size: 20px; }
        }