*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --bg: #ffffff; --card: transparent; --border: #e5e5e5;
            --text: #1a1a1a; --text-muted: #666; --green: #25bef1; --radius: 12px;
        }
        body { font-family: 'Source Sans 3', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; padding-top: 56px; }

        /* TOP NAV */
        .top-nav { position: fixed; top: 0; left: 0; right: 0; background: #ffffff; border-bottom: 1px solid var(--border); display: flex; justify-content: space-around; align-items: center; padding: 8px 20px; z-index: 200; height: 56px; }
        .nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: #aaa; cursor: pointer; background: none; border: none; font-family: inherit; }
        .nav-item svg { width: 24px; height: 24px; }
        .nav-item.active { color: var(--green); }
        .nav-item-center { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: #aaa; cursor: pointer; background: none; border: none; font-family: inherit; }
        .nav-item-center svg { width: 24px; height: 24px; color: #aaa; }
        .nav-item-center.active { color: var(--green); }
        .nav-item-center.active svg { color: var(--green); }
        .nav-item-center.logged-in { color: var(--green); }
        .nav-item-center.logged-in svg { color: var(--green); }

        /* FONT */
        @font-face {
            font-family: 'DhCaloins';
            src: url("{{ url_for('static', filename='dh-caloins/Dh Caloins DEMO.ttf') }}") format('truetype');
            font-weight: normal;
        }

        /* LOGO */
        .logo-wrap { display: flex; flex-direction: row; align-items: center; padding: 10px 0 6px; overflow: hidden;}
        .site-logo { height: 50px; width: auto; object-fit: contain; flex-shrink: 0; margin-left: 8px; margin-right: 3px; }
        .logo-ticker { flex: 1; overflow: hidden; min-width: 0; }
        .logo-marquee { display: inline-flex; white-space: nowrap; animation: logo-scroll 30s steps(200) infinite; }
        @keyframes logo-scroll {
            from { transform: translateX(0); }
            to   { transform: translateX(-50%); }
        }
        .logo-side { font-family: 'Bitcount Grid Double', monospace; font-size: 18px; font-weight: 400; color: #1a1a1a; letter-spacing: 1px; padding-right: 40px; }

        /* HEADER */
        .header { background: var(--bg); padding: 0px 0px 5px; position: relative; }
        .search-row { display: flex; align-items: center; padding: 0px 5px 0px; gap: 8px; padding-top: 10px; }
        .search-box { flex: 1; display: flex; align-items: center; background: #f5f5f5; border: 1.5px solid #e0e0e0; border-radius: 10px; padding: 10px 16px; gap: 8px; }
        .search-box svg { flex-shrink: 0; color: #080707; }
        .search-box input { background: none; border: none; outline: none; color: var(--text); font-size: 15px; font-family: inherit; width: 100%; }
        .search-box input::placeholder { color: #bbb; }
        .search-btn { background: var(--green); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
        .search-btn:active { opacity: 0.7; }
        .back-btn { background: none; border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; color: #aaa; transition: color 0.15s; }
        .back-btn:hover { color: var(--text); }
        .back-btn:active { opacity: 0.7; }

        /* FILTRES SITES */
        .filter-sticky { position: sticky; top: 56px; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); padding: 0 0px 5px; }
        .site-filter-bar { padding: 10px 0 0; display: flex; gap: 1px; overflow-x: auto; scrollbar-width: none; }
        .site-filter-bar::-webkit-scrollbar { display: none; }
        .site-chip { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; position: relative; }
        .site-chip .flag { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #ddd; background: #f0f0f0; display: flex; align-items: center; justify-content: center; overflow: hidden; filter: grayscale(60%); transition: all 0.15s; }
        .site-chip .flag img { width: 100%; height: 100%; object-fit: cover; }
        .site-chip .flag-all { font-size: 20px; }
        .site-chip .flag-label { font-size: 8px; font-weight: 600; color: #bbb; width: 60px; text-align: center; text-transform: uppercase; letter-spacing: 0.3px; }
        .site-chip.active .flag { border-color: var(--green); filter: grayscale(0%); box-shadow: 0 0 0 2px rgba(37,190,241,0.3); }
        .site-chip.active .flag-label { color: var(--green); }
        .site-chip .loading-ring { position: absolute; top: -5px; left: 50%; width: 46px; height: 46px; border-radius: 50%; border: 3px solid transparent; border-top-color: #ff7300; border-right-color: #ff7300; display: none; animation: spin-flag 0.8s linear infinite; }
        @keyframes spin-flag { 0% { transform: translateX(-50%) rotate(0deg); } 100% { transform: translateX(-50%) rotate(360deg); } }
        .site-chip.loading .loading-ring { display: block; }
        .site-chip .count-badge { position: absolute; top: -2px; right: 8px; background: var(--green); color: #1a1a1a; font-size: 8px; font-weight: 700; border-radius: 8px; padding: 1px 4px; display: none; }
        .site-chip .count-badge.visible { display: block; }

        /* FILTRES PRIX + TRI */
        .price-filter-bar { padding: 8px 0 4px; display: flex; padding: 5px 5px 0px; align-items: center; gap: 8px; width: 50%; margin: 0 auto; }
        .price-filter-bar input { flex: 1; background: #f5f5f5; border: 1.5px solid #e0e0e0; border-radius: 8px; color: var(--text); font-family: inherit; font-size: 13px; padding: 7px 10px; outline: none; min-width: 0; }
        .price-filter-bar input::placeholder { color: #bbb; }
        .price-filter-bar span { color: #ccc; font-size: 14px; flex-shrink: 0; }
        .sort-bar { padding: 6px 5px 4px; display: flex; gap: 6px; align-items: center; }
        .sort-btn { padding: 4px 10px; border-radius: 50px; font-size: 11px; font-weight: 600; border: 1.5px solid #e0e0e0; background: #f5f5f5; color: #aaa; cursor: pointer; font-family: inherit; }
        .sort-btn.active { border-color: var(--green); color: var(--green); background: rgba(37,190,241,0.08); }
        .sort-label { font-size: 11px; color: #bbb; flex-shrink: 0; }

        .status-bar { padding: 6px 16px; font-size: 12px; color: var(--text-muted); min-height: 24px; }

        /* GRILLE */
        .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 4px 10px 20px; }
        @media (min-width: 480px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
        @media (min-width: 768px)  { .grid { grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 8px 16px 20px; } }
        @media (min-width: 1024px) { .grid { grid-template-columns: repeat(5, 1fr); } }
        @media (min-width: 1280px) { .grid { grid-template-columns: repeat(6, 1fr); } }

        /* CARTE */
        .card { background: transparent; border: 1px solid #ebebeb; border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform 0.15s; text-decoration: none; color: inherit; display: block; animation: fadeIn 0.3s ease; position: relative; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }
        .card:hover { transform: scale(1.02); }
        .card:active { transform: scale(0.97); }
        .card.hidden { display: none; }
        .card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #eee; }
        .card-no-img { width: 100%; aspect-ratio: 4/3; background: #f5f5f5; display: flex; align-items: center; justify-content: center; }
        .card-no-img svg { opacity: 0.2; color: #999; }
        .card-body { padding: 7px 9px 9px; }
        .card-source { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
        .card-title { font-size: 13px; font-weight: 500; color: #444; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
        .card-price { font-size: 15px; font-weight: 700; color: var(--green); }
        .card-price.no-price { color: #aaa; font-size: 13px; font-weight: 400; }

        /* BOUTON FAVORI SUR LA CARTE */
        .fav-btn { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,0.85); border: none; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #ccc; font-size: 14px; transition: all 0.15s; backdrop-filter: blur(4px); }
        .fav-btn:hover { color: #ff4d6d; transform: scale(1.1); }
        .fav-btn.saved { color: #ff4d6d; }

        /* ÉTATS */
        .empty-state { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--text-muted); }
        .empty-state svg { margin-bottom: 12px; opacity: 0.3; }
        .empty-state p { font-size: 15px; }

        /* MODAL */
        .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
        .modal-overlay.hidden { display: none; }
        .modal { background: #ffffff; border-radius: 16px; width: 100%; max-width: 400px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
        .modal-tabs { display: flex; border-bottom: 1px solid var(--border); }
        .modal-tab { flex: 1; padding: 14px; text-align: center; font-size: 14px; font-weight: 600; color: #bbb; cursor: pointer; border: none; background: none; font-family: inherit; }
        .modal-tab.active { color: var(--green); border-bottom: 2px solid var(--green); }
        .modal-body { padding: 20px; }
        .modal-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
        .form-group { margin-bottom: 14px; }
        .form-group label { display: block; font-size: 12px; color: #aaa; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
        .form-group input { width: 100%; background: #f5f5f5; border: 1.5px solid #e0e0e0; border-radius: 8px; color: var(--text); font-family: inherit; font-size: 14px; padding: 10px 12px; outline: none; }
        .form-group input:focus { border-color: var(--green); }
        .btn-primary { width: 100%; background: var(--green); color: #fff; border: none; border-radius: 8px; padding: 12px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; margin-top: 4px; }
        .btn-primary:active { opacity: 0.8; }
        .form-error { color: #ef5350; font-size: 12px; margin-top: 8px; min-height: 16px; }
        .modal-close { padding: 0 10px 0 0; float: right; background: none; border: none; color: #bbb; font-size: 20px; cursor: pointer; line-height: 1; }

        /* PANEL PROFIL */
        .panel-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 300; backdrop-filter: blur(4px); }
        .panel-overlay.hidden { display: none; }
        .panel { position: fixed; right: 0; top: 0; bottom: 0; width: min(360px, 100vw); background: #fafafa; z-index: 301; display: flex; flex-direction: column; animation: slideIn 0.25s ease; box-shadow: -4px 0 24px rgba(0,0,0,0.08); }
        @keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
        .panel-header { padding: 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
        .panel-header h2 { font-size: 16px; font-weight: 700; color: var(--text); }
        .panel-close { background: none; border: none; color: #bbb; font-size: 20px; cursor: pointer; }
        .panel-tabs { display: flex; border-bottom: 1px solid var(--border); }
        .panel-tab { flex: 1; padding: 10px 4px; text-align: center; font-size: 11px; font-weight: 600; color: #bbb; cursor: pointer; border: none; background: none; font-family: inherit; border-bottom: 2px solid transparent; white-space: nowrap; }
        .panel-tab.active { color: var(--green); border-bottom-color: var(--green); }
        .panel-content { flex: 1; overflow-y: auto; padding: 12px; }
        .panel-item { background: #f0f0f0; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
        .panel-item img { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #ddd; }
        .panel-item-info { flex: 1; min-width: 0; }
        .panel-item-title { font-size: 13px; font-weight: 500; color: #444; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
        .panel-item-sub { font-size: 11px; color: #aaa; margin-top: 2px; }
        .panel-item-price { font-size: 13px; font-weight: 700; color: var(--green); flex-shrink: 0; }
        .panel-item-del { background: none; border: none; color: #ccc; cursor: pointer; font-size: 16px; flex-shrink: 0; }
        .panel-item-del:hover { color: #ef5350; }
        .panel-empty { text-align: center; padding: 40px 20px; color: #bbb; font-size: 14px; }
        .btn-logout { width: calc(100% - 24px); margin: 12px; background: #fff; color: #ef5350; border: 1.5px solid #ef5350; border-radius: 8px; padding: 10px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }

        /* ── Country picker ── */
        .cnt-hint { font-size: 12px; color: #aaa; margin-bottom: 10px; }
        .cnt-actions { display: flex; gap: 8px; margin-bottom: 12px; }
        .cnt-action-btn { flex: 1; padding: 7px 0; border: 1.5px solid #e5e5e5; border-radius: 8px; background: #f5f5f5; font-size: 12px; font-weight: 600; color: #555; cursor: pointer; font-family: inherit; transition: background 0.15s; }
        .cnt-action-btn:active { background: #e8e8e8; }
        .cnt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
        .cnt-tile { display: flex; align-items: center; gap: 8px; padding: 10px 10px; border-radius: 10px; border: 1.5px solid #e5e5e5; background: #fff; cursor: pointer; user-select: none; transition: border-color 0.15s, background 0.15s; }
        .cnt-tile:active { opacity: 0.75; }
        .cnt-tile.selected { border-color: var(--green); background: rgba(37,190,241,0.07); }
        .cnt-tile img { width: 26px; height: 17px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
        .cnt-name { font-size: 11px; font-weight: 600; color: #888; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .cnt-tile.selected .cnt-name { color: #1a1a1a; }
        .cnt-check { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #ddd; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 9px; color: transparent; transition: all 0.15s; }
        .cnt-tile.selected .cnt-check { background: var(--green); border-color: var(--green); color: #fff; }
        .cnt-save-btn { width: 100%; padding: 13px; background: var(--green); color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; letter-spacing: 0.3px; }
        .cnt-save-btn:active { opacity: 0.82; }
        #cntFeedback { text-align: center; font-size: 13px; font-weight: 600; min-height: 22px; margin-top: 8px; }

        /* ── Account settings ── */
        .set-section { background: #fff; border: 1.5px solid #efefef; border-radius: 12px; padding: 14px 14px 12px; margin-bottom: 14px; }
        .set-section--danger { border-color: #ffd5d5; background: #fff8f8; }
        .set-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #aaa; margin-bottom: 10px; }
        .set-section--danger .set-section-title { color: #ef5350; }
        .set-field { margin-bottom: 8px; }
        .set-input { width: 100%; padding: 10px 12px; border: 1.5px solid #e5e5e5; border-radius: 8px; font-size: 13px; font-family: inherit; background: #fafafa; color: var(--text); outline: none; transition: border-color 0.15s; }
        .set-input:focus { border-color: var(--green); background: #fff; }
        .set-save-btn { width: 100%; padding: 10px; background: var(--green); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; margin-top: 2px; }
        .set-save-btn:active { opacity: 0.82; }
        .set-danger-btn { width: 100%; padding: 10px; background: #fff; color: #ef5350; border: 1.5px solid #ef5350; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
        .set-danger-btn:active { background: #ffeaea; }
        .set-feedback { min-height: 20px; font-size: 12px; font-weight: 600; margin-top: 6px; }

        /* ── Language sheet ── */
        .lang-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 500; backdrop-filter: blur(4px); }
        .lang-overlay.hidden { display: none; }
        .lang-sheet { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-radius: 20px 20px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 72vh; overflow-y: auto; animation: slideUp .25s cubic-bezier(.4,0,.2,1); }
        @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
        .lang-sheet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14px; font-weight: 700; color: var(--text); }
        .lang-sheet-close { background: none; border: none; color: #bbb; font-size: 20px; cursor: pointer; line-height: 1; }
        .lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
        .lang-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 6px; border-radius: 10px; border: 1.5px solid #e5e5e5; cursor: pointer; user-select: none; transition: border-color .15s, background .15s; }
        .lang-tile:active { opacity: .75; }
        .lang-tile.active { border-color: var(--green); background: rgba(37,190,241,.08); }
        .lang-tile img { width: 32px; height: 21px; object-fit: cover; border-radius: 3px; }
        .lang-tile-name { font-size: 11px; font-weight: 600; color: #888; text-align: center; line-height: 1.2; }
        .lang-tile.active .lang-tile-name { color: var(--text); }

        .src-kleinanzeigen { color: #e8761a; }
        .src-leboncoin     { color: #3b82f6; }
        .src-wallapop      { color: #13c4a3; }
        .src-subito        { color: #e63946; }
        .src-gumtree       { color: #4caf50; }
        .src-olx_portugal  { color: #9c27b0; }
        .src-2ememain      { color: #ff9800; }
        .src-marktplaats   { color: #60a5fa; }
        .src-willhaben     { color: #00bcd4; }
        .src-olx_pl        { color: #a1887f; }

        .src-anibis        { color: #ef5350; }

        /* ── DESKTOP / TABLET: center as a mobile-app column ─────────────────── */
        @media (min-width: 560px) {

            /* Grey desktop background */
            body { background: #e5e7ea; }

            /* White "phone screen" rectangle behind all content */
            body::before {
                content: '';
                position: fixed;
                top: 0; bottom: 0;
                left: 50%;
                transform: translateX(-50%);
                width: 520px;
                background: #fff;
                z-index: -1;
                box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 8px 40px rgba(0,0,0,.13);
            }

            /* Top nav: centered 520 px, same as content */
            .top-nav {
                left: 50%;
                right: auto;
                transform: translateX(-50%);
                width: 520px;
            }

            /* Main content areas: centered, same width */
            .header,
            .filter-sticky,
            .status-bar,
            .grid {
                max-width: 520px;
                margin-left: auto;
                margin-right: auto;
            }

            /* Keep 2-column card grid — same as mobile (overrides the wider breakpoints) */
            .grid { grid-template-columns: repeat(2, 1fr); }

            /* Price filter bar: full width inside the container */
            .price-filter-bar { width: 100%; }
        }

        /* ──────────────────────────────────────────────────────────────────────
           DESKTOP LAYOUT (≥1024 px) — Subito.it inspired: centered column, top
           header with logo left + account icons right, elevated search card,
           horizontal country strip, centered results grid.
           Overrides the 520 px phone column. Mobile rules (<1024 px) untouched.
           ────────────────────────────────────────────────────────────────────── */
        @media (min-width: 1024px) {

            /* Drop the 520 px phone frame */
            body { background: #fafbfc; padding-top: 70px; }
            body::before { content: none; display: none; }

            /* Desktop constants */
            :root { --dt-max: 1180px; --dt-pad: 32px; }

            /* ── Top header bar: logo-aware, account icons on right ── */
            .top-nav {
                left: 0; right: 0;
                width: 100%;
                transform: none;
                height: 70px;
                padding: 0 var(--dt-pad);
                justify-content: flex-end;
                gap: 6px;
                box-shadow: 0 1px 2px rgba(0,0,0,.04);
            }
            .top-nav .nav-item,
            .top-nav .nav-item-center {
                flex-direction: row;
                gap: 8px;
                font-size: 13px;
                padding: 9px 14px;
                border-radius: 10px;
                transition: background .15s, color .15s;
            }
            .top-nav .nav-item:hover,
            .top-nav .nav-item-center:hover { background: #f0f2f5; color: var(--text); }
            .top-nav .nav-item svg,
            .top-nav .nav-item-center svg { width: 20px; height: 20px; }

            /* ── Main header block (logo + search card + power search) ── */
            .header {
                max-width: var(--dt-max);
                margin: 0 auto;
                padding: 24px var(--dt-pad) 8px;
                background: transparent;
            }

            /* Logo centered, marquee tagline below */
            .logo-wrap {
                flex-direction: column;
                align-items: center;
                padding: 4px 0 22px;
                gap: 10px;
            }
            .site-logo { height: 84px; margin-left: 0; margin-right: 0; }
            .logo-ticker { width: 100%; max-width: 760px; }
            .logo-side { font-size: 28px; padding-right: 60px; }

            /* Elevated search card (centered, pill, 3-column visual) */
            .search-row {
                max-width: 880px;
                margin: 0 auto;
                padding: 0;
                background: #fff;
                border: 1px solid #e9ecef;
                border-radius: 18px;
                box-shadow: 0 4px 24px rgba(16,24,40,.06);
                padding: 10px 10px 10px 20px;
                gap: 12px;
            }
            .search-row .search-box {
                flex: 1;
                background: transparent;
                border: none;
                border-radius: 0;
                padding: 10px 0;
                font-size: 16px;
            }
            .search-row .search-box input { font-size: 16px; padding: 0; }
            .search-row .search-btn {
                width: 48px; height: 48px;
                box-shadow: 0 2px 8px rgba(37,190,241,.35);
                transition: transform .15s, box-shadow .15s;
            }
            .search-row .search-btn:hover {
                transform: scale(1.04);
                box-shadow: 0 4px 14px rgba(37,190,241,.45);
            }

            /* Power Search block — centered, same max-width as search card.
               !important needed: frontend.html's inline <style> loads after
               style.css and defines a base .adv-section margin that would
               otherwise win the cascade. */
            .adv-section {
                max-width: 880px !important;
                margin: 14px auto 26px !important;
                border-radius: 14px !important;
            }

            /* ── Horizontal pill strip: countries (Subito category-card style) ── */
            .filter-sticky {
                position: relative;
                top: auto;
                max-width: var(--dt-max);
                margin: 0 auto;
                padding: 4px var(--dt-pad) 4px;
                background: transparent;
                border-bottom: none;
                /* Flex wrap so price-filter + sort share a row below countries */
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                column-gap: 16px;
                row-gap: 4px;
            }
            .filter-sticky > .site-filter-bar,
            .filter-sticky > #tronLoader { width: 100%; }
            .site-filter-bar {
                padding: 8px 0 14px;
                gap: 8px;
                overflow-x: visible;
                flex-wrap: wrap;
                justify-content: center;
            }
            .site-chip {
                flex-direction: row;
                padding: 8px 14px 8px 8px;
                gap: 8px;
                background: #fff;
                border: 1px solid #e9ecef;
                border-radius: 999px;
                box-shadow: 0 1px 2px rgba(0,0,0,.03);
                transition: border-color .15s, box-shadow .15s, transform .15s;
            }
            .site-chip:hover {
                border-color: rgba(37,190,241,.5);
                box-shadow: 0 4px 12px rgba(0,0,0,.06);
                transform: translateY(-1px);
            }
            .site-chip.active {
                border-color: var(--green);
                background: rgba(37,190,241,.06);
                box-shadow: 0 2px 8px rgba(37,190,241,.15);
            }
            .site-chip .flag { width: 28px; height: 28px; flex-shrink: 0; }
            .site-chip .flag-label {
                width: auto;
                font-size: 12px;
                text-align: left;
                text-transform: none;
                letter-spacing: 0.2px;
                color: #555;
                white-space: nowrap;
            }
            .site-chip.active .flag-label { color: var(--green); }
            /* Ring must be centered on the flag circle, not the chip.
               chip padding-left=8px + flag-width=28px → flag center x = 22px.
               Animation applies translateX(-50%) so left:22px lands the ring
               at 22 - 18 = 4px (left edge), centering it on the flag. */
            .site-chip .loading-ring {
                left: 22px;
                top: 50%;
                margin-top: -18px;
                width: 36px;
                height: 36px;
            }
            .site-chip .count-badge { right: -4px; top: 0; }

            /* Tron loader: bigger on desktop to show full planet shape */
            #tronLoader {
                max-width: var(--dt-max);
                margin-left: auto;
                margin-right: auto;
            }
            #tronLoader.tl-active { height: 320px !important; }
            #tronCanvas { height: 320px !important; }

            /* Price filter left, sort bar right — same row under countries */
            .price-filter-bar {
                width: auto;
                padding: 0;
                margin: 8px 0 0;
                gap: 10px;
                max-width: 380px;
                margin-right: auto;
            }
            .sort-bar {
                padding: 0;
                margin: 8px 0 0;
                gap: 8px;
                align-items: center;
                flex-wrap: wrap;
                margin-left: auto;
            }
            .sort-bar .sort-label { font-size: 12px; }

            /* ── Results ── */
            .status-bar,
            .grid {
                max-width: var(--dt-max);
                margin-left: auto;
                margin-right: auto;
            }
            .status-bar { padding: 12px var(--dt-pad) 6px; font-size: 13px; }

            .grid {
                grid-template-columns: repeat(4, 1fr) !important;
                gap: 20px;
                padding: 12px var(--dt-pad) 60px;
            }
            @media (min-width: 1400px) {
                .grid { grid-template-columns: repeat(5, 1fr) !important; }
            }

            .card {
                background: #fff;
                border: 1px solid #ececec;
                border-radius: 14px;
                box-shadow: 0 1px 3px rgba(0,0,0,.04);
                transition: transform .18s, box-shadow .18s;
            }
            .card:hover {
                transform: translateY(-3px);
                box-shadow: 0 8px 24px rgba(0,0,0,.10);
            }
            .card-body { padding: 12px 14px 14px; }
            .card-title { font-size: 14px; line-height: 1.35; min-height: 36px; }
            .card-price { font-size: 17px; }
            .card-source { font-size: 11px; margin-bottom: 4px; }
            .fav-btn { width: 32px; height: 32px; font-size: 16px; top: 8px; right: 8px; }

            .empty-state { padding: 100px 20px; }
            .panel { width: min(420px, 100vw); }
            .modal { max-width: 440px; }
        }