:root {
            --primary-red: #e31e24;
            --dark-navy: #0f172a;
            --accent-blue: #3b82f6;
            --bg-light: #f8fafc;
            --border-color: #e2e8f0;
        }

        /* Modal Customizations */
        .modal-content {
            border: none;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
        }

        .modal-header {
            background: linear-gradient(135deg, var(--teal), #1e3d7a);

            color: white;
            border-bottom: none;
            padding: 1rem 1.5rem;
        }

        .modal-header .btn-close {
            filter: invert(1) grayscale(100%) brightness(200%);
            opacity: 0.8;
            transition: transform 0.2s;
        }

        .modal-header .btn-close:hover {
            transform: rotate(90deg);
            opacity: 1;
        }

        /* Sticky Search & Quick Navigation */
        .sticky-search-panel {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            position: sticky;
            top: 0;
            z-index: 1020;
            padding: 0.85rem 1.5rem;
            border-bottom: 1px solid var(--border-color);
        }

        .search-wrapper {
            position: relative;
        }

        .search-wrapper i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
            font-size: 1rem;
        }

        .search-wrapper input {
            padding-left: 42px;
            padding-right: 110px;
            height: 42px;
            border-radius: 30px;
            border: 2px solid var(--border-color);
            font-size: 0.88rem;
            transition: all 0.3s ease;
        }

        .search-wrapper input:focus {
            border-color: var(--primary-red);
            box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.12);
            outline: none;
        }

        /* Match Counter Badge */
        .match-counter {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: #f1f5f9;
            color: var(--dark-navy);
            font-size: 0.75rem;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 20px;
            border: 1px solid #cbd5e1;
        }

        /* Quick Filter Navigation */
        .quick-nav {
            display: flex;
            gap: 6px;
            overflow-x: auto;
            padding: 8px 0 2px 0;
            scrollbar-width: none;
        }

        .quick-nav::-webkit-scrollbar {
            display: none;
        }

        .nav-pill-btn {
            white-space: nowrap;
            background-color: #f1f5f9;
            color: #475569;
            border: 1px solid #e2e8f0;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .nav-pill-btn:hover, .nav-pill-btn.active {
            background-color: var(--primary-red);
            color: white;
            border-color: var(--primary-red);
        }

        /* Scrollable Container */
        .modal-body {
            max-height: 55vh;
            overflow-y: auto;
            scroll-behavior: smooth;
            padding: 1.25rem 1.5rem;
            background-color: var(--bg-light);
        }

        /* Medical Categories Cards (More Compact) */
        .test-card {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1rem;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .test-card:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 12px -3px rgba(0, 0, 0, 0.04);
        }

        .card-header-custom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1.5px solid #f1f5f9;
            padding-bottom: 6px;
            margin-bottom: 10px;
        }

        .card-title-text {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--dark-navy);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .card-title-text i {
            color: var(--primary-red);
            background: rgba(227, 30, 36, 0.08);
            width: 28px;
            height: 28px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }

        .badge-count {
            background-color: #f1f5f9;
            color: #64748b;
            font-size: 0.7rem;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 20px;
        }

        /* Test List Grid */
        .test-items-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px 15px;
            padding-left: 0;
            margin-bottom: 0;
            list-style: none;
        }

        .test-single-item {
            font-size: 0.82rem;
            color: #334155;
            padding: 5px 8px;
            border-radius: 6px;
            background: #fafafa;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: background 0.15s;
        }

        .test-single-item:hover {
            background: #f1f5f9;
        }

        .test-single-item i {
            color: #10b981;
            font-size: 0.75rem;
        }

        /* Text Highlighting */
        .highlight {
            background-color: #fef08a;
            font-weight: 600;
            padding: 0 1px;
            border-radius: 3px;
        }

        /* Empty State */
        #emptyState {
            display: none;
            text-align: center;
            padding: 2rem 1rem;
        }

        #emptyState i {
            font-size: 2.5rem;
            color: #cbd5e1;
            margin-bottom: 0.75rem;
        }

        /* Action Buttons */
        .btn-call-action {
            background: linear-gradient(135deg, var(--primary-red), #b91c1c);
            color: white;
            border: none;
            padding: 8px 18px;
            border-radius: 25px;
            font-weight: 700;
            font-size: 0.85rem;
            box-shadow: 0 4px 10px rgba(227, 30, 36, 0.25);
            text-decoration: none;
            transition: all 0.2s;
        }

        .btn-call-action:hover {
            transform: translateY(-1px);
            box-shadow: 0 5px 15px rgba(227, 30, 36, 0.35);
            color: white;
        }

        .btn-secondary-custom {
            background-color: #f1f5f9;
            color: #475569;
            border: none;
            padding: 8px 16px;
            border-radius: 25px;
            font-weight: 600;
            font-size: 0.85rem;
            transition: background 0.2s;
        }

        .btn-secondary-custom:hover {
            background-color: #e2e8f0;
        }
        
        .search-highlight {
            background: yellow;
            color: #000;
            padding: 0 2px;
            border-radius: 2px;
        }

        @media (max-width: 768px) {
            .test-items-grid {
                grid-template-columns: 1fr;
            }
            .sticky-search-panel {
                padding: 0.75rem 1rem;
            }
            .modal-body {
                padding: 1rem;
            }
        }