:root {
            --bg-base: #f8fafc;
            --bg-card: #ffffff;
            --bg-card-hover: #f1f5f9;
            --border-card: #e2e8f0;
            --border-glow: rgba(2, 132, 199, 0.4);
            --primary: #0284c7;
            --primary-rgb: 2, 132, 199;
            --accent: #6366f1;
            --emerald: #059669;
            --emerald-bg: #ecfdf5;
            --amber: #d97706;
            --amber-bg: #fffbeb;
            --rose: #e11d48;
            --text-main: #0f172a;
            --text-muted: #475569;
            --text-dim: #64748b;
            --sidebar-w: 290px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        }

        body {
            background-color: var(--bg-base);
            color: var(--text-main);
            min-height: 100vh;
            padding: 24px;
            background-image: 
                radial-gradient(circle at 10% 10%, rgba(2, 132, 199, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
            background-attachment: fixed;
        }

        .container {
            max-width: 1440px;
            margin: 0 auto;
        }

        /* Header Bar */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 24px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-card);
        }

        .brand-cluster {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .brand-title {
            display: inline-flex;
            align-items: baseline;
            gap: 2px;
            line-height: 1.1;
        }

        .brand-title .name {
            font-size: 26px;
            font-weight: 900;
            color: #0f172a;
            letter-spacing: -0.5px;
        }

        .brand-title .tld {
            font-size: 18px;
            font-weight: 800;
            color: #b91c1c;
        }

        .sub-tagline {
            font-size: 12px;
            color: var(--text-dim);
            font-weight: 600;
            margin-top: 3px;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .region-selector {
            display: inline-flex;
            align-items: center;
            background: #f1f5f9;
            border: 1px solid #cbd5e1;
            border-radius: 9999px;
            padding: 4px;
            gap: 4px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        }

        .region-btn {
            background: transparent;
            border: none;
            padding: 7px 16px;
            border-radius: 9999px;
            font-size: 13.5px;
            font-weight: 700;
            color: #64748b;
            cursor: pointer;
            transition: all 0.18s ease-in-out;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            line-height: 1;
        }

        .region-btn:hover {
            color: #0f172a;
        }

        .region-btn.active {
            background: #ffffff;
            color: #0284c7;
            box-shadow: 0 2px 6px rgba(2, 132, 199, 0.18), 0 1px 2px rgba(0, 0, 0, 0.06);
        }

        .flag-icon {
            width: 19px;
            height: 13.5px;
            border-radius: 2px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
            flex-shrink: 0;
            vertical-align: middle;
            display: inline-block;
        }

        .meta-info {
            font-size: 13px;
            color: var(--text-muted);
            text-align: right;
        }

        .meta-tag {
            display: inline-block;
            background: #f1f5f9;
            color: #334155;
            padding: 4px 10px;
            border-radius: 6px;
            margin-left: 6px;
            border: 1px solid #cbd5e1;
            font-weight: 600;
        }

        .meta-tag.live-tag {
            background: #ecfdf5;
            color: #059669;
            border-color: #a7f3d0;
            font-weight: 700;
        }

        /* Coupons Banner */
        .coupons-banner {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            background: #ecfdf5;
            border: 1px solid #a7f3d0;
            padding: 14px 20px;
            border-radius: 12px;
            margin-bottom: 24px;
        }

        .coupon-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 700;
            color: #065f46;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .coupon-chip {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #ffffff;
            border: 1px solid #6ee7b7;
            border-radius: 8px;
            padding: 4px 12px;
            font-size: 13px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
        }

        .coupon-chip code {
            color: #059669;
            font-weight: 800;
            letter-spacing: 0.5px;
        }

        /* KPI Metric Cards */
        .kpi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }

        .kpi-card {
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 14px;
            padding: 20px;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
        }

        .kpi-card:hover {
            transform: translateY(-2px);
            border-color: var(--border-glow);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
        }

        .kpi-card.kpi-clickable {
            cursor: pointer;
            user-select: none;
        }

        .kpi-card.kpi-clickable:hover {
            border-color: var(--primary);
            box-shadow: 0 10px 20px -3px rgba(37, 99, 235, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
        }

        .kpi-card.kpi-clickable:active {
            transform: translateY(0);
        }

        .kpi-link-badge {
            font-size: 11px;
            font-weight: 600;
            color: var(--primary);
            background: rgba(37, 99, 235, 0.08);
            border: 1px solid rgba(37, 99, 235, 0.2);
            padding: 2px 7px;
            border-radius: 6px;
            transition: all 0.15s ease;
        }

        .kpi-card.kpi-clickable:hover .kpi-link-badge {
            background: var(--primary);
            color: #fff;
        }

        .kpi-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .kpi-val {
            font-size: 30px;
            font-weight: 800;
            letter-spacing: -0.5px;
            color: var(--text-main);
            margin-bottom: 4px;
        }

        .kpi-sub {
            font-size: 12px;
            color: var(--text-dim);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .emerald-text { color: var(--emerald) !important; }
        .primary-text { color: var(--primary) !important; }
        .amber-text { color: var(--amber) !important; }
        .rose-text { color: var(--rose) !important; }

        /* 2-Row Metric Matrix Card (Layout 2A) */
        .kpi-matrix-card {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .kpi-matrix-grid {
            display: flex;
            flex-direction: column;
            gap: 4px;
            margin-top: -2px;
        }

        .kpi-matrix-header-row,
        .kpi-matrix-row {
            display: grid;
            grid-template-columns: 88px 1fr 1fr 1fr;
            align-items: center;
            text-align: center;
        }

        .kpi-matrix-scope-title {
            text-align: left;
        }

        .kpi-matrix-col-header {
            font-size: 10.5px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 2px;
        }

        .kpi-matrix-col-header .kpi-matrix-icon {
            font-size: 10px;
        }

        .kpi-matrix-row-label {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-dim);
            text-align: left;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .kpi-matrix-val {
            font-size: 17px;
            font-weight: 800;
            letter-spacing: -0.3px;
            line-height: 1.2;
        }

        button.kpi-matrix-val,
        button.kpi-matrix-col-header {
            background: none;
            border: none;
            font: inherit;
            margin: 0;
            color: inherit;
            outline: none;
            width: 100%;
        }

        .kpi-matrix-val.is-clickable,
        .kpi-matrix-col-header.is-clickable {
            cursor: pointer;
            border-radius: 5px;
            padding: 2px 4px;
            transition: all 0.15s ease;
            user-select: none;
        }

        .kpi-matrix-val.is-clickable:hover {
            transform: scale(1.08);
            background: rgba(2, 132, 199, 0.08);
        }

        .kpi-matrix-val.amber-text.is-clickable:hover {
            background: rgba(217, 119, 6, 0.12);
        }

        .kpi-matrix-val.emerald-text.is-clickable:hover {
            background: rgba(5, 150, 105, 0.12);
        }

        .kpi-matrix-val.is-active,
        .kpi-matrix-col-header.is-active {
            box-shadow: 0 0 0 2px currentColor;
            border-radius: 5px;
            background: rgba(0, 0, 0, 0.05);
        }

        .kpi-matrix-val.is-zero {
            cursor: default !important;
            opacity: 0.55;
            pointer-events: none;
        }

        .kpi-matrix-col-header.is-clickable:hover {
            background: rgba(0, 0, 0, 0.05);
        }

        .kpi-matrix-divider {
            height: 1px;
            background: var(--border-card);
            margin: 2px 0;
            opacity: 0.8;
        }

        /* Charts Grid */
        .charts-grid {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 20px;
            margin-bottom: 24px;
        }

        @media (max-width: 1024px) {
            .charts-grid {
                grid-template-columns: 1fr;
            }
        }

        .chart-card {
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 14px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .card-title {
            font-size: 16px;
            font-weight: 700;
        }

        .chart-container {
            position: relative;
            flex-grow: 1;
            min-height: 260px;
        }

        /* Action Toolbar (Option 4) */
        .catalog-toolbar {
            display: flex;
            align-items: center;
            gap: 12px;
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 12px;
            padding: 10px 16px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
            margin-bottom: 12px;
        }

        .filter-toggle-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--primary);
            color: #ffffff;
            border: none;
            padding: 9px 16px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
            user-select: none;
        }

        .filter-toggle-btn:hover {
            background: #0369a1;
            transform: translateY(-1px);
        }

        .filter-count-badge {
            background: #ffffff;
            color: var(--primary);
            font-size: 11px;
            font-weight: 800;
            padding: 1px 6px;
            border-radius: 12px;
        }

        .search-box {
            flex: 1;
            min-width: 200px;
            position: relative;
            display: flex;
            align-items: center;
        }

        .search-box input {
            width: 100%;
            background: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            padding: 9px 14px 9px 36px;
            font-size: 13px;
            color: #0f172a;
            outline: none;
            transition: border-color 0.15s, box-shadow 0.15s;
        }

        .search-box input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
        }

        .search-icon {
            position: absolute;
            left: 11px;
            color: var(--text-dim);
            pointer-events: none;
        }

        .sort-wrap {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .sort-label {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .sort-select {
            background: #ffffff;
            border: 1px solid #cbd5e1;
            color: #0f172a;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            outline: none;
            cursor: pointer;
        }

        /* Active Filter Chips Bar */
        .active-chips-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 16px;
            padding: 0 2px;
        }

        .active-chips-label {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-muted);
            margin-right: 2px;
        }

        .chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #e0f2fe;
            color: #0369a1;
            border: 1px solid #bae6fd;
            border-radius: 20px;
            padding: 3px 10px;
            font-size: 11px;
            font-weight: 600;
        }

        .chip-remove {
            cursor: pointer;
            font-size: 13px;
            font-weight: 800;
            color: #0284c7;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            transition: color 0.1s;
        }

        .chip-remove:hover {
            color: #b91c1c;
        }

        .chip-clear-all {
            background: none;
            border: none;
            color: #b91c1c;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            padding: 2px 6px;
            margin-left: 4px;
            text-decoration: underline;
        }

        .chip-clear-all:hover {
            color: #991b1b;
        }

        /* Workspace Split Layout */
        .workspace-split {
            display: flex;
            gap: 20px;
            align-items: flex-start;
            position: relative;
            margin-bottom: 30px;
        }

        /* Collapsed Sidebar on Wide Desktop */
        .workspace-split.sidebar-collapsed .filter-pane {
            display: none;
        }

        /* Hybrid Filter Pane (Sidebar on Desktop, Drawer on Tablet/Mobile) */
        .filter-pane {
            width: var(--sidebar-w);
            flex-shrink: 0;
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 12px;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
        }

        .pane-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            background: #f8fafc;
            border-bottom: 1px solid var(--border-card);
        }

        .pane-title {
            font-size: 13px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .pane-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .pane-reset-btn {
            background: none;
            border: none;
            color: var(--primary);
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
        }

        .pane-reset-btn:hover {
            text-decoration: underline;
        }

        .pane-close-btn {
            display: none;
            background: none;
            border: none;
            font-size: 18px;
            color: var(--text-muted);
            cursor: pointer;
            padding: 2px 6px;
            line-height: 1;
        }

        .pane-body {
            padding: 14px 16px;
            display: flex;
            flex-direction: column;
            gap: 18px;
            max-height: calc(100vh - 180px);
            overflow-y: auto;
        }

        .filter-section {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .store-facet-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .store-parent-pill {
            width: 100%;
            justify-content: flex-start;
        }

        .sub-facet-section {
            padding-left: 10px;
            margin-left: 8px;
            border-left: 2px solid #cbd5e1;
            display: flex;
            flex-direction: column;
            gap: 6px;
            transition: opacity 0.15s ease, max-height 0.2s ease;
        }

        .sub-facet-section.is-hidden {
            display: none !important;
        }

        .sub-section-header {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-dim);
        }

        .section-header {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .section-header span.count {
            font-size: 10px;
            color: var(--text-dim);
            font-weight: 600;
        }

        /* Category Vertical List in Sidebar */
        .cat-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .cat-btn {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: none;
            border: 1px solid transparent;
            border-radius: 6px;
            padding: 7px 10px;
            font-size: 12px;
            font-weight: 600;
            color: #334155;
            cursor: pointer;
            text-align: left;
            transition: all 0.12s ease;
        }

        .cat-btn:hover {
            background: #f1f5f9;
            color: #0f172a;
        }

        .cat-btn.active {
            background: rgba(2, 132, 199, 0.1);
            color: var(--primary);
            border-color: rgba(2, 132, 199, 0.25);
            font-weight: 700;
        }

        .cat-btn.is-disabled {
            opacity: 0.38;
            cursor: not-allowed;
            pointer-events: none;
        }

        .cat-count {
            font-size: 10.5px;
            font-weight: 600;
            color: var(--text-dim);
            background: #f1f5f9;
            padding: 1px 6px;
            border-radius: 9999px;
            margin-left: 6px;
            transition: all 0.12s ease;
        }

        .cat-btn.active .cat-count {
            background: rgba(2, 132, 199, 0.15);
            color: var(--primary);
            font-weight: 700;
        }

        .facet-pill-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .pane-footer {
            padding: 12px 16px;
            background: #f8fafc;
            border-top: 1px solid var(--border-card);
            display: none;
        }

        .apply-btn {
            width: 100%;
            background: var(--primary);
            color: #ffffff;
            border: none;
            padding: 10px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 13px;
            cursor: pointer;
            transition: background 0.15s;
        }

        .apply-btn:hover {
            background: #0369a1;
        }

        /* Catalog Main Area */
        .catalog-main {
            flex: 1;
            min-width: 0;
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 12px;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }

        .catalog-main .main-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 20px;
            border-bottom: 1px solid var(--border-card);
            background: #f8fafc;
        }

        .table-responsive-wrap {
            overflow: auto;
            position: relative;
            max-height: calc(100vh - 240px);
        }

        /* Dynamic Dual-Range Slider Filters */
        .sliders-panel {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 16px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 14px;
        }

        .filter-pane .sliders-panel {
            display: flex;
            flex-direction: column;
            gap: 10px;
            background: none;
            border: none;
            border-radius: 0;
            padding: 0;
            margin-bottom: 0;
        }

        .slider-card {
            background: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 10px;
            padding: 12px 16px 14px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
            transition: opacity 0.2s, border-color 0.2s;
        }

        .filter-pane .slider-card {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 10px 12px;
            box-shadow: none;
        }

        .slider-card.disabled {
            opacity: 0.45;
            pointer-events: none;
        }

        .slider-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 12px;
        }

        .slider-title {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            color: #334155;
        }

        .slider-badge {
            font-size: 11px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 6px;
            background: #e0f2fe;
            color: #0369a1;
            border: 1px solid #bae6fd;
        }

        .range-slider-wrap {
            position: relative;
            height: 28px;
            display: flex;
            align-items: center;
            cursor: pointer;
            touch-action: none;
            user-select: none;
        }

        .slider-track-bg {
            position: absolute;
            width: 100%;
            height: 6px;
            background: #e2e8f0;
            border-radius: 9999px;
            left: 0;
            top: 11px;
            z-index: 1;
        }

        .slider-track-fill {
            position: absolute;
            height: 6px;
            background: var(--primary);
            border-radius: 9999px;
            top: 11px;
            z-index: 2;
            transition: left 0.05s, width 0.05s;
        }

        .slider-thumb {
            position: absolute;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #ffffff;
            border: 3px solid var(--primary);
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
            cursor: grab;
            z-index: 4;
            transform: translate(-50%, 0);
            top: 4px;
            transition: transform 0.1s, border-color 0.1s;
            outline: none;
        }

        .slider-thumb:hover {
            transform: translate(-50%, 0) scale(1.2);
            border-color: #0369a1;
        }

        .slider-thumb.dragging {
            cursor: grabbing;
            transform: translate(-50%, 0) scale(1.25);
            z-index: 6;
            border-color: #0284c7;
            box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.25);
        }

        .slider-ticks {
            position: relative;
            height: 18px;
            margin-top: 8px;
            padding: 0;
        }

        .slider-tick {
            position: absolute;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-dim);
            cursor: pointer;
            user-select: none;
            white-space: nowrap;
            transition: color 0.15s, transform 0.1s;
        }

        .slider-tick:hover {
            color: var(--primary);
            transform: translateY(-1px);
        }

        .slider-tick.active {
            color: #0f172a;
            font-weight: 700;
        }

        .filter-sub-bar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 14px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 10px 16px;
            margin-bottom: 20px;
        }

        .filter-group {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .filter-label {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            color: var(--text-muted);
            margin-right: 2px;
        }

        .filter-divider {
            width: 1px;
            height: 20px;
            background: #cbd5e1;
        }

        @media (max-width: 768px) {
            .filter-divider {
                display: none;
            }
        }

        .check-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 10px;
            background: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
            color: #334155;
            cursor: pointer;
            user-select: none;
            transition: all 0.15s ease;
        }

        .check-pill:hover {
            background: #f1f5f9;
            border-color: #94a3b8;
            color: #0f172a;
        }

        .check-pill input[type="checkbox"] {
            accent-color: var(--primary);
            cursor: pointer;
            width: 14px;
            height: 14px;
            margin: 0;
        }

        .check-pill.active,
        .check-pill:has(input:checked) {
            background: rgba(2, 132, 199, 0.08);
            border-color: var(--primary);
            color: #0369a1;
            font-weight: 600;
        }

        .checkbox-actions {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-left: auto;
        }

        .action-link-btn {
            background: none;
            border: none;
            color: var(--primary);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            padding: 4px 6px;
            text-decoration: underline;
            transition: color 0.15s ease;
        }

        .action-link-btn:hover {
            color: #0369a1;
        }

        .action-link-btn.clear-btn {
            color: var(--text-dim);
        }

        .action-link-btn.clear-btn:hover {
            color: var(--rose);
        }

        .action-divider {
            color: #cbd5e1;
            font-size: 12px;
            user-select: none;
        }

        .reset-btn {
            background: none;
            border: none;
            color: var(--text-dim);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: underline;
            padding: 4px 6px;
            margin-left: auto;
            transition: color 0.15s ease;
        }

        .reset-btn:hover {
            color: var(--rose);
        }

        /* Table Design */
        .table-wrap {
            overflow-x: auto;
        }

        table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 13px;
            text-align: left;
        }

        th {
            background: #f8fafc;
            color: #475569;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 11px;
            letter-spacing: 0.5px;
            padding: 12px 14px;
            position: sticky;
            top: 0;
            z-index: 10;
            box-shadow: inset 0 -2px 0 #e2e8f0;
        }

        td {
            padding: 14px;
            border-bottom: 1px solid #f1f5f9;
            vertical-align: middle;
        }

        tr:hover td {
            background: #f8fafc;
        }

        .model-col {
            font-weight: 600;
            color: #0f172a;
            max-width: 320px;
        }

        .specs-snippet {
            font-size: 11px;
            color: #64748b;
            margin-top: 4px;
            line-height: 1.4;
        }

        .cat-tag {
            display: inline-block;
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 11px;
            color: #475569;
            text-transform: capitalize;
        }

        .price-reg {
            color: #94a3b8;
            text-decoration: line-through;
            font-size: 12px;
        }

        .price-list {
            font-weight: 600;
            color: #0f172a;
        }

        .net-price-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: #ecfdf5;
            color: #059669;
            font-weight: 800;
            font-size: 14px;
            padding: 4px 10px;
            border-radius: 6px;
            border: 1px solid #a7f3d0;
        }

        .discount-badge {
            display: inline-block;
            background: #dcfce7;
            color: #15803d;
            border: 1px solid #86efac;
            font-size: 11px;
            font-weight: 800;
            padding: 1px 6px;
            border-radius: 4px;
            margin-top: 3px;
            letter-spacing: 0.3px;
        }

        .price-badge-row {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .coupon-tag {
            display: inline-block;
            font-size: 10px;
            color: #047857;
            font-weight: 600;
            text-transform: uppercase;
            margin-top: 3px;
        }

        .coupon-row {
            display: flex;
            align-items: center;
            gap: 5px;
            margin-top: 4px;
        }

        .coupon-prefix {
            font-size: 11px;
            color: #64748b;
            font-weight: 600;
        }

        .coupon-pill {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: #f0f9ff;
            border: 1px dashed #0284c7;
            color: #0369a1;
            padding: 1px 7px;
            border-radius: 9999px;
            font-size: 11px;
            font-weight: 700;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            cursor: pointer;
            transition: all 0.15s ease;
            user-select: none;
            line-height: 1.3;
            white-space: nowrap;
        }

        .coupon-pill:hover {
            background: #e0f2fe;
            border-color: #0284c7;
            border-style: solid;
            box-shadow: 0 1px 4px rgba(2, 132, 199, 0.2);
        }

        .coupon-pill.copied {
            background: #ecfdf5;
            border-color: #10b981;
            border-style: solid;
            color: #047857;
        }

        .coupon-pill .copy-icon {
            width: 10px;
            height: 10px;
            stroke: currentColor;
            opacity: 0.8;
            flex-shrink: 0;
        }

        .copy-toast {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: #0f172a;
            color: #ffffff;
            padding: 9px 16px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease, transform 0.2s ease;
            z-index: 9999;
        }

        .copy-toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .savings-tag {
            font-size: 11px;
            color: #059669;
            font-weight: 600;
            margin-top: 2px;
        }

        .drop-cut-badge {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            font-size: 11px;
            font-weight: 700;
            color: #b45309;
            background: #fffbeb;
            border: 1px solid #fde68a;
            border-radius: 4px;
            padding: 1px 6px;
            margin-top: 2px;
        }

        .new-arrival-badge {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            font-size: 11px;
            font-weight: 700;
            color: #4338ca;
            background: #eef2ff;
            border: 1px solid #c7d2fe;
            border-radius: 4px;
            padding: 1px 6px;
            margin-top: 3px;
            white-space: nowrap;
            cursor: help;
            transition: all 0.15s ease-in-out;
        }

        .new-arrival-badge:hover {
            filter: brightness(0.96);
            transform: translateY(-1px);
        }

        .stock-drop-badge {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            font-size: 11px;
            font-weight: 700;
            color: #be123c;
            background: #fff1f2;
            border: 1px solid #fecdd3;
            border-radius: 4px;
            padding: 1px 6px;
            margin-top: 3px;
            white-space: nowrap;
            cursor: help;
            transition: all 0.15s ease-in-out;
        }

        .stock-drop-badge:hover {
            filter: brightness(0.96);
            transform: translateY(-1px);
        }

        .stock-pill {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 11px;
            background: #f1f5f9;
            color: #475569;
            border: 1px solid #e2e8f0;
        }

        .stock-low {
            background: #fffbeb;
            color: #b45309;
            border: 1px solid #fde68a;
        }

        .grade-badge {
            display: inline-block;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 7px;
            border-radius: 4px;
            letter-spacing: 0.3px;
            vertical-align: middle;
            margin-left: 6px;
            cursor: help;
            transition: all 0.15s ease-in-out;
        }

        .grade-badge:hover {
            filter: brightness(0.95);
            transform: translateY(-1px);
        }

        .grade-badge.refurb-a, .grade-badge.grade-a {
            background: #ecfdf5;
            color: #047857;
            border: 1px solid #a7f3d0;
        }

        .grade-badge.refurb-b, .grade-badge.grade-b {
            background: #fffbeb;
            color: #b45309;
            border: 1px solid #fde68a;
        }

        .grade-badge.outlet-new {
            background: #eff6ff;
            color: #1d4ed8;
            border: 1px solid #bfdbfe;
        }

        .grade-badge.outlet-likenew {
            background: #f0fdfa;
            color: #0f766e;
            border: 1px solid #99f6e4;
        }

        .grade-badge.outlet-scratch {
            background: #fff7ed;
            color: #c2410c;
            border: 1px solid #fed7aa;
        }

        .grade-badge.outlet-refurb {
            background: #f8fafc;
            color: #334155;
            border: 1px solid #cbd5e1;
        }

        .ddr-badge {
            display: inline-block;
            font-size: 10px;
            font-weight: 700;
            padding: 1px 6px;
            border-radius: 4px;
            letter-spacing: 0.3px;
            vertical-align: middle;
        }

        .ddr-badge.ddr5 {
            background: #ede9fe;
            color: #6d28d9;
            border: 1px solid #ddd6fe;
        }

        .ddr-badge.ddr4 {
            background: #e0f2fe;
            color: #0369a1;
            border: 1px solid #bae6fd;
        }

        .ddr-badge.lpddr5, .ddr-badge.lpddr5x {
            background: #fdf2f8;
            color: #be185d;
            border: 1px solid #fbcfe8;
        }

        .upgrade-badge {
            display: inline-block;
            font-size: 10px;
            font-weight: 600;
            padding: 1px 6px;
            border-radius: 4px;
            letter-spacing: 0.2px;
            vertical-align: middle;
            margin-left: 3px;
        }

        .upgrade-badge.soldered {
            background: #fef2f2;
            color: #b91c1c;
            border: 1px solid #fecaca;
        }

        .upgrade-badge.slots {
            background: #f0fdf4;
            color: #15803d;
            border: 1px solid #bbf7d0;
        }

        .watt-badge {
            display: inline-block;
            font-size: 10px;
            font-weight: 600;
            padding: 1px 5px;
            border-radius: 4px;
            background: #f1f5f9;
            color: #475569;
            border: 1px solid #cbd5e1;
            letter-spacing: 0.2px;
            vertical-align: middle;
            margin-left: 4px;
        }

        .btn-view {
            display: inline-block;
            background: linear-gradient(135deg, #0284c7, #2563eb);
            color: #fff;
            text-decoration: none;
            padding: 6px 14px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 12px;
            transition: all 0.2s;
            white-space: nowrap;
            text-align: center;
        }

        .btn-view:hover {
            background: linear-gradient(135deg, #0369a1, #1d4ed8);
            box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
        }

        .btn-view.store-refurb {
            background: linear-gradient(135deg, #0d9488, #0284c7);
        }

        .btn-view.store-refurb:hover {
            background: linear-gradient(135deg, #0f766e, #0369a1);
            box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
        }

        .btn-view.btn-view-catalog {
            padding: 4px 12px;
            text-align: center;
            line-height: 1.25;
            min-width: 116px;
        }

        .btn-view .ext-arrow {
            display: inline-block;
            font-size: 12px;
            margin-left: 3px;
            transition: transform 0.18s ease;
            vertical-align: middle;
            line-height: 1;
        }

        .btn-view:hover .ext-arrow {
            transform: translate(2px, -2px);
        }

        .btn-view-sub {
            display: block;
            font-size: 10px;
            font-weight: 500;
            opacity: 0.9;
            letter-spacing: 0.2px;
            margin-top: 1px;
            white-space: nowrap;
        }

        .perf-box {
            display: inline-flex;
            flex-direction: column;
            align-items: flex-start;
            padding: 4px 9px 5px 9px;
            border-radius: 6px;
            min-width: 96px;
            background: #ffffff;
            border: 1px solid #cbd5e1;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
            cursor: help;
            transition: all 0.15s ease;
            user-select: none;
        }

        .perf-box:hover {
            transform: translateY(-1px);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.07);
            border-color: #94a3b8;
        }

        .perf-box .perf-top {
            display: inline-flex;
            align-items: baseline;
            gap: 4px;
            line-height: 1.25;
        }

        .perf-box .perf-title {
            font-size: 10px;
            font-weight: 700;
            opacity: 0.8;
            letter-spacing: 0.2px;
        }

        .perf-box .perf-val {
            font-size: 13px;
            font-weight: 800;
        }

        .perf-box .value-sub {
            font-size: 11px;
            font-weight: 700;
            line-height: 1.25;
            margin-top: 2px;
            letter-spacing: -0.1px;
        }

        /* Performance Compute Colors */
        .perf-top.perf-high { color: #047857; }
        .perf-top.perf-mid { color: #1d4ed8; }
        .perf-top.perf-entry { color: #475569; }

        /* Value Deal Colors with Left Accent Stripe (Scheme B) */
        .perf-box.val-great {
            border-left: 5px solid #10b981;
        }
        .perf-box.val-great .value-sub {
            color: #059669;
        }

        .perf-box.val-good {
            border-left: 5px solid #0284c7;
        }
        .perf-box.val-good .value-sub {
            color: #0284c7;
        }

        .perf-box.val-fair {
            border-left: 5px solid #f59e0b;
        }
        .perf-box.val-fair .value-sub {
            color: #d97706;
        }

        .perf-box.val-low {
            border-left: 5px solid #f43f5e;
        }
        .perf-box.val-low .value-sub {
            color: #e11d48;
        }

        .info-tip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #0284c7;
            color: #ffffff;
            cursor: help;
            margin-left: 5px;
            vertical-align: middle;
            position: relative;
            user-select: none;
            box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3);
            transition: background 0.15s, transform 0.15s;
        }

        .info-tip svg {
            display: block;
            width: 8px;
            height: 8px;
            pointer-events: none;
        }

        .info-tip:hover, .info-tip:focus {
            background: #0369a1;
            transform: scale(1.1);
        }

        .info-tip .info-tooltip {
            visibility: hidden;
            opacity: 0;
            position: absolute;
            top: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%);
            background: #0f172a;
            color: #f8fafc;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            font-size: 11px;
            font-weight: 400;
            font-style: normal;
            line-height: 1.45;
            text-transform: none;
            padding: 8px 11px;
            border-radius: 7px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
            width: 290px;
            max-width: 85vw;
            text-align: left;
            white-space: normal;
            z-index: 1000;
            pointer-events: none;
            transition: opacity 0.2s ease, visibility 0.2s ease;
        }

        .info-tip .info-tooltip::after {
            content: '';
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            border-width: 5px;
            border-style: solid;
            border-color: transparent transparent #0f172a transparent;
        }

        .info-tip:hover .info-tooltip,
        .info-tip:focus .info-tooltip {
            visibility: visible;
            opacity: 1;
        }

        /* Footer */
        footer {
            text-align: center;
            font-size: 12px;
            color: var(--text-dim);
            padding: 24px 16px 32px;
            border-top: 1px solid var(--border-card);
            line-height: 1.6;
        }

        .footer-brand {
            font-weight: 600;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .footer-disclaimer {
            font-size: 11px;
            color: #94a3b8;
            max-width: 960px;
            margin: 0 auto;
            line-height: 1.5;
        }

        .footer-disclaimer a {
            color: var(--primary);
            text-decoration: underline;
        }

        /* ==========================================================================
           OPTION 4: BACKDROP & MOBILE FLOATING ACTION BAR
           ========================================================================== */

        /* Backdrop overlay */
        .sidebar-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(15, 23, 42, 0.45);
            backdrop-filter: blur(2px);
            z-index: 90;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease;
        }

        /* Mobile Sticky Floating Filter Bar */
        .mobile-float-bar {
            display: none;
            position: fixed;
            bottom: 16px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 50;
            background: #0f172a;
            color: #ffffff;
            border-radius: 30px;
            padding: 10px 20px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
            font-size: 13px;
            font-weight: 700;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.15);
            user-select: none;
            transition: transform 0.15s ease, background 0.15s ease;
        }

        .mobile-float-bar:hover {
            background: #1e293b;
            transform: translateX(-50%) scale(1.02);
        }

        .mobile-count-badge {
            background: var(--primary);
            color: #ffffff;
            padding: 2px 7px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 800;
        }

        /* ==========================================================================
           RESPONSIVE BREAKPOINTS (OPTION 4 HYBRID IMPLEMENTATION)
           ========================================================================== */

        /* LAPTOP & TABLET (768px to 1199px) -> Off-canvas Slide-Over Drawer */
        @media (max-width: 1199px) {
            .filter-pane {
                position: fixed;
                top: 0;
                left: 0;
                height: 100vh;
                width: 340px;
                z-index: 100;
                border-radius: 0;
                transform: translateX(-100%);
                box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
            }
            .filter-pane.open {
                transform: translateX(0);
            }
            .pane-close-btn {
                display: block;
            }
            .pane-footer {
                display: block;
            }
            .sidebar-backdrop.open {
                opacity: 1;
                pointer-events: auto;
            }
            .workspace-split.sidebar-collapsed .filter-pane {
                display: flex;
            }
        }

        /* MOBILE (< 768px) -> Bottom Sheet Drawer + Product Card Layout */
        @media (max-width: 767px) {
            body {
                padding: 12px 10px 80px;
            }
            header {
                padding-bottom: 12px;
                margin-bottom: 14px;
            }
            .kpi-grid {
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }
            .catalog-toolbar {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }
            .filter-toggle-btn {
                display: none;
            }
            .mobile-float-bar {
                display: flex;
            }

            /* Bottom Sheet Drawer */
            .filter-pane {
                top: auto;
                bottom: 0;
                left: 0;
                right: 0;
                width: 100%;
                max-height: 85vh;
                height: auto;
                border-radius: 20px 20px 0 0;
                transform: translateY(100%);
                z-index: 100;
            }
            .filter-pane.open {
                transform: translateY(0);
            }
            .pane-header {
                border-radius: 20px 20px 0 0;
            }
            .pane-close-btn {
                display: block;
            }
            .pane-footer {
                display: block;
            }

            /* Adaptive Table to Product Cards */
            table, thead, tbody, th, td, tr {
                display: block;
            }
            thead tr {
                position: absolute;
                top: -9999px;
                left: -9999px;
            }
            tr {
                background: #ffffff;
                border: 1px solid var(--border-card);
                border-radius: 10px;
                margin: 12px 0;
                padding: 14px;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
            }
            td {
                padding: 6px 0;
                border-bottom: none;
            }
            td:last-child {
                margin-top: 8px;
                padding-top: 8px;
                border-top: 1px dashed var(--border-card);
            }
            .btn-buy, .btn-view {
                display: block;
                width: 100%;
                text-align: center;
                padding: 10px;
                font-size: 13px;
                box-sizing: border-box;
            }
        }
