*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        :root {
            --bg:        #f5f0ff;
            --surface:   #ffffff;
            --s1:        #ffffff;
            --s2:        #f0ebff;
            --s3:        #e8e0fb;
            --border:    rgba(130,80,220,0.12);
            --bh:        rgba(130,80,220,0.22);
            --purple:    #7c3aed;
            --purple2:   #6d28d9;
            --purple-d:  rgba(124,58,237,0.1);
            --purple-d2: rgba(124,58,237,0.05);
            --gold:      #e8b84b;
            --text:      #2d1f4e;
            --text2:     #6b5c8a;
            --text3:     #a899c0;
            --r:         14px;
            --r-sm:      9px;
        }

        body {
            font-family: 'Cairo', sans-serif;
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* ── BG Mesh ── */
        body::before {
            content: '';
            position: fixed; inset: 0;
            background:
                radial-gradient(ellipse 70% 45% at 15% -5%, rgba(124,58,237,0.07) 0%, transparent 60%),
                radial-gradient(ellipse 55% 35% at 85% 105%, rgba(124,58,237,0.05) 0%, transparent 55%),
                radial-gradient(ellipse 40% 30% at 50% 50%, rgba(100,50,180,0.03) 0%, transparent 70%);
            pointer-events: none; z-index: 0;
        }

        /* ── HEADER ── */
        .header {
            position: sticky; top: 0; z-index: 200;
            background: rgba(255,255,255,0.9);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--border);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
            height: 66px;
        }

        .logo-wrapper {
            display: flex; align-items: center; gap: 11px;
            text-decoration: none;
        }
        .logo {
            width: 40px; height: 40px; object-fit: contain;
            border-radius: 10px;
            border: 1px solid rgba(155,89,245,0.3);
            transition: transform 0.25s, opacity 0.25s;
        }
        .logo-wrapper:hover .logo { transform: scale(1.07); opacity: 0.85; }
        .logo-text { display: flex; flex-direction: column; line-height: 1.25; }
        .logo-title { font-size: 16px; font-weight: 800; color: #fff; }
        .logo-sub   { font-size: 11px; color: var(--text2); }

        .nav-links a {
            display: inline-flex; align-items: center; gap: 7px;
            color: var(--text2);
            text-decoration: none; font-size: 13.5px; font-weight: 600;
            padding: 7px 15px; border-radius: var(--r-sm);
            border: 1px solid var(--border);
            background: var(--s1);
            transition: all 0.2s;
        }
        .nav-links a:hover { color: var(--text); border-color: var(--bh); background: var(--s2); }

        /* ── PAGE HERO ── */
        .page-hero {
            position: relative; z-index: 1;
            text-align: center;
            padding: 3.5rem 1.5rem 2rem;
        }
        .page-hero-icon {
            width: 60px; height: 60px;
            background: var(--purple-d);
            border: 1px solid rgba(155,89,245,0.3);
            border-radius: 16px;
            display: inline-flex; align-items: center; justify-content: center;
            margin-bottom: 1rem;
        }
        .page-hero-icon i { font-size: 26px; color: var(--purple2); }
        .page-hero h1 { font-size: 1.75rem; font-weight: 900; color: var(--text); margin-bottom: 6px; }
        .page-hero p  { font-size: 0.88rem; color: var(--text2); }

        /* ── SEARCH & FILTERS ── */
        .controls {
            position: relative; z-index: 1;
            max-width: 800px; margin: 0 auto;
            padding: 0 1.5rem 1.5rem;
            display: flex; flex-direction: column; gap: 12px;
        }

        .search-wrap {
            position: relative;
        }
        .search-wrap svg {
            position: absolute; right: 14px; top: 50%;
            transform: translateY(-50%);
            color: var(--text3); pointer-events: none;
        }
        #searchInput {
            width: 100%;
            padding: 12px 44px 12px 100px;
            background: var(--s1);
            border: 1px solid var(--border);
            border-radius: 100px;
            color: var(--text);
            font-family: 'Cairo', sans-serif;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s;
            direction: rtl;
        }
        #searchInput:focus { border-color: rgba(155,89,245,0.45); }
        #searchInput::placeholder { color: var(--text3); }

        .search-go {
            position: absolute; left: 6px; top: 50%;
            transform: translateY(-50%);
            background: var(--purple);
            border: none; border-radius: 100px;
            color: #fff;
            font-family: 'Cairo', sans-serif;
            font-size: 12px; font-weight: 700;
            padding: 6px 16px; cursor: pointer;
            transition: opacity 0.2s;
        }
        .search-go:hover { opacity: 0.85; }

        .filter-row {
            display: flex; align-items: center; gap: 8px;
            flex-wrap: wrap; justify-content: center;
        }
        .filter-label { font-size: 0.75rem; color: var(--text3); white-space: nowrap; margin-left: 2px; }

        .filter-btn {
            padding: 6px 16px; border-radius: 100px;
            border: 1px solid var(--border);
            background: transparent;
            color: var(--text2);
            font-family: 'Cairo', sans-serif;
            font-size: 0.8rem; font-weight: 600;
            cursor: pointer; transition: all 0.2s;
            white-space: nowrap;
        }
        .filter-btn:hover { border-color: var(--bh); color: var(--text); background: var(--s2); }
        .filter-btn.active {
            background: var(--purple-d);
            border-color: rgba(155,89,245,0.45);
            color: var(--purple2);
        }

        /* ── STATS ── */
        .stats-row {
            position: relative; z-index: 1;
            max-width: 1200px; margin: 0 auto;
            padding: 0 1.5rem 1.25rem;
            display: flex; align-items: center; gap: 1rem;
        }
        .stat-chip {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 5px 12px; border-radius: 100px;
            background: var(--s1); border: 1px solid var(--border);
            font-size: 0.75rem; color: var(--text2);
        }
        .stat-chip strong { color: var(--purple2); font-weight: 700; }

        /* ── GRID ── */
        .forms-section {
            position: relative; z-index: 1;
            max-width: 1200px; margin: 0 auto;
            padding: 0 1.5rem 4rem;
        }

        .forms-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
            gap: 1.1rem;
        }

        /* ── CARD ── */
        .form-card {
            background: var(--s1);
            border: 1px solid var(--border);
            border-radius: var(--r);
            padding: 1.25rem 1.3rem 1.1rem;
            transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
            display: flex; flex-direction: column; gap: 10px;
            position: relative; overflow: hidden;
            box-shadow: 0 2px 10px rgba(124,58,237,0.07);
        }
        .form-card::before {
            content: '';
            position: absolute; top: 0; right: 0;
            width: 80px; height: 80px;
            background: radial-gradient(circle, rgba(155,89,245,0.08) 0%, transparent 70%);
            pointer-events: none;
        }
        .form-card:hover {
            transform: translateY(-3px);
            border-color: rgba(124,58,237,0.28);
            box-shadow: 0 8px 28px rgba(124,58,237,0.12), 0 0 0 1px rgba(124,58,237,0.08);
        }

        .form-header {
            display: flex; align-items: flex-start; gap: 12px;
        }
        .form-icon-wrap {
            width: 46px; height: 46px; flex-shrink: 0;
            border-radius: 12px;
            background: var(--purple-d);
            border: 1px solid rgba(155,89,245,0.2);
            display: flex; align-items: center; justify-content: center;
        }
        .form-icon-wrap i { font-size: 20px; color: var(--purple2); }

        .form-meta { flex: 1; }
        .form-meta h3 {
            font-size: 0.92rem; font-weight: 700;
            color: var(--text); line-height: 1.45;
            margin-bottom: 4px;
        }

        /* category tag */
        .cat-tag {
            display: inline-flex; align-items: center; gap: 4px;
            padding: 2px 9px; border-radius: 100px;
            font-size: 0.7rem; font-weight: 600;
        }
        .cat-mobile  { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25); color: #7db4f7; }
        .cat-fixed   { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); color: #6ee7b7; }
        .cat-adsl    { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.25); color: #fcd34d; }
        .cat-pay  { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.25); color: #fca5a5; }
        .cat-default { background: var(--purple-d2);      border: 1px solid rgba(155,89,245,0.2); color: var(--purple2); }

        .form-desc {
            font-size: 0.8rem; color: var(--text2); line-height: 1.6; flex: 1;
        }

        .download-btn {
            display: flex; align-items: center; justify-content: center; gap: 7px;
            padding: 9px 14px; border-radius: var(--r-sm);
            background: var(--purple-d);
            border: 1px solid rgba(155,89,245,0.3);
            color: var(--purple2);
            text-decoration: none;
            font-family: 'Cairo', sans-serif;
            font-size: 0.82rem; font-weight: 700;
            transition: background 0.2s, border-color 0.2s, color 0.2s;
            margin-top: auto;
        }
        .download-btn:hover {
            background: rgba(124,58,237,0.18);
            border-color: rgba(124,58,237,0.45);
            color: #5b21b6;
        }

        /* ── LOADER ── */
        .loader-wrap {
            grid-column: 1/-1;
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            padding: 5rem 2rem; gap: 14px;
            color: var(--text2);
        }
        .loader-spinner {
            width: 34px; height: 34px;
            border: 2px solid var(--border);
            border-top-color: var(--purple);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .loader-wrap p { font-size: 0.88rem; }

        /* skeleton */
        .skel-card {
            background: var(--s1); border: 1px solid var(--border);
            border-radius: var(--r); padding: 1.25rem; display: flex; flex-direction: column; gap: 10px;
        }
        .skel-line {
            height: 10px; border-radius: 5px;
            background: linear-gradient(90deg, #ede8f8 25%, #ddd5f5 50%, #ede8f8 75%);
            background-size: 200% 100%;
            animation: shimmer 1.4s infinite;
        }
        @keyframes shimmer { to { background-position: -200% 0; } }

        /* no-results */
        .no-results {
            grid-column: 1/-1; text-align: center;
            padding: 5rem 2rem; color: var(--text2);
        }
        .no-results i { font-size: 2.5rem; color: var(--text3); margin-bottom: 14px; display: block; }
        .no-results p { font-size: 0.92rem; }

        /* ── FOOTER ── */
        footer {
            position: relative; z-index: 1;
            text-align: center;
            padding: 1.5rem;
            border-top: 1px solid var(--border);
            font-size: 0.78rem; color: var(--text3);
            background: #fff;
        }
        footer span { color: var(--purple); font-weight: 700; }

        @media (max-width: 600px) {
            .forms-grid { grid-template-columns: 1fr; }
            .page-hero h1 { font-size: 1.4rem; }
            #searchInput { padding-left: 70px; }
        }