﻿        /* Alpine.js cloak â€” hides x-cloak elements until Alpine initializes */
        [x-cloak] { display: none !important; }

        /* qa-sidebar markup is always in this layout — hide on desktop so it
           cannot dump into document flow (breaks page bottoms everywhere). */
        @media (min-width: 1024px) {
            .qa-overlay,
            .qa-sidebar {
                display: none !important;
                visibility: hidden !important;
                pointer-events: none !important;
                position: fixed !important;
                left: -9999px !important;
                width: 0 !important;
                height: 0 !important;
                overflow: hidden !important;
                z-index: -1 !important;
            }
        }

        /* ============================================================
           SNGINE / WoWonder THEME â€” Color & Base Variables
           ============================================================ */
        :root {
            /* Brand — fallbacks only; admin/hd-theme-system --brand wins when set */
            --primary: var(--brand, #FF4A1C);
            --primary-hover: var(--brand-hover, #E0380D);
            --primary-soft: var(--brand-soft, #FFF2EE);
            --primary-light: var(--primary-soft);
            --color-on-primary: #ffffff;

            /* Surfaces & text — Typography Design System */
            --bg: #F4F6F9;
            --bg-page: var(--bg);
            --bg-card: #ffffff;
            --surface: #ffffff;
            --bg-card-rgb: 255, 255, 255;
            --text-main: #111827;
            --text-muted: #6B7280;
            --text-light: #9CA3AF;
            --border: #E8ECEF;
            --border-subtle: #F1F4F7;
            --border-hover: #D1D5DB;
            --surface-footer: #FAFAFB;

            /* Semantic colors */
            --color-success: #10b981;
            --color-success-bg: #d1fae5;
            --color-success-text: #065f46;
            --color-danger: #ef4444;
            --color-danger-bg: #fef2f2;
            --color-danger-border: #fecaca;
            --color-danger-text: #dc2626;
            --color-warning: #f59e0b;
            --color-warning-bg: #fef3c7;
            --color-warning-border: #fcd34d;
            --color-warning-text: #92400e;
            --color-info: #3b82f6;
            --color-info-accent: #06b6d4;
            --color-secondary: #6b7280;
            --color-whatsapp: #25D366;
            /* Theme Listing Details: Call = blue CTA (not brand primary) */
            --color-phone-cta: #2563eb;
            --color-gallery-bg: #000;

            /* Shadows */
            --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
            --shadow-md: 0 4px 12px rgba(0,0,0,.10);
            --shadow-lg: 0 10px 40px rgba(0,0,0,.15);
            --shadow-popup: 0 4px 24px rgba(0,0,0,.12);
            --shadow-card: 0 2px 8px rgba(0,0,0,.1);
            --focus-ring: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);

            /* Radius */
            /* Radius (DESIGN_SYSTEM.md §1.5) */
            --radius-sm: 6px;
            --radius-md: 8px;
            --radius-card: 12px;
            --radius-btn: 8px;
            --radius-lg: 16px;
            --radius-full: 9999px;

            /* Spacing (8px grid — strict, no arbitrary values) */
            --space-1: 4px;
            --space-2: 8px;
            --space-3: 12px;
            --space-4: 16px;
            --space-5: 20px;
            --space-6: 24px;
            --space-8: 32px;
            --space-10: 40px;
            --space-12: 48px;
            --space-16: 64px;

            /* Type scale */
            --text-xs: 12px;
            --text-sm: 14px;
            --text-base: 16px;
            --text-lg: 18px;
            --text-xl: 20px;
            --text-2xl: 24px;
            --text-3xl: 30px;
            --text-4xl: 36px;

            /* Motion */
            --ease-out: cubic-bezier(.2, 0, 0, 1);
            --dur-fast: 120ms;
            --dur-base: 180ms;
            --dur-slow: 280ms;
        }
        html.night-mode {
            color-scheme: dark;
            /* Night palette == hd-theme-system.css dark tokens (single source).
               Values deliberately match #0F1115 / #171A21 / #F8FAFC / #64748B
               so this legacy block never fights the canonical token source. */
            --primary: #FF5A43;
            --primary-hover: #FF705C;
            --primary-soft: rgba(255, 75, 51, 0.12);
            --primary-light: var(--primary-soft);
            --color-on-primary: #ffffff;
            --bg: #0F1115;
            --bg-page: #0F1115;
            --bg-card: #171A21;
            --surface: #171A21;
            --text-main: #F8FAFC;
            --text-muted: #94A3B8;
            --text-light: #64748B;
            --border: #343B48;
            --border-subtle: #252B35;
            --shadow-sm: 0 1px 3px rgba(0,0,0,.2);
            --shadow-md: 0 4px 12px rgba(0,0,0,.3);
            --shadow-lg: 0 10px 40px rgba(0,0,0,.4);
            --shadow-popup: 0 4px 24px rgba(0,0,0,.35);
            --shadow-card: 0 2px 8px rgba(0,0,0,.35);
            --focus-ring: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
            --color-success-bg: rgba(16, 185, 129, 0.15);
            --color-success-text: #34d399;
            --color-danger-bg: rgba(239, 68, 68, 0.15);
            --color-danger-text: #f87171;
            --color-warning-bg: rgba(245, 158, 11, 0.15);
            --color-warning-text: #fbbf24;
            --color-gallery-bg: #111;
        }

        body {
            background-color: var(--bg-page);
            color: var(--text-main);
            font-family: var(--font-family-primary, 'Plus Jakarta Sans', sans-serif);
            transition: background-color 0.3s, color 0.3s;
        }
        .font-logo { font-family: var(--font-family-primary); }

        /* ============================================================
           SNGINE HEADER â€” Sticky top bar
           ============================================================ */
        .sng-header {
            background-color: var(--bg-card);
            border-bottom: 1px solid var(--border);
            height: 60px;
            position: sticky;
            top: 0;
            z-index: 999;
        }
        .sng-header-inner {
            max-width: 1280px;
            margin: 0 auto;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            gap: 16px;
        }
        .sng-header-left { display: flex; align-items: center; gap: 24px; flex: 1; min-width: 0; }
        .sng-header-center { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
        .sng-header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
        .sng-logo {
            font-family: var(--font-family-primary);
            font-weight: 800;
            font-size: 22px;
            letter-spacing: -0.5px;
            text-decoration: none;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        html.night-mode .sng-logo { color: var(--color-on-primary); }
        .sng-logo span { color: var(--primary); }

        .sng-search-wrap {
            position: relative;
            width: 380px;
            margin-left: 24px;
            background: rgba(var(--bg-card-rgb), 0.7);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }
        .sng-search-wrap input {
            background-color: var(--bg) !important;
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 0 16px 0 40px;
            height: 42px;
            font-size: 13px;
            font-weight: 400;
            width: 100%;
            outline: none;
            color: var(--text-main);
            transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
        }
        .sng-search-wrap input:focus {
            border-color: var(--primary);
            background-color: var(--surface) !important;
            box-shadow: var(--focus-ring);
        }
        .sng-search-wrap input::placeholder {
            color: var(--text-light);
            font-weight: 400;
        }
        .sng-search-wrap i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 14px;
        }

        .sng-btn-home {
            background-color: var(--primary);
            color: var(--color-on-primary);
            font-weight: 600;
            font-size: 13px;
            border-radius: var(--radius-btn);
            padding: 6px 16px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            transition: background-color 0.2s;
            border: 0;
            cursor: pointer;
        }
        .sng-btn-home:hover { background-color: var(--primary-hover); color: var(--color-on-primary); text-decoration: none; }

        .sng-badge-icon {
            position: relative;
            font-size: 20px;
            color: var(--text-muted);
            cursor: pointer;
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background-color 0.2s;
        }
        .sng-badge-icon:hover { background-color: var(--bg-page); }
        .sng-header-post-btn {
            color: var(--text-main);
            border: 0;
            flex-shrink: 0;
        }
        .sng-header-post-btn:hover { background: var(--bg-page); }
        .sng-mtopbar-btn.sng-header-post-btn {
            margin-inline-end: 2px;
        }
        .sng-badge-count {
            position: absolute;
            top: 2px;
            right: 2px;
            background-color: var(--primary);
            color: var(--color-on-primary);
            font-size: 9px;
            font-weight: 700;
            border-radius: 50%;
            min-width: 16px;
            height: 16px;
            padding: 0 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid var(--bg-card);
            line-height: 1;
        }

        /* Notification dropdown (Facebook-style) */
        .sng-notif-menu {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,.12);
            overflow: hidden;
        }
        .sng-notif-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 8px 12px;
            border-bottom: 1px solid var(--border);
            font-size: 14px;
            color: var(--text-main);
        }
        .sng-notif-head-count {
            font-size: 11px;
            font-weight: 600;
            color: var(--primary);
            background: var(--primary-light);
            padding: 2px 8px;
            border-radius: 999px;
        }
        .sng-notif-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            text-decoration: none;
            color: var(--text-main);
            border-bottom: 1px solid var(--border);
            transition: background .12s;
        }
        .sng-notif-item:hover { background: var(--bg-page); }
        .sng-notif-item-icon {
            width: 34px;
            height: 34px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 14px;
        }
        .sng-notif-item-body { flex: 1; min-width: 0; }
        .sng-notif-item-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
        .sng-notif-item-desc { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
        .sng-notif-item-arrow { font-size: 10px; color: var(--text-muted); flex-shrink: 0; }
        .sng-notif-empty {
            padding: 12px 8px 16px;
            text-align: center;
            color: var(--text-muted);
        }
        .sng-notif-empty i { font-size: 24px; margin-bottom: 8px; opacity: .5; display: block; }
        .sng-notif-empty p { font-size: 13px; margin: 0; }
        .sng-notif-foot {
            display: block;
            padding: 8px 12px;
            text-align: center;
            font-size: 12px;
            font-weight: 600;
            color: var(--primary);
            text-decoration: none;
            border-top: 1px solid var(--border);
        }
        .sng-notif-foot:hover { background: var(--bg-page); color: var(--primary-hover); }
        .sng-notif-markall {
            border: 0;
            background: transparent;
            color: var(--primary);
            font-size: 11px;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 999px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: background .12s, opacity .12s;
            white-space: nowrap;
        }
        .sng-notif-markall:hover { background: var(--primary-light); }
        .sng-notif-markall:disabled { opacity: .45; cursor: default; background: transparent; }
        .sng-notif-scroll { max-height: min(60vh, 420px); overflow-y: auto; }
        .sng-notif-item { position: relative; }
        .sng-notif-item.is-unread { background: var(--primary-light); }
        .sng-notif-item.is-unread:hover { background: var(--primary-light); }
        .sng-notif-item.is-unread .sng-notif-item-title { font-weight: 700; }
        .sng-notif-item-time { display: block; font-size: 10px; color: var(--text-muted); margin-top: 3px; }
        .sng-notif-item-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--primary);
            flex-shrink: 0;
            align-self: center;
        }
        .sng-notif-loading { padding: 24px 16px; text-align: center; color: var(--text-muted); font-size: 12px; }
        .sng-notif-loading i { margin-right: 6px; }

        /* ============================================================
           SNGINE FAR-RIGHT VERTICAL BAR
           ============================================================ */
        .sng-right-bar {
            position: fixed;
            right: 0;
            top: 60px;
            bottom: 0;
            width: 60px;
            background-color: var(--bg-card);
            border-left: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 16px;
            gap: 16px;
            z-index: 998;
        }
        .sng-right-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--bg-page);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s;
        }
        .sng-right-icon:hover { background-color: var(--primary); color: var(--color-on-primary); }

        /* ============================================================
           SIDEBAR / CARD STYLES (shared by left & right columns)
           ============================================================ */
        .sng-card {
            background-color: var(--bg-card);
            border-radius: var(--radius-card);
            border: 1px solid var(--border);
            overflow: hidden;
        }
        .sng-card-pad { padding: 16px; }
        .sng-card-pad-lg { padding: 24px; }

        .listings-grid {
            display: grid;
            grid-template-columns: repeat(var(--listings-cols-sm, 2), minmax(0, 1fr));
            gap: 16px;
        }
        @media (min-width: 768px) {
            .listings-grid {
                grid-template-columns: repeat(var(--listings-cols-md, 3), minmax(0, 1fr));
            }
        }
        @media (min-width: 1024px) {
            .listings-grid {
                grid-template-columns: repeat(var(--listings-cols, 3), minmax(0, 1fr));
                gap: 16px;
            }
        }

        /* Save/love heart overlay on marketplace grid cards */
        .listings-grid > .classifi-box {
            position: relative;
        }
        .grid-save-btn {
            position: absolute;
            top: 6px;
            right: 6px;
            z-index: 6;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            padding: 0;
            border: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.92);
            color: var(--text-main);
            font-size: 13px;
            line-height: 1;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
            cursor: pointer;
            transition: transform .15s ease, background .15s ease;
        }
        .grid-save-btn:hover {
            background: #fff;
            transform: scale(1.08);
        }
        .grid-save-btn .fa-solid.fa-heart {
            color: #ef4444;
        }
        [dir="rtl"] .grid-save-btn {
            right: auto;
            left: 6px;
        }

        /* Marketplace list rows (desktop defaults; mobile density overrides ≤767) */
        .mp-list-row {
            padding: 16px;
            border-radius: 12px;
            gap: 16px;
            margin-bottom: 8px;
        }
        .mp-list-row .mp-list-thumb {
            width: 100px;
            height: 100px;
            border-radius: 10px;
            overflow: hidden;
            flex-shrink: 0;
        }
        .mp-list-row .mp-list-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .mp-list-row .mp-list-price {
            font-size: 15px;
            font-weight: 800;
            color: var(--primary);
        }
        .mp-list-row .mp-list-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-main);
            line-height: 1.4;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .mp-list-row .mp-list-meta {
            font-size: 12px;
            color: var(--text-tertiary);
        }

        /* Marketplace toolbar — single horizontal row (scroll if needed) */
        .mp-toolbar {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: nowrap;
        }
        .mp-toolbar-search-group {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1 1 auto;
            min-width: 0;
        }
        .mp-toolbar-search {
            flex: 1 1 auto;
            min-width: 0;
        }
        .mp-toolbar-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: nowrap;
            flex-shrink: 1;
            min-width: 0;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        .mp-toolbar-controls::-webkit-scrollbar { display: none; }
        .mp-toolbar-controls select {
            max-width: 140px;
        }
        @media (max-width: 767px) {
            .mp-toolbar {
                flex-wrap: nowrap;
            }
            .mp-toolbar-search-group {
                flex: 0 0 auto;
            }
            .mp-toolbar-controls {
                flex: 1 1 auto;
                flex-wrap: nowrap;
            }
        }

        /* Marketplace mobile icon toolbar */
        .mp-mobile-toolbar {
            padding: 6px 8px 8px;
            background: var(--bg-card);
        }
        .mp-mobile-toolbar-row {
            display: flex;
            align-items: center;
            gap: 2px;
        }
        .mp-icon-btn {
            width: 44px;
            height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 0;
            background: transparent;
            color: var(--text-main);
            font-size: 18px;
            border-radius: 50%;
            cursor: pointer;
            flex-shrink: 0;
            transition: background .15s, color .15s;
        }
        .mp-icon-btn:active { background: var(--bg-page); }
        .mp-icon-btn.is-active {
            color: var(--primary);
            background: var(--primary-light);
        }
        .mp-mobile-count {
            margin-left: auto;
            padding: 0 6px;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted);
            white-space: nowrap;
        }
        .mp-mobile-search-expand {
            padding: 0 4px 8px;
        }
        .mp-mobile-search-inner {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 0 10px;
            height: 42px;
            border-radius: 999px;
            background: var(--bg-page);
            border: 1px solid var(--border);
        }
        .mp-mobile-search-input {
            flex: 1;
            min-width: 0;
            border: 0;
            background: transparent;
            color: var(--text-main);
            font-size: 16px;
            outline: none;
        }
        .mp-mobile-search-go {
            border: 0;
            background: var(--primary);
            color: #fff;
            font-size: 12px;
            font-weight: 600;
            padding: 6px 12px;
            border-radius: 999px;
            flex-shrink: 0;
        }
        .mp-sheet {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 81;
            max-height: min(85vh, calc(100dvh - 12px));
            overflow-y: auto;
            background: var(--bg-card);
            border-radius: 20px 20px 0 0;
            padding-bottom: env(safe-area-inset-bottom);
        }
        .mp-sheet-handle {
            width: 40px;
            height: 4px;
            margin: 8px auto 0;
            border-radius: 999px;
            background: var(--border);
        }
        .mp-sheet-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            border-bottom: 1px solid var(--border);
        }
        .mp-sheet-header h3 {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
            color: var(--text-main);
        }
        .mp-sheet-close {
            width: 36px;
            height: 36px;
            border: 0;
            background: var(--bg-page);
            border-radius: 50%;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .mp-sheet-body { padding: 8px 12px 16px; }
        .mp-sheet-label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-muted);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: .4px;
        }
        .mp-sheet-search {
            width: 100%;
            margin-bottom: 8px;
            height: 44px;
            min-height: 44px;
            padding: 0 12px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--surface-subtle, var(--bg-page));
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 500;
            outline: none;
            transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
        }
        .mp-sheet-search:focus {
            border-color: var(--primary);
            background: var(--surface, var(--bg-card));
            box-shadow: 0 0 0 3px rgba(255, 75, 51, 0.15);
        }
        .mp-sheet-input {
            flex: 1;
            height: 44px;
            min-height: 44px;
            padding: 0 12px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--surface-subtle, var(--bg-page));
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 500;
            outline: none;
            transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
        }
        .mp-sheet-input:focus {
            border-color: var(--primary);
            background: var(--surface, var(--bg-card));
            box-shadow: 0 0 0 3px rgba(255, 75, 51, 0.15);
        }
        .mp-sheet-option {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 14px;
            border: 0;
            background: transparent;
            border-radius: 12px;
            color: var(--text-main);
            font-size: 14px;
            text-align: left;
            cursor: pointer;
        }
        .mp-sheet-option.is-active {
            background: var(--primary-light);
            color: var(--primary);
            font-weight: 600;
        }
        .mp-sheet-footer { padding: 12px 16px 16px; }
        .mp-sheet-footer-split {
            display: flex;
            gap: 8px;
        }
        .mp-sheet-apply {
            width: 100%;
            min-height: 46px;
            border: 0;
            border-radius: 12px;
            background: var(--primary);
            color: #fff;
            font-size: 14px;
            font-weight: 600;
        }
        .mp-sheet-clear {
            flex: 1;
            min-height: 46px;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: var(--bg-card);
            color: var(--text-main);
            font-size: 14px;
            font-weight: 600;
        }
        .night-mode .mp-sheet { background: var(--bg-card); }

        .sng-sidebar-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 16px;
            border-radius: 8px;
            color: var(--text-muted);
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            transition: background-color 0.15s;
        }
        .sng-sidebar-link:hover { background-color: var(--bg-page); color: var(--primary); }
        .sng-sidebar-link i { font-size: 16px; width: 20px; text-align: center; }
        .sng-sidebar-link.active { background-color: var(--primary-soft, var(--primary-light)); color: var(--primary); font-weight: 700; }

        /* ============================================================
           FEED POST CARD (listing card)
           ============================================================ */
        .sng-post-card {
            background-color: var(--bg-card);
            border-radius: var(--radius-card);
            border: 1px solid var(--border);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            margin-bottom: 0;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: geometricPrecision;
        }
        .sng-post-avatar img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        .sng-post-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 16px 16px 10px;
        }
        .sng-post-header-user {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            flex: 1;
            color: inherit;
        }
        .sng-post-header-user:hover .sng-post-seller-name { color: var(--primary); }
        .sng-post-avatar-fallback {
            width: 40px; height: 40px; border-radius: 50%;
            background: var(--primary); color: var(--color-on-primary);
            display: flex; align-items: center; justify-content: center;
            font-size: 15px; font-weight: 700; flex-shrink: 0;
        }
        .sng-post-header-meta { min-width: 0; }
        .sng-post-header-name {
            display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
        }
        .sng-post-seller-name {
            font-size: 15px; font-weight: 700 !important; color: var(--text-main);
            line-height: 1.2;
            letter-spacing: -0.015em;
        }
        .sng-post-category-badge {
            display: inline-block; font-size: 10px; font-weight: 600;
            padding: 2px 8px; border-radius: 10px;
            background: var(--primary-light); color: var(--primary);
            margin-left: 6px; vertical-align: middle;
        }
        .sng-post-badge {
            font-size: 10px; font-weight: 600; padding: 1px 7px;
            border-radius: 20px; line-height: 1.4;
        }
        .sng-post-badge-biz { background: rgba(59,130,246,.12); color: #2563eb; }
        .sng-post-badge-ind { background: rgba(16,185,129,.12); color: #059669; }
        .sng-post-time {
            display: flex; align-items: center; gap: 4px;
            font-size: 14px; color: var(--text-muted); margin-top: 2px;
        }
        .sng-post-time i { font-size: 10px; opacity: .85; }
        .sng-post-header-featured {
            flex-shrink: 0;
            background: var(--color-warning); color: var(--color-on-primary);
            font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px;
        }
        .sng-post-stats {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 8px 16px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-muted);
            border-bottom: 1px solid var(--border);
        }
        .sng-post-stats-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
        .sng-post-stats-heart {
            width: 18px; height: 18px; border-radius: 50%;
            background: var(--color-danger-bg); color: var(--color-danger);
            display: inline-flex; align-items: center; justify-content: center;
            font-size: 8px; flex-shrink: 0;
        }
        .sng-post-stats-heart i { font-size: 9px; line-height: 1; }
        .sng-post-stats-count { color: var(--text-main); font-weight: 700; }
        .sng-post-stats-right { display: flex; gap: 12px; flex-shrink: 0; }
        .sng-post-stats-right b { color: var(--text-main); font-weight: 700; }

        .sng-post-actions {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 2px;
            padding: 2px 8px 6px;
            font-size: 12px;
            color: var(--text-muted);
        }
        .sng-post-action {
            cursor: pointer;
            transition: color 0.15s, background 0.15s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            flex: 0 0 auto;
            min-width: 0;
            padding: 6px 10px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: -0.01em;
            white-space: nowrap;
            color: var(--text-muted);
            line-height: 1.2;
        }
        .sng-post-action:hover { background: var(--bg-page); color: var(--text-main); }
        /* Theme Home feeds: text-sm icons (~14px), text-xs labels */
        .sng-post-action i { font-size: 14px; line-height: 1; flex-shrink: 0; width: 14px; text-align: center; }
        /* Report lives in .sng-post-more-menu (top-right ⋮), not inline */
        .sng-post-more {
            position: relative;
            flex-shrink: 0;
            margin-left: auto;
        }
        .sng-post-more-btn {
            color: var(--text-muted);
            padding: 4px;
            font-size: 12px;
            cursor: pointer;
            line-height: 1;
            border-radius: 8px;
        }
        .sng-post-more-btn:hover { color: var(--text-main); background: var(--bg-page); }
        .sng-post-more-menu {
            position: absolute;
            top: calc(100% + 4px);
            right: 0;
            z-index: 30;
            min-width: 148px;
            padding: 6px;
            border-radius: 12px;
            background: var(--surface, #fff);
            border: 1px solid var(--border, #e5e7eb);
            box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
        }
        .sng-post-more-item {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 9px 10px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-secondary, #475569);
            cursor: pointer;
            text-align: left;
        }
        .sng-post-more-item:hover {
            background: var(--bg-page, #f8fafc);
            color: var(--danger, #ef4444);
        }
        .sng-post-more-item i { font-size: 13px; width: 16px; text-align: center; }
        @media (max-width: 360px) {
            /* Very narrow phones: keep icons, hide labels to avoid overflow */
            .sng-post-action > span { display: none; }
        }

        /* Feed post — media-first layout */
        .sng-post-media-link { color: inherit; position: relative; display: block; }
        .sng-post-media {
            position: relative;
            height: 230px;
            background: var(--bg-page);
            overflow: hidden;
        }
        /* Desktop/tablet: fixed box (wins over phone aspect-ratio rules) */
        @media (min-width: 768px) {
            .sng-post-media {
                height: 269px !important;
                max-height: none !important;
                aspect-ratio: auto !important;
            }
        }
        .sng-post-media-el {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .sng-post-media-placeholder {
            width: 100%; height: 100%;
            display: flex; align-items: center; justify-content: center;
            font-size: 42px; color: var(--text-muted); opacity: .35;
        }
        .sng-post-video-badge {
            position: absolute; inset: 0;
            display: flex; align-items: center; justify-content: center;
            background: rgba(0,0,0,.25); color: var(--color-on-primary); font-size: 28px;
        }
        .sng-post-photo-count {
            position: absolute; bottom: 8px; right: 8px;
            background: rgba(0,0,0,.65); color: var(--color-on-primary);
            font-size: 11px; padding: 2px 8px; border-radius: 20px;
            z-index: 4;
        }
        /* Listing badges (Premium / New / Condition) — on-image overlay, all viewports */
        .sng-post-media-badges {
            position: absolute;
            top: 8px;
            left: 8px;
            z-index: 5;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            gap: 4px;
            pointer-events: none;
            max-width: calc(100% - 16px);
        }
        .sng-post-media-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
            line-height: 1.2;
            color: #fff;
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }
        .sng-post-badge-premium {
            background: rgba(198, 73, 73, 0.9);
            color: #fff;
        }
        .sng-post-badge-condition {
            background: rgba(0, 0, 0, 0.6);
            color: #fff;
        }
        .sng-post-badge-premium i,
        .sng-post-badge-condition i { font-size: 10px; }
        .sng-post-price {
            padding: 16px 16px 0;
            font-size: 20px; font-weight: 800; color: var(--text-main);
        }
        .sng-post-negotiable {
            font-size: 11px; font-weight: 600; color: var(--color-success); margin-left: 6px;
        }
        .sng-post-title {
            display: block;
            padding: 8px 16px 0;
            font-size: 14px; font-weight: 600; color: var(--text-main); line-height: 1.4;
        }
        .sng-post-title:hover { color: var(--primary); }
        .sng-post-desc {
            margin: 8px 0 0;
            padding: 0 16px 16px;
            font-size: 13px; line-height: 1.5; color: var(--text-muted);
            display: -webkit-box; -webkit-box-orient: vertical;
            -webkit-line-clamp: 3; overflow: hidden;
        }
        .sng-post-report-overlay {
            position: fixed; inset: 0; z-index: 10000;
            background: rgba(0,0,0,.45);
            display: flex; align-items: center; justify-content: center; padding: 16px;
        }
        .sng-post-report-box {
            width: 100%; max-width: 360px;
            background: var(--bg-card); border-radius: 12px;
            padding: 16px; border: 1px solid var(--border);
            box-shadow: var(--shadow-lg);
        }

        /* Listing detail page — room for fixed mobile action bar */
        .ld-page { background: var(--bg-page); min-height: 100vh; padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
        .ld-topbar {
            position: sticky; top: 0; z-index: 30;
            background: var(--bg-card); border-bottom: 1px solid var(--border);
            padding: 8px 16px;
            gap: 8px;
        }
        .ld-topbar-edit {
            display: inline-flex; align-items: center;
            padding: 6px 12px; border-radius: 8px;
            font-size: 12px; font-weight: 700;
            background: var(--primary); color: var(--color-on-primary) !important;
        }
        .ld-topbar-edit:hover { opacity: .92; color: var(--color-on-primary) !important; }
        .ld-owner-edit-link {
            display: inline-flex; align-items: center; gap: 6px;
            margin-top: 8px; font-size: 13px; font-weight: 600;
            color: var(--primary);
        }
        .ld-owner-edit-link:hover { text-decoration: underline !important; }
        .ld-gallery-main {
            position: relative;
            width: 100%;
            aspect-ratio: 4 / 3;
            max-height: 520px;
            background: var(--color-gallery-bg);
            overflow: hidden;
            display: flex; align-items: center; justify-content: center;
        }
        /* Stage fills the fixed box via absolute inset so tall/large images
           can never stretch the container beyond its fixed size. */
        .ld-gallery-main #ld-gallery-stage {
            position: absolute; inset: 0;
            display: flex; align-items: center; justify-content: center;
        }
        .ld-gallery-main img, .ld-gallery-main video {
            max-width: 100%; max-height: 100%;
            width: auto; height: auto;
            object-fit: contain;
            background: var(--color-gallery-bg);
        }
        @media (max-width: 768px) {
            .ld-gallery-main { aspect-ratio: 4 / 3; max-height: 380px; }
        }
        .ld-gallery-thumbs {
            display: flex; gap: 8px; padding: 8px 12px;
            overflow-x: auto; background: var(--bg-card);
            border-bottom: 1px solid var(--border);
        }
        .ld-gallery-thumb {
            width: 72px; height: 56px; flex-shrink: 0;
            border-radius: 8px; overflow: hidden;
            border: 2px solid transparent; cursor: pointer; padding: 0;
            background: var(--bg-page);
        }
        .ld-gallery-thumb.active, .ld-gallery-thumb:hover { border-color: var(--primary); }
        .ld-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .ld-thumb-video, .ld-gallery-thumb-video {
            position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
            background: rgba(0,0,0,.45); color: #fff; font-size: 18px; z-index: 1;
        }
        .ld-gallery-thumb { position: relative; }
        /* ---- Lightbox Gallery ---- */
        .ld-lightbox {
            position: fixed; inset: 0; z-index: 10000;
            background: rgba(0,0,0,0.92);
            display: flex; align-items: center; justify-content: center;
            animation: ldFadeIn 0.2s ease;
        }
        .ld-lightbox img {
            max-width: 92vw; max-height: 88vh;
            object-fit: contain; border-radius: 4px;
            box-shadow: 0 4px 30px rgba(0,0,0,0.5);
        }
        .ld-lightbox-close {
            position: absolute; top: 16px; right: 16px;
            width: 40px; height: 40px; border-radius: 50%;
            background: rgba(255,255,255,0.15); border: none; color: #fff;
            font-size: 20px; cursor: pointer; display: flex;
            align-items: center; justify-content: center;
            transition: background 0.15s;
        }
        .ld-lightbox-close:hover { background: rgba(255,255,255,0.3); }
        .ld-lightbox-nav {
            position: absolute; top: 50%; transform: translateY(-50%);
            width: 44px; height: 44px; border-radius: 50%;
            background: rgba(255,255,255,0.15); border: none; color: #fff;
            font-size: 18px; cursor: pointer; display: flex;
            align-items: center; justify-content: center;
            transition: background 0.15s;
        }
        .ld-lightbox-nav:hover { background: rgba(255,255,255,0.3); }
        .ld-lightbox-prev { left: 16px; }
        .ld-lightbox-next { right: 16px; }
        .ld-lightbox-counter {
            position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
            color: rgba(255,255,255,0.7); font-size: 13px;
            background: rgba(0,0,0,0.5); padding: 4px 14px; border-radius: 20px;
        }
        @keyframes ldFadeIn { from{opacity:0} to{opacity:1} }
        .ld-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-card);
            margin: 12px; padding: 16px;
        }
        .ld-price { font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1.2; }
        .ld-title { font-size: var(--font-h1); font-weight: var(--weight-bold); color: var(--text-main); margin: 8px 0 0; line-height: 1.25; }
        .ld-meta { font-size: 16px; color: var(--text-muted); margin-top: 10px; }
        .ld-social-row {
            display: flex; align-items: center; gap: 16px;
            padding-top: 12px; margin-top: 12px;
            border-top: 1px solid var(--border);
            flex-wrap: wrap;
        }
        .ld-social-btn {
            display: flex; align-items: center; gap: 6px;
            font-size: 13px; font-weight: 600; color: var(--text-muted);
            background: none; border: 0; cursor: pointer; padding: 0;
        }
        .ld-social-btn:hover, .ld-social-btn.active { color: var(--primary); }
        .ld-section-title {
            font-size: 14px; font-weight: 700; color: var(--text-main);
            margin: 0 0 12px;
        }
        .ld-spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
        .ld-key-item {
            display: flex; justify-content: space-between; align-items: center;
            padding: 8px 0; border-bottom: 1px solid var(--border);
            font-size: 14px;
        }
        .ld-key-item:nth-last-child(-n+2):nth-child(odd) { border-bottom: none; }
        .ld-key-item:nth-last-child(1):nth-child(even) { border-bottom: none; }
        .ld-key-label { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
        .ld-key-label i { width: 20px; color: var(--primary); font-size: 13px; }
        .ld-key-value { font-weight: 600; color: var(--text-main); text-align: right; }

        /* Features section */
        .ld-features-section { margin-top: 14px; }
        .ld-features-title { font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
        .ld-features-grid { display: flex; flex-wrap: wrap; gap: 8px; }
        .ld-feature-item { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
        .ld-feature-item i { color: var(--color-success); }

        @media (max-width: 767px) {
            .ld-spec-grid { grid-template-columns: 1fr; gap: 0; }
            .ld-key-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
            .ld-key-item:last-child { border-bottom: none; }
        }
        .ld-desc { font-size: 14px; line-height: 1.65; color: var(--text-main); white-space: pre-line; }
        .ld-map-wrap {
            position: relative; border-radius: 10px; overflow: hidden;
            background: var(--bg-page); min-height: 200px;
        }
        .ld-map-img {
            width: 100%; height: 220px; object-fit: cover; display: block;
        }
        .ld-map-link {
            display: block; text-decoration: none;
        }
        .ld-map-view-overlay {
            position: absolute; top: 10px; right: 10px;
            display: flex; align-items: center; gap: 6px;
            padding: 6px 12px; border-radius: 8px;
            background: rgba(255,255,255,0.95); color: var(--primary);
            font-size: 12px; font-weight: 600; text-decoration: none;
            box-shadow: 0 1px 4px rgba(0,0,0,0.12);
            transition: background 0.15s;
        }
        .ld-map-link:hover .ld-map-view-overlay {
            background: var(--primary); color: #fff;
        }
        .ld-map-address { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
        .ld-map-address-top {
            display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
            padding: 8px 12px; margin-bottom: 8px;
            background: var(--bg-page); border-radius: 10px;
            border: 1px solid var(--border); font-size: 13px;
            color: var(--text-main); font-weight: 500;
        }
        .ld-map-address-top i { font-size: 16px; }
        .ld-contact-bar {
            position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
            display: flex; gap: 8px; padding: 8px 12px;
            background: var(--bg-card); border-top: 1px solid var(--border);
            box-shadow: var(--shadow-md);
        }
        .ld-contact-stack { display: flex; flex-direction: column; gap: 8px; }
        .ld-contact-stack a,
        .ld-contact-stack span.ld-btn-disabled {
            display: flex; align-items: center; justify-content: center;
            width: 100%; text-align: center; text-decoration: none;
            padding: 12px 16px; border-radius: 10px;
            font-size: 14px; font-weight: 700; border: 0;
            cursor: pointer; transition: opacity .15s;
        }
        .ld-contact-stack a:hover { opacity: .92; text-decoration: none; }
        .ld-btn-call { background: var(--primary); color: var(--color-on-primary) !important; }
        .ld-btn-wa { background: var(--color-whatsapp); color: var(--color-on-primary) !important; }
        .ld-btn-chat {
            background: var(--bg-page); color: var(--text-main) !important;
            border: 1px solid var(--border) !important;
        }
        .ld-btn-disabled { opacity: .45; pointer-events: none; }
        /* Horizontal contact buttons row (Call / WhatsApp / Chat) */
        .ld-contact-buttons-row {
            display: flex; gap: 8px; width: 100%;
        }
        .ld-contact-buttons-row a,
        .ld-contact-buttons-row span.ld-btn-disabled {
            flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
            text-decoration: none; padding: 12px 10px; border-radius: 10px;
            font-size: 13px; font-weight: 700; border: 0;
            cursor: pointer; transition: opacity .15s; white-space: nowrap;
        }
        .ld-contact-buttons-row a:hover { opacity: .92; text-decoration: none; }
        .ld-btn-phone { background: var(--color-phone-cta); color: var(--color-on-primary) !important; }
        .ld-btn-whatsapp { background: var(--color-whatsapp); color: var(--color-on-primary) !important; }
        /* Chat button in row inherits ld-btn-chat style */
        .ld-comments-card { overflow: visible; }
        .ld-comments-title {
            display: flex; align-items: center; gap: 8px;
            margin-bottom: 14px;
        }
        .ld-comments-title i { color: var(--primary); font-size: 15px; }
        .ld-comments-count { font-weight: 600; color: var(--text-muted); font-size: 0.92em; }
        .ld-comments-empty {
            padding: 16px 8px 12px;
            text-align: center;
            font-size: 13px;
            line-height: 1.45;
            color: var(--text-muted);
        }
        .ld-comment-compose {
            display: flex; align-items: center; gap: 8px;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid var(--border);
        }
        .ld-comment-compose-field {
            flex: 1; min-width: 0;
            display: flex; align-items: center; gap: 8px;
            min-height: 44px;
            padding: 4px 4px 4px 14px;
            border-radius: 22px;
            background: var(--bg-page);
        }
        .ld-comment-input {
            flex: 1; min-width: 0;
            border: 0; outline: none; background: transparent;
            font-size: 14px; line-height: 1.35;
            color: var(--text-main);
            padding: 8px 0;
        }
        .ld-comment-input::placeholder { color: var(--text-muted); }
        .ld-comment-post-btn {
            flex-shrink: 0;
            display: inline-flex; align-items: center; justify-content: center;
            height: 36px; min-width: 64px; padding: 0 16px;
            border: 0; border-radius: 18px;
            background: var(--primary); color: #fff;
            font-size: 13px; font-weight: 600; line-height: 1;
            cursor: pointer; -webkit-tap-highlight-color: transparent;
            transition: opacity .15s, background .15s;
        }
        .ld-comment-post-btn:hover { background: var(--primary-hover, #b03c3c); }
        .ld-comment-post-btn:disabled {
            opacity: .45; cursor: default;
        }
        .ld-comment-avatar {
            width: 36px; height: 36px; border-radius: 50%;
            object-fit: cover; flex-shrink: 0;
        }
        .ld-comments-list { display: flex; flex-direction: column; gap: 12px; }
        .ld-comment-item { display: flex; gap: 8px; align-items: flex-start; }
        .ld-comment-body {
            flex: 1; min-width: 0;
            padding: 8px 12px;
            border-radius: 12px;
            background: var(--bg-page);
        }
        .ld-comment-meta {
            display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
            margin-bottom: 4px;
        }
        .ld-comment-meta strong { font-size: 13px; font-weight: 600; color: var(--text-main); }
        .ld-comment-meta span { font-size: 11px; color: var(--text-muted); }
        .ld-comment-text { font-size: 14px; line-height: 1.45; color: var(--text-main); word-break: break-word; }
        .ld-contact-login-box {
            text-align: center; padding: 16px 12px;
            background: var(--bg-page); border-radius: 10px;
            border: 1px dashed var(--border);
            display: flex; flex-direction: column; align-items: stretch; gap: 8px;
        }
        .ld-contact-login-box i { font-size: 22px; color: var(--text-muted); margin-bottom: 4px; display: block; }
        .ld-contact-login-title {
            margin: 0; font-size: 13px; font-weight: 700; color: var(--text-main);
        }
        .ld-contact-login-desc {
            margin: 0 0 4px; font-size: 12px; line-height: 1.45; color: var(--text-muted);
        }
        .ld-contact-login-box .ld-btn-call,
        .ld-contact-login-box .ld-btn-phone {
            display: flex; align-items: center; justify-content: center; gap: 8px;
            width: 100%; padding: 12px 16px; border-radius: 10px;
            font-size: 14px; font-weight: 700; text-decoration: none !important;
            background: var(--primary); color: var(--color-on-primary, #fff) !important;
            border: 1px solid var(--primary);
        }
        .ld-mobile-contact {
            position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
            padding: 8px 12px; background: var(--bg-card);
            border-top: 1px solid var(--border);
            box-shadow: var(--shadow-md);
        }
        /* App-style sticky bottom action bar (listing detail, mobile) */
        .ld-mobile-action-bar {
            position: fixed;
            bottom: 0; left: 0; right: 0;
            z-index: 45;
            display: flex;
            align-items: stretch;
            gap: 6px;
            padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
            background: var(--bg-card);
            border-top: 1px solid var(--border);
            box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
        }
        .ld-mab-btn {
            flex: 1;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-height: 44px;
            height: 44px;
            padding: 0 10px;
            border: 0;
            border-radius: 10px;
            background: var(--bg-page);
            color: var(--text-main) !important;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            line-height: 1.15;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            transition: opacity .15s, transform .1s;
        }
        .ld-mab-btn > i { font-size: 18px; line-height: 1; }
        .ld-mab-btn:active { transform: scale(.96); }
        .ld-mab-btn--wa {
            flex: 1.35;
            background: var(--color-whatsapp);
            color: var(--color-on-primary) !important;
            box-shadow: 0 2px 8px rgba(37, 211, 102, .35);
        }
        .ld-mab-btn--wa > i { font-size: 22px; }
        .ld-mab-btn--primary {
            flex: 1.2;
            background: var(--primary);
            color: var(--color-on-primary) !important;
        }
        .ld-mab-btn--offer {
            background: var(--color-warning);
            color: #fff !important;
        }
        .ld-mab-btn--sent {
            background: rgba(21, 128, 61, .12);
            color: var(--color-success) !important;
        }
        .ld-mab-btn--wide { flex: 1; flex-direction: row; gap: 8px; font-size: 13px; }
        .ld-mab-btn--wide > i { font-size: 16px; }
        .ld-mab-btn--disabled {
            opacity: .4;
            pointer-events: none;
        }
        .ld-offer-sheet-overlay {
            position: fixed; inset: 0; z-index: 50;
            background: rgba(0, 0, 0, .45);
            display: flex; align-items: flex-end; justify-content: center;
        }
        .ld-offer-sheet {
            width: 100%; max-width: 480px;
            background: var(--bg-card);
            border-radius: 16px 16px 0 0;
            padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px));
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 -8px 24px rgba(0, 0, 0, .12);
        }
        .ld-offer-sheet-handle {
            width: 40px; height: 4px; border-radius: 999px;
            background: var(--border); margin: 0 auto 12px;
        }
        /* Hide main tab bar while listing action bar is on screen (mobile only) */
        @media (max-width: 991px) {
            body:has(.ld-mobile-action-bar) .sng-tab-bar {
                display: none !important;
            }
        }
        .sng-post-comments-panel {
            border-top: 1px solid var(--border);
            background: var(--bg-page);
            padding: 12px 16px 14px;
        }
        .sng-post-comment-item {
            display: flex; gap: 8px; align-items: flex-start;
            margin-bottom: 10px;
        }
        .sng-post-comment-item img {
            width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
        }
        .sng-post-comment-body strong { font-size: 12px; color: var(--text-main); display: block; }
        .sng-post-comment-body span { font-size: 10px; color: var(--text-muted); }
        .sng-post-comment-body p { font-size: 13px; margin: 2px 0 0; color: var(--text-main); line-height: 1.4; }
        .sng-post-comment-compose {
            display: flex; gap: 8px; margin-top: 8px; padding-top: 10px;
            border-top: 1px solid var(--border);
        }
        .ld-contact-bar a, .ld-contact-bar button {
            flex: 1; text-align: center; text-decoration: none;
            padding: 12px 8px; border-radius: 10px;
            font-size: 13px; font-weight: 700; border: 0;
        }
        .ld-similar-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
        .ld-similar-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin: 0 0 16px;
            min-height: 28px;
        }
        .ld-similar-title-text {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin: 0;
            font-size: 16px;
            font-weight: 700;
            line-height: 1.25;
            letter-spacing: -0.01em;
            color: var(--text-main);
            min-width: 0;
            flex: 1 1 auto;
        }
        .ld-similar-title-text i {
            flex-shrink: 0;
            font-size: 14px;
            color: var(--primary);
        }
        .ld-similar-title-text span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .ld-similar-view-all {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            flex-shrink: 0;
            margin: 0;
            padding: 4px 0 4px 8px;
            font-size: 13px;
            font-weight: 600;
            line-height: 1.2;
            color: var(--primary);
            text-decoration: none;
            white-space: nowrap;
            transition: color .15s ease;
        }
        .ld-similar-view-all i {
            font-size: 10px;
            opacity: .85;
        }
        .ld-similar-view-all:hover {
            color: var(--primary-hover, #b03c3c);
            text-decoration: none;
        }
        .ld-similar-card {
            width: 160px; flex-shrink: 0; text-decoration: none; color: inherit;
        }
        .ld-similar-img {
            aspect-ratio: 4/3; border-radius: 10px; overflow: hidden;
            background: var(--bg-page); margin-bottom: 6px;
        }
        .ld-similar-img img { width: 100%; height: 100%; object-fit: cover; }
        .ld-similar-price { font-size: 14px; font-weight: 800; color: var(--primary); }
        .ld-similar-title { font-size: 12px; color: var(--text-main); font-weight: 600; line-height: 1.3; }
        .ld-similar-loc { font-size: 11px; color: var(--text-muted); }
        .ld-similar-bottom { padding: 0 16px 16px; }
        @media (min-width: 992px) {
            .ld-similar-bottom { max-width: 1100px; margin: 0 auto; padding: 0 16px 24px; }
        }
        .ld-report-modal {
            position: fixed; inset: 0; z-index: 10000;
            background: rgba(0,0,0,.45);
            display: flex; align-items: flex-end; justify-content: center;
        }
        .ld-report-sheet {
            width: 100%; max-width: 480px;
            background: var(--bg-card); border-radius: 16px 16px 0 0;
            padding: 16px 16px 24px; max-height: 80vh; overflow-y: auto;
        }
        @media (min-width: 992px) {
            .ld-page { padding-bottom: 24px; }
            .ld-mobile-contact { display: none !important; }
            .ld-mobile-action-bar { display: none !important; }
            .ld-offer-sheet-overlay { display: none !important; }
            .ld-layout { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; padding: 20px 24px; align-items: flex-start; }
            .ld-main-col .ld-card { margin: 0 0 12px; }
            /* stretch to full sidebar column width (match Safety Tips / theme) */
            .ld-side-col .ld-card { margin: 0 0 12px; width: 100%; align-self: stretch; box-sizing: border-box; }
            .ld-similar-empty-mobile { display: none !important; }
            .ld-contact-bar { position: static; box-shadow: none; border: 0; padding: 0; flex-direction: column; }
            .ld-contact-bar a, .ld-contact-bar button { width: 100%; }
        }

        /* ---- Breadcrumbs ---- */
        .ld-back-btn {
            display: inline-flex; align-items: center; gap: 4px;
            padding: 6px 12px; border-radius: 30px;
            font-size: 12px; font-weight: 600;
            background: var(--bg-page); color: var(--text-muted);
            border: 1px solid var(--border);
            white-space: nowrap;
        }
        .ld-back-btn:hover { color: var(--text-main); border-color: var(--text-muted); }
        .ld-breadcrumb { overflow: hidden; }
        .ld-breadcrumb-list { display: flex; align-items: center; flex-wrap: nowrap; list-style: none; gap: 0; }
        .ld-breadcrumb-list li { font-size: 12px; white-space: nowrap; display: flex; align-items: center; }
        .ld-breadcrumb-list li a { color: var(--text-muted); text-decoration: none; }
        .ld-breadcrumb-list li a:hover { color: var(--primary); text-decoration: underline; }
        .ld-breadcrumb-list li::after { content: 'â€º'; margin: 0 6px; color: #94A3B8; font-size: 14px; }
        .ld-breadcrumb-list li:last-child::after { display: none; }
        .ld-breadcrumb-list li.active { color: var(--text-main); font-weight: 600; }
        .ld-topbar-icon-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); cursor: pointer; }
        .ld-topbar-icon-btn:hover { background: var(--bg-page); color: var(--text-main); }

        /* ---- Seller Card ---- */
        .ld-seller-avatar {
            width: 72px; height: 72px; border-radius: 50%;
            margin: 0 auto 12px; overflow: hidden;
            background: var(--bg-page);
        }
        .ld-seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .ld-seller-name {
            text-align: center; font-size: 18px; font-weight: 700;
            margin-bottom: 4px; color: var(--text-main);
        }
        .ld-seller-name a:hover { color: var(--primary) !important; }
        .ld-seller-type {
            text-align: center; font-size: 12px;
            color: var(--text-muted); margin-bottom: 12px;
        }
        .ld-seller-stats {
            display: flex; justify-content: space-around;
            margin: 12px 0; padding: 12px 0;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
        }
        .ld-seller-stat { text-align: center; }
        .ld-seller-stat-value { font-size: 18px; font-weight: 700; color: var(--primary); }
        .ld-seller-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

        /* ---- Safety Tips ---- */
        .ld-safety-title {
            font-size: 14px; font-weight: 700; color: var(--text-main);
            margin: 0 0 14px; display: flex; align-items: center; gap: 8px;
        }
        .ld-safety-list { list-style: none; }
        .ld-safety-list li {
            display: flex; align-items: center; gap: 8px;
            font-size: 13px; color: var(--text-muted);
            margin-bottom: 10px; line-height: 1.4;
        }
        .ld-safety-list li i { width: 16px; font-size: 13px; flex-shrink: 0; }

        @media (max-width: 991px) {
            .ld-breadcrumb { display: none; }
            .ld-back-btn { display: none; }
        }

        /* ============================================================
           RIGHT COLUMN: User Profile Widget
           ============================================================ */
        .sng-profile-cover {
            height: 90px;
            width: 100%;
            object-fit: cover;
        }
        .sng-profile-avatar-wrap {
            position: relative;
            margin-top: -35px;
            text-align: center;
        }
        .sng-profile-avatar-wrap img {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            border: 4px solid var(--bg-card);
            object-fit: cover;
        }
        .sng-profile-stats {
            display: flex;
            justify-content: center;
            gap: 16px;
            font-size: 11px;
            color: var(--text-muted);
            border-top: 1px solid var(--border);
            padding-top: 10px;
            margin-top: 10px;
        }

        /* ============================================================
           RIGHT COLUMN: Trending widget
           ============================================================ */
        .sng-trend-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 6px 0;
        }
        .sng-trend-hash {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background-color: var(--primary-light);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            flex-shrink: 0;
        }

        /* ============================================================
           PRO MEMBERS / FEATURED USERS widget
           ============================================================ */
        .sng-pro-widget {
            background: linear-gradient(135deg, #a52a2a 0%, #7c1c1c 100%);
            color: var(--color-on-primary);
            border-radius: var(--radius-card);
            padding: 16px;
        }
        .sng-pro-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 2px solid rgba(255,255,255,.4);
            object-fit: cover;
            cursor: pointer;
            transition: transform 0.2s;
        }
        .sng-pro-avatar:hover { transform: scale(1.1); border-color: #fff; }

        /* ============================================================
           FLOATING CHAT POPUP
           ============================================================ */
        .sng-chat-popup {
            position: fixed;
            bottom: 0;
            right: 80px;
            width: 290px;
            background-color: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px 12px 0 0;
            box-shadow: var(--shadow-popup);
            z-index: 9999;
            font-family: var(--font-family-primary);
        }
        .sng-chat-hdr {
            padding: 8px 12px;
            border-bottom: 1px solid var(--border);
            border-radius: 12px 12px 0 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .sng-chat-body {
            height: 240px;
            overflow-y: auto;
            padding: 12px;
            background-color: var(--bg-page);
        }
        .sng-chat-footer {
            border-top: 1px solid var(--border);
            padding: 8px 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .sng-chat-footer input {
            border: 0;
            outline: none;
            font-size: 12px;
            flex-grow: 1;
            background: transparent;
            color: var(--text-main);
        }

        /* ============================================================
           DESKTOP 3-COLUMN FEED LAYOUT â€” Facebook-style grid
           ============================================================ */
        @media (min-width: 1024px) {
            .sng-feed-layout {
                display: grid;
                grid-template-columns: 260px minmax(0, 680px) 300px;
                gap: 16px;
                max-width: 1280px;
                margin: 0 auto;
                padding: 16px;
                align-items: start;
                justify-content: center;
            }
            /* Marketplace / multi-col listing grids: wider shell so 3â€“4 col cards stay readable */
            .sng-feed-layout.sng-feed-layout--marketplace {
                grid-template-columns: 292px minmax(0, 1fr) 240px;
                max-width: 1560px;
                gap: 16px;
            }
            .sng-feed-left {
                width: 100%;
                min-width: 0;
                justify-self: end;
            }
            .sng-feed-center {
                width: 100%;
                max-width: 680px;
                min-width: 0;
                justify-self: center;
            }
            .sng-feed-layout.sng-feed-layout--marketplace .sng-feed-center,
            .sng-feed-layout.sng-feed-layout--marketplace #mp-feed {
                max-width: none;
                width: 100%;
                min-width: 0;
            }
            .sng-feed-layout.sng-feed-layout--marketplace .sng-feed-right {
                max-width: 240px;
            }
            .sng-feed-right {
                width: 100%;
                min-width: 0;
                max-width: 300px;
                justify-self: start;
                display: flex;
                flex-direction: column;
                gap: 10px; /* match feed card gap — Facebook-tight */
            }
            /* SPA market tab: use available desktop width (not feed 680px cap) */
            #page-marketplace > div {
                max-width: 1400px;
                margin-left: auto;
                margin-right: auto;
            }
            .sng-sticky-col {
                position: sticky;
                top: 76px; /* fixed header (60px) + layout padding */
                align-self: start;
                max-height: calc(100vh - 92px);
                overflow-y: auto;
                overflow-x: hidden;
                overflow-anchor: none; /* avoid scroll-anchoring jumps as feed grows */
                overscroll-behavior: contain;
                padding-right: 2px;
                scrollbar-width: thin;
                scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
                /* Stable paint: no transform/will-change that reflows sticky ancestors */
                transform: none;
                will-change: auto;
            }
            .sng-feed-layout.sng-feed-layout--marketplace .sng-feed-center {
                overflow-anchor: auto;
            }
            .sng-sticky-col::-webkit-scrollbar { width: 4px; }
            .sng-sticky-col::-webkit-scrollbar-track { background: transparent; }
            .sng-sticky-col::-webkit-scrollbar-thumb {
                background: rgba(0, 0, 0, 0.08);
                border-radius: 4px;
            }
            .sng-sticky-col:hover::-webkit-scrollbar-thumb {
                background: rgba(0, 0, 0, 0.18);
            }
            .night-mode .sng-sticky-col {
                scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
            }
            .night-mode .sng-sticky-col::-webkit-scrollbar-thumb {
                background: rgba(255, 255, 255, 0.1);
            }
            .night-mode .sng-sticky-col:hover::-webkit-scrollbar-thumb {
                background: rgba(255, 255, 255, 0.22);
            }
            .sng-hide-desktop { display: none !important; }
        }
        @media (min-width: 1024px) and (max-width: 1100px) {
            .sng-feed-layout {
                grid-template-columns: 220px minmax(0, 1fr) 260px;
                max-width: 100%;
            }
            .sng-feed-layout.sng-feed-layout--marketplace {
                grid-template-columns: 200px minmax(0, 1fr) 200px;
                max-width: 100%;
            }
        }
        @media (min-width: 1101px) and (max-width: 1360px) {
            .sng-feed-layout.sng-feed-layout--marketplace {
                grid-template-columns: 220px minmax(0, 1fr) 220px;
                max-width: 100%;
                padding-left: 12px;
                padding-right: 12px;
            }
        }
        @media (max-width: 1023px) {
            .sng-hide-mobile { display: none !important; }
        }

        /* ============================================================
           BOTTOM TAB BAR (mobile)
           ============================================================ */
        .sng-tab-bar {
            background-color: var(--bg-card);
            border-top: 1px solid var(--border);
        }
        .sng-tab-btn {
            color: var(--text-muted);
        }
        .sng-tab-btn.active { color: var(--primary); }

        /* ============================================================
           MOBILE APP-STYLE ENHANCEMENTS (small screens only)
           ============================================================ */

        /* Category icon rail (app category shortcuts) */
        .sng-cat-rail-wrap {
            position: sticky;
            top: calc(env(safe-area-inset-top) + 52px);
            z-index: 20;
            background: var(--bg-card);
            border-bottom: 1px solid var(--border);
            padding: 8px 0;
        }
        .sng-cat-rail {
            display: flex;
            gap: 4px;
            overflow-x: auto;
            padding: 0 8px;
            -webkit-overflow-scrolling: touch;
        }
        .sng-cat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            flex: 0 0 auto;
            width: 62px;
            background: transparent;
            border: 0;
            padding: 2px 0;
            cursor: pointer;
        }
        .sng-cat-ico {
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 16px;
            background: var(--bg-page);
            color: var(--text-main);
            font-size: 20px;
            border: 1px solid var(--border);
            transition: transform .15s cubic-bezier(.2,0,0,1), background .15s, color .15s, box-shadow .15s;
        }
        .sng-cat-item:active .sng-cat-ico { transform: scale(.9); }
        .sng-cat-item.is-active .sng-cat-ico {
            background: #e8eaed;
            color: var(--primary);
            border-color: transparent;
            box-shadow: none;
        }
        .sng-cat-label {
            font-size: 10px;
            line-height: 1.15;
            color: var(--text-muted);
            width: 60px;
            max-width: 60px;
            text-align: center;
            white-space: normal;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
            font-weight: 500;
        }
        .sng-cat-item.is-active .sng-cat-label { color: var(--primary); font-weight: 600; }

        /* Modern mobile top bar */
        .sng-mtopbar {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 50;
            background: var(--bg-card);
            border-bottom: 1px solid var(--border);
            box-shadow: 0 1px 8px rgba(0,0,0,.05);
            backdrop-filter: saturate(1.2) blur(6px);
        }
        .sng-mtopbar-inner {
            display: flex;
            align-items: center;
            gap: 8px;
            height: 52px;
            padding: 0 12px;
        }
        .sng-mtopbar-logo { flex: 0 0 auto; display: flex; align-items: center; }
        .sng-mtopbar-logo img { height: 26px; width: auto; }
        .sng-mtopbar-search {
            flex: 1 1 auto;
            min-width: 140px;
            display: flex;
            align-items: center;
            gap: 8px;
            height: 38px;
            padding: 0 14px;
            border-radius: 999px;
            background: var(--bg-page);
            border: 1px solid var(--border);
            color: var(--text-muted);
            font-size: 13px;
            cursor: pointer;
            overflow: hidden;
            white-space: nowrap;
        }
        .sng-mtopbar-search i { font-size: 14px; flex: 0 0 auto; }
        .sng-mtopbar-search span { overflow: hidden; text-overflow: ellipsis; }
        .sng-mtopbar-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
        .sng-mtopbar-icon {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            width: 34px !important;
            height: 34px !important;
            min-width: 34px !important;
            min-height: 34px !important;
            border-radius: 50% !important;
            border: none;
            background: transparent;
            color: #8896b8 !important;
            font-size: 18px !important;
            cursor: pointer;
            flex-shrink: 0;
            padding: 0 !important;
            text-decoration: none !important;
            -webkit-tap-highlight-color: transparent;
        }
        .sng-mtopbar-icon:active { background: #ecf1f5 !important; }
        .sng-mtopbar-icon i,
        .sng-mtopbar-icon .f7-icons {
            font-size: 18px !important;
            line-height: 1;
        }
        .sng-mtopbar-btn {
            position: relative;
            width: 44px; height: 44px;
            display: flex; align-items: center; justify-content: center;
            border: 0; background: transparent;
            color: var(--text-main);
            font-size: 19px;
            border-radius: 50%;
            cursor: pointer;
            transition: background .15s;
            text-decoration: none;
        }
        .sng-mtopbar-btn:active { background: var(--bg-page); }
        .sng-mtopbar-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
        /* Marketplace card price: brand red */
        .mp-card .classifi-price,
        .classifi-box .classifi-price,
        .listings-grid .classifi-price {
            color: var(--primary, #FF4B33) !important;
        }
        .sng-mtopbar-more { position: relative; }
        .sng-mtopbar-menu {
            position: absolute;
            top: calc(100% + 4px);
            right: 0;
            min-width: 168px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            padding: 6px;
            z-index: 60;
        }
        .sng-mtopbar-menu button,
        .sng-mtopbar-menu a {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 8px 12px;
            border: 0;
            background: transparent;
            color: var(--text-main);
            font-size: 13px;
            font-weight: 500;
            text-decoration: none;
            border-radius: 8px;
            cursor: pointer;
            text-align: left;
        }
        .sng-mtopbar-menu button:active,
        .sng-mtopbar-menu a:active { background: var(--bg-page); }
        .sng-mtopbar-menu i { width: 16px; color: var(--text-muted); text-align: center; }

        /* Immersive listing detail — app-style header only */
        body.sng-listing-immersive .sng-mtopbar,
        body.sng-listing-immersive .sng-mtopbar-spacer { display: none !important; }
        body.sng-listing-immersive .ld-topbar.sng-hide-desktop {
            position: sticky !important;
            top: 0 !important;
            z-index: 50 !important;
            min-height: 48px;
            padding: 6px 8px;
            padding-top: max(6px, env(safe-area-inset-top, 0px));
            background: var(--bg-card) !important;
            border-bottom: 1px solid var(--border);
            color: var(--text-main);
        }
        body.sng-listing-immersive .ld-topbar.sng-hide-desktop .ld-back-hit,
        body.sng-listing-immersive .ld-topbar.sng-hide-desktop .ld-topbar-hit {
            color: var(--text-main) !important;
            background: transparent !important;
        }
        body.sng-listing-immersive .ld-topbar.sng-hide-desktop .ld-topbar-page-title {
            color: var(--text-main) !important;
        }
        .ld-back-hit {
            width: 44px; height: 44px;
            display: inline-flex; align-items: center; justify-content: center;
            border-radius: 50%;
            color: var(--text-main);
            text-decoration: none;
            flex-shrink: 0;
        }
        .ld-back-hit:active { background: var(--bg-page); }
        .ld-topbar-hit {
            width: 44px; height: 44px;
            display: inline-flex; align-items: center; justify-content: center;
            border: 0; background: transparent;
            border-radius: 50%;
            color: var(--text-muted);
            cursor: pointer;
        }
        .ld-topbar-hit:active { background: var(--bg-page); color: var(--text-main); }

        /* Tab bar clearance for feed / SPA pages */
        @media (max-width: 767px) {
            .sng-feed-container > main.min-h-screen {
                padding-top: calc(var(--mobile-topbar-h, 52px) + env(safe-area-inset-top, 0px));
                padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
            }
            body.sng-listing-immersive .sng-feed-container > main.min-h-screen {
                padding-top: 0;
                padding-bottom: 0;
            }
            /* Spacer after content was a mistaken top-offset; clearance is padding-top above */
            .sng-hide-desktop.sng-mtopbar-spacer { height: 0 !important; max-height: 0 !important; overflow: hidden !important; padding: 0 !important; margin: 0 !important; }
            .page-content .pb-16 { padding-bottom: 6rem !important; }
        }

        /* Enhanced bottom tab bar */
        .sng-tab-bar {
            box-shadow: 0 -1px 0 rgba(0,0,0,.06);
        }
        .sng-tab-btn {
            transition: color .12s ease;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
        .sng-tab-btn i,
        .sng-tab-btn .f7-icons {
            transform: none !important;
        }
        .sng-tab-btn:active i,
        .sng-tab-btn.active i {
            transform: none !important;
        }
        .sng-tab-promo {
            overflow: visible !important;
        }
        .sng-tab-btn .sng-tab-promo-fab,
        .sng-tab-promo-fab {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            margin-top: -14px;
            border-radius: 50%;
            background: var(--primary);
            box-shadow: 0 4px 14px rgba(198,73,73,.38);
            transform: none !important;
            transition: none;
        }
        .sng-tab-btn .sng-tab-promo-fab i,
        .sng-tab-promo-fab i {
            font-size: 22px !important;
            color: #fff !important;
            transform: none !important;
        }
        .sng-tab-promo:active .sng-tab-promo-fab {
            filter: brightness(0.96);
        }
        .sng-tab-btn i { transition: transform .15s cubic-bezier(.2,0,0,1); }
        .sng-tab-btn.active i { transform: translateY(-1px) scale(1.06); }
        .sng-tab-btn.active span { font-weight: 600; }
        .sng-tab-indicator {
            position: absolute;
            top: 4px;
            width: 4px; height: 4px;
            border-radius: 50%;
            background: transparent;
            transition: background .15s;
        }
        .sng-tab-btn.active .sng-tab-indicator { background: var(--primary); }

        /* Mobile form ergonomics: prevent iOS zoom + comfortable tap targets */
        @media (max-width: 1023px) {
            .page-content input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
            .page-content select,
            .page-content textarea,
            .sheet-overlay input,
            .sheet-overlay select,
            .sheet-overlay textarea {
                font-size: 16px;
            }
            /* Safe-area padding for fixed bottom bars on notched phones */
            .ld-mobile-contact,
            .ld-contact-bar[style*="fixed"],
            .ld-mobile-contact.ld-contact-bar {
                padding-bottom: calc(10px + env(safe-area-inset-bottom));
            }
            .ld-mobile-action-bar {
                padding-bottom: calc(8px + env(safe-area-inset-bottom));
            }
        }
        /* Sticky mobile form action bar (opt-in via .sng-form-actions) */
        .sng-form-actions {
            position: sticky;
            bottom: 0;
            z-index: 15;
            display: flex;
            gap: 8px;
            padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
            background: var(--bg-card);
            border-top: 1px solid var(--border);
            box-shadow: 0 -2px 12px rgba(0,0,0,.06);
        }
        @media (max-width: 767px) {
            .sng-form-actions {
                bottom: calc(56px + env(safe-area-inset-bottom, 0px));
                padding-bottom: 12px;
            }
        }
        .sng-form-actions .btn,
        .sng-form-actions button,
        .sng-form-actions a {
            min-height: 46px;
        }

        /* ============================================================
           UTILITY OVERRIDES
           ============================================================ */
        .tap-highlight { -webkit-tap-highlight-color: transparent; }
        .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
        .scrollbar-hide::-webkit-scrollbar { display: none; }

        /* Soft notice when new ads auto-inject into the feed (non-interactive) */
        .feed-new-posts-banner {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 8px;
            position: sticky;
            top: 76px;
            z-index: 25;
            margin: 0 auto 8px;
            padding: 8px 16px;
            max-width: 240px;
            border: none;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 600;
            color: #fff;
            background: var(--primary);
            box-shadow: 0 2px 8px rgba(198, 73, 73, 0.35);
            cursor: default;
            pointer-events: none;
            transition: opacity 0.2s;
        }
        @media (max-width: 1023px) {
            .feed-new-posts-banner { top: 52px; }
        }
        .safe-top { padding-top: env(safe-area-inset-top); }
        .safe-bottom { padding-bottom: env(safe-area-inset-bottom); }

        .sheet-overlay,
        .mp-sheet-overlay {
            position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 80;
        }
        .pull-indicator {
            position: fixed; top: -50px; left: 0; right: 0; height: 44px;
            display: flex; align-items: center; justify-content: center;
            transition: top 0.2s; z-index: 100; font-size: 13px; color: var(--primary);
            pointer-events: none;
        }
        .pull-indicator.active { top: 0; }

        /* Facebook-style feed column — tight card gaps (~8–10px) */
        .sng-feed-posts {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 4px 8px 16px;
        }
        @media (max-width: 767px) {
            .sng-feed-posts {
                padding: 0 0 12px !important;
                gap: 8px !important;
            }
        }
        @media (min-width: 1024px) {
            .sng-feed-posts { padding: 0; gap: 10px; }
        }

        /* Dismissible flash toast */
        .sng-flash-toast {
            padding: 8px 12px 0;
        }
        @media (min-width: 1024px) {
            .sng-flash-toast { padding: 0 0 8px; }
        }
        .sng-flash-toast-inner {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 10px;
            font-size: 13px;
            line-height: 1.4;
            box-shadow: var(--shadow-sm);
        }
        .sng-flash-toast-inner i { flex-shrink: 0; margin-top: 2px; }
        .sng-flash-toast-inner span { flex: 1; min-width: 0; }
        .sng-flash-close {
            flex-shrink: 0;
            font-size: 18px;
            line-height: 1;
            opacity: .55;
            cursor: pointer;
            color: inherit;
            padding: 0 2px;
        }
        .sng-flash-close:hover { opacity: 1; }
        .sng-flash-success .sng-flash-toast-inner {
            background: var(--color-success-bg);
            border: 1px solid #bbf7d0;
            color: var(--color-success-text);
        }
        .sng-flash-info .sng-flash-toast-inner {
            background: var(--color-warning-bg);
            border: 1px solid var(--color-warning-border);
            color: var(--color-warning-text);
        }
        .sng-flash-error .sng-flash-toast-inner {
            background: var(--color-danger-bg);
            border: 1px solid var(--color-danger-border);
            color: var(--color-danger-text);
        }
        .sng-admin-banner { background: var(--primary); }

        /* Tablet Facebook feed — edge cards (phones match ≤767 below) */
        @media (min-width: 768px) and (max-width: 1023px) {
            .sng-post-card {
                border-radius: 0;
                border-left: 0;
                border-right: 0;
                box-shadow: none;
                border-top: 0;
                width: 100%;
                margin-left: 0;
                margin-right: 0;
            }
            .sng-post-card:first-child { border-top: 1px solid var(--border); }
            .sng-feed-posts { padding: 0; gap: 6px; }
            .sng-post-media { border-radius: 0; }
            .wow-publisher-card,
            .wow-greeting-card,
            .wow-circle-actions {
                margin-left: 8px;
                margin-right: 8px;
            }
            .wow-stories-row { padding-left: 8px; padding-right: 8px; }
        }

        /* Flex utilities (Bootstrap-compatible) */
        .d-flex { display: flex; }
        .d-inline-block { display: inline-block; }
        .d-block { display: block; }
        .flex-column { flex-direction: column; }
        .flex-1 { flex: 1; min-width: 0; }
        .flex-shrink-0 { flex-shrink: 0; }
        .align-items-center { align-items: center; }
        .justify-content-between { justify-content: space-between; }
        .justify-content-around { justify-content: space-around; }
        .gap-1 { gap: 4px; }
        .gap-2 { gap: 8px; }
        .gap-3 { gap: 12px; }
        .gap-4 { gap: 16px; }
        .text-center { text-align: center; }
        .text-decoration-none { text-decoration: none; }
        .fw-bold { font-weight: 700; }
        .fw-semibold { font-weight: 600; }
        .fw-medium { font-weight: 500; }
        .m-0 { margin: 0; }
        .mt-2 { margin-top: 8px; }
        .mt-3 { margin-top: 12px; }
        .mb-2 { margin-bottom: 8px; }
        .mb-3 { margin-bottom: 12px; }
        .me-1 { margin-right: 4px; }
        .ms-auto { margin-left: auto; }
        .p-2 { padding: 8px; }
        .p-3 { padding: 12px; }
        .ps-3 { padding-left: 12px; }
        .pb-1 { padding-bottom: 4px; }
        .border-start { border-left: 1px solid var(--border); }
        .text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .min-w-0 { min-width: 0; }
        .overflow-auto { overflow: auto; }
        .shadow-sm { box-shadow: var(--shadow-sm); }
        .w-100 { width: 100%; }
        .cursor-pointer { cursor: pointer; }

        /* WoWonder Stories — match Yui vertical media rail (9/13 movie card) */
        .wow-stories-row { display: flex; gap: 12px; padding: 0 12px; }
        .wow-story-card {
            position: relative;
            width: calc((100% - 30px - 21px) / 2.4);
            min-width: 120px;
            max-width: 160px;
            aspect-ratio: 9 / 13;
            height: auto;
            border-radius: 15px;
            overflow: hidden; cursor: pointer; box-shadow: var(--shadow-card); flex-shrink: 0;
        }
        .wow-story-card img, .wow-story-placeholder { width: 100%; height: 100%; object-fit: cover; }
        .wow-story-overlay {
            position: absolute; bottom: 0; left: 0; right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,.8)); padding: 8px; text-align: center; color: #fff;
        }
        .wow-story-overlay-light { background: linear-gradient(transparent, rgba(0,0,0,.6)); text-align: left; }
        .wow-story-overlay p { margin: 0; font-size: 11px; font-weight: 600; }
        .wow-story-add-icon {
            width: 24px; height: 24px; background: var(--bg-card); color: var(--primary); border-radius: 50%;
            display: flex; align-items: center; justify-content: center; margin: 0 auto 4px; font-size: 12px;
        }

        /* Reels / stories rail — Yui movie-slider anatomy (9/13, ~2.4 across, 15px gap/radius) */
        .sng-reels-section { width: 100%; max-width: 100%; overflow: hidden; }
        .sng-reels-row {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            align-items: flex-start !important;
            gap: 12px;
            width: 100%;
            max-width: 100%;
            padding: 0 15px 2px;
            overflow-x: auto !important;
            overflow-y: hidden !important;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x proximity;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .sng-reels-row::-webkit-scrollbar { display: none; height: 0; }
        .sng-reel-card {
            /* Yui slides-per-view 2.4 + space-between 15 + offsets 15 → ~141×204 @390px */
            position: relative;
            width: calc((100% - 30px - 21px) / 2.4);
            min-width: 120px;
            max-width: 160px;
            aspect-ratio: 9 / 13;
            height: auto;
            flex: 0 0 auto !important;
            cursor: pointer;
            scroll-snap-align: start;
        }
        .sng-reel-card-inner {
            position: relative; width: 100%; height: 100%; border-radius: 15px; overflow: hidden;
            box-shadow: var(--shadow-card); background: var(--bg-card);
        }
        .sng-reel-bg { width: 100%; height: 100%; object-fit: cover; display: block; }
        .sng-reel-bg-gradient { background: linear-gradient(135deg, var(--primary), #764ba2); width: 100%; height: 100%; }
        .sng-reel-ring {
            position: absolute; inset: 0; border-radius: 15px;
            border: 2.5px solid var(--border); pointer-events: none;
        }
        .sng-reel-ring-active {
            border: 2.5px solid var(--primary);
            box-shadow: 0 0 0 1px rgba(198, 73, 73, 0.25);
        }
        .sng-reel-ring-own {
            border: 2.5px solid #10b981;
            box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25);
        }
        .sng-reel-ring-own {
            border: 2.5px solid #f59e0b;
            box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25);
        }
        .sng-reel-ring-seen {
            border: 2.5px solid rgba(148, 163, 184, 0.85);
            box-shadow: none;
            opacity: .9;
        }
        .sng-reel-avatar {
            position: absolute; top: 8px; left: 8px; width: 32px; height: 32px;
            border-radius: 50%; border: 2px solid #fff; overflow: hidden;
            background: var(--primary); color: #fff; display: flex; align-items: center;
            justify-content: center; font-size: 12px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.2);
        }
        .sng-reel-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .sng-reel-add-badge {
            position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
            width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff;
            display: flex; align-items: center; justify-content: center; font-size: 12px;
            border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25);
        }
        .sng-reel-meta {
            position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 6px;
            background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; text-align: center;
        }
        .sng-reel-name { display: block; font-size: 11px; font-weight: 700; line-height: 1.2; }
        .sng-reel-count { display: block; font-size: 10px; opacity: .9; margin-top: 2px; }
        .sng-reel-stack-badge {
            position: absolute; top: 8px; right: 8px; min-width: 20px; height: 20px;
            padding: 0 5px; border-radius: 10px; background: var(--primary); color: #fff;
            font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
            border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2);
        }
        .sng-reel-card-view-all .sng-reel-card-inner {
            background: var(--bg-card); border: 2px dashed var(--border);
        }
        .sng-reel-bg-dashed {
            background: repeating-linear-gradient(
                45deg,
                var(--bg-card),
                var(--bg-card) 6px,
                var(--border) 6px,
                var(--border) 8px
            );
            width: 100%; height: 100%;
        }
        .sng-reel-ring-dashed {
            border: 2px dashed var(--primary); opacity: .5;
        }
        .sng-reel-view-all-icon {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%, calc(-50% - 12px));
            width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff;
            display: flex; align-items: center; justify-content: center; font-size: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,.2);
        }
        .sng-reel-upload-status {
            margin-top: 6px; font-size: 12px; color: var(--text-muted); padding: 0 4px;
        }

        /* Mobile-only (≤767): Facebook-like stories/reels rail.
           ~104×185 (9:16), 8px gap, 14px edge inset, 14px radius. Desktop ≥768 unchanged. */
        @media (max-width: 767px) {
            .sng-reels-section { margin-bottom: 12px !important; }
            .sng-reels-row {
                gap: 8px !important;
                padding: 0 14px 2px !important;
            }
            .sng-reel-card {
                width: 104px !important;
                min-width: 104px !important;
                max-width: 104px !important;
                height: auto !important;
                aspect-ratio: 9 / 16 !important;
            }
            .sng-reel-card-inner {
                border-radius: 14px !important;
            }
            .sng-reel-ring {
                border-radius: 14px !important;
                border-width: 2px;
            }
            .sng-reel-ring-active,
            .sng-reel-ring-own,
            .sng-reel-ring-seen {
                border-width: 2px;
            }
            .sng-reel-avatar {
                top: auto; bottom: 28px; left: 6px;
                width: 28px; height: 28px;
                font-size: 11px;
                border-width: 2px;
            }
            .sng-reel-add-badge {
                bottom: 36px;
                width: 24px; height: 24px;
                font-size: 11px;
                border-width: 2px;
            }
            .sng-reel-meta {
                padding: 6px 4px 8px;
                text-align: left;
            }
            .sng-reel-name {
                font-size: 10px;
                font-weight: 600;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .sng-reel-count {
                font-size: 9px;
                margin-top: 1px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .sng-reel-stack-badge {
                top: 6px; right: 6px;
                min-width: 16px; height: 16px;
                padding: 0 4px;
                font-size: 9px;
                border-width: 1.5px;
                border-radius: 8px;
            }
            .sng-reel-view-all-icon {
                width: 32px; height: 32px;
                font-size: 14px;
                transform: translate(-50%, calc(-50% - 10px));
            }
            .sng-reel-upload-status {
                margin-top: 6px; font-size: 11px;
            }
            .wow-stories-row {
                gap: 8px !important;
                padding: 0 14px !important;
            }
            .wow-story-card {
                width: 104px !important;
                min-width: 104px !important;
                max-width: 104px !important;
                height: auto !important;
                aspect-ratio: 9 / 16 !important;
                border-radius: 14px !important;
            }

            /* Lightly compact category rail — neutral tiles in mobile-app-visual.css */
            .sng-cat-rail-wrap { padding: 6px 0 4px; }
            .sng-cat-item { width: 56px; gap: 4px; }
            .sng-cat-ico {
                width: 44px; height: 44px;
                border-radius: 12px;
                font-size: 18px;
                border: 0;
                background: #f0f2f5;
                color: var(--text-main);
            }
            .sng-cat-label {
                font-size: 10px;
                width: 54px;
                max-width: 54px;
            }
        }

        /* ============================================================
           YUI MOBILE DENSITY (≤767px only) — visible app-like layout
           Inset cards · 15px gutters · 50px chrome · 15px body · Dubuz red
           Desktop ≥768 unchanged. Reels stay 64×88. Sticky listing CTAs kept.
           ============================================================ */
        @media (max-width: 767px) {
            :root {
                --mobile-topbar-h: 50px;
                --mobile-tabbar-h: 50px;
                --mobile-page-pad-x: 15px;
                --mobile-btn-h: 44px;
                --mobile-list-thumb: 84px;
                --mobile-body: 15px;
                --mobile-card-radius: 15px;
                --mobile-card-shadow: 0 2px 10px rgba(85, 95, 105, 0.13);
                --radius-card: 15px;
                --radius-btn: 10px;
            }

            html { -webkit-text-size-adjust: 100%; }
            body {
                font-size: var(--mobile-body);
                -webkit-font-smoothing: antialiased;
            }
            .sng-feed-posts p,
            .ld-desc,
            .ld-card p,
            .page-content p,
            .dash-content p {
                font-size: var(--mobile-body);
                line-height: 1.8;
            }

            /* —— Chrome: 50px topbar / tabbar, 15px gutters —— */
            .sng-mtopbar-inner {
                height: var(--mobile-topbar-h) !important;
                padding: 0 var(--mobile-page-pad-x) !important;
                gap: 8px;
            }
            .sng-mtopbar-spacer { height: var(--mobile-topbar-h) !important; }
            .sng-mtopbar-logo img { height: 24px !important; }
            .sng-mtopbar-search {
                height: 34px !important;
                padding: 0 12px !important;
                font-size: 13px !important;
                border-radius: 10px !important;
            }
            .sng-mtopbar-btn {
                width: 40px !important;
                height: 40px !important;
                font-size: 18px !important;
            }
            .sng-mtopbar-avatar { width: 28px !important; height: 28px !important; }
            .sng-cat-rail-wrap {
                top: calc(env(safe-area-inset-top, 0px) + var(--mobile-topbar-h));
                padding: 8px 0 6px !important;
            }
            .sng-cat-rail { gap: 8px; padding: 0 var(--mobile-page-pad-x); }
            .feed-new-posts-banner { top: var(--mobile-topbar-h); }

            .sng-tab-bar > .grid {
                height: var(--mobile-tabbar-h) !important;
                max-height: var(--mobile-tabbar-h);
            }
            .sng-tab-btn span { font-size: 10px !important; font-weight: 500; }
            /* Match mobile-app-visual.css (.sng-tab-btn i = 22px) so icons don't jump vs Messages/account */
            .sng-tab-btn i { font-size: 22px !important; }

            .sng-feed-container > main.min-h-screen {
                padding-top: calc(var(--mobile-topbar-h, 52px) + env(safe-area-inset-top, 0px));
                padding-bottom: calc(var(--mobile-nav-h, 88px) + 20px + env(safe-area-inset-bottom, 0px));
            }
            body.sng-listing-immersive .sng-feed-container > main.min-h-screen {
                padding-top: 0;
            }
            .sng-form-actions {
                bottom: calc(var(--mobile-nav-h, 88px) + env(safe-area-inset-bottom, 0px));
                padding: 8px var(--mobile-page-pad-x);
            }
            .sng-form-actions .btn,
            .sng-form-actions button,
            .sng-form-actions a {
                min-height: var(--mobile-btn-h) !important;
                font-size: 14px !important;
                border-radius: 10px !important;
            }

            /* Shared form / button touch targets (~44px) */
            .page-content input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
            .page-content select,
            .sng-feed-container input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
            .sng-feed-container select,
            #page-marketplace input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
            #page-marketplace select {
                min-height: var(--mobile-btn-h) !important;
                font-size: 15px !important;
                border-radius: 10px !important;
            }
            .page-content .btn,
            .page-content button.btn,
            .sng-feed-container .btn,
            #page-marketplace .btn,
            .sng-btn-primary,
            .sng-btn {
                min-height: var(--mobile-btn-h) !important;
                font-size: 14px !important;
                border-radius: 10px !important;
            }

            /* —— Feed posts: Facebook full-bleed (edge-to-edge, narrow gaps) —— */
            .sng-feed-posts {
                padding: 0 0 12px !important;
                gap: 6px !important;
                background: var(--bg-page);
            }
            .sng-post-card {
                width: 100% !important;
                max-width: 100% !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
                margin-bottom: 0 !important;
                border-radius: 0 !important;
                border: none !important;
                border-bottom: 1px solid var(--border) !important;
                box-shadow: none !important;
                overflow: hidden;
                background: var(--bg-card);
            }
            .sng-post-card:first-child { border-top: 1px solid var(--border) !important; }
            .sng-post-header {
                padding: 8px 12px 8px !important;
                gap: 8px !important;
            }
            .sng-post-avatar img,
            .sng-post-avatar-fallback {
                width: 38px !important;
                height: 38px !important;
                font-size: 15px !important;
            }
            .sng-post-seller-name { font-size: 15px !important; font-weight: 700 !important; }
            .sng-post-time { font-size: 12px !important; }
            .sng-post-media-link {
                display: block !important;
                margin: 0 !important;
                padding: 0 !important;
            }
            .sng-post-media {
                height: auto !important;
                aspect-ratio: 5 / 4;
                max-height: 269px;
                border-radius: 0 !important;
                margin: 0 !important;
                width: 100% !important;
            }
            .sng-post-media img,
            .sng-post-media video {
                width: 100% !important;
                height: 100% !important;
                object-fit: cover !important;
                border-radius: 0 !important;
                display: block !important;
            }
            .sng-post-price {
                padding: 8px 12px 0 !important;
                font-size: 19px !important;
                font-weight: 800 !important;
            }
            .sng-post-title {
                padding: 4px 12px 0 !important;
                font-size: 16px !important;
                font-weight: 600 !important;
                line-height: 1.35 !important;
            }
            .sng-post-desc {
                margin: 4px 0 0 !important;
                padding: 0 12px 8px !important;
                font-size: var(--mobile-body) !important;
                line-height: 1.55 !important;
                color: var(--text-muted) !important;
                -webkit-line-clamp: 3;
            }
            .sng-post-stats {
                padding: 6px 12px !important;
                font-size: 11px !important;
            }
            .sng-post-actions {
                padding: 4px 4px 6px !important;
                font-size: 12px !important;
                gap: 2px;
            }
            .sng-post-action { gap: 5px; padding: 6px 8px; }
            .sng-post-action i { font-size: 14px; width: 14px; }

            /* Quick-post / publisher / greeting — inset cards */
            .wow-publisher-card,
            .wow-greeting-card,
            .wow-circle-actions {
                margin-left: var(--mobile-page-pad-x) !important;
                margin-right: var(--mobile-page-pad-x) !important;
                border-radius: var(--mobile-card-radius) !important;
                box-shadow: var(--mobile-card-shadow) !important;
            }
            .wow-publisher-card { padding: 16px !important; }
            .wow-publisher-input {
                min-height: 40px !important;
                font-size: 14px !important;
                border-radius: 12px !important;
            }
            .wow-btn-create-post {
                min-height: 36px !important;
                padding: 8px 14px !important;
                font-size: 13px !important;
                border-radius: 10px !important;
            }
            .wow-stories-row,
            .sng-reels-section {
                padding-left: 0 !important;
                padding-right: 0 !important;
            }
            /* Facebook-like stories rail — 104×185 @ 9:16 (≤767 only) */
            .sng-reel-card {
                width: 104px !important;
                min-width: 104px !important;
                max-width: 104px !important;
                height: auto !important;
                aspect-ratio: 9 / 16 !important;
            }
            .sng-reel-card-inner,
            .sng-reel-ring {
                border-radius: 14px !important;
            }
            .sng-reels-row {
                gap: 8px !important;
                padding: 0 14px 2px !important;
            }
            .wow-story-card {
                width: 104px !important;
                min-width: 104px !important;
                max-width: 104px !important;
                height: auto !important;
                aspect-ratio: 9 / 16 !important;
                border-radius: 14px !important;
            }

            /* Section titles (Yui ~18px) — weight stays 700 like desktop (no drop) */
            .sng-section-title,
            .wow-widget-title,
            .ld-section-title,
            .ld-features-title,
            h2.sng-section-title,
            .mp-section-title {
                font-size: 18px !important;
                font-weight: 700 !important;
                color: var(--text-main) !important;
            }
            .ld-features-title { font-weight: 600 !important; }

            /* —— Marketplace: 15px pad, soft cards, Yui list rows —— */
            .listings-grid {
                gap: 8px !important;
                padding: 0 !important;
            }
            #page-marketplace .px-3,
            #page-marketplace .px-4,
            #page-marketplace .p-3,
            #page-marketplace .px-2 {
                padding-left: var(--mobile-page-pad-x) !important;
                padding-right: var(--mobile-page-pad-x) !important;
            }
            .mp-mobile-toolbar {
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
                padding: 8px 10px 10px !important;
            }
            .mp-filters-sticky {
                width: 100% !important;
                max-width: 100vw !important;
                left: 0 !important;
                right: 0 !important;
            }
            .mp-card {
                border-radius: var(--mobile-card-radius) !important;
                box-shadow: var(--mobile-card-shadow) !important;
                border: 1px solid var(--border) !important;
                overflow: hidden;
            }
            .mp-card .p-2 {
                padding: 8px 12px !important;
            }
            .mp-card .mp-card-img,
            .mp-card > a:first-child,
            .mp-card .aspect-square {
                margin: 0 !important;
                padding: 0 !important;
                border-radius: 0 !important;
            }
            .mp-card .mp-card-img img,
            .mp-card > a > img {
                display: block !important;
                border-radius: 0 !important;
            }
            .mp-card .p-2 > p.fw-bold,
            .mp-card .fw-bold {
                font-size: 14px !important;
                font-weight: 600 !important;
                line-height: 1.35 !important;
            }
            .mp-card .text-muted,
            .mp-card .mp-card-meta {
                font-size: 12px !important;
            }
            /* Yui post-horizontal list rows */
            .mp-list-row {
                display: flex !important;
                align-items: stretch !important;
                padding: 12px !important;
                border-radius: var(--mobile-card-radius) !important;
                gap: 12px !important;
                box-shadow: var(--mobile-card-shadow) !important;
                border: 1px solid var(--border) !important;
                background: var(--bg-card) !important;
                margin-bottom: 10px !important;
            }
            .mp-list-row .mp-list-thumb {
                width: var(--mobile-list-thumb) !important;
                height: var(--mobile-list-thumb) !important;
                min-width: var(--mobile-list-thumb) !important;
                max-width: var(--mobile-list-thumb) !important;
                border-radius: 15px !important;
                overflow: hidden !important;
                flex-shrink: 0 !important;
            }
            .mp-list-row .mp-list-thumb img {
                width: 100% !important;
                height: 100% !important;
                object-fit: cover !important;
                border-radius: 15px !important;
            }
            .mp-list-row .mp-list-price {
                font-size: 15px !important;
                font-weight: 800 !important;
                color: var(--primary) !important;
            }
            .mp-list-row .mp-list-title {
                font-size: 14px !important;
                font-weight: 500 !important;
                line-height: 22px !important;
                color: #4b5563 !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }
            .mp-list-row .mp-list-meta,
            .mp-list-row .text-muted {
                font-size: 13px !important;
            }

            /* —— Listing detail — Single-style density —— */
            body.sng-listing-immersive .ld-topbar.sng-hide-desktop {
                min-height: var(--mobile-topbar-h);
                padding: 4px 8px;
                padding-top: max(4px, env(safe-area-inset-top, 0px));
            }
            .ld-card {
                margin: 0 0 6px !important;
                padding: 16px 12px !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                border: none !important;
                border-bottom: 1px solid var(--border) !important;
            }
            .ld-gallery-main {
                border-radius: 0 !important;
                overflow: hidden;
                max-height: 340px;
            }
            .ld-gallery-thumbs { padding: 8px 12px; gap: 8px; }
            .ld-gallery-thumb { width: 60px; height: 48px; border-radius: 8px; }
            .ld-price { font-size: 26px !important; font-weight: 800 !important; color: var(--primary) !important; }
            .ld-title,
            .ld-page.detail-immersive .detail-subsite .classifi-title,
            .ld-page.detail-immersive .classifi-content > .classifi-title {
                font-size: var(--font-h1-mobile); /* 24px — h1 mobile scale */
                font-weight: var(--weight-bold); /* 700 */
                margin-top: 6px !important;
                margin-bottom: 8px !important;
                line-height: 1.25 !important;
                letter-spacing: -0.02em;
                color: var(--text-main) !important;
                white-space: normal !important;
                overflow: visible !important;
                max-height: none !important;
            }
            .ld-page.detail-immersive .detail-subsite .classifi-price {
                font-size: 26px !important;
                font-weight: 800 !important;
                color: var(--primary) !important;
            }
            .ld-page.detail-immersive .detail-subsite .classifi-location,
            .ld-page.detail-immersive .detail-subsite .classifi-location i {
                font-size: 13px !important;
                color: var(--text-tertiary) !important;
            }
            .ld-page.detail-immersive .detail-subsite .li-features span {
                font-size: 13px !important;
                color: var(--text-muted) !important;
            }
            .ld-page.detail-immersive .detail-subsite .li-features span {
                font-size: 12px !important;
            }
            .ld-meta { font-size: 14px !important; color: var(--text-muted) !important; }
            .ld-desc {
                font-size: var(--mobile-body) !important;
                line-height: 1.8 !important;
                color: var(--text-main) !important;
            }
            .ld-section-title { font-size: 18px !important; margin-bottom: 12px !important; }
            .ld-key-item { font-size: 15px !important; padding: 12px 0 !important; }
            .ld-condition-badge {
                padding: 8px 12px !important;
                border-radius: 8px !important;
                font-size: 13px !important;
                font-weight: 500;
            }
            .ld-comment-avatar,
            .ld-comment-avatar img,
            .ld-comment-avatar > div {
                width: 40px !important;
                height: 40px !important;
            }
            .ld-seller-mobile { padding: 16px !important; }
            .ld-seller-mobile .ld-seller-avatar {
                width: 55px !important;
                height: 55px !important;
            }
            .ld-seller-mobile .ld-seller-name { font-size: 16px !important; }
            /* Similar listings strip — keep visible on mobile */
            .ld-similar-bottom {
                display: block !important;
                margin: 8px 0 88px;
                padding: 0 0 8px;
            }
            .ld-similar-empty-mobile { display: none !important; }

            /* Sticky Call/WhatsApp bar — keep fixed; only densify pad */
            .ld-mobile-contact.ld-contact-bar,
            .ld-contact-bar[style*="fixed"] {
                padding-left: var(--mobile-page-pad-x);
                padding-right: var(--mobile-page-pad-x);
            }
            .ld-mobile-contact.ld-contact-bar a,
            .ld-mobile-contact.ld-contact-bar button,
            .ld-contact-bar a,
            .ld-contact-bar button {
                min-height: var(--mobile-btn-h) !important;
                border-radius: 10px !important;
                font-size: 14px !important;
            }
        }

        /* Compact mobile/tablet seller strip (hidden on desktop via sng-hide-desktop) */
        .ld-seller-mobile { padding: 12px 15px; }
        .ld-seller-mobile-inner {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: inherit;
        }
        .ld-seller-mobile .ld-seller-avatar {
            width: 55px; height: 55px; margin: 0; flex-shrink: 0;
        }
        .ld-seller-mobile .ld-seller-name {
            text-align: left; font-size: 15px; margin: 0 0 2px; font-weight: 700;
        }
        .ld-seller-mobile .ld-seller-type {
            text-align: left; margin: 0; font-size: 12px;
        }
        .ld-seller-mobile-meta { flex: 1; min-width: 0; }
        .ld-seller-mobile-chevron {
            color: var(--text-muted); font-size: 12px; flex-shrink: 0;
        }

        /* Reels viewer (base; vertical FB-style overrides live in reels-viewer partial) */
        .sng-reels-viewer {
            position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
        }
        .sng-reels-viewer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.92); }
        .sng-reels-viewer-panel {
            position: relative; z-index: 1; width: 100%; max-width: 420px; height: 100%; max-height: 100vh;
            display: flex; flex-direction: column; padding: 12px;
        }
        .sng-reels-viewer.sng-reels-viewer-vertical .sng-reels-viewer-panel {
            max-width: 100%; max-height: 100dvh; padding: 0; height: 100%;
        }
        .sng-reels-viewer-close {
            position: absolute; top: 16px; right: 16px; z-index: 5; width: 36px; height: 36px;
            border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff;
            display: flex; align-items: center; justify-content: center; cursor: pointer;
        }
        .sng-reels-viewer-header {
            display: flex; align-items: center; gap: 8px; padding: 8px 44px 8px 4px; color: #fff; z-index: 2;
        }
        .sng-reels-viewer-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
        .sng-reels-viewer-name { font-size: 14px; font-weight: 700; }
        .sng-reels-viewer-sub { font-size: 11px; opacity: .75; }
        .sng-reels-progress { display: flex; gap: 4px; padding: 0 4px 8px; z-index: 2; }
        .sng-reels-progress-bar {
            flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden;
        }
        .sng-reels-progress-bar.done { background: #fff; }
        .sng-reels-progress-bar.active { background: rgba(255,255,255,.3); }
        .sng-reels-progress-bar.active::after {
            content: ''; display: block; height: 100%; width: 50%; background: #fff;
            animation: sngReelProgress 5s linear forwards;
        }
        @keyframes sngReelProgress { from { width: 0; } to { width: 100%; } }
        .sng-reels-viewer-body {
            flex: 1; display: flex; align-items: center; position: relative; min-height: 0;
        }
        .sng-reels-video-wrap {
            flex: 1; height: 100%; display: flex; align-items: center; justify-content: center;
            position: relative; border-radius: 12px; overflow: hidden; background: #000;
        }
        .sng-reels-video { max-width: 100%; max-height: 100%; width: 100%; object-fit: contain; }
        .sng-reels-caption {
            position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 12px;
            background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font-size: 13px;
        }
        .sng-reels-loading {
            position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
            color: #fff; font-size: 24px;
        }
        .sng-reels-nav {
            position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
            width: 36px; height: 36px; border-radius: 50%; border: 0;
            background: rgba(255,255,255,.15); color: #fff; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
        }
        .sng-reels-nav-prev { left: -4px; }
        .sng-reels-nav-next { right: -4px; }
        @media (min-width: 1024px) {
            .sng-reels-viewer-panel { max-height: 90vh; border-radius: 16px; overflow: hidden; }
            .sng-reels-viewer.sng-reels-viewer-vertical .sng-reels-viewer-panel {
                max-height: 100dvh; border-radius: 0;
            }
        }


        /* WoWonder Publisher */
        .wow-publisher-card {
            background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); padding: 16px;
        }
        .wow-publisher-row { display: flex; align-items: center; gap: 12px; }
        .wow-publisher-row img, .wow-publisher-avatar-ph {
            width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
        }
        .wow-publisher-avatar-ph {
            background: var(--bg-page); display: flex; align-items: center; justify-content: center; color: var(--text-muted);
        }
        .wow-publisher-input {
            flex: 1; background: var(--bg-page) !important; border: 0; border-radius: 20px;
            padding: 8px 18px; font-size: 13px; outline: none; color: var(--text-main); cursor: pointer;
        }
        .wow-btn-create-post {
            background: var(--primary); color: var(--color-on-primary); font-size: 12px; font-weight: 700;
            border-radius: 8px; padding: 8px 16px; border: 0; cursor: pointer; white-space: nowrap;
        }
        .wow-btn-create-post:hover { background: var(--primary-hover); }
        .wow-divider { border: 0; border-top: 1px solid var(--border); opacity: .5; margin: 12px 0; }
        .wow-publisher-actions { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
        .wow-publisher-action { display: flex; align-items: center; gap: 6px; cursor: pointer; }
        .wow-publisher-action:hover { color: var(--primary); }

        /* WoWonder Greeting */
        .wow-greeting-card {
            background: linear-gradient(135deg, #fff3f3 0%, #fff8f8 100%);
            border: 1px solid rgba(198,73,73,.15); border-radius: 12px; padding: 12px 18px; position: relative;
        }
        html.night-mode .wow-greeting-card {
            background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-page) 100%); border-color: rgba(198,73,73,.3);
        }
        .wow-greeting-close { position: absolute; top: 8px; right: 12px; cursor: pointer; opacity: .5; font-size: 18px; }
        .wow-greeting-title { margin: 0; font-size: 14px; font-weight: 700; color: var(--text-main); }
        .wow-greeting-text { margin: 4px 0 0; font-size: 12px; color: var(--text-muted); }

        /* WoWonder Circle category icons */
        .wow-circle-actions {
            background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border);
            padding: 8px 16px; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 8px;
        }
        .wow-circle-btn {
            width: 32px; height: 32px; border-radius: 50%; background: var(--bg-page);
            display: flex; align-items: center; justify-content: center; color: var(--text-muted);
            cursor: pointer; transition: .2s; font-size: 14px;
        }
        .wow-circle-btn:hover { background: var(--primary); color: var(--color-on-primary); }

        /* WoWonder compact profile (right) */
        .wow-profile-cover { height: 70px; width: 100%; }
        .wow-profile-avatar-wrap { position: relative; margin-top: -28px; text-align: center; }
        .wow-profile-avatar-wrap img {
            width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--bg-card); object-fit: cover;
        }
        .wow-profile-guest-avatar {
            width: 56px; height: 56px; border-radius: 50%; margin: 0 auto;
            background: var(--primary-light); color: var(--primary);
            display: flex; align-items: center; justify-content: center; font-size: 22px;
        }
        .wow-profile-body { padding: 0 12px 12px; }
        .wow-profile-name { margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.2; color: var(--text-main); }
        .wow-profile-handle { color: var(--text-muted); font-size: 11.5px; font-weight: 400; }
        .wow-profile-stats {
            display: flex; justify-content: center; gap: 12px; font-size: 11px; color: var(--text-muted);
            border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px;
        }
        .wow-profile-stats strong { display: block; font-size: 13px; color: var(--text-main); }
        .wow-profile-stats span { font-size: 10px; }

        /* WoWonder Trending */
        .wow-widget-title {
            margin: 0 0 12px; font-size: 11px; font-weight: 800;
            color: var(--text-light, #9CA3AF);
            text-transform: uppercase; letter-spacing: .06em;
            display: flex; align-items: center; gap: 6px;
            line-height: 1;
        }

        /* WoWonder Ads */
        .wow-ads-placeholder { padding: 16px; text-align: center; background: var(--bg-page); }
        .wow-ads-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin: 0; }
        .wow-ads-hint { font-size: 10px; color: var(--text-muted); margin: 4px 0 0; opacity: .8; }
        .wow-ads-inner { min-height: 90px; }

        /* Right rail — Top Stores (mockup-aligned) */
        .sng-widget-seeall {
            font-size: 12.5px; font-weight: 600; color: var(--primary); line-height: 1;
        }
        .sng-widget-seeall:hover { text-decoration: underline; }
        .sng-store-row {
            display: flex; align-items: center; justify-content: space-between; gap: 8px;
            padding: 7px 0; border-bottom: 1px solid var(--border);
        }
        .sng-store-row:last-child { border-bottom: 0; padding-bottom: 2px; }
        .sng-store-info {
            display: flex; align-items: center; gap: 9px; min-width: 0; color: inherit;
        }
        .sng-store-avatar {
            width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
            background: var(--primary-light); color: var(--primary);
            display: flex; align-items: center; justify-content: center;
            font-size: 12px; font-weight: 800; text-transform: uppercase;
            object-fit: cover;
        }
        .sng-store-name {
            display: block; font-size: 12px; font-weight: 700; color: var(--text-main);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
        }
        .sng-store-cat {
            display: block; font-size: 10px; font-weight: 600; color: var(--text-muted);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .sng-follow-btn {
            flex-shrink: 0; cursor: pointer;
            padding: 4px 10px; border: 1px solid var(--border); border-radius: 9999px;
            background: var(--bg); color: var(--text-main);
            font-size: 12px; font-weight: 600; line-height: 1;
            transition: background .15s, color .15s, border-color .15s;
        }
        .sng-follow-btn:hover { background: #E5E7EB; border-color: #D1D5DB; }
        .sng-follow-btn.following {
            background: var(--primary-soft, var(--primary-light)); color: var(--primary);
            border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
        }

        /* Right rail — Trending hashtags (mockup-aligned) */
        .sng-trend-row {
            display: block; padding: 7px 8px; border-radius: 10px;
            transition: background .15s;
        }
        .sng-trend-row:hover { background: var(--bg-page); }
        .sng-trend-label { display: block; font-size: 10px; font-weight: 600; color: var(--text-muted); }
        .sng-trend-hashtag { display: block; font-size: 12px; font-weight: 800; color: var(--text-main); }
        .sng-trend-count { display: block; font-size: 10px; font-weight: 600; color: var(--text-muted); }

        /* Right rail — footer meta links */
        .sng-footer-meta {
            display: flex; flex-wrap: wrap; align-items: center;
            gap: 4px; padding: 4px 2px;
            font-size: 11px; font-weight: 400; line-height: 1.6; color: var(--text-light, #9CA3AF);
        }
        .sng-footer-meta a { color: var(--text-light, #9CA3AF); }
        .sng-footer-meta a:hover { text-decoration: underline; color: var(--text-main); }
        .sng-footer-dot { opacity: .6; }

        /* WoWonder Floating Chat */
        .wow-floating-chat { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }
        .wow-chat-fab {
            position: relative; width: 56px; height: 56px; padding: 0; border: 0;
            border-radius: 50%; background: var(--bg-card); box-shadow: var(--shadow-popup);
            cursor: pointer; display: flex; align-items: center; justify-content: center;
            border: 2px solid var(--border); transition: transform 0.2s, box-shadow 0.2s;
        }
        .wow-chat-fab:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
        .wow-chat-fab img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
        .wow-chat-fab-badge {
            position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
            border-radius: 10px; background: var(--primary); color: var(--color-on-primary);
            font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
            border: 2px solid var(--bg-card); pointer-events: none;
        }
        .wow-chat-popup {
            position: fixed; bottom: 0; right: 80px; width: 290px;
            background: var(--bg-card); border: 1px solid var(--border);
            border-radius: 12px 12px 0 0; box-shadow: var(--shadow-popup); z-index: 9999;
        }
        .wow-chat-close-btn {
            border: 0; background: transparent; padding: 0; color: inherit; cursor: pointer;
            font-size: 12px; line-height: 1;
        }
        .wow-chat-received { background: var(--bg-page); color: var(--text-main); margin-right: auto; border: 1px solid var(--border); }
        .wow-chat-header {
            padding: 8px 12px; border-bottom: 1px solid var(--border);
            display: flex; align-items: center; justify-content: space-between; border-radius: 12px 12px 0 0;
        }
        .wow-chat-user { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
        .wow-chat-user img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
        .wow-chat-header-actions { display: flex; gap: 8px; color: var(--text-muted); font-size: 12px; }
        .wow-chat-body { height: 200px; overflow-y: auto; padding: 12px; background: var(--bg-page); }
        .wow-chat-bubble { max-width: 80%; padding: 8px 12px; border-radius: 14px; font-size: 12px; margin-bottom: 8px; }
        .wow-chat-sent { background: var(--primary); color: var(--color-on-primary); margin-left: auto; }
        .wow-chat-footer {
            border-top: 1px solid var(--border); padding: 8px 12px;
            display: flex; align-items: center; gap: 8px;
        }
        .wow-chat-footer input {
            border: 0; outline: none; font-size: 12px; flex: 1; background: transparent; color: var(--text-main); cursor: pointer;
        }
        .wow-chat-footer-icons { display: flex; gap: 8px; color: var(--text-muted); font-size: 14px; }

        /* Sidebar icon colors (WoWonder style) */
        .icon-c-primary { color: var(--color-info) !important; }
        .icon-c-danger { color: var(--color-danger) !important; }
        .icon-c-warning { color: var(--color-warning) !important; }
        .icon-c-success { color: var(--color-success) !important; }
        .icon-c-info { color: var(--color-info-accent) !important; }
        .icon-c-secondary { color: var(--color-secondary) !important; }

        .sng-panel-btn {
            display: flex; align-items: center; justify-content: center; gap: 8px;
            width: 100%; padding: 8px 12px; margin-top: 8px; border-radius: 8px;
            font-size: 13px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer;
        }
        .sng-panel-btn-admin { background: var(--primary); color: var(--color-on-primary); }
        .sng-panel-btn-user { background: var(--bg-page); color: var(--text-main); border: 1px solid var(--border); }

        .sng-right-avatars { display: flex; flex-direction: column; gap: 8px; align-items: center; margin-top: 8px; }
        .sng-right-avatar {
            width: 32px; height: 32px; border-radius: 50%; object-fit: cover; cursor: pointer;
            border: 2px solid var(--border);
        }
        .menu-hover-item:hover { background-color: var(--bg-page) !important; color: var(--primary) !important; border-radius: 0 !important; }

        /* ============================================================
           DOCKED CHAT SYSTEM — bottom bar + contacts + windows + tabs
           Theme: Dubuz primary (not Facebook blue)
           ============================================================ */
        .chat-dock {
            position: fixed;
            bottom: 0;
            right: 20px;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            pointer-events: none;
            z-index: 9999;
            font-family: var(--font-family-primary);
            font-size: 13px;
        }
        .chat-dock > * { pointer-events: auto; }

        .contacts-widget {
            width: 280px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-bottom: none;
            border-radius: 8px 8px 0 0;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
            display: flex;
            flex-direction: column;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: max-height 0.25s ease, opacity 0.2s ease;
            margin-bottom: 0;
        }
        .contacts-widget.open {
            opacity: 1;
            max-height: 440px;
        }
        .contacts-widget .widget-header {
            padding: 12px 18px;
            background: var(--bg-page);
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
            font-size: 15px;
            color: var(--text-main);
            flex-shrink: 0;
            user-select: none;
            gap: 8px;
        }
        .contacts-widget .widget-header i { color: var(--primary); margin-right: 4px; }
        .contacts-widget .close-widget-btn {
            background: none;
            border: none;
            font-size: 18px;
            color: var(--text-muted);
            cursor: pointer;
            line-height: 1;
            padding: 0 2px;
        }
        .contacts-widget .close-widget-btn:hover { color: var(--text-main); }
        .contacts-widget .search-box {
            padding: 8px 12px;
            border-bottom: 1px solid var(--border);
            flex-shrink: 0;
        }
        .contacts-widget .search-box input {
            width: 100%;
            padding: 8px 14px;
            border-radius: 20px;
            border: 1px solid var(--border);
            font-size: 13px;
            outline: none;
            background: var(--bg-page);
            color: var(--text-main);
        }
        .contacts-widget .search-box input::placeholder { color: var(--text-muted); }
        .contacts-widget .contacts-list {
            flex: 1;
            overflow-y: auto;
            padding: 6px 0;
            max-height: 300px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            padding: 8px 16px;
            cursor: pointer;
            gap: 12px;
        }
        .contact-item:hover { background: var(--bg-page); }
        .contact-item .avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            flex-shrink: 0;
            overflow: hidden;
            background: var(--primary);
        }
        .contact-item .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .contact-item .info { flex: 1; min-width: 0; }
        .contact-item .info .name {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .contact-item .info .listing-context {
            font-size: 11px;
            font-weight: 500;
            color: var(--primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 1px;
        }
        .contact-item .info .status-text {
            font-size: 12px;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .chat-dock .chat-window .chat-header .name-status .listing-sub {
            font-size: 11px;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .contact-unread {
            background: var(--primary);
            color: var(--color-on-primary);
            font-size: 10px;
            font-weight: 700;
            min-width: 18px;
            height: 18px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 5px;
            flex-shrink: 0;
        }
        .contacts-empty {
            text-align: center;
            padding: 32px 16px;
            color: var(--text-muted);
            font-size: 13px;
        }
        .contacts-signin-btn {
            display: inline-block;
            margin-top: 12px;
            padding: 8px 20px;
            background: var(--primary);
            color: var(--color-on-primary);
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            font-size: 13px;
        }
        .contacts-footer {
            padding: 8px 12px;
            border-top: 1px solid var(--border);
            text-align: center;
            flex-shrink: 0;
        }
        .see-all-link {
            font-size: 13px;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }
        .see-all-link:hover { text-decoration: underline; }

        .chat-windows-container {
            position: absolute;
            bottom: 44px;
            right: 0;
            width: 280px;
            pointer-events: none;
        }
        .chat-windows-container > * { pointer-events: auto; }

        .chat-dock .chat-window {
            position: absolute;
            bottom: 0;
            width: 280px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-bottom: none;
            border-radius: 8px 8px 0 0;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
            display: flex;
            flex-direction: column;
            height: 400px;
        }
        .chat-dock .chat-window.minimized { display: none; }
        .chat-dock .chat-window .chat-header {
            padding: 8px 12px;
            background: var(--bg-page);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            flex-shrink: 0;
        }
        .chat-dock .chat-window .chat-header .avatar-sm {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
            background: var(--primary);
        }
        .chat-dock .chat-window .chat-header .name-status { flex: 1; min-width: 0; }
        .chat-dock .chat-window .chat-header .name-status .name {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .chat-dock .chat-window .chat-header .header-actions { display: flex; gap: 4px; }
        .chat-dock .chat-window .chat-header .header-actions button {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 16px;
            line-height: 1;
            padding: 0 2px;
        }
        .chat-dock .chat-window .chat-header .header-actions button:hover { color: var(--text-main); }

        .chat-dock .chat-window .chat-body {
            flex: 1;
            overflow-y: auto;
            padding: 12px 14px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            background: var(--bg-card);
        }
        .chat-dock .chat-window .chat-body .message {
            max-width: 85%;
            padding: 8px 14px;
            border-radius: 18px;
            font-size: 13.5px;
            word-break: break-word;
            line-height: 1.4;
        }
        .chat-dock .chat-window .chat-body .message.sent {
            align-self: flex-end;
            background: var(--primary);
            color: var(--color-on-primary);
            border-bottom-right-radius: 4px;
        }
        .chat-dock .chat-window .chat-body .message.received {
            align-self: flex-start;
            background: var(--bg-page);
            color: var(--text-main);
            border-bottom-left-radius: 4px;
        }
        .chat-dock .chat-window .chat-body .message.is-pending {
            opacity: 0.75;
        }
        .chat-dock .chat-window .chat-body .message.is-failed {
            background: color-mix(in srgb, var(--color-danger, #FF4B33) 18%, var(--bg-page));
            color: var(--text-main);
            border: 1px solid color-mix(in srgb, var(--color-danger, #FF4B33) 35%, transparent);
        }
        .chat-dock .chat-window .chat-body .message .msg-send-error {
            font-size: 11px;
            color: var(--color-danger, #FF4B33);
            white-space: nowrap;
        }
        .chat-loading, .chat-empty {
            text-align: center;
            color: var(--text-muted);
            font-size: 12px;
            padding: 40px 0;
        }

        .chat-dock .chat-window .chat-footer {
            padding: 8px 12px;
            border-top: 1px solid var(--border);
            display: flex;
            gap: 8px;
            background: var(--bg-page);
            flex-shrink: 0;
        }
        .chat-dock .chat-window .chat-footer input {
            flex: 1;
            padding: 8px 14px;
            border-radius: 20px;
            border: 1px solid var(--border);
            font-size: 13px;
            outline: none;
            background: var(--bg-card);
            color: var(--text-main);
            min-width: 0;
        }
        .chat-dock .chat-window .chat-footer input::placeholder { color: var(--text-muted); }
        .chat-dock .chat-window .chat-footer button {
            padding: 8px 16px;
            border-radius: 20px;
            border: none;
            background: var(--primary);
            color: var(--color-on-primary);
            font-weight: 600;
            cursor: pointer;
            flex-shrink: 0;
        }
        .chat-dock .chat-window .chat-footer button:hover { background: var(--primary-hover); }

        .bottom-bar {
            width: 280px;
            height: 44px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-bottom: none;
            border-top: 3px solid var(--primary);
            border-radius: 8px 8px 0 0;
            display: flex;
            align-items: center;
            padding: 0 14px;
            gap: 8px;
            cursor: pointer;
            user-select: none;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
            position: relative;
            z-index: 10;
            transition: background 0.15s ease;
        }
        .bottom-bar:hover { background: var(--bg-page); }
        .bottom-bar .bar-icon { color: var(--primary); font-size: 14px; }
        .bottom-bar .bar-label {
            font-weight: 600;
            color: var(--text-main);
            flex: 1;
            font-size: 14px;
        }
        .bottom-bar .bar-badge {
            background: var(--primary);
            color: var(--color-on-primary);
            border-radius: 50%;
            font-size: 11px;
            min-width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
        }
        .bottom-bar .bar-badge.hidden { display: none; }
        .bottom-bar .bar-arrow { color: var(--text-muted); }

        .chat-tabs-bar {
            display: flex;
            gap: 4px;
            background: var(--bg-card);
            border-radius: 8px 8px 0 0;
            padding: 4px 6px 0;
            border: 1px solid var(--border);
            border-bottom: none;
            width: 280px;
            overflow-x: auto;
        }
        .chat-tabs-bar.empty { display: none; }
        .chat-tab {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 8px;
            background: var(--bg-page);
            border-radius: 6px 6px 0 0;
            font-size: 12px;
            cursor: pointer;
            color: var(--text-main);
            white-space: nowrap;
        }
        .chat-tab:hover {
            background: var(--primary-light);
            color: var(--text-main);
        }
        .chat-tab.active {
            background: var(--primary-light);
            color: var(--primary);
            font-weight: 600;
        }
        .chat-tab .tab-close {
            cursor: pointer;
            font-weight: bold;
            margin-left: 4px;
            opacity: 0.85;
        }

        @media (max-width: 767px) {
            .chat-dock { display: none !important; }
        }

        /* ============================================================
           DUBUZ BUSINESS DIRECTORY (#page-businesses)
           Mockup-matched directory: search sidebar + status bar +
           list/grid business cards + pagination bar.
           Single source — every .biz-* rule for this page lives here.
           Uses global theme tokens (var(--primary), var(--bg-*),
           var(--text-*), var(--border)) — Plus Jakarta Sans only.
           ============================================================ */

        /* —— Directory layout: 12-col desktop grid (sidebar 3–4 / main 8–9) —— */
        .biz-directory-layout {
            display: block;
            width: 100%;
            max-width: 1440px;
            margin: 0 auto;
            padding: 24px 16px;
        }
        @media (min-width: 1024px) {
            #biz-feed-layout.biz-directory-layout {
                display: grid;
                grid-template-columns: repeat(12, minmax(0, 1fr));
                gap: 24px;
                max-width: 1440px;
                margin: 0 auto;
                padding: 24px;
            }
            #biz-feed-layout.biz-directory-layout #biz-sidebar {
                grid-column: span 4;
                justify-self: stretch;
            }
            #biz-feed-layout.biz-directory-layout #biz-feed {
                grid-column: span 8;
            }
        }
        @media (min-width: 1280px) {
            #biz-feed-layout.biz-directory-layout #biz-sidebar {
                grid-column: span 3;
            }
            #biz-feed-layout.biz-directory-layout #biz-feed {
                grid-column: span 9;
            }
        }

        /* —— Sidebar column (desktop: natural height / page scroll; mobile drawer) ——
           Same visibility fix as marketplace refine: no fixed viewport max-height /
           inner overflow clip so Keywords → Apply stay fully laid out. */
        .biz-sidebar { width: 100%; min-width: 0; }
        @media (min-width: 1024px) {
            #biz-sidebar.sng-sticky-col,
            #biz-sidebar.sng-feed-left,
            .biz-directory-layout #biz-sidebar {
                position: relative !important;
                top: auto !important;
                align-self: start !important;
                min-height: 0 !important;
                height: auto !important;
                max-height: none !important;
                overflow: visible !important;
                overflow-x: hidden !important;
                overscroll-behavior: auto;
                scrollbar-width: thin;
                scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
            }
            #biz-sidebar.sng-sticky-col::-webkit-scrollbar { width: 4px; }
            #biz-sidebar.sng-sticky-col::-webkit-scrollbar-track { background: transparent; }
            #biz-sidebar.sng-sticky-col::-webkit-scrollbar-thumb {
                background: rgba(0, 0, 0, 0.08);
                border-radius: 4px;
            }
        }
        .biz-sidebar-inner { display: flex; flex-direction: column; gap: 12px; }

        /* —— Search Businesses filter card —— */
        .biz-filter-card {
            margin: 0;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 24px;
            box-shadow: var(--shadow-sm);
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .biz-filter-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            border-bottom: 1px solid var(--border);
            padding-bottom: 12px;
        }
        .biz-filter-title {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .06em;
            color: var(--text-muted);
        }
        .biz-filter-title i { font-size: 12px; color: var(--primary); }
        .biz-filter-reset {
            border: 0;
            background: transparent;
            padding: 4px;
            font-size: 12px;
            font-weight: 700;
            line-height: 1;
            color: var(--primary);
            cursor: pointer;
        }
        .biz-filter-reset:hover { text-decoration: underline; }
        .biz-sidebar-close {
            border: 0;
            background: var(--bg-page);
            color: var(--text-muted);
            width: 32px;
            height: 32px;
            border-radius: 10px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .biz-filter-fields { display: flex; flex-direction: column; gap: 14px; }
        .biz-field { display: block; }

        /* Labels — match marketplace refine soften (~600 / slate-600) */
        .biz-filter-label {
            display: block;
            font-size: 11px !important;
            font-weight: 600 !important;
            text-transform: capitalize !important;
            letter-spacing: normal !important;
            color: #475569 !important; /* text-slate-600 */
            margin-bottom: 6px;
            line-height: 1.2 !important;
        }

        /* Inputs / selects: match marketplace refine (12.5px / 600 / slate) */
        .biz-input-wrap { position: relative; }
        .biz-input-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            color: var(--text-light, #94A3B8);
            pointer-events: none;
        }
        .biz-filter-input,
        .biz-filter-select {
            width: 100%;
            background: var(--surface-subtle, #F8FAFC);
            border: 1.5px solid var(--border, #E5E9F0);
            border-radius: 12px;
            padding: 6px 12px;
            font-family: var(--font-family-primary, 'Plus Jakarta Sans', system-ui, sans-serif);
            font-size: 12.5px;
            font-weight: 600;
            line-height: 1.25;
            color: var(--text-secondary, #475569);
            outline: none;
            transition: border-color .15s, box-shadow .15s, background-color .15s;
            cursor: pointer;
        }
        .biz-filter-input { padding-left: 32px; color: var(--text-main, #0F172A); }
        .biz-filter-input::placeholder {
            color: var(--text-light, #94A3B8);
            font-weight: 500;
            font-size: 12.5px;
            opacity: 1;
        }
        .biz-filter-select:has(option[value=""]:checked) {
            color: var(--text-light, #94A3B8);
            font-weight: 600;
        }
        .biz-filter-select:focus,
        .biz-filter-input:focus {
            border-color: var(--primary);
            background: var(--surface);
            box-shadow: var(--focus-ring);
        }

        /* Attributes block (border-top separated) */
        .biz-attr-block {
            border-top: 1px solid var(--border);
            padding-top: 10px;
        }
        .biz-feature-list { display: flex; flex-direction: column; gap: 10px; }
        .biz-feature-item {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary, #475569);
        }
        .biz-feature-item input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: var(--primary);
            border-radius: 4px;
            flex-shrink: 0;
            cursor: pointer;
            margin: 0;
        }
        .biz-feature-txt { display: inline-flex; align-items: center; gap: 6px; }

        /* Minimum rating: 4-button grid (Any / 4.5 / 4.0 / 3.0) */
        .biz-star-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 6px;
        }
        .biz-star-opt {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 3px;
            padding: 8px 2px;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: var(--bg-card);
            color: var(--text-main);
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            transition: all .15s;
        }
        .biz-star-opt i { font-size: 10px; color: var(--color-warning); }
        .biz-star-opt:hover { border-color: var(--primary); color: var(--primary); }
        .biz-star-opt:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
        .biz-star-opt.active { background: var(--primary); border-color: var(--primary); color: #fff; }
        .biz-star-opt.active i { color: #fff; }

        /* Apply Parameters button */
        .biz-btn {
            border: 0;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            transition: all .15s;
        }
        .biz-btn-primary { background: var(--primary); color: #fff; }
        .biz-btn-primary:hover { background: var(--primary-hover); }
        .biz-btn-primary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
        .biz-apply-btn {
            width: 100%;
            min-height: 44px;
            text-transform: uppercase;
            letter-spacing: .08em;
        }
        .biz-apply-btn:active { transform: scale(.98); }

        /* —— Main column —— */
        .biz-feed-main {
            display: flex;
            flex-direction: column;
            gap: 16px;
            width: 100%;
            min-width: 0;
        }

        /* Status & view-mode bar (white card) */
        .biz-status-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 24px;
            box-shadow: var(--shadow-sm);
            padding: 16px;
        }
        .biz-status-count {
            display: flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 6px;
            margin: 0;
        }
        .biz-status-main { font-size: 12px; font-weight: 900; color: var(--text-main); }
        .biz-status-main strong { color: var(--text-main); }
        .biz-status-tag,
        .biz-status-sub { font-size: 11px; font-weight: 600; color: var(--text-muted); }

        .biz-view-toggle { display: flex; align-items: center; gap: 6px; }
        .biz-view-label {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-muted);
            margin-right: 2px;
        }
        .biz-view-btn {
            width: 34px;
            height: 34px;
            border: 0;
            border-radius: 12px;
            cursor: pointer;
            background: var(--bg-page);
            color: var(--text-muted);
            font-size: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all .15s;
        }
        .biz-view-btn:hover { color: var(--primary); }
        .biz-view-btn.active { background: var(--primary); color: #fff; }
        .biz-view-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

        /* —— LIST cards (default view) —— */
        .biz-list-wrap { display: flex; flex-direction: column; gap: 16px; }
        .biz-list-row {
            display: flex;
            flex-wrap: wrap;
            align-items: stretch;
            border-radius: 24px;
            padding: 0;
            overflow: hidden;
            transition: box-shadow .15s, border-color .15s;
        }
        .biz-list-row:hover { box-shadow: var(--shadow-md); }
        .biz-list-logo {
            width: 100%;
            background: var(--bg-page);
            border-bottom: 1px solid var(--border);
            padding: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .biz-list-logo .biz-avatar-img {
            width: 80px;
            height: 80px;
            border-radius: 16px;
            object-fit: cover;
            box-shadow: var(--shadow-sm);
        }
        .biz-avatar-letter {
            width: 80px;
            height: 80px;
            border-radius: 16px;
            background: var(--primary-light);
            color: var(--primary);
            font-size: 30px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-sm);
        }
        .biz-avatar-letter--sm {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            font-size: 20px;
        }
        .biz-list-body {
            flex: 1;
            min-width: 0;
            padding: 20px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 12px;
        }
        .biz-list-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }
        .biz-list-head-left { min-width: 0; }
        .biz-list-name {
            display: block;
            font-size: 16px;
            font-weight: 900;
            line-height: 1.3;
            color: var(--text-main);
            text-decoration: none;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .biz-list-name:hover { color: var(--primary); }
        .biz-list-cat {
            display: block;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-muted);
            margin-top: 2px;
        }
        .biz-badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
        .biz-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 11px;
            font-weight: 700;
            border-radius: 999px;
            padding: 2px 8px;
            white-space: nowrap;
        }
        .biz-badge-verified { background: var(--color-success-bg); color: var(--color-success-text); }
        .biz-badge-featured { background: var(--color-warning-bg); color: var(--color-warning-text); }
        .biz-star-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 8px;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-muted);
        }
        .biz-rating-val {
            color: var(--color-warning);
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .biz-rating-val i { font-size: 11px; }
        .biz-rating-count { color: var(--text-muted); font-weight: 500; }
        .biz-star-sep { color: var(--border); }
        .biz-followers i, .biz-listings-count i {
            font-size: 11px;
            color: var(--text-muted);
            margin-right: 3px;
        }
        .biz-list-desc {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-size: 12px;
            line-height: 1.625;
            color: var(--text-muted);
            margin: 8px 0 0;
            max-width: 42rem;
        }
        .biz-desc-clamp-2 { -webkit-line-clamp: 2; }
        .biz-list-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-top: auto;
            padding-top: 8px;
            border-top: 1px solid var(--border);
        }
        .biz-loc {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-muted);
            min-width: 0;
        }
        .biz-loc i { font-size: 11px; color: var(--primary); }
        .biz-view-details {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 800;
            color: var(--primary);
            text-decoration: none;
            white-space: nowrap;
        }
        .biz-view-details:hover { text-decoration: underline; }
        .biz-view-details i { font-size: 10px; transition: transform .15s; }
        .biz-view-details:hover i { transform: translateX(3px); }

        /* Follow button (top-right of cards) */
        .biz-follow-wrap { align-self: flex-start; }
        .biz-follow-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 30px;
            padding: 6px 14px;
            border: 0;
            border-radius: 12px;
            background: var(--bg-page);
            color: var(--text-main);
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all .15s;
            white-space: nowrap;
        }
        .biz-follow-btn:hover { background: var(--border); }
        .biz-follow-btn.following { background: var(--primary); color: #fff; }
        .biz-follow-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

        /* —— GRID cards (store-card redesign) —— */
        .biz-grid {
            display: grid;
            grid-template-columns: repeat(1, minmax(0, 1fr));
            gap: 24px;
        }
        @media (min-width: 768px) {
            .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }
        @media (min-width: 1280px) {
            .biz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        }
        .biz-grid .store-card {
            background: var(--bg-card, #fff);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 20px;
            box-shadow: var(--shadow-sm);
            display: flex;
            flex-direction: column;
            position: relative;
            transition: transform .2s ease-in-out, box-shadow .2s ease-in-out, border-color .2s ease-in-out;
        }
        .biz-grid .store-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
            border-color: var(--border);
        }
        .biz-grid .store-card .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
        }
        .biz-grid .store-identity {
            display: flex;
            align-items: center;
            gap: 14px;
            min-width: 0;
        }
        .biz-grid .store-card .avatar {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            overflow: hidden;
            display: grid;
            place-items: center;
            flex-shrink: 0;
            font-weight: 700;
            font-size: 20px;
            border: 1px solid rgba(0, 0, 0, 0.06);
        }
        .biz-grid .store-card .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .biz-grid .store-card .avatar.image-avatar {
            background: var(--bg-page);
            color: var(--text-main);
        }
        .biz-grid .store-card .avatar.initial-avatar {
            background: var(--bg-page);
            color: var(--primary);
        }
        .biz-grid .store-info {
            display: flex;
            flex-direction: column;
            gap: 3px;
            min-width: 0;
        }
        .biz-grid .name-badge-row {
            display: flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }
        .biz-grid .store-name {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-main);
            line-height: 1.2;
            margin: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .biz-grid .store-name-link {
            color: inherit;
            text-decoration: none;
        }
        .biz-grid .store-name-link:hover { color: var(--primary); }
        .biz-grid .store-category {
            font-size: 13px;
            color: var(--text-muted);
            font-weight: 500;
        }
        .biz-grid .verified-icon {
            color: var(--color-info);
            display: inline-flex;
            align-items: center;
            flex-shrink: 0;
            font-size: 14px;
        }
        .biz-grid .btn-follow {
            background: var(--bg-card, #fff);
            border: 1px solid var(--border);
            color: var(--text-main);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: all .15s ease;
            white-space: nowrap;
            text-decoration: none;
            line-height: 1.2;
        }
        .biz-grid .btn-follow:hover {
            background: var(--text-main);
            color: #fff;
            border-color: var(--text-main);
        }
        .biz-grid .btn-follow.following {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }
        .biz-grid .store-bio {
            font-size: 13px;
            line-height: 1.5;
            color: var(--text-muted);
            margin: 14px 0 16px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: 39px;
        }
        .biz-grid .store-bio.empty {
            color: var(--text-muted);
            opacity: .75;
            font-style: italic;
        }
        .biz-grid .store-metrics {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: var(--text-muted);
            padding-bottom: 16px;
            flex-wrap: wrap;
        }
        .biz-grid .metric-group {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .biz-grid .metric-group strong { color: var(--text-main); }
        .biz-grid .metric-group .star,
        .biz-grid .store-metrics .star { color: var(--color-warning); }
        .biz-grid .store-metrics .dot { color: var(--border); }
        .biz-grid .badge-featured {
            margin-left: auto;
            background: var(--color-warning-bg);
            color: var(--color-warning-text);
            font-size: 11px;
            font-weight: 600;
            padding: 3px 8px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .biz-grid .store-card .card-footer {
            border-top: 1px solid var(--border);
            padding-top: 14px;
            margin-top: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }
        .biz-grid .store-card .location {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 500;
            min-width: 0;
        }
        .biz-grid .store-card .location i { color: var(--primary); }
        .biz-grid .btn-view-store {
            color: var(--primary);
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: transform .15s ease, color .15s ease;
            white-space: nowrap;
        }
        .biz-grid .btn-view-store:hover {
            color: var(--primary-hover);
            transform: translateX(2px);
        }

        /* Select2 inside business filter sidebar — match marketplace refine soften */
        #biz-sidebar .select2-container {
            width: 100% !important;
        }
        #biz-sidebar .select2-container--bootstrap-5 .select2-selection,
        #biz-sidebar .select2-container--bootstrap-5 .select2-selection--single {
            height: 32px !important;
            min-height: 32px !important;
            max-height: 34px !important;
            box-sizing: border-box !important;
            border: 1.5px solid var(--border, #E5E9F0) !important;
            background-color: var(--surface-subtle, #F8FAFC) !important;
            border-radius: 12px !important;
            font-family: var(--font-family-primary, 'Plus Jakarta Sans', system-ui, sans-serif) !important;
            font-size: 12.5px !important;
            font-weight: 600 !important;
            box-shadow: none !important;
        }
        #biz-sidebar .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
            height: 100% !important;
            display: flex !important;
            align-items: center;
            line-height: 1.25 !important;
            padding: 0 34px 0 14px !important;
            font-size: 12.5px !important;
            font-weight: 600 !important;
            color: var(--text-secondary, #475569) !important;
        }
        #biz-sidebar .select2-container--bootstrap-5 .select2-selection__placeholder,
        #biz-sidebar .select2-container.mp-s2-placeholder .select2-selection__rendered {
            color: var(--text-light, #94A3B8) !important;
            font-weight: 600 !important;
            font-style: normal !important;
        }
        #biz-sidebar .select2-container--focus .select2-selection--single,
        #biz-sidebar .select2-container--open .select2-selection--single {
            background-color: #FFFFFF !important;
            border-color: var(--primary) !important;
            box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--primary, #FF4A1C) 14%, transparent) !important;
        }

        /* Legacy grid-card kept for safety (unused by new store-card markup) */
        .biz-grid-card {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 14px;
            border-radius: 24px;
            padding: 20px;
            transition: box-shadow .15s, border-color .15s;
        }
        .biz-grid-card:hover { box-shadow: var(--shadow-md); }
        .biz-grid-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }
        .biz-grid-logo .biz-avatar-img {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            object-fit: cover;
            box-shadow: var(--shadow-sm);
        }
        .biz-grid-name {
            display: block;
            font-size: 14px;
            font-weight: 900;
            line-height: 1.35;
            color: var(--text-main);
            text-decoration: none;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin-top: 10px;
        }
        .biz-grid-name:hover { color: var(--primary); }
        .biz-grid-cat { margin-top: 2px; }
        .biz-star-row--grid { margin-top: 6px; gap: 6px; }
        .biz-grid-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding-top: 12px;
            border-top: 1px solid var(--border);
        }

        /* —— Empty state —— */
        .biz-empty {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 24px;
            box-shadow: var(--shadow-sm);
            padding: 48px 24px;
            text-align: center;
            color: var(--text-muted);
        }
        .biz-empty-icon { font-size: 32px; color: var(--border); margin: 0 0 8px; }
        .biz-empty-title { font-size: 14px; font-weight: 700; color: var(--text-main); margin: 0 0 4px; }
        .biz-empty-hint { font-size: 12px; color: var(--text-muted); margin: 0; }

        /* —— Pagination bar card —— */
        .biz-pager .sng-pager {
            margin-top: 0;
            border-radius: 24px;
            padding: 16px;
        }

        /* —— Mobile adjustments —— */
        @media (max-width: 1023px) {
            #biz-sidebar { display: none; }
            #biz-sidebar.biz-sidebar-open { display: block; }
            #biz-sidebar .biz-sidebar-inner { padding: 0 12px 4px; }
            .biz-mobile-filters-bar { top: calc(var(--mobile-topbar-h, 52px) + env(safe-area-inset-top, 0px)); }
            .biz-directory-layout { padding: 0 0 16px; }
        }
        @media (max-width: 767px) {
            .biz-list-name { font-size: 14px; }
            .biz-list-cat { font-size: 10px; }
            .biz-grid { gap: 12px; }
            .biz-filter-card,
            .biz-status-bar,
            .biz-list-row,
            .biz-grid-card,
            .biz-grid .store-card,
            .biz-empty { border-radius: 20px; }
        }

        /* —— Mobile header (compact) + sticky filter bar —— */
        .biz-mobile-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 16px 4px;
        }
        .biz-mobile-header-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-main);
            margin: 0;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .biz-mobile-header-title i { color: var(--primary); font-size: 16px; }
        .biz-mobile-header-actions {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .biz-mobile-header-btn {
            width: 36px;
            height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            background: var(--bg-page);
            border: 1px solid var(--border);
            color: var(--text-main);
            text-decoration: none;
            cursor: pointer;
            padding: 0;
            font-size: 14px;
        }
        .biz-mobile-header-btn:active {
            transform: scale(.94);
            background: color-mix(in srgb, var(--primary) 10%, var(--bg-page));
        }
        .biz-picks-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 8px 12px;
            background: var(--bg-page);
            border-bottom: 1px solid var(--border);
        }
        .biz-picks-left {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }
        .biz-picks-filters-btn {
            width: 30px;
            height: 30px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            border: 0;
            background: color-mix(in srgb, var(--text-muted) 16%, var(--bg-card));
            color: var(--text-main);
            cursor: pointer;
        }
        .biz-picks-label {
            font-size: 12px;
            font-weight: 800;
            color: var(--text-main);
        }
        .biz-picks-location {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            max-width: 55%;
            padding: 5px 10px;
            border-radius: 999px;
            border: 0;
            background: color-mix(in srgb, var(--primary) 10%, var(--bg-card));
            color: var(--primary);
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .biz-picks-location i { font-size: 12px; flex-shrink: 0; }
        .biz-header-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: var(--primary);
            color: #fff;
            text-decoration: none;
            font-size: 14px;
            font-weight: 700;
            border-radius: 12px;
            padding: 0 20px;
            height: 48px;
            flex-shrink: 0;
            transition: background .15s, transform .1s;
            border: 0;
        }
        .biz-header-cta:hover { background: var(--primary-hover); color: #fff; }
        .biz-header-cta:active { transform: scale(.98); }
        .biz-header-cta:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
        .biz-header-cta--sm { height: 40px; padding: 0 14px; border-radius: 10px; font-size: 13px; }
        .biz-filters-toggle-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            height: 42px;
            padding: 0 14px;
            flex-shrink: 0;
            border: 1px solid var(--border);
            border-radius: 999px;
            background: var(--bg-card);
            color: var(--text-main);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all .15s;
            white-space: nowrap;
        }
        .biz-filters-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }
        .biz-filters-toggle-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
        .biz-filters-toggle-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
        .biz-view-all {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-left: auto;
            flex-shrink: 0;
            padding: 4px 8px;
            min-height: 40px;
            font-size: 12px;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            white-space: nowrap;
            border-radius: 10px;
            transition: background .15s, color .15s;
        }
        .biz-view-all:hover { background: var(--primary-light); color: var(--primary-hover); }
        .biz-view-all:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
        .biz-view-all i { font-size: 10px; }

        /* —— Mockup refinements ——
           - List card logo becomes a fixed 176px rail with a right border on
             ≥768px (mockup: w-44 + border-r, body beside it).
           - Follow button never shrinks inside card headers.
           - Grid empty state spans the full grid width.
           - Mobile: keep feed cards off the screen edges (sticky bar stays
             edge-to-edge). */
        .biz-follow-btn { flex-shrink: 0; }
        @media (min-width: 768px) {
            .biz-list-row { flex-wrap: nowrap; }
            .biz-list-logo {
                width: 176px;
                flex: 0 0 176px;
                border-right: 1px solid var(--border);
                border-bottom: 0;
            }
        }
        .biz-grid .biz-empty { grid-column: 1 / -1; }
        @media (max-width: 1023px) {
            .biz-list-wrap,
            #biz-grid-wrap,
            .biz-status-bar,
            .biz-pager { margin-left: 12px; margin-right: 12px; }
        }






        @media (min-width: 1024px) {
            /* —— Sidebar: stacked white rounded-2xl cards —— */
            .sng-feed-layout--marketplace .sng-feed-side-col {
                display: flex;
                flex-direction: column;
                gap: 16px;
                font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
            }
            /* Marketplace + Business Directory LEFT rail — natural height in document
               flow (page scrolls). No fixed viewport height / inner overflow clip so
               City→Apply / Keywords→Apply stay fully laid out. Sticky is off here: a
               tall filter stack must scroll with the page, not pin and hide the bottom.
               Select2 uses dropdownParent=body. */
            .sng-feed-layout--marketplace .sng-feed-left.sng-sticky-col,
            .sng-feed-layout--marketplace #mp-sidebar.sng-sticky-col,
            .biz-directory-layout #biz-sidebar.sng-sticky-col,
            .biz-directory-layout #biz-sidebar.sng-feed-left {
                position: relative !important;
                top: auto !important;
                align-self: start !important;
                min-height: 0 !important;
                height: auto !important;
                max-height: none !important;
                overflow: visible !important;
                display: flex !important;
                flex-direction: column !important;
            }
            .sng-feed-layout--marketplace #mp-refine-scroll {
                flex: 0 1 auto;
                min-height: 0;
                height: auto;
                max-height: none;
                /* Both axes must stay visible — a non-visible overflow-x forces
                   overflow-y to compute to auto and can re-clip tall Advanced panels. */
                overflow: visible !important;
                padding-right: 2px;
            }
            .sng-feed-layout--marketplace .sng-side-card {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 16px;
                box-shadow: var(--shadow-sm);
            }
            .sng-feed-layout--marketplace .sng-side-card--nav {
                padding: 12px;
                display: flex;
                flex-direction: column;
                gap: 4px;
            }
            .sng-feed-layout--marketplace .sng-side-card .sng-sidebar-link {
                padding: 10px 14px;
                border-radius: 12px;
                font-size: 13px;
                font-weight: 500;
                color: var(--text-main);
                text-decoration: none;
                display: flex;
                align-items: center;
                gap: 12px;
                width: 100%;
                transition: background-color 0.15s, color 0.15s;
            }
            .sng-feed-layout--marketplace .sng-side-card .sng-sidebar-link i {
                font-size: 14px;
                width: 16px;
                text-align: center;
                flex-shrink: 0;
            }
            .sng-feed-layout--marketplace .sng-side-card .sng-sidebar-link.active {
                background: var(--primary-light) !important;
                color: var(--primary) !important;
                font-weight: 600;
            }
            .sng-feed-layout--marketplace .sng-side-card .sng-sidebar-link:hover {
                background: var(--bg-page) !important;
                color: var(--primary);
            }
            .sng-feed-layout--marketplace .sng-side-card-head {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 8px;
                padding: 12px 16px;
                border-bottom: 1px solid var(--border);
            }
            .sng-feed-layout--marketplace .sng-side-card--settings .sng-side-card-head {
                justify-content: flex-start;
            }
            .sng-feed-layout--marketplace .sng-side-card-head span {
                font-size: 11px;
                font-weight: 800;
                color: var(--text-muted);
                text-transform: uppercase;
                letter-spacing: .6px;
            }
            .sng-feed-layout--marketplace .sng-side-card-head i {
                font-size: 12px;
                color: var(--text-muted);
            }

            /* —— Filters card —— */
            .sng-feed-layout--marketplace .mp-filters-card {
                padding: 0 16px 14px;
            }
            .sng-feed-layout--marketplace .mp-filters-card-head {
                margin: 0 0 16px 0;
                padding-bottom: 12px;
                border-bottom: 1px solid var(--border-light, #f1f5f9);
            }
            .sng-feed-layout--marketplace .mp-filter-reset {
                display: inline-flex;
                align-items: center;
                gap: 4px;
                border: none;
                background: transparent;
                color: var(--brand-hover, #E83F29);
                font-size: 12px;
                font-weight: 700;
                padding: 5px 10px;
                border-radius: 8px;
                cursor: pointer;
                transition: background-color 0.15s ease, color 0.15s ease;
            }
            .sng-feed-layout--marketplace .mp-filter-reset:hover {
                background: var(--brand-soft, #FFF5F2);
                color: var(--brand, #FF4B33);
            }
            .sng-feed-layout--marketplace .mp-filter-reset:active {
                transform: scale(0.97);
            }
            .sng-feed-layout--marketplace .mp-filter-reset i {
                font-size: 11px;
            }
            .sng-feed-layout--marketplace .mp-filter-label {
                display: flex;
                align-items: center;
                gap: 6px;
                font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
                font-size: 11px;
                font-weight: 600;
                color: #475569; /* text-slate-600 */
                text-transform: capitalize;
                letter-spacing: normal;
                line-height: 1.2;              /* icon glyph + label text stay mid-aligned */
                margin-top: 0;
                margin-bottom: 6px;
            }
            .sng-feed-layout--marketplace .mp-filter-label i {
                font-size: 12px;
                line-height: 1;                /* FA glyph centered in its 16px gutter */
                color: #64748b; /* text-slate-500 */
                width: 16px;
                text-align: center;
                flex: 0 0 auto;
            }
            /* Active filter label — same weight/color as every other filter label so all
               labels render with one consistent look (JS still toggles .mp-label-active). */
            .sng-feed-layout--marketplace .mp-filter-label.mp-label-active {
                color: #334155; /* text-slate-700 */
                font-weight: 600;
            }
            /* "Search Keyword" label has no icon in the markup — inject the magnifying
               glass via CSS so it lines up with every other filter label (icon gutter). */
            .sng-feed-layout--marketplace .mp-search-level .mp-filter-label::before {
                content: "\f002";
                font-family: "Font Awesome 6 Free";
                font-weight: 900;
                font-size: 12px;
                line-height: 1;
                color: #64748b; /* text-slate-500 */
                width: 16px;
                text-align: center;
                flex: 0 0 auto;
            }
            /* Price Range header icon — same brand look as every other filter label
               icon (beats the inline muted color on the element). */
            .sng-feed-layout--marketplace .mp-filter-section-head i {
                color: #64748b !important; /* text-slate-500 */
                font-size: 12px;
                line-height: 1;
                width: 16px;
                text-align: center;
                flex: 0 0 auto;
            }
            /* Filters card title — reference .filter-title (13px/800 uppercase) */
            .sng-feed-layout--marketplace .mp-filters-card-head span {
                font-size: 13px;
                font-weight: 800;
                letter-spacing: .05em;
                text-transform: uppercase;
                color: var(--text-secondary, #334155);
            }
            /* Compact vertical rhythm — collapse Bootstrap mb-3 gaps between filter blocks */
            .sng-feed-layout--marketplace .mp-filters-card .mb-3 {
                margin-bottom: 8px !important;
            }
            .sng-feed-layout--marketplace .mp-location-level.mb-3,
            .sng-feed-layout--marketplace .mp-condition-level.mb-3,
            .sng-feed-layout--marketplace .mp-search-level.mb-3 {
                margin-bottom: 10px !important;
            }
            .sng-feed-layout--marketplace .mp-filter-group {
                display: flex;
                flex-direction: column;
                gap: 8px;
                margin-top: 10px;
            }
            .sng-feed-layout--marketplace .mp-filter-select,
            .sng-feed-layout--marketplace .mp-filter-input {
                width: 100%;
                height: 32px;
                min-height: 32px;
                border: 1px solid var(--border);
                border-radius: 10px;
                background-color: var(--bg);
                color: var(--text-main);
                font-family: var(--font-family-primary, 'Plus Jakarta Sans', system-ui, sans-serif);
                font-size: 13px;
                font-weight: 400;
                padding: 0 10px;
                outline: none;
                transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
            }
            /* Native select trigger — reference .filter-select look + filled triangle chevron
               (10x6 #667085) — used while Select2 wraps it. */
            .sng-feed-layout--marketplace .mp-filter-select {
                appearance: none;
                -webkit-appearance: none;
                padding: 0 32px 0 10px;           /* right space for chevron */
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M5 6 0 0h10z' fill='%23667085'/%3E%3C/svg%3E");
                background-repeat: no-repeat;
                background-position: right 12px center;
                background-size: 10px;
            }
            /* Sidebar keyword search input keeps the icon gutter on the left */
            .sng-feed-layout--marketplace .mp-search-level .mp-filter-input {
                padding-left: 32px;
                padding-right: 12px;
            }
            /* Placeholder state for native selects (e.g. "All Conditions") — matches the
               muted Select2 placeholder so Select2-wrapped and native controls read the
               same. :has() is baseline in every modern browser; where unsupported the
               native select simply keeps its default dark text. */
            .sng-feed-layout--marketplace .mp-filters-card .mp-filter-select:has(option[value=""]:checked) {
                color: #94a3b8; /* text-slate-400 */
                font-weight: 500;
                font-style: normal;
            }
            /* Native input placeholders (price bounds + keyword search) — same muted
               placeholder look as every Select2 placeholder. */
            .sng-feed-layout--marketplace .mp-filter-input::placeholder {
                color: var(--text-light);
                font-weight: 400;
                font-size: 13px;
                font-family: var(--font-family-primary, 'Plus Jakarta Sans', system-ui, sans-serif);
                font-style: normal;
                opacity: 1;
            }
            .sng-feed-layout--marketplace .mp-filter-select:focus,
            .sng-feed-layout--marketplace .mp-filter-input:focus {
                border-color: var(--primary);
                box-shadow: var(--focus-ring);
                background-color: var(--surface);
                outline: none;
            }
            /* Hover on native search containers → theme border */
            .sng-feed-layout--marketplace .mp-filter-select:hover,
            .sng-feed-layout--marketplace .mp-filter-input:hover {
                border-color: var(--primary);
            }
            .sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-selection--single:hover {
                border-color: var(--primary);
            }
            .sng-feed-layout--marketplace .mp-filter-select:disabled {
                opacity: .55;
                cursor: not-allowed;
            }
            /* Neutralize the GLOBAL mobile-app-visual.css rule
               (.select2-container--bootstrap-5 .select2-selection {
                  min-height:44px; border-radius:10px; font-size:15px } !important)
               for the marketplace — the search2 trigger wins here. Height matches the
               native .mp-filter-select / .mp-filter-input (32px) so Select2-wrapped and
               native controls render at the same size. */
            .sng-feed-layout--marketplace .select2-container--bootstrap-5 .select2-selection--single {
                height: 32px !important;
                min-height: 32px !important;
                border-radius: 10px !important;
                font-size: 13px !important;
                font-weight: 400 !important;
                font-family: var(--font-family-primary, 'Plus Jakarta Sans', system-ui, sans-serif) !important;
                border: 1px solid var(--border) !important;
                background-color: var(--bg) !important;
                color: var(--text-main) !important;
            }
            .sng-feed-layout--marketplace .mp-toolbar .select2-container--bootstrap-5 .select2-selection--single {
                height: 42px !important;
                min-height: 42px !important;
                border-radius: 10px !important;
                font-size: 13px !important;
                font-weight: 500 !important;
            }
            /* Select2 container → reference .filter-select (44px, 1px --border, radius 10) */
            .sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-selection--single {
                height: 32px;
                min-height: 32px;
                border: 1px solid #cbd5e1;
                border-radius: 10px;
                background: #f8fafc;
                transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
            }
            .sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-selection__rendered {
                height: 100%;                 /* fill the 32px trigger box… */
                min-height: 30px;
                display: flex;
                align-items: center;          /* …so placeholder/selected text is mid-aligned */
                line-height: normal;
                font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
                font-size: 13px;
                font-weight: 500;             /* unified weight for every search container */
                color: var(--text-primary, #0F172A);
                padding-left: 10px;
                padding-right: 32px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            /* A value is selected → same 13px/500 as the placeholder-free trigger */
            .sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-selection__rendered:not(.select2-selection__placeholder) {
                font-weight: 500;
                color: var(--text-primary, #0F172A);
            }
            .sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-selection__placeholder {
                color: #94a3b8 !important; /* text-slate-400 */
                font-weight: 500;
                font-style: normal;
            }
            .sng-feed-layout--marketplace .mp-filters-card .select2-container--focus .select2-selection--single,
            .sng-feed-layout--marketplace .mp-filters-card .select2-container--open .select2-selection--single {
                border-color: var(--brand, #FF4B33);
                background: var(--surface);
                box-shadow: 0 0 0 3px rgba(255, 75, 51, 0.15);
            }
            .sng-feed-layout--marketplace .mp-filters-card .select2-container--disabled .select2-selection--single {
                opacity: .55;
                cursor: not-allowed;
            }
            /* Dropdown panel → search2 .dropdown-menu (radius 10, layered shadow) */
            .sng-feed-layout--marketplace .mp-filters-card .select2-dropdown {
                border: 1px solid var(--border);
                border-radius: 10px;
                box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
                background: var(--surface, #fff);
                padding: 4px;
                z-index: 1050;
            }
            /* Dropdown search box → search2 .search-box */
            .sng-feed-layout--marketplace .mp-filters-card .select2-search--dropdown {
                padding: 6px 6px 4px;
            }
            .sng-feed-layout--marketplace .mp-filters-card .select2-search--dropdown .select2-search__field {
                border: 1px solid var(--border);
                border-radius: 8px;
                font-size: 13px;
                font-weight: 500;
                line-height: 1.4;
                color: var(--text-primary, #0F172A);
                background: var(--surface-subtle, #F8FAFC);
                padding: 8px 12px;
                outline: none;
                transition: border-color 0.15s;
            }
            .sng-feed-layout--marketplace .mp-filters-card .select2-search--dropdown .select2-search__field::placeholder {
                color: var(--text-muted, #98A2B3);
            }
            .sng-feed-layout--marketplace .mp-filters-card .select2-search--dropdown .select2-search__field:focus {
                border-color: var(--brand, #FF4B33);
            }
            /* Dropdown options → search2 .category-item 13px/500, hover = theme brand.
               The .select2-results__options ancestor keeps specificity above the
               select2-bootstrap-5 theme's 1rem option rule (loaded later at runtime). */
            .sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-results__options .select2-results__option {
                font-size: 13px;
                font-weight: 500;
                color: var(--text-secondary, #374151);
                line-height: 1.4;
                padding: 8px 12px;
                border-radius: 8px;
                margin: 1px 0;
                transition: background-color 0.12s, color 0.12s;
            }
            .sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-results__option--selectable:hover {
                background-color: var(--primary-light);
                color: var(--primary);
            }
            /* NEUTRALIZE default Select2 BLUE highlight → theme (brand) hover instead.
               Order matters: hover primary-light first, then the selected option (primary) wins
               when both apply (select2 highlights the current selection on open). */
            .sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-results__option--highlighted.select2-results__option--selectable,
            .sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-results__option--highlighted[aria-selected] {
                background-color: var(--primary-light) !important;
                color: var(--primary) !important;
            }
            .sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-results__options .select2-results__option[aria-selected="true"] {
                background-color: var(--primary) !important;
                color: #fff !important;
                font-weight: 500; /* Unified font weight */
            }
            /* The open dropdown is appended to <body> (overflow-safe pattern), so the card-scoped
               rules above never reach it — mirror the exact same look at page level. */
            body.sng-page-marketplace > .select2-container--open {
                z-index: 1050;
            }
            /* When the whole widget teleports to <body> (overflow-safe pattern), mirror the
               trigger look at page level too — the card-scoped rules can't reach it. */
            body.sng-page-marketplace > .select2-container .select2-selection--single {
                height: 44px;
                min-height: 44px;
                border: 1px solid var(--border);
                border-radius: 10px;
                background: var(--surface-subtle, #F8FAFC);
                transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
            }
            body.sng-page-marketplace > .select2-container .select2-selection__rendered {
                height: 100%;                 /* fill the 44px trigger box… */
                min-height: 42px;
                display: flex;
                align-items: center;          /* …so placeholder/selected text is mid-aligned */
                line-height: normal;
                font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
                font-size: 13px;
                font-weight: 500;
                color: var(--text-primary, #0F172A);
                padding-left: 14px;
                padding-right: 36px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            body.sng-page-marketplace > .select2-container .select2-selection__placeholder {
                color: var(--text-muted, #98A2B3) !important;
                font-weight: 500;
            }
            body.sng-page-marketplace > .select2-container .select2-selection__arrow {
                width: 30px;
                height: 38px;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M5 6 0 0h10z' fill='%23667085'/%3E%3C/svg%3E");
                background-repeat: no-repeat;
                background-position: center;
                background-size: 10px;
                transition: transform 0.18s ease;
            }
            body.sng-page-marketplace > .select2-container .select2-selection__arrow b {
                display: none;
            }
            body.sng-page-marketplace > .select2-container--open .select2-selection__arrow {
                transform: rotate(180deg);
            }
            body.sng-page-marketplace > .select2-container--focus .select2-selection--single,
            body.sng-page-marketplace > .select2-container--open .select2-selection--single {
                border-color: var(--brand, #FF4B33);
                box-shadow: 0 0 0 3px rgba(255, 75, 51, 0.15);
                outline: none;
            }
            body.sng-page-marketplace > .select2-container--open .select2-dropdown {
                border: 1px solid var(--border);
                border-radius: 10px;
                box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
                background: var(--surface, #fff);
                padding: 4px;
            }
            body.sng-page-marketplace > .select2-container--open .select2-search--dropdown {
                padding: 6px 6px 4px;
            }
            body.sng-page-marketplace > .select2-container--open .select2-search--dropdown .select2-search__field {
                border: 1px solid var(--border);
                border-radius: 8px;
                font-size: 13px;
                font-weight: 500;
                line-height: 1.4;
                color: var(--text-primary, #0F172A);
                background: var(--surface-subtle, #F8FAFC);
                padding: 8px 12px;
                outline: none;
                transition: border-color 0.15s;
            }
            body.sng-page-marketplace > .select2-container--open .select2-search--dropdown .select2-search__field:focus {
                border-color: var(--brand, #FF4B33);
            }
            body.sng-page-marketplace > .select2-container--open .select2-dropdown .select2-results__options .select2-results__option {
                font-size: 13px;
                font-weight: 500;
                color: var(--text-secondary, #374151);
                line-height: 1.4;
                padding: 8px 12px;
                border-radius: 8px;
                margin: 1px 0;
                transition: background-color 0.12s, color 0.12s;
            }
            body.sng-page-marketplace > .select2-container--open .select2-results__option--selectable:hover {
                background-color: var(--primary-light);
                color: var(--primary);
            }
            body.sng-page-marketplace > .select2-container--open .select2-results__option--highlighted.select2-results__option--selectable,
            body.sng-page-marketplace > .select2-container--open .select2-results__option--highlighted[aria-selected] {
                background-color: var(--primary-light) !important;
                color: var(--primary) !important;
            }
            body.sng-page-marketplace > .select2-container--open .select2-dropdown .select2-results__options .select2-results__option[aria-selected="true"] {
                background-color: var(--primary) !important;
                color: #fff !important;
                font-weight: 500;
            }
            /* Same for the toolbar city dropdown (higher specificity than --highlighted, so the
               current selection shows the #FF4B33 fill instead of Select2's default blue). */
            .sng-feed-layout--marketplace .mp-filter-section {
                margin-top: 10px;
                padding-top: 8px;
                display: flex;
                flex-direction: column;
                gap: 6px;
            }
            .sng-feed-layout--marketplace .mp-filter-section-head {
                display: flex;
                align-items: center;
                gap: 8px;
                padding: 0 0 4px;
            }
            /* Conditional category cascade — level 2/3 wrappers hide until their parent is staged */
            .sng-feed-layout--marketplace .mp-cat-level--hidden {
                display: none !important;
            }
            /* Make/Brand + Model sidebar rows — same conditional reveal as the cascade levels */
            .sng-feed-layout--marketplace .mp-brand-level,
            .sng-feed-layout--marketplace .mp-model-level {
                margin-top: 10px;
            }
            /* Permanent filters promoted out of the Advanced drawer (Model Year / Condition) —
               sit between Make/Model and Price Range. */
            .sng-feed-layout--marketplace .mp-permanent-fields {
                display: flex;
                flex-direction: column;
                gap: 8px;
                margin-top: 10px;
            }
            .sng-feed-layout--marketplace .mp-permanent-fields .mp-perm-field {
                display: flex;
                flex-direction: column;
                gap: 4px;
            }
            /* Posted By — moved BELOW the Price Range section (before the Advanced drawer),
               so it gets its own separated block consistent with .mp-filter-section. */
            .sng-feed-layout--marketplace .mp-posted-by-level {
                display: flex;
                flex-direction: column;
                gap: 4px;
                margin-top: 10px;
                padding-top: 8px;
            }
            /* Unified modern chevron (sidebar + toolbar) — reference filled triangle
               (10x6 #667085) on every trigger, same as the native select. */
            .sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-selection__arrow,
            .sng-feed-layout--marketplace .mp-toolbar .select2-container .select2-selection__arrow {
                width: 30px;
                height: 38px;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M5 6 0 0h10z' fill='%23667085'/%3E%3C/svg%3E");
                background-repeat: no-repeat;
                background-position: center;
                background-size: 10px;
                transition: transform 0.18s ease;
            }
            .sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-selection__arrow b,
            .sng-feed-layout--marketplace .mp-toolbar .select2-container .select2-selection__arrow b {
                display: none;
            }
            /* Rotate 180° when open (search2 .select-trigger.active behavior) */
            .sng-feed-layout--marketplace .mp-filters-card .select2-container--open .select2-selection__arrow,
            .sng-feed-layout--marketplace .mp-toolbar .select2-container--open .select2-selection__arrow {
                transform: rotate(180deg);
            }
            .sng-feed-layout--marketplace .mp-advanced-wrap {
                margin-top: 10px;
                padding-top: 8px;
            }
            /* Advanced drawer body — NOT a Bootstrap display utility (their .d-flex is
               !important and would defeat Alpine's inline display:none from x-show). */
            .sng-feed-layout--marketplace .mp-advanced-body {
                display: flex;
                flex-direction: column;
                gap: 6px;
                margin-top: 6px;
            }
            .sng-feed-layout--marketplace .mp-advanced-toggle {
                display: flex;
                align-items: center;
                gap: 8px;
                width: 100%;
                border: 0;
                background: none;
                padding: 6px 0;
                cursor: pointer;
                font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
                font-size: 12px;
                font-weight: 600;
                color: var(--text-secondary, #344054);
                text-transform: uppercase;   /* same label look as every other filter label */
                letter-spacing: .04em;
            }
            .sng-feed-layout--marketplace .mp-advanced-toggle .flex-1 {
                flex: 1;
                text-align: left;
            }
            /* Apply button — Theme Marketplace page: dark slate CTA */
            .sng-feed-layout--marketplace .mp-apply-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                margin-top: 12px;
                padding: 0 12px;
                height: 44px;
                border: 0;
                border-radius: 12px;
                background: var(--primary);
                color: #fff;
                font-size: 12px;
                font-weight: 800;
                letter-spacing: .04em;
                text-transform: uppercase;
                cursor: pointer;
                transition: background-color 0.15s, transform 0.1s;
            }
            .sng-feed-layout--marketplace .mp-apply-btn:hover {
                background: var(--primary-hover, var(--primary));
            }
            .sng-feed-layout--marketplace .mp-apply-btn:active {
                transform: scale(0.99);
            }
            /* Settings card rows — tighter micro rows */
            .sng-feed-layout--marketplace .sng-side-card--settings .sng-sidebar-link {
                gap: 8px;
            }
            .sng-feed-layout--marketplace .sng-side-card--settings .sng-sidebar-link i {
                font-size: 12px;
                width: 14px;
            }

            /* —— Top toolbar: white rounded-2xl control bar, pinned under the header —— */
            .sng-feed-layout--marketplace .mp-filters-sticky {
                background: var(--bg-card) !important;
                border-bottom: 1px solid var(--border) !important;
                padding-bottom: 0;
                z-index: 40 !important;
                box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
            }
            .sng-feed-layout--marketplace .mp-toolbar-shell {
                padding: 12px 16px 8px;
            }
            .sng-feed-layout--marketplace .mp-toolbar {
                background: var(--bg-card);
                border: 1px solid var(--border);
                border-radius: 16px;
                box-shadow: var(--shadow-sm);
                padding: 12px;
                gap: 8px;
                flex-wrap: nowrap;
            }
            .sng-feed-layout--marketplace .mp-toolbar-controls {
                flex-wrap: nowrap;
                overflow: visible;
                gap: 8px;
            }
            /* Compact screens: allow the toolbar to fall back to two rows below ~1280px */
            @media (max-width: 1279px) {
                .sng-feed-layout--marketplace .mp-toolbar {
                    flex-wrap: wrap;
                }
                .sng-feed-layout--marketplace .mp-toolbar-controls {
                    flex-wrap: wrap;
                }
            }
            .sng-feed-layout--marketplace .mp-toolbar-search {
                gap: 8px;
            }
            .sng-feed-layout--marketplace .mp-toolbar-search-icon {
                position: absolute;
                left: 12px;
                top: 50%;
                transform: translateY(-50%);
                font-size: 12px;
                color: var(--text-muted);
                pointer-events: none;
                z-index: 2;
            }
            .sng-feed-layout--marketplace .mp-toolbar-search-input {
                border: 1px solid var(--border);
                border-radius: 10px;
                background: var(--surface-subtle, var(--bg-page));
                color: var(--text-primary, var(--text-main));
                font-size: 13px;
                font-weight: 500;
                line-height: 1.4;
                padding: 0 12px 0 34px;
                height: 42px;
                min-height: 42px;
                outline: none;
                transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
            }
            .sng-feed-layout--marketplace .mp-toolbar-search-input::placeholder {
                color: var(--text-muted);
                font-weight: 500;
            }
            .sng-feed-layout--marketplace .mp-toolbar-search-input:focus {
                border-color: var(--brand, #FF4B33);
                background: var(--surface, #fff);
                box-shadow: 0 0 0 3px rgba(255, 75, 51, 0.15);
            }
            /* Toolbar native selects (radius / sort) — filter triggers: 1px --border, filled triangle */
            .sng-feed-layout--marketplace .mp-toolbar-select {
                appearance: none;
                -webkit-appearance: none;
                border: 1px solid var(--border);
                border-radius: 10px;
                background-color: var(--surface-subtle, #F8FAFC);
                color: var(--text-primary, var(--text-main));
                font-size: 13px;
                font-weight: 600;
                padding: 0 34px 0 12px;
                height: 42px;
                min-height: 42px;
                max-width: 170px;
                outline: none;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M5 6 0 0h10z' fill='%23667085'/%3E%3C/svg%3E");
                background-repeat: no-repeat;
                background-position: right 14px center;
                background-size: 10px;
                transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
            }
            .sng-feed-layout--marketplace .mp-toolbar-select:focus {
                border-color: var(--brand, #FF4B33);
                background-color: var(--surface, #fff);
                box-shadow: 0 0 0 3px rgba(255, 75, 51, 0.15);
            }
            .sng-feed-layout--marketplace .mp-toolbar-select:disabled {
                opacity: .5;
                cursor: not-allowed;
            }
            /* Toolbar city Select2 — mirrors the sidebar filters-card Select2 (42px, 1px --border, radius 10) */
            .sng-feed-layout--marketplace .mp-toolbar .select2-container .select2-selection--single {
                height: 42px;
                min-height: 42px;
                border: 1px solid var(--border);
                border-radius: 10px;
                background: var(--surface-subtle, #F8FAFC);
                transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
            }
            .sng-feed-layout--marketplace .mp-toolbar .select2-container .select2-selection__rendered {
                display: flex;
                align-items: center;
                line-height: normal;
                font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
                font-size: 13px;
                font-weight: 500;
                color: var(--text-primary, var(--text-main));
                padding-left: 14px;
                padding-right: 36px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .sng-feed-layout--marketplace .mp-toolbar .select2-container .select2-selection__rendered:not(.select2-selection__placeholder) {
                font-weight: 500;
            }
            .sng-feed-layout--marketplace .mp-toolbar .select2-container .select2-selection__placeholder {
                color: var(--text-muted, #98A2B3) !important; /* beat injected select2-bootstrap (#6c757d) */
                font-weight: 500;
            }
            .sng-feed-layout--marketplace .mp-toolbar .select2-container--focus .select2-selection--single,
            .sng-feed-layout--marketplace .mp-toolbar .select2-container--open .select2-selection--single {
                border-color: var(--brand, #FF4B33);
                background: var(--surface, #fff);
                box-shadow: 0 0 0 3px rgba(255, 75, 51, 0.15);
            }
            .sng-feed-layout--marketplace .mp-toolbar .select2-container--disabled .select2-selection--single {
                opacity: .55;
                cursor: not-allowed;
            }
            /* Toolbar city dropdown + options — same language as sidebar dropdowns */
            .sng-feed-layout--marketplace .mp-toolbar .select2-dropdown {
                border: 1px solid var(--border);
                border-radius: 10px;
                box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
                background: var(--surface, #fff);
                padding: 4px;
                z-index: 100;
            }
            .sng-feed-layout--marketplace .mp-toolbar .select2-search--dropdown {
                padding: 6px 6px 4px;
            }
            .sng-feed-layout--marketplace .mp-toolbar .select2-search--dropdown .select2-search__field {
                border: 1px solid var(--border);
                border-radius: 8px;
                font-size: 13px;
                font-weight: 500;
                line-height: 1.4;
                color: var(--text-primary, #0F172A);
                background: var(--surface-subtle, #F8FAFC);
                padding: 8px 12px;
                outline: none;
                transition: border-color 0.15s;
            }
            .sng-feed-layout--marketplace .mp-toolbar .select2-search--dropdown .select2-search__field::placeholder {
                color: var(--text-muted, #98A2B3);
            }
            .sng-feed-layout--marketplace .mp-toolbar .select2-search--dropdown .select2-search__field:focus {
                border-color: var(--brand, #FF4B33);
            }
            .sng-feed-layout--marketplace .mp-toolbar .select2-container .select2-results__option {
                font-size: 13px;
                font-weight: 500;
                color: var(--text-secondary, #374151);
                line-height: 1.4;
                padding: 8px 12px;
                border-radius: 8px;
                margin: 1px 0;
                transition: background-color 0.12s, color 0.12s;
            }
            .sng-feed-layout--marketplace .mp-toolbar .select2-container .select2-results__option--selectable:hover {
                background-color: var(--primary-light);
                color: var(--primary);
            }
            .sng-feed-layout--marketplace .mp-toolbar .select2-container .select2-results__option--highlighted.select2-results__option--selectable,
            .sng-feed-layout--marketplace .mp-toolbar .select2-container .select2-results__option--highlighted[aria-selected] {
                background-color: var(--primary-light) !important;
                color: var(--primary) !important;
            }
            .sng-feed-layout--marketplace .mp-toolbar .select2-container .select2-results__option[aria-selected="true"] {
                background-color: var(--primary) !important;
                color: #fff !important;
                font-weight: 500;
            }
            .sng-feed-layout--marketplace .mp-view-toggle {
                padding: 3px;
            }
            .sng-feed-layout--marketplace .mp-view-btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 32px;
                height: 32px;
                border-radius: 8px;
                font-size: 13px;
                border: 1px solid var(--border);
                background: var(--bg-page);
                color: var(--text-muted);
                cursor: pointer;
                transition: background-color 0.15s, color 0.15s, border-color 0.15s;
            }
            .sng-feed-layout--marketplace .mp-view-btn:hover {
                color: var(--primary);
                border-color: var(--primary);
            }
            .sng-feed-layout--marketplace .mp-view-btn.is-active {
                background: var(--primary-light);
                color: var(--primary);
                border-color: var(--primary);
            }
            .sng-feed-layout--marketplace .mp-sell-btn {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                padding: 9px 16px;
                border: 0;
                border-radius: 12px;
                background: var(--primary);
                color: #fff;
                font-size: 12px;
                font-weight: 700;
                cursor: pointer;
                white-space: nowrap;
                transition: background-color 0.15s, box-shadow 0.15s, transform 0.1s;
            }
            .sng-feed-layout--marketplace .mp-sell-btn:hover {
                background: var(--primary-hover, var(--primary));
                box-shadow: 0 4px 12px var(--primary-light);
            }
            .sng-feed-layout--marketplace .mp-sell-btn:active {
                transform: scale(0.98);
            }
            .sng-feed-layout--marketplace .mp-sell-btn i {
                font-size: 11px;
            }

            /* —— Listing count row —— */
            .sng-feed-layout--marketplace .mp-count-row {
                padding: 4px 0;
            }
            .sng-feed-layout--marketplace .mp-count-main {
                font-size: 12px;
                font-weight: 900;
                color: var(--text-primary, #0f172a);
            }
            .sng-feed-layout--marketplace .mp-count-main strong {
                font-size: 12px;
                font-weight: 900;
                color: inherit;
            }
            .sng-feed-layout--marketplace .mp-count-sub {
                font-size: 11px;
                color: var(--text-muted);
            }
            .sng-feed-layout--marketplace .mp-count-sub strong {
                color: var(--text-main);
                font-weight: 700;
            }

            /* —— Grid cards: white rounded-2xl, hover ring —— */
            .sng-feed-layout--marketplace .listings-grid .mp-card {
                background: var(--bg-card) !important;
                border: 1px solid var(--border) !important;
                border-radius: 16px;
                box-shadow: var(--shadow-sm);
                overflow: hidden;
                transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
            }
            .sng-feed-layout--marketplace .listings-grid .mp-card:hover {
                border-color: var(--primary) !important;
                box-shadow: var(--shadow-md);
                transform: translateY(-1px);
            }
            .sng-feed-layout--marketplace .listings-grid .mp-card .classifi-image {
                overflow: hidden;
                background-color: var(--bg-page) !important;
            }
            .sng-feed-layout--marketplace .listings-grid .mp-card .classifi-content {
                padding: 12px 14px 14px;
                gap: 4px;
            }
            /* Override #1 — price ABOVE the title, theme brand color, heavy weight.
               Bumped from 14px/800 → 16px/800 so cards read comfortably, not shrunk/bold. */
            .sng-feed-layout--marketplace .listings-grid .mp-card .classifi-price {
                color: var(--brand, #FF4B33) !important;
                font-size: 16px !important;
                font-weight: 800 !important;
                padding-top: 0 !important;
                margin: 0 !important;
            }
            .sng-feed-layout--marketplace .listings-grid .mp-card .classifi-title {
                color: var(--text-primary, #101828) !important;
                font-size: 14px !important;
                font-weight: 600 !important;
            }
            .sng-feed-layout--marketplace .listings-grid .mp-card .classifi-location,
            .sng-feed-layout--marketplace .listings-grid .mp-card .classifi-location i {
                color: var(--text-tertiary, #667085) !important;
                font-size: 12px !important;
                font-weight: 400 !important;
            }
            .sng-feed-layout--marketplace .listings-grid .mp-card .ad-time {
                color: var(--text-tertiary, #667085) !important;
                font-size: 12px !important;
                font-weight: 400 !important;
            }
            .sng-feed-layout--marketplace .listings-grid .mp-card .ad-time i {
                font-size: 12px;
                font-weight: 900;
                margin-right: 3px;
                vertical-align: middle;
            }
            /* Bottom meta row — city left, publish date/time on the extreme right
               (desktop/tablet; mobile premium file covers ≤767px). The base rule is
               block-level, so force flex here to keep the time pinned to the right
               inline with the city. */
            .sng-feed-layout--marketplace .listings-grid .mp-card .classifi-content .mp-card-meta-row {
                display: flex !important;
                align-items: center;
                justify-content: space-between;
                gap: 8px;
                margin-top: auto;
                padding-top: 8px;
                min-width: 0;
            }
            .sng-feed-layout--marketplace .listings-grid .mp-card .classifi-content .mp-card-meta-row .ad-time {
                flex-shrink: 0;
                margin-left: auto !important;
                white-space: nowrap;
            }
            .sng-feed-layout--marketplace .listings-grid .mp-card .classifi-content .mp-card-meta-row .classifi-location {
                min-width: 0;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
            .sng-feed-layout--marketplace .listings-grid .mp-card .classifi-content .mp-card-meta-row .classifi-location i {
                font-size: 12px !important;
                font-weight: 900 !important;
                margin-right: 3px;
            }
            /* Featured badge — reference top-left primary chip */
            .sng-feed-layout--marketplace .listings-grid .mp-card .mp-featured-badge,
            .sng-feed-layout--marketplace #mp-list .mp-featured-badge {
                position: absolute !important;
                top: 10px;
                left: 10px;
                z-index: 5;
                font-size: 9px !important;
                font-weight: 800 !important;
                text-transform: uppercase;
                letter-spacing: .4px;
                padding: 3px 8px;
                border-radius: 6px;
                background: var(--primary) !important;
                color: #fff !important;
                box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
            }
            /* Heart save — glass circle top-right */
            .sng-feed-layout--marketplace .listings-grid .grid-save-btn {
                top: 8px;
                right: 8px;
                width: 28px;
                height: 28px;
                background: rgba(255, 255, 255, 0.8);
                -webkit-backdrop-filter: blur(6px);
                backdrop-filter: blur(6px);
                color: var(--text-main);
                font-size: 12px;
                box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
            }
            .sng-feed-layout--marketplace .listings-grid .grid-save-btn:hover {
                background: #fff;
            }
            .sng-feed-layout--marketplace .listings-grid .grid-save-btn .fa-solid.fa-heart {
                color: var(--primary);
            }

            /* —— List cards: light restyle, same colors/rounding —— */
            .sng-feed-layout--marketplace #mp-list .mp-list-row {
                background: var(--bg-card) !important;
                border: 1px solid var(--border) !important;
                border-radius: 16px;
                box-shadow: var(--shadow-sm);
                padding: 12px !important;
                margin-bottom: 12px;
                transition: box-shadow 0.2s ease, border-color 0.2s ease;
            }
            .sng-feed-layout--marketplace #mp-list .mp-list-row:hover {
                border-color: var(--primary) !important;
                box-shadow: var(--shadow-md);
            }
            .sng-feed-layout--marketplace #mp-list .mp-list-row .mp-list-thumb {
                width: 120px !important;
                height: 90px !important;
                min-width: 120px !important;
                flex-basis: 120px !important;
                border-radius: 12px;
                position: relative;
            }
            .sng-feed-layout--marketplace #mp-list .mp-list-row .mp-list-price {
                color: var(--brand, #FF4B33) !important;
                font-size: 16px !important;
                font-weight: 800 !important;
            }
            .sng-feed-layout--marketplace #mp-list .mp-list-row .mp-list-title {
                color: var(--text-primary, #101828) !important;
                font-size: 14px !important;
                font-weight: 500 !important;
            }
            .sng-feed-layout--marketplace #mp-list .mp-list-row .mp-list-meta,
            .sng-feed-layout--marketplace #mp-list .mp-list-row .classifi-location.mp-list-meta,
            .sng-feed-layout--marketplace #mp-list .mp-list-row .ad-time.mp-list-meta {
                color: var(--text-tertiary, #667085) !important;
                font-size: 12px !important;
                font-weight: 400 !important;
            }
            /* List bottom meta row — city left, publish date/time on the extreme right
               inline (mirrors grid). */
            .sng-feed-layout--marketplace #mp-list .mp-list-row .mp-list-meta-row {
                display: flex !important;
                align-items: center;
                justify-content: space-between;
                gap: 8px;
                min-width: 0;
            }
            .sng-feed-layout--marketplace #mp-list .mp-list-row .mp-list-meta-row .ad-time {
                flex-shrink: 0;
                margin-left: auto !important;
                white-space: nowrap;
            }
            .sng-feed-layout--marketplace #mp-list .mp-list-row .mp-list-meta-row .classifi-location.mp-list-meta {
                min-width: 0;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
            .sng-feed-layout--marketplace #mp-list .mp-list-row .mp-list-meta-row .classifi-location.mp-list-meta i {
                font-size: 11px !important;
                margin-right: 3px;
            }
            .sng-feed-layout--marketplace #mp-list .classifi-box.list {
                position: relative;
            }
            .sng-feed-layout--marketplace #mp-list .mp-list-save-btn {
                position: absolute;
                top: 12px;
                right: 12px;
                z-index: 6;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 28px;
                height: 28px;
                padding: 0;
                border: 0;
                border-radius: 50%;
                background: rgba(255, 255, 255, 0.8);
                -webkit-backdrop-filter: blur(6px);
                backdrop-filter: blur(6px);
                color: var(--text-main);
                font-size: 12px;
                line-height: 1;
                box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
                cursor: pointer;
                transition: transform 0.15s ease, background 0.15s ease;
            }
            .sng-feed-layout--marketplace #mp-list .mp-list-save-btn:hover {
                background: #fff;
                transform: scale(1.08);
            }
            .sng-feed-layout--marketplace #mp-list .mp-list-save-btn .fa-solid.fa-heart {
                color: var(--primary);
            }
            .sng-feed-layout--marketplace #mp-list .mp-list-save-btn .fa-regular.fa-heart {
                color: var(--text-main);
            }
            .sng-feed-layout--marketplace #mp-list .mp-list-save-btn:active {
                transform: scale(0.9);
            }
            .sng-feed-layout--marketplace #mp-list [dir="rtl"] .mp-list-save-btn {
                right: auto;
                left: 12px;
            }
        }

/* ============================================================
   ALIBABA / TEMU (al-*) COMPONENT LAYER — SINGLE SOURCE
   ------------------------------------------------------------
   Merged from the retired alibaba-layout.css / alibaba-components.css
   / mobile-app-premium.css into this one layout stylesheet (the
   marketplace + category + listing-detail + mobile chrome use these
   classes). Tokens (--al-*) resolve through hd-theme-system.css so
   the 4-theme + night-mode theming applies.
   ============================================================ */

/* ---- Utility: hide mobile-only / desktop-only ---- */
@media (min-width: 768px) {
  .al-mobile-only { display: none !important; }
}
@media (max-width: 767px) {
  .al-desktop-only { display: none !important; }
}

/* ---- Top Bar (Alibaba-style minimal) ---- */
.al-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: calc(var(--al-topbar-height) + var(--al-safe-top));
  padding-top: var(--al-safe-top);
  background: var(--al-card);
  border-bottom: 1px solid var(--al-border-light);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
}
.al-topbar-inner {
  display: flex;
  align-items: center;
  height: var(--al-topbar-height);
  padding: 0 12px;
  gap: 8px;
}
.al-topbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  color: var(--al-text);
  letter-spacing: -0.03em;
}
.al-topbar-logo span { color: var(--al-primary); }
.al-topbar-spacer { flex: 1; min-width: 0; }
.al-topbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.al-topbar-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--al-text-secondary);
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
  position: relative;
}
.al-topbar-btn:active { background: var(--al-border-light); }
.al-topbar-btn svg { width: 22px; height: 22px; }
.al-topbar-btn--create { background: var(--al-primary, var(--primary)); color: var(--color-on-primary, #fff); }
.al-topbar-btn--create:active { background: var(--al-primary-hover); }
.al-topbar-btn--create svg { stroke: #fff; }
.al-topbar-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--al-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  border-radius: 8px;
  text-align: center;
  border: 2px solid var(--al-card);
}
.al-topbar-spacer-block {
  height: calc(var(--al-topbar-height) + var(--al-safe-top));
}
.al-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--al-border-light);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--al-text-secondary);
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}
.al-location-pill:active { background: var(--al-border); }
.al-location-pill svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---- Bottom Navigation (Alibaba/Temu style) ---- */
.al-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--al-card);
  border-top: 1px solid var(--al-border-light);
  padding-bottom: var(--al-safe-bottom);
  box-shadow: 0 -1px 0 rgba(0,0,0,0.02);
}
.al-bottom-nav-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  height: var(--al-nav-height);
  max-width: 500px;
  margin: 0 auto;
}
.al-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex: 1;
  height: 100%;
  text-decoration: none;
  color: var(--al-text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  padding: 0;
  min-height: 44px;
}
.al-nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.al-nav-item:active svg { transform: scale(0.9); }
.al-nav-label {
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  margin-top: 1px;
  transition: color 0.15s ease;
}
.al-nav-item.active { color: var(--al-primary); }
.al-nav-badge {
  position: absolute;
  top: 2px;
  right: 50%;
  margin-right: -16px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--al-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  border-radius: 8px;
  text-align: center;
  border: 2px solid var(--al-card);
}
.al-sell-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--al-primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(255, 75, 51, 0.38);
  cursor: pointer;
  margin-top: -14px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.al-sell-fab:active {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(255, 75, 51, 0.3);
}
.al-sell-fab svg { width: 22px; height: 22px; }

/* ---- Category Strip (horizontal scroll) ---- */
.al-category-strip {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding: 8px 12px;
  background: var(--al-card);
  border-bottom: 1px solid var(--al-border-light);
}
.al-category-strip::-webkit-scrollbar { display: none; }
.al-category-inner {
  display: flex;
  gap: 12px;
  min-width: max-content;
}
.al-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 60px;
  scroll-snap-align: start;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  border: none;
  background: transparent;
  padding: 0;
}
.al-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--al-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.al-category-item:active .al-category-icon { transform: scale(0.92); }
.al-category-item.active .al-category-icon {
  background: var(--al-primary-light);
  color: var(--al-primary);
}
.al-category-item.active .al-category-label {
  color: var(--al-primary);
  font-weight: 700;
}
.al-category-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--al-text-muted);
  white-space: nowrap;
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  transition: color 0.15s ease;
}

/* ---- Product Grid + Card (mobile marketplace/category grid) ---- */
.al-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 80px;
}
@media (min-width: 640px) {
  .al-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .al-product-grid { grid-template-columns: repeat(4, 1fr); }
}
.al-product-card {
  background: var(--al-card);
  border-radius: var(--al-radius-md);
  overflow: hidden;
  box-shadow: var(--al-shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}
.al-product-card:active { box-shadow: var(--al-shadow-md); }
.al-product-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--al-border-light);
}
.al-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.al-product-card:active .al-product-image { transform: scale(1.05); }
.al-product-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  background: var(--al-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  line-height: 1.3;
}
.al-product-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.al-product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--al-primary);
  line-height: 1.2;
}
.al-product-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--al-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.al-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
}
.al-product-location {
  font-size: 11px;
  color: var(--al-text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}
.al-product-location svg { width: 12px; height: 12px; flex-shrink: 0; }
.al-product-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--al-text-muted);
}
.al-product-stats svg { width: 12px; height: 12px; }

/* ---- Listing Detail (mobile chrome) ---- */
.al-detail-page { padding-bottom: calc(80px + var(--al-safe-bottom)); }
.al-detail-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  height: var(--al-topbar-height);
  padding: 0 8px;
  background: var(--al-card);
  border-bottom: 1px solid var(--al-border-light);
  gap: 4px;
  padding-top: var(--al-safe-top);
  min-height: calc(var(--al-topbar-height) + var(--al-safe-top));
}
.al-detail-back {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--al-text);
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.al-detail-back:active { background: var(--al-border-light); }
.al-detail-back svg { width: 22px; height: 22px; }
.al-detail-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--al-text);
}

/* ---- Skeleton placeholders + shimmer ---- */
.al-skeleton {
  background: linear-gradient(90deg, var(--al-border-light) 25%, var(--al-border) 50%, var(--al-border-light) 75%);
  background-size: 200% 100%;
  animation: al-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes al-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.al-skeleton-card {
  background: var(--al-card);
  border-radius: var(--al-radius-md);
  overflow: hidden;
  box-shadow: var(--al-shadow-sm);
}
.al-skeleton-image {
  aspect-ratio: 4/3;
  background: linear-gradient(90deg, var(--al-border-light) 25%, var(--al-border) 50%, var(--al-border-light) 75%);
  background-size: 200% 100%;
  animation: al-shimmer 1.5s ease-in-out infinite;
}
.al-skeleton-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.al-skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, var(--al-border-light) 25%, var(--al-border) 50%, var(--al-border-light) 75%);
  background-size: 200% 100%;
  animation: al-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}
.al-skeleton-line--short { width: 60%; }
.al-skeleton-line--medium { width: 80%; }

/* ---- Premium polish (≤767px) — merged from mobile-app-premium.css.
   Uses --color-* tokens (bridged in hd-theme-system.css) so the
   theme + night mode recolor the mobile chrome. ---- */
@media (max-width: 767px) {
  .al-topbar {
    height: calc(var(--al-topbar-height) + var(--al-safe-top));
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 8px var(--color-shadow);
  }
  .al-topbar-btn--create {
    background: var(--color-primary);
    color: var(--color-on-primary);
  }
  .al-topbar-btn--create svg { stroke: var(--color-on-primary); }
  .al-topbar-btn--create:active { background: var(--color-primary-hover); }
  .al-topbar-btn {
    color: var(--color-text);
    transition: background 0.15s ease, transform 0.15s ease;
  }
  .al-topbar-btn:active {
    background: var(--color-surface-hover);
    transform: scale(0.94);
  }
  .al-topbar-btn svg { width: 22px; height: 22px; }
  .al-location-pill {
    background: var(--color-surface-hover);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    min-height: 30px;
  }
  .al-location-pill:active {
    background: var(--color-bg);
    transform: scale(0.97);
  }
  .al-location-pill svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
  }
  .al-topbar-badge {
    background: var(--color-primary);
    border-color: var(--color-surface);
  }

  .al-bottom-nav {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 12px var(--color-shadow);
  }
  .al-nav-item {
    min-height: 48px;
    gap: 2px;
  }
  .al-nav-item.active::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: var(--color-primary-light);
    transition: background 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 0;
  }
  .al-nav-item.active svg { position: relative; z-index: 1; }
  .al-nav-item { color: var(--color-text-muted); transition: color 0.2s ease; }
  .al-nav-item.active { color: var(--color-primary); }
  .al-nav-item.active .al-nav-label { color: var(--color-primary); font-weight: 700; }
  .al-nav-label { font-size: 10px; color: var(--color-text-muted); }
  .al-nav-item:active svg { transform: scale(0.88); }
  .al-sell-fab {
    background: var(--color-primary);
    box-shadow: 0 4px 14px var(--color-primary-ring);
  }
  .al-sell-fab svg { stroke: var(--color-on-primary); }
  .al-sell-fab:active {
    transform: scale(0.92);
    box-shadow: 0 2px 8px var(--color-primary-ring);
  }

  .al-category-strip {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 12px;
  }
  .al-category-inner { gap: 8px; }
  .al-category-item { width: 64px; gap: 6px; }
  .al-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    box-shadow: 0 1px 2px var(--color-shadow);
    transition: transform 0.15s ease, background 0.2s ease,
                border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }
  .al-category-icon svg { width: 24px; height: 24px; stroke-width: 2; }
  .al-category-item:active .al-category-icon { transform: scale(0.92); }
  .al-category-item.active .al-category-icon {
    background: var(--color-primary-light);
    border-color: var(--color-primary-ring);
    color: var(--color-primary);
    box-shadow: inset 0 0 0 1px var(--color-primary-ring);
  }
  .al-category-item.active .al-category-label { color: var(--color-primary); font-weight: 700; }
  .al-category-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-muted);
    max-width: 60px;
    line-height: 1.2;
  }

  .al-product-card {
    background: var(--color-surface);
    border-radius: 16px;
    box-shadow: 0 1px 3px var(--color-shadow);
  }
  .al-product-card .al-product-price { color: var(--color-primary); }
  .al-product-card .al-product-title { color: var(--color-text); }
  .al-product-card .al-product-location { color: var(--color-text-muted); }
  .al-product-card .al-product-badge {
    background: var(--color-primary);
    color: var(--color-on-primary);
  }

  .al-topbar,
  .al-bottom-nav,
  .al-category-strip,
  .mp-card,
  .mp-list-row,
  .al-product-card,
  .mp-sheet {
    transition: background-color 0.25s ease, border-color 0.25s ease,
                box-shadow 0.25s ease, color 0.25s ease;
  }
}

/* ============================================================
   QUICKAD SIDEBAR DRAWER (slide-left)
   Migrated from retired quickad-patterns.css — single source.
   Markup lives in layouts/mobile.blade.php (.qa-sidebar).
   Opened via openQaSidebar() in public/js/dubuz-nav.js.
   Desktop hide already handled at top of this file.
   ============================================================ */
@media (max-width: 1023px) {
  /* Lock scroll while drawer is open */
  body.noscroll {
    overflow: hidden !important;
    touch-action: none;
  }

  /* Sidebar overlay */
  .qa-overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    top: 0;
    left: 0;
    transition: opacity 0.28s ease;
  }

  .qa-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Slide-left drawer */
  .qa-sidebar {
    width: min(300px, 86vw);
    position: fixed;
    top: 0;
    left: -310px;
    height: 100vh;
    height: 100dvh;
    z-index: 999;
    background-color: var(--bg-card, #ffffff);
    color: var(--text-main, #1e293b);
    transition: left 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.14);
    display: flex;
    flex-direction: column;
  }

  .qa-sidebar.active {
    left: 0;
  }

  /* Sidebar header — brand gradient, compact */
  .qa-sidebar .sidebar-header {
    padding: 16px 16px 12px;
    padding-top: max(16px, env(safe-area-inset-top));
    background: linear-gradient(145deg, var(--primary, #FF4B33) 0%, var(--primary-hover, #e03a24) 100%);
    color: #fff;
    flex-shrink: 0;
  }

  .qa-sidebar .sidebar-header .profile {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .qa-sidebar .sidebar-header .user-image {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.18);
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }

  .qa-sidebar .sidebar-header .user-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .qa-sidebar .sidebar-header .name {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }

  .qa-sidebar .sidebar-header .acc {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.78);
    margin-top: 1px;
  }

  .qa-sidebar .sidebar-header a.acc {
    text-decoration: none;
    display: inline-block;
  }

  .qa-sidebar .sidebar-header a.acc:hover {
    text-decoration: underline;
    color: #fff;
  }

  .qa-sidebar .sidebar-header .stats {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.18);
  }

  .qa-sidebar .sidebar-header .stat {
    flex: 1;
    text-align: center;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 6px 4px;
  }

  .qa-sidebar .sidebar-header .stat .count {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
  }

  .qa-sidebar .sidebar-header .stat .label {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 1px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  /* Nav structure — denser list */
  .qa-sidebar-nav {
    flex: 1;
    padding: 4px 0 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .qa-sidebar .qa-nav-label {
    margin: 8px 12px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
  }

  .qa-sidebar ul {
    padding: 0 8px;
    margin: 0;
    list-style: none;
  }

  .qa-sidebar ul li {
    margin: 1px 0;
  }

  .qa-sidebar ul li a {
    padding: 12px 12px !important;
    min-height: 44px;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1.3 !important;
    color: var(--text-main, #1e293b) !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: background 0.12s ease, color 0.12s ease !important;
  }

  .qa-sidebar ul li a:hover,
  .qa-sidebar ul li a:focus {
    color: var(--text-main, #1e293b) !important;
    background-color: var(--sidebar-hover, #f1f5f9) !important;
  }

  /* Current route — highlighted */
  .qa-sidebar ul li a.active,
  .qa-sidebar ul li a[aria-current="page"] {
    background-color: var(--sidebar-active-bg, rgba(255, 75, 51, 0.08)) !important;
    color: var(--primary, #FF4B33) !important;
    font-weight: 600 !important;
    box-shadow: inset 3px 0 0 var(--primary, #FF4B33);
  }

  /* Colored icon tiles */
  .qa-sidebar .qa-nav-ico {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #8e8e93;
    color: #fff !important;
    flex-shrink: 0 !important;
  }

  .qa-sidebar ul li a i,
  .qa-sidebar ul li a .f7-icons,
  .qa-sidebar ul li a .qa-nav-ico i {
    font-size: 13px !important;
    width: auto !important;
    text-align: center !important;
    color: #fff !important;
  }

  /* Keep tile colors on hover/active — only row bg changes */
  .qa-sidebar ul li a:hover .qa-nav-ico,
  .qa-sidebar ul li a.active .qa-nav-ico,
  .qa-sidebar ul li a[aria-current="page"] .qa-nav-ico {
    opacity: 1;
  }

  .qa-sidebar ul li a:hover i,
  .qa-sidebar ul li a:hover .f7-icons,
  .qa-sidebar ul li a:hover .qa-nav-ico i,
  .qa-sidebar ul li a.active i,
  .qa-sidebar ul li a.active .f7-icons,
  .qa-sidebar ul li a.active .qa-nav-ico i,
  .qa-sidebar ul li a[aria-current="page"] i,
  .qa-sidebar ul li a[aria-current="page"] .f7-icons,
  .qa-sidebar ul li a[aria-current="page"] .qa-nav-ico i {
    color: #fff !important;
  }

  .qa-sidebar .qa-nav-txt {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .qa-sidebar ul li a.active .qa-nav-txt,
  .qa-sidebar ul li a[aria-current="page"] .qa-nav-txt {
    color: var(--primary, #FF4B33) !important;
    font-weight: 600 !important;
  }

  .qa-sidebar .qa-nav-footer {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border, #e2e8f0);
  }

  .qa-sidebar .qa-nav-signout {
    color: #dc2626 !important;
  }

  .qa-sidebar .qa-nav-signout .qa-nav-txt {
    color: #dc2626 !important;
  }

  .qa-sidebar .qa-nav-cta {
    background: var(--primary-light, rgba(255, 75, 51, 0.08));
    color: var(--primary, #FF4B33) !important;
  }

  .qa-sidebar .qa-nav-cta .qa-nav-txt {
    color: var(--primary, #FF4B33) !important;
    font-weight: 600 !important;
  }

  /* Dismiss (xmark) button */
  #qa-dismiss {
    cursor: pointer;
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    transition: background 0.2s, color 0.2s;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255,255,255,0.14);
    border: none;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  #qa-dismiss:hover,
  #qa-dismiss:active {
    color: #fff;
    background: rgba(255,255,255,0.28);
  }

  /* Hamburger trigger in topbar */
  .qa-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 22px;
    cursor: pointer;
  }

  .sng-hide-desktop .qa-hamburger {
    display: flex !important;
  }

  /* Night mode — drawer only */
  .night-mode .qa-sidebar {
    background-color: #1a1a2e !important;
    color: #ddd !important;
  }

  .night-mode .qa-sidebar .qa-nav-label {
    color: #94a3b8 !important;
  }

  .night-mode .qa-sidebar ul li a {
    color: #e2e8f0 !important;
  }

  .night-mode .qa-sidebar ul li a:hover,
  .night-mode .qa-sidebar ul li a.active,
  .night-mode .qa-sidebar ul li a[aria-current="page"] {
    background-color: rgba(255, 75, 51, 0.16) !important;
  }

  .night-mode .qa-sidebar ul li a.active .qa-nav-txt,
  .night-mode .qa-sidebar ul li a[aria-current="page"] .qa-nav-txt {
    color: #fca5a5 !important;
  }

  .night-mode .qa-sidebar .qa-nav-ico,
  .night-mode .qa-sidebar ul li a .qa-nav-ico i,
  .night-mode .qa-sidebar ul li a:hover .qa-nav-ico i,
  .night-mode .qa-sidebar ul li a.active .qa-nav-ico i,
  .night-mode .qa-sidebar ul li a[aria-current="page"] .qa-nav-ico i {
    color: #fff !important;
  }

  .night-mode .qa-sidebar .qa-nav-footer {
    border-top-color: rgba(255,255,255,0.1) !important;
  }
}

/* ============================================================
   MOBILE THEME PARITY (≤767px)
   Appended last so it wins the cascade for mobile. Everything is
   scoped to max-width: 767px — desktop ≥768px is untouched.
   Bottom nav → 88px / 5 flat tabs / red active tile; feed cards →
   Facebook hero + glass price pill; marketplace price → 16px/700
   dark; topbar / auth / listing-detail polish per the theme files.
   ============================================================ */
@media (max-width: 767px) {

  /* ---------- 88px bottom nav: 5 flat tabs + active red tile ---------- */
  .al-bottom-nav {
    height: calc(88px + var(--al-safe-bottom));
    padding-bottom: var(--al-safe-bottom);
    background: var(--color-surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 16px var(--color-shadow);
  }
  .al-bottom-nav-inner {
    height: 88px;
    align-items: stretch;
    gap: 0;
  }
  .al-nav-item { gap: 3px; }
  .al-nav-item.active::before { display: none; }
  .al-nav-icon-tile {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: transparent;
    transition: background 0.2s ease;
  }
  .al-nav-item.active .al-nav-icon-tile {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
  }
  .al-nav-item.active .al-nav-icon-tile svg,
  .al-nav-item.active .al-nav-icon-tile i { color: var(--primary); }
  .al-nav-item { color: var(--text-muted, var(--color-text-muted)); }
  .al-nav-item.active { color: var(--primary); }
  .al-nav-item.active .al-nav-label { color: var(--primary); font-weight: 700; }
  .al-nav-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted, var(--color-text-muted));
    letter-spacing: 0.01em;
  }
  .al-sell-fab { display: none !important; }

  /* Nav clearance — keep content above the taller (88px) bar */
  .sng-feed-container > main.min-h-screen {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.sng-listing-immersive .sng-feed-container > main.min-h-screen {
    padding-bottom: 0 !important;
  }
  .sng-form-actions {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .page-content:not(#page-businesses) .pb-16 {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* ---------- Feed card: Facebook hero + glass price pill ---------- */
  .sng-post-narrative {
    margin: 0 !important;
    padding: 2px 12px 10px !important;
    font-size: 13px !important;
    font-weight: 400;
    line-height: 1.5 !important;
    color: var(--text-main) !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Below-image price/title/desc are replaced by the hero on mobile */
  .sng-post-price,
  .sng-post-title { display: none; }
  .sng-post-desc:not(.sng-post-narrative) { display: none; }

  .sng-post-media { position: relative; }
  .sng-post-hero {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 14px;
    text-align: center;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 45%);
  }
  .sng-post-hero-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    max-width: 92%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .sng-post-hero-spec {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--primary);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  }
  .sng-post-hero-dot { opacity: 0.65; margin: 0 4px; }

  .sng-post-price-pill {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--price-glass-bg);
    border: 1px solid var(--price-glass-border);
    backdrop-filter: blur(var(--price-glass-blur));
    -webkit-backdrop-filter: blur(var(--price-glass-blur));
    box-shadow: var(--price-glass-shadow);
    color: var(--price-glass-text);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .sng-post-price-pill-neg {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    color: color-mix(in srgb, var(--price-glass-text) 75%, var(--danger, #F04438));
    background: color-mix(in srgb, var(--primary) 12%, rgba(255, 255, 255, 0.65));
  }

  /* Category pill (header right) — small subtle chip */
  .sng-post-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-muted);
    background: var(--color-surface-hover, var(--bg-page));
    border: 1px solid var(--border);
    white-space: nowrap;
  }
  .sng-post-seller-name { font-size: 12px !important; font-weight: 700 !important; }

  /* ---------- Marketplace: dark 16px/700 price, square image, muted meta ---------- */
  .mp-card .classifi-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    letter-spacing: -0.01em;
  }
  .mp-card .classifi-price .fa-tag { display: none; }
  .mp-card .classifi-image { aspect-ratio: 1 / 1 !important; }
  .mp-card .classifi-title {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--text-main) !important;
  }
  .mp-card .mp-card-meta-row,
  .mp-card .classifi-location,
  .mp-card .ad-time {
    font-size: 11px !important;
    color: var(--text-muted) !important;
  }
  .mp-list-row .mp-list-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
  }
  .mp-list-row .mp-list-price .fa-tag { display: none; }
  .listings-grid { gap: 12px !important; }

  /* ---------- Topbar / header: bigger wordmark, brand location chip ---------- */
  .al-topbar-logo { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
  .al-topbar-logo span { color: var(--al-primary); }
  .al-location-pill {
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary-ring);
    color: var(--color-primary);
  }
  .al-location-pill svg { color: var(--color-primary); }

  /* ---------- Auth (login) parity ---------- */
  .al-auth-card { border-radius: 32px; }
  .al-auth-input {
    height: 48px;
    border-radius: 12px;
    background: var(--color-bg);
    border-color: var(--color-border);
  }
  .al-auth-submit {
    height: 48px;
    border-radius: 12px;
    background: #0f172a;
  }
  .al-auth-submit:active { background: #1e293b; }

  /* ---------- Listing detail: dark 24px/900 price, 14px bold title ---------- */
  #page-listing-detail .classifi-price {
    color: var(--text-main) !important;
    font-size: 24px !important;
    font-weight: 900 !important;
  }
  #page-listing-detail .classifi-title {
    font-size: 14px !important;
    font-weight: 700 !important;
  }
  .ld-price {
    color: var(--text-main) !important;
    font-size: 24px !important;
    font-weight: 900 !important;
  }
  .ld-page.detail-immersive .detail-subsite .classifi-price {
    color: var(--text-main) !important;
    font-size: 24px !important;
    font-weight: 900 !important;
  }
  .ld-page.detail-immersive .detail-subsite .classifi-title {
    font-size: 14px !important;
    font-weight: 700 !important;
  }
}

/* ============================================================================
   MARKETPLACE REBUILD — mockup design (single source: gemini-code mockup)
   Scoped classes: .mp-workspace / .mp-refine / .mp-statusbar / .mp2-*
   Replaces the old .mp-card / .classifi-* marketplace card theme.
   ============================================================================ */

/* ---------- Workspace: Refine Search sidebar + results column ---------- */
.mp-workspace {
  padding: 16px 12px 8px;
}
.mp-workspace-side {
  display: none;
}
.mp-workspace-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .mp-workspace {
    padding: 20px 24px 8px;
  }
}
@media (min-width: 1024px) {
  .mp-workspace {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 20px 28px 8px;
  }
  .mp-workspace-side {
    display: block;
    position: sticky;
    top: 84px;
    height: calc(100vh - 104px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

/* ---------- Refine Search sidebar ---------- */
.mp-refine {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, rgba(226, 232, 240, 0.8));
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.mp-refine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 2px;
}
.mp-refine-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #64748b);
}
.mp-refine-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary, #ff4d30);
  cursor: pointer;
}
.mp-refine-reset:hover {
  text-decoration: underline;
}
.mp-refine-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.mp-refine-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: normal;
  margin-bottom: 6px;
  color: #475569; /* text-slate-600 */
}
.mp-refine-select,
.mp-refine-input {
  width: 100%;
  background: var(--bg-page, #f8fafc);
  border: 1px solid #cbd5e1; /* border-slate-300 */
  border-radius: 10px;
  padding: 0 10px;
  height: 32px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: #334155; /* text-slate-700 */
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mp-refine-input {
  font-weight: 500;
  padding: 0 10px;
}
.mp-refine-input::placeholder {
  color: #94a3b8; /* text-slate-400 */
  font-weight: 500;
  font-style: normal;
}
.mp-refine-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 30px;
}
.mp-refine-select:focus,
.mp-refine-input:focus {
  border-color: var(--primary, #ff4d30);
  box-shadow: 0 0 0 3px rgba(255, 77, 48, 0.12);
}
.mp-refine-price {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-refine-price .mp-refine-input {
  flex: 1;
  min-width: 0;
}
.mp-refine-dash {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main, #1e293b);
}
.mp-refine-divider {
  border-top: 1px solid var(--border, #e2e8f0);
  margin: 2px 0;
}
.mp-refine-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--primary, #ff4d30);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
.mp-refine-toggle > span {
  flex: 1;
  text-align: left;
}
.mp-refine-toggle-chevron {
  color: var(--text-muted, #94a3b8);
  font-size: 10px;
  transition: transform 0.2s ease;
}
.mp-refine-toggle-chevron.mp-rotated {
  transform: rotate(180deg);
}
.mp-refine-advanced {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mp-refine-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main, #1e293b);
  cursor: pointer;
}
.mp-refine-check input {
  accent-color: var(--primary, #ff4d30);
  width: 16px;
  height: 16px;
}
.mp-refine-apply {
  width: 100%;
  margin-top: 2px;
  border: 0;
  border-radius: 12px;
  background: var(--text-strong, #0f172a);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 0;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mp-refine-apply:hover {
  background: #1e293b;
}
.mp-refine-apply:active {
  transform: scale(0.98);
}

/* ---------- Status bar ---------- */
.mp-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, rgba(226, 232, 240, 0.8));
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.mp-statusbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.mp-statusbar-count {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-strong, #0f172a);
}
.mp-statusbar-dot {
  color: var(--text-muted, #94a3b8);
  font-size: 12px;
}
.mp-statusbar-cards {
  font-size: 12px;
  color: var(--text-muted, #64748b);
}
.mp-statusbar-divider {
  width: 1px;
  height: 16px;
  background: var(--border, #e2e8f0);
  margin: 0 4px;
}
.mp-statusbar-type-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}
.mp-statusbar-type {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: var(--bg-page, #f8fafc);
  padding: 6px 26px 6px 10px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-main, #1e293b);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  cursor: pointer;
}
.mp-statusbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mp-statusbar-sell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--primary, #ff4d30);
  border-radius: 12px;
  padding: 7px 14px;
  color: var(--primary, #ff4d30);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.mp-statusbar-sell:hover {
  background: var(--primary-light, rgba(255, 77, 48, 0.1));
  color: var(--primary, #ff4d30);
}
.mp-statusbar-dd {
  position: relative;
}
.mp-statusbar-dd > i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #64748b);
  font-size: 12px;
  pointer-events: none;
  z-index: 1;
}
.mp-statusbar-dd select {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: var(--bg-page, #f8fafc);
  padding: 7px 26px 7px 30px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-main, #1e293b);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  cursor: pointer;
}
.mp-statusbar-view {
  display: inline-flex;
  gap: 2px;
  background: var(--bg-page, #f1f5f9);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 3px;
}
.mp-statusbar-view button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted, #64748b);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.mp-statusbar-view button.is-active {
  background: var(--primary-light, rgba(255, 77, 48, 0.1));
  color: var(--primary, #ff4d30);
  border: 1px solid rgba(255, 77, 48, 0.25);
}

/* ---------- Grid card (mockup) ---------- */
.mp2-card {
  position: relative;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, rgba(226, 232, 240, 0.8));
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.mp2-card:hover {
  border-color: var(--primary, #ff4d30);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}
.mp2-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.mp2-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-page, #f1f5f9);
  overflow: hidden;
}
.mp2-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.mp2-card:hover .mp2-card-img {
  transform: scale(1.04);
}
.mp2-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 6px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  line-height: 1.3;
}
.mp2-card-price {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--primary, #ff4d30);
}
.mp2-card-currency {
  color: inherit;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mp2-card-save {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-main, #1e293b);
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.mp2-card-save:hover {
  background: #fff;
  transform: scale(1.08);
}
.mp2-card-save .fa-solid.fa-heart {
  color: var(--primary, #ff4d30);
}
.mp2-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mp2-card-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.375;
  color: var(--text-strong, #0f172a);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mp2-card-foot {
  /* Meta text: muted but one step darker than slate toward black (gray-600 in light). */
  --mp2-meta: #4b5563;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #f8fafc;
  padding-top: 4px;
  min-width: 0;
}
html.night-mode .mp2-card-foot {
  --mp2-meta: var(--text-muted);
}
.mp2-card-city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--mp2-meta, var(--text-muted, #6b7280));
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mp2-card-city i {
  color: var(--primary, #ff4d30);
  font-size: 11px;
}
.mp2-card-sep {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  color: var(--mp2-meta, var(--text-muted, #6b7280));
}
.mp2-card-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--mp2-meta, var(--text-muted, #6b7280));
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- List row (mockup) ---------- */
.mp2-list {
  position: relative;
}
.mp2-list-row {
  display: flex;
  gap: 14px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, rgba(226, 232, 240, 0.8));
  border-radius: 20px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
}
.mp2-list-row:hover {
  border-color: var(--primary, #ff4d30);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}
.mp2-list-thumb {
  position: relative;
  flex-shrink: 0;
  width: 128px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-page, #f1f5f9);
}
.mp2-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mp2-list-save {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-main, #1e293b);
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.mp2-list-save:hover {
  background: #fff;
  transform: scale(1.08);
}
.mp2-list-save .fa-solid.fa-heart {
  color: var(--primary, #ff4d30);
}
.mp2-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mp2-list-price {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-strong, #0f172a);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.mp2-list-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main, #1e293b);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mp2-list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.mp2-list-city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted, #64748b);
}
.mp2-list-city i {
  color: var(--primary, #ff4d30);
  font-size: 11px;
}
.mp2-list-seller {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}
.mp2-list-seller--link {
  cursor: pointer;
}
.mp2-list-seller--link:hover {
  color: var(--primary, #ff4d30);
}
.mp2-list-seller-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--primary, #ff4d30);
  background: var(--primary-light, rgba(255, 77, 48, 0.1));
  padding: 1px 6px;
  border-radius: 10px;
}
.mp2-list-seller-rating {
  color: #f1c40f;
  font-size: 10px;
}

/* ---------- Marketplace responsive grid ---------- */
@media (max-width: 639px) {
  #page-marketplace .listings-grid,
  .sng-feed-layout--marketplace .listings-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}
@media (min-width: 640px) and (max-width: 767px) {
  #page-marketplace .listings-grid,
  .sng-feed-layout--marketplace .listings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}
@media (max-width: 767px) {
  .mp-statusbar {
    display: none;
  }
  .mp2-list-thumb {
    width: 108px;
    height: 82px;
  }
  .mp2-list-price {
    font-size: 14px;
  }
}

/* RTL mirroring for the new marketplace chrome */
[dir="rtl"] .mp2-card-save {
  right: auto;
  left: 10px;
}
[dir="rtl"] .mp2-card-badge {
  right: 10px;
  left: auto;
}
[dir="rtl"] .mp2-list-save {
  right: auto;
  left: 8px;
}

/* ==========================================================================
   THEME MIGRATION v118 — Reference design-language parity layer (Phase 2)
   --------------------------------------------------------------------------
   Maps the reference layouts/components onto the app's DYNAMIC theme tokens
   ONLY (--primary / --brand*, --color-success, --color-warning,
   --color-whatsapp, surfaces/borders/radii/shadows). No literal brand hexes.
   ========================================================================== */

/* 1. Desktop feed header — frosted glass + gradient wordmark
      (mirrors "Home feeds page.html" desktop wordmark treatment) */
@media (min-width: 768px) {
  .sng-header {
    background: color-mix(in srgb, var(--bg-card) 80%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  }
  .sng-logo,
  .sng-logo span {
    background-image: linear-gradient(
      100deg,
      var(--primary) 0%,
      color-mix(in srgb, var(--primary) 62%, white) 55%,
      color-mix(in srgb, var(--primary) 40%, white) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  html.night-mode .sng-logo,
  html.night-mode .sng-logo span {
    background-image: none;
    -webkit-text-fill-color: currentColor;
    color: var(--color-on-primary);
  }
}

/* 2. Marketplace mobile toolbar — brand "Sell Item" chip
      (mirrors the desktop status-bar Sell Item affordance; self-contained so
      it renders correctly regardless of the base chip stylesheet) */
.mp-filter-chip.mp-filter-chip--post {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 0 14px !important;
  width: auto !important;
  min-width: 42px !important;
  height: 40px !important;
  border-radius: 999px !important;
  border: 1px solid var(--primary) !important;
  background: var(--primary) !important;
  color: var(--color-on-primary, #fff) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--primary) 35%, transparent) !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}
.mp-filter-chip.mp-filter-chip--post:hover {
  background: color-mix(in srgb, var(--primary) 88%, black) !important;
  border-color: color-mix(in srgb, var(--primary) 88%, black) !important;
}
.mp-filter-chip.mp-filter-chip--post:active {
  transform: scale(0.96) !important;
}
.mp-filter-chip.mp-filter-chip--post i {
  font-size: 14px !important;
}

/* 3. Listing detail — "Want to negotiate?" offer bar (mobile, under price)
      (mirrors the mobile "ad details page.html" negotiate call-to-action) */
.ld-negotiate-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-card, 12px);
  background: color-mix(in srgb, var(--primary) 7%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--border));
}
.ld-negotiate-bar-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-success);
  color: #fff;
  font-size: 20px;
}
.ld-negotiate-bar-body { flex: 1; min-width: 0; }
.ld-negotiate-bar-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
}
.ld-negotiate-bar-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 0;
  line-height: 1.4;
}
.ld-negotiate-bar-cta {
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--color-on-primary, #fff) !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.ld-negotiate-bar-cta:hover { background: color-mix(in srgb, var(--primary) 88%, black); }
.ld-negotiate-bar-cta:active { transform: scale(0.97); }

/* 4. Listing detail — 3-up spec highlights (mobile, under price)
      (mirrors the mobile "ad details page.html" key-spec highlight strip) */
.ld-spec-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.ld-spec-highlight {
  min-width: 0;
  padding: 12px 10px;
  border-radius: 12px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  text-align: center;
}
.ld-spec-highlight-value {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ld-spec-highlight-label {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5. Listing detail — mobile safety tips card (below comments)
      (mirrors the desktop sidebar Safety Tips card on small screens) */
.ld-safety-mobile { margin-top: 12px; }

/* 6. Reels rail — active ring + hover lift (reference "Reels-Srories.html") */
.sng-reels-row {
  scroll-padding: 12px;
}
.sng-reel-card {
  transition: transform 0.18s ease;
}
@media (hover: hover) {
  .sng-reel-card:hover { transform: translateY(-2px); }
}
.sng-reel-ring-active {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 25%, transparent);
}

/* 7. Feed desktop right rail — brand emphasis on widget headings */
.sng-feed-layout--desktop .sng-card-heading .sng-card-title i,
.sng-feed-layout--desktop .right-widgets .sng-card-title i {
  color: var(--primary);
}

/* 8. Business directory — verified/featured badge pill polish (reference parity) */
.biz-badge {
  border-radius: 999px !important;
  box-shadow: none !important;
}
.biz-badge-verified {
  background: color-mix(in srgb, var(--color-success) 12%, var(--bg-card)) !important;
  color: var(--color-success) !important;
  border: 1px solid color-mix(in srgb, var(--color-success) 30%, var(--border)) !important;
}

/* 9. Account/auth — brand ring + success emphasis (mirrors Login.html "Dz" tile) */
.al-auth-card {
  box-shadow: 0 20px 50px color-mix(in srgb, var(--primary) 18%, transparent) !important;
}
.al-auth-card-logo {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, black)) !important;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent) !important;
}

/* 10. Feed notifications — subtle unread highlight (reference badge emphasis) */
.sng-notif-item.unread {
  background: color-mix(in srgb, var(--primary) 4%, var(--bg-card));
}

/* ==========================================================================
   THEME MIGRATION v119 — Reference design-language parity layer (Phase 3)
   --------------------------------------------------------------------------
   Reference source of truth: "Dubuz Theme\Mobile View" (All Chats.html,
   Chat.html, Marketplace.html, Home page.html, Login.html, User Account.html)
   + theme.html + Flutter app_theme.dart.

   Maps the reference mobile components onto the app's DYNAMIC theme tokens
   ONLY (--primary / --brand*, --color-success, --color-warning, --color-info,
   surfaces/borders/radii/shadows). No literal brand hexes — the admin/user
   3-colour + dark theme controls stay untouched.
   ========================================================================== */

/* 1. All Chats.html — mobile filter pills bar (unread filter + counts) */
.chat-pills-bar {
  padding: 10px 12px 0;
}
.chat-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chat-pills-row::-webkit-scrollbar { display: none; }
.chat-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chat-pill:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}
.chat-pill--active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--color-on-primary, #fff);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--primary) 30%, transparent);
}
.chat-pill-count { font-weight: 800; }

/* 2. All Chats.html — unread conversation rows + listing tag chips */
.chat-item--unread {
  background: color-mix(in srgb, var(--color-success) 5%, var(--bg-card));
}
.chat-item--unread .cell-info .name { color: var(--text-main); }
.chat-item--unread .cell-info .preview {
  color: var(--text-main);
  font-weight: 700;
}
.chat-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-item-tag i { color: var(--color-success); font-size: 9px; }

/* 3. All Chats.html — avatar tiles (gradient ring, rounded-xl) */
.erp-msg-avatar-tile { border-radius: 14px !important; }
.dash-messages-page .erp-msg-avatar-tile {
  border-radius: 14px !important;
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 3px
    color-mix(in srgb, var(--primary) 45%, var(--border));
}
.dash-messages-page .erp-msg-avatar-tile.erp-msg-guest-avatar {
  background: color-mix(in srgb, var(--color-info) 12%, var(--bg-card));
  color: var(--color-info);
}

/* 4. Chat.html — emerald-style bubbles + suggested chips + context card polish */
.dash-messages-page .message.sent .bubble {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 78%, black));
  color: var(--color-on-primary, #fff);
  border-color: transparent;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--primary) 25%, transparent);
}
.dash-messages-page .message.sent .bubble .time,
.dash-messages-page .message.sent .bubble .status-icon,
.dash-messages-page .message.sent .bubble .erp-msg-read-label { color: inherit; opacity: 0.9; }
.dash-messages-page .message.received .bubble {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.dash-messages-page .erp-msg-suggested { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 8px 12px; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.dash-messages-page .erp-msg-suggested::-webkit-scrollbar { display: none; }
.dash-messages-page .erp-msg-suggested-label {
  flex-shrink: 0;
  align-self: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}
.dash-messages-page .erp-msg-chip {
  flex-shrink: 0;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.dash-messages-page .erp-msg-chip:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  color: var(--primary);
}
.dash-messages-page .erp-msg-context-card {
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--text-main) 6%, transparent);
}
.dash-messages-page .erp-msg-context-card .erp-msg-context-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--color-on-primary, #fff);
}

/* 5. Marketplace.html — mobile page title header (brand title + actions) */
.mp-mobile-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 8px;
  background: var(--bg-card, #fff);
  border-bottom: 1px solid var(--border);
}
.mp-mobile-title-text {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-main);
  line-height: 1.1;
}
.mp-mobile-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mp-mobile-title-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
}
.mp-mobile-title-btn:active { transform: scale(.94); background: color-mix(in srgb, var(--primary) 10%, var(--bg-page)); }
.mp-mobile-title-count {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 12%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
html.night-mode .mp-mobile-title-text { color: var(--text-main); }

/* Marketplace.html — Today's picks + location sub-bar */
.mp-picks-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
}
.mp-picks-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mp-picks-filters-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 0;
  background: color-mix(in srgb, var(--text-muted) 16%, var(--bg-card));
  color: var(--text-main);
  cursor: pointer;
}
.mp-picks-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}
.mp-picks-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 55%;
  padding: 5px 10px;
  border-radius: 999px;
  border: 0;
  background: color-mix(in srgb, var(--primary) 10%, var(--bg-card));
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-picks-location i { font-size: 12px; flex-shrink: 0; }

/* On marketplace mobile, keep global topbar compact (page title owns chrome) */
@media (max-width: 767px) {
  body.sng-page-marketplace .al-topbar-brand .al-home-context-badge,
  body.sng-page-marketplace .al-topbar-actions { display: none !important; }
  body.sng-page-marketplace .al-topbar-logo { font-size: 18px; }
}

/* 6. Home page.html — verified-seller badge + featured crown parity (feed) */
.sng-post-header-name {
  flex-wrap: wrap;
  row-gap: 3px;
}
.sng-post-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-success) 10%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--color-success) 30%, var(--border));
  color: var(--color-success);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.sng-post-verified-badge i { font-size: 9px; }
.sng-post-media-badge.sng-post-badge-premium i { color: inherit; }
.sng-post-price-pill {
  white-space: nowrap;
}

/* 7. Focus/accessibility parity — visible brand focus rings on touch targets */
.mp-filter-chip:focus-visible,
.chat-pill:focus-visible,
.erp-msg-chip:focus-visible,
.sng-post-action:focus-visible,
.al-topbar-btn:focus-visible,
.sng-reel-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ==========================================================================
   THEME MIGRATION v120 — Exact reference parity pass (Phase 4)
   --------------------------------------------------------------------------
   Reference: "Dubuz Theme" root HTML + "Mobile View" files —
   Home page.html, Home feeds page.html, Marketplace.html,
   Marketplace page.html, All Chats.html, Chat.html, ad details page.html,
   Listing Details Page.html, User Account.html, Footer Navigation.html,
   Login.html, Reels-Srories.html, post-ad.html, notifications.html.
   Brand colors are mapped to the app's backend-injected CSS variables
   (--primary / --color-success / --color-surface / etc.). No brand hexes
   are hardcoded here.
   ========================================================================== */

/* 1. Mobile top bar — reference "Home page.html" global header branding block
   ("dubuz" + "Marketplace" badge, soft round slate-100 action buttons). */
.al-topbar-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.al-home-context-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
  flex: 0 0 auto;
}
.al-home-context-badge i { font-size: 10px; }
.al-topbar-actions { gap: 5px; }

/* Soft-filled round action buttons (reference: w-9 h-9 bg-slate-100 rounded-full) */
@media (max-width: 767px) {
  .al-topbar-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 50%;
    box-shadow: 0 1px 2px var(--shadow-sm);
  }
  .al-topbar-btn:active {
    background: color-mix(in srgb, var(--primary) 12%, var(--bg-page));
    transform: scale(.92);
  }
  .al-topbar-btn svg { width: 18px; height: 18px; }
  .al-topbar-btn i { font-size: 14px; line-height: 1; }
  .al-topbar-btn--create {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--color-on-primary, #fff);
  }
  .al-topbar-btn--create:active { background: var(--primary-hover); }
  .al-topbar-btn--create svg { stroke: var(--color-on-primary, #fff); }
  .al-topbar-badge {
    top: 2px;
    right: 2px;
    border: 2px solid var(--bg-card, #fff);
    background: var(--primary);
  }
  .al-topbar-logo { color: var(--primary); font-weight: 900; }
  .al-topbar-logo span { color: var(--primary); }

  /* Home page.html chip strip under header */
  .dz-home-chip-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--bg-card, #fff);
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    margin: 0;
  }
  .dz-home-chip-strip::-webkit-scrollbar { display: none; }
  .dz-home-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    background: var(--bg-page);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
  }
  .dz-home-chip i { font-size: 13px; color: var(--text-muted); }
  .dz-home-chip--loc i { color: var(--primary); }
  .dz-home-chip.is-active {
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
    background: color-mix(in srgb, var(--primary) 10%, var(--bg-card, #fff));
    color: var(--primary);
  }
  .dz-home-chip.is-active i { color: var(--primary); }
  .dz-home-chip:active { transform: scale(.97); }
}

/* 2. Feed card — mobile hero aspect 4/3 (reference: aspect-[4/3] visual hero)
   + stat/action bar polish (reference "Home page.html" social action layer). */
@media (max-width: 767px) {
  .sng-post-media {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: none;
  }
  .sng-post-stats {
    padding-top: 9px;
    padding-bottom: 5px;
  }
  .sng-post-stats-heart {
    background: color-mix(in srgb, var(--color-success) 16%, var(--bg-page));
    color: var(--color-success);
    border-radius: 999px;
    padding: 2px 7px;
  }
  .sng-post-actions {
    margin-top: 4px;
    padding-top: 4px;
  }
  .sng-post-action {
    font-size: 12px;
    font-weight: 600;
    gap: 5px;
  }
  .sng-post-action i { font-size: 14px; width: 14px; }
  .sng-post-action:active {
    background: var(--bg-page);
    border-radius: 10px;
    transform: scale(.98);
  }
}

/* 3. Chats list — reference "All Chats.html" header row
   ("Chats" title + green unread pill above the filter pills). */
.chat-pills-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.chat-pills-title-text {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}
.chat-pills-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-success) 14%, var(--bg-card));
  color: var(--color-success);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  border: 1px solid color-mix(in srgb, var(--color-success) 30%, transparent);
}
.chat-pills-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
}

/* 4. Chat thread — reference "Chat.html" context card + suggested chips
   + input dock polish. */
@media (max-width: 767px) {
  .erp-msg-context-card {
    border-radius: 14px;
  }
  .erp-msg-chip {
    border-radius: 999px;
  }
}

/* 5. User Account menu — reference "User Account.html" chevron rows
   (mobile only; desktop sidebar stays clean). */
@media (max-width: 767px) {
  .dash-nav-link { border-radius: 12px; }
  .dash-nav-link:not(.dash-nav-danger)::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    margin-left: auto;
    color: var(--text-muted);
    opacity: .45;
  }
}

/* 6. Bottom nav — reference "Footer Navigation.html" active tile emphasis
   Colors: admin --primary / --brand only (no hardcoded brand hex). */
@media (max-width: 767px) {
  .al-nav-item.active .al-nav-label { font-weight: 800; }
  .al-nav-item.active .al-nav-icon-tile {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
  }
  .al-nav-item.active { color: var(--primary); }
  .al-nav-item.active .al-nav-label { color: var(--primary); }
  .al-nav-item.active .al-nav-icon-tile i,
  .al-nav-item.active .al-nav-icon-tile svg { color: var(--primary); }
  .al-nav-icon-tile i {
    font-size: 18px;
    line-height: 1;
  }
  .al-nav-icon-tile--stories { position: relative; }
  .al-nav-live-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 55%, transparent);
    animation: al-nav-live-pulse 1.6s ease-out infinite;
  }
  @keyframes al-nav-live-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); }
    70% { box-shadow: 0 0 0 6px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
  }
}

/* 7. Login — reference "Login.html" field + primary button sizing */
@media (max-width: 767px) {
  .al-auth-input { height: 48px; border-radius: 14px; }
  .al-auth-submit,
  .al-auth-submit-primary,
  .al-auth-card [type="submit"] {
    height: 48px;
    border-radius: 14px;
  }
}

/* 8. Reels — reference "Reels-Srories.html" story/reel cards */
@media (max-width: 767px) {
  .sng-reel-card { border-radius: 14px; }
}

/* 9. Notification items — reference "notifications.html" unread dot + row polish */
@media (max-width: 767px) {
  .sng-notif-item { border-radius: 12px; }
}

/* ==========================================================================
   THEME MIGRATION v121 — Listing detail header: full reference parity
   --------------------------------------------------------------------------
   Rebuilds the listing price/title/location/meta block with clean ld-* classes,
   replacing the old classifi-* markup entirely (no hybrid).
   Reference: "Dubuz Theme\Mobile View\ad details page.html" (mobile) and
   "Dubuz Theme\Listing Details Page.html" (desktop).
   Colors map to backend-injected CSS variables ONLY (no brand hexes).
   ========================================================================== */

/* 1. Details header card — sits directly under the gallery */
.ld-details-header { position: relative; }
.ld-details-content { min-width: 0; }

/* 2. Price — reference: text-2xl font-black dark (mobile) / text-3xl (desktop) */
body.sng-listing-immersive .ld-details-header .ld-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--text-main) !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

/* Negotiable indicator — reference: small muted text next to the price */
.ld-negotiable-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: 2px;
}
.ld-negotiable-chip i { font-size: 10px; }

/* 3. Title — reference: text-sm font-bold (mobile) / text-lg font-extrabold (desktop) */
body.sng-listing-immersive .ld-details-header .ld-title {
  margin: 8px 0 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: normal !important;
  overflow: visible !important;
  max-height: none !important;
}

/* 4. Location — reference: brand pin + secondary text line */
.ld-location {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.4;
}
.ld-location > i {
  color: var(--primary);
  font-size: 13px;
  margin-top: 1px;
}

/* 5. Meta row — reference: posted time + views + category, dot-separated */
.ld-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ld-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.ld-meta-item i { font-size: 11px; color: var(--text-muted); }
.ld-meta-item + .ld-meta-item { margin-left: 10px; }
.ld-meta-item + .ld-meta-item::before {
  content: '\2022';
  margin-right: 10px;
  color: var(--text-disabled, #cbd5e1);
  font-weight: 500;
}

/* 6. Seller inline strip (mobile only) — reference "posted by" avatar row */
body.sng-listing-immersive .ld-details-header .ld-seller-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  background: transparent;
}
.ld-seller-inline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: transparent;
  display: block;
}
.ld-seller-inline-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ld-seller-inline-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  min-width: 0;
}
.ld-seller-inline-name:hover { color: var(--primary); }
.ld-seller-inline-profile {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  white-space: nowrap;
}
.ld-seller-inline-profile:hover { color: var(--primary); opacity: 0.9; }

/* 7. Desktop (>=768px) — reference "Listing Details Page.html" header sizes */
@media (min-width: 768px) {
  body.sng-listing-immersive .ld-details-header .ld-price {
    font-size: 30px !important;
    letter-spacing: -0.02em;
  }
  body.sng-listing-immersive .ld-details-header .ld-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.35;
    margin: 6px 0 10px !important;
  }
  .ld-location { font-size: 12px; margin-top: 2px; }
  .ld-location > i { font-size: 13px; }
  .ld-meta-row { margin-top: 10px; }
}


/* ==========================================================================
   THEME MIGRATION v122 — Saved Items grid: mp-card-* classes (no classifi-*)
   --------------------------------------------------------------------------
   The account Saved Items page (resources/views/account/saved.blade.php) was
   rebuilt from the old classifi-box/classifi-image/classifi-content/...
   markup to the new mp-card-img/mp-card-body/mp-card-title/mp-card-price/
   mp-card-meta/mp-card-city structure used by the marketplace grid theme.
   The account dashboard loads account-dashboard.css (which carries the live
   rules in its own v122 block); this block mirrors those rules so the same
   card renders identically if mobile-layout-theme.css is present.
   Colors map to backend CSS variables only.
   ========================================================================== */

/* Grid-item wrapper — all viewports (mobile previously relied on
   .listings-grid > .classifi-box for this). */
.listings-grid.saved-items-grid > .saved-card {
  display: flex !important;
  min-width: 0 !important;
  height: 100% !important;
}
@media (min-width: 768px) {
  .listings-grid.saved-items-grid .mp-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: none !important;
    background: var(--bg-card, #ffffff) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }
  .listings-grid.saved-items-grid .mp-card .mp-card-img {
    aspect-ratio: 4 / 3 !important;
    width: 100% !important;
    height: auto !important;
    flex: 0 0 auto !important;
    background-color: #F8F9FA !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .listings-grid.saved-items-grid .mp-card .mp-card-img img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  .listings-grid.saved-items-grid .mp-card .mp-card-img .default-img {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8;
  }
  .listings-grid.saved-items-grid .mp-card .mp-card-img .badge {
    position: absolute !important;
    top: 6px !important;
    left: 6px !important;
    z-index: 3 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
  }
  [dir="rtl"] .listings-grid.saved-items-grid .mp-card .mp-card-img .badge {
    left: auto !important;
    right: 6px !important;
  }
  .listings-grid.saved-items-grid .mp-card .mp-card-body {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 88px !important;
    padding: 8px 10px 10px !important;
  }
  .listings-grid.saved-items-grid .mp-card .mp-card-title {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    color: var(--text-primary, #101828) !important;
    min-height: 1.3em !important;
    max-height: 1.3em !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }
  .listings-grid.saved-items-grid .mp-card .mp-card-meta {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: auto !important;
    color: var(--text-tertiary, #667085) !important;
    font-size: 12px !important;
  }
  .listings-grid.saved-items-grid .mp-card .mp-card-city,
  .listings-grid.saved-items-grid .mp-card .mp-card-city i {
    color: var(--text-tertiary, #667085) !important;
  }
  .listings-grid.saved-items-grid .mp-card .mp-card-city i {
    font-size: 11px !important;
    margin-right: 3px !important;
  }
  .listings-grid.saved-items-grid .mp-card .ad-time {
    color: var(--text-tertiary, #667085) !important;
  }
  .listings-grid.saved-items-grid .mp-card .ad-time::before {
    content: "•";
    margin-right: 6px;
    color: var(--text-tertiary, #667085);
  }
  .mp-card-meta::before,
  .mp-card-meta::after {
    content: none !important;
    display: none !important;
  }
}

/* Saved price matches marketplace card primary color (all viewports) */
.saved-items-grid .mp-card-price {
  color: var(--primary) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}



/* ==========================================================================
   THEME MIGRATION v125 — Desktop Home/Marketplace/Listing exact reference
   (v124 + Apply Filters dark slate !important at end of cascade)
   --------------------------------------------------------------------------
   Source: Dubuz Theme\Home feeds page.html, Marketplace page.html,
   Listing Details Page.html. Desktop (≥1024px) only unless noted.
   Brand colors → CSS variables (--primary / --brand*). No brand hex bypass.
   ========================================================================== */

/* Page atmosphere — Theme home radial wash */
@media (min-width: 1024px) {
  body:not(.sng-listing-immersive) {
    background:
      radial-gradient(circle at 50% -10%,
        color-mix(in srgb, var(--primary) 6%, #fff7f3) 0,
        var(--page-bg, #f0f2f5) 34%,
        #eef0f3 100%) !important;
  }
}

/* Header shell — 1440px + center tabs */
@media (min-width: 1024px) {
  .sng-header-inner {
    max-width: 1440px;
    height: 56px;
    padding: 0 24px;
  }
  .sng-header { height: 56px; }
  .sng-search-wrap {
    width: min(320px, 100%);
    margin-left: 12px;
  }
  .sng-search-wrap input {
    border-radius: 999px !important;
    height: 36px;
    font-size: 12px;
    font-weight: 600;
    background: var(--surface-subtle, #f1f5f9) !important;
    border-color: transparent !important;
  }
  .sng-header-tabs {
    display: flex;
    align-items: stretch;
    height: 56px;
    gap: 2px;
    flex: 1;
    justify-content: center;
  }
  .sng-header-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 18px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-tertiary, #64748b);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    position: relative;
    white-space: nowrap;
  }
  .sng-header-tab:hover {
    color: var(--text-primary);
    background: color-mix(in srgb, var(--surface-hover) 80%, transparent);
  }
  .sng-header-tab.is-active {
    color: var(--primary);
    font-weight: 800;
    border-bottom-color: var(--primary);
  }
  .sng-header-tab-dot {
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--primary);
  }
  .sng-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-subtle, #f1f5f9);
  }
  .sng-header-user-avatar {
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary);
  }
}

@media (max-width: 1023px) {
  .sng-header-tabs { display: none !important; }
}

/* Feed 3-column shell — Theme max-w 1440 / 3-6-3 feel */
@media (min-width: 1024px) {
  .sng-feed-layout:not(.sng-feed-layout--marketplace) {
    grid-template-columns: 260px minmax(0, 720px) 300px;
    max-width: 1440px;
    gap: 24px;
    padding: 20px 24px;
  }
  .sng-feed-layout:not(.sng-feed-layout--marketplace) .sng-feed-center {
    max-width: 720px;
  }
  .sng-feed-layout.sng-feed-layout--marketplace {
    max-width: 1536px;
    gap: 24px;
    padding: 24px;
  }
}

/* Left sidebar profile row */
.dz-sidebar-profile {
  margin-bottom: 10px;
}
.dz-sidebar-profile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  color: inherit;
  transition: background .15s;
}
.dz-sidebar-profile-link:hover {
  background: color-mix(in srgb, var(--surface-hover) 90%, transparent);
}
.dz-sidebar-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}
.dz-sidebar-profile-avatar-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-size: 16px;
}
.dz-sidebar-profile-name {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}
.dz-sidebar-profile-meta {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Filter chips + composer */
.dz-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.dz-filter-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 1px solid var(--border-light, #e2e5e9);
  background: var(--surface, #fff);
  color: var(--text-secondary, #475569);
  font-size: 11px;
  font-weight: 800;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: .15s;
}
.dz-filter-chip.is-active,
.dz-filter-chip:hover {
  background: color-mix(in srgb, var(--primary) 10%, #fff);
  border-color: color-mix(in srgb, var(--primary) 35%, #fff);
  color: var(--brand-hover, var(--primary));
}
.dz-composer {
  background: var(--surface, #fff);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .045), 0 1px 2px rgba(15, 23, 42, .04);
}
.dz-composer-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dz-composer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.dz-composer-avatar-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-subtle);
  color: var(--text-muted);
}
.dz-composer-input {
  flex: 1;
  text-align: left;
  border: 0;
  background: var(--surface-subtle, #f1f5f9);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s;
}
.dz-composer-input:hover { background: color-mix(in srgb, var(--surface-hover) 90%, #e2e8f0); }
.dz-composer-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light, #f1f5f9);
}
.dz-composer-actions button {
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.dz-composer-actions button:hover { background: var(--surface-hover); }

/* Desktop feed post card — Theme article anatomy */
@media (min-width: 1024px) {
  .sng-post-card {
    border-radius: 16px !important;
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent) !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .045), 0 1px 2px rgba(15, 23, 42, .04) !important;
    margin-bottom: 0 !important; /* gap from .sng-feed-posts only — Facebook-tight */
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
  }
  .sng-post-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .07) !important;
  }
  .sng-post-header {
    padding: 16px 16px 0 !important;
  }
  .sng-post-seller-name {
    font-size: 12px !important;
    font-weight: 800 !important; /* real 800 glyph — 900 was faux-bold (soft/spread) */
    letter-spacing: -0.015em;
  }
  .sng-post-time {
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    color: var(--text-muted) !important;
  }
  .sng-post-verified-badge {
    font-size: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }
  .sng-post-verified-badge i {
    font-size: 11px !important;
    color: var(--success) !important;
  }
  .sng-post-more-btn {
    color: var(--text-muted);
    padding: 4px;
    font-size: 12px;
    cursor: pointer;
  }
  .sng-post-more-btn:hover { color: var(--text-main); }
  .sng-post-narrative {
    margin: 0 !important;
    padding: 12px 16px 10px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: -0.01em;
    color: var(--text-secondary, #334155) !important;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .sng-post-media {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 16 / 10 !important;
    border-radius: 0 !important;
  }
  .sng-post-media-badges {
    top: 12px !important;
    left: 12px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    max-width: 70%;
  }
  .sng-post-media-badge {
    padding: 6px 9px !important;
    border-radius: 8px !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 0;
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 4px 12px rgba(0,0,0,.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .sng-post-badge-premium {
    background: linear-gradient(135deg, var(--danger, #f04438), var(--warning, #ff7a18)) !important;
  }
  .sng-post-badge-verified {
    background: color-mix(in srgb, var(--text-primary) 82%, transparent) !important;
    color: #fff !important;
  }
  .sng-post-badge-condition {
    background: color-mix(in srgb, var(--success) 90%, transparent) !important;
  }
  .sng-post-price-pill {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 4;
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 12px;
    background: var(--price-glass-bg);
    border: 1px solid var(--price-glass-border);
    backdrop-filter: blur(var(--price-glass-blur));
    -webkit-backdrop-filter: blur(var(--price-glass-blur));
    box-shadow: var(--price-glass-shadow);
    color: var(--price-glass-text);
    line-height: 1.15;
    white-space: nowrap;
  }
  .sng-post-price-pill-cur {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--price-glass-text);
    line-height: 1;
  }
  .sng-post-price-pill-amt {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
  }
  .sng-post-price-pill-neg {
    font-size: 9px;
    font-weight: 700;
    color: color-mix(in srgb, var(--price-glass-text) 70%, var(--text-muted, #64748b));
    margin-top: 2px;
  }
  .sng-post-stats {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 6px 16px;
  }
  .sng-post-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 2px 8px 8px;
    font-size: 12px;
    font-weight: 600;
  }
  .sng-post-action {
    flex: 0 0 auto;
    justify-content: center;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
  }
  .sng-post-action i {
    font-size: 14px;
    width: 14px;
  }
}

/* Right rail — Theme market-card widgets */
.dz-market-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .045);
  margin-bottom: 0;
}
.dz-market-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.dz-market-kicker {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  color: var(--text-muted, #9ca3af);
  margin-bottom: 3px;
}
.dz-market-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--text-primary, #111827);
}
.dz-market-live {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--success);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.dz-market-live span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 18%, transparent);
}
.dz-market-link {
  font-size: 9px;
  color: var(--primary);
  font-weight: 900;
  white-space: nowrap;
}
.dz-demand-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid var(--border-light, #f1f2f4);
  color: inherit;
}
.dz-demand-item:first-of-type { border-top: 0; }
.dz-demand-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary) 8%, #fff);
  font-size: 15px;
  flex: none;
}
.dz-demand-main { flex: 1; min-width: 0; }
.dz-demand-main b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dz-demand-main span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.dz-demand-item > strong {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--badge-green, #10B981);
  background: var(--badge-green-bg, #ECFDF5);
  padding: 2px 6px;
  border-radius: 9999px;
  white-space: nowrap;
}
.dz-market-product {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid var(--border-light, #f1f2f4);
}
.dz-market-product:first-of-type { border-top: 0; }
.dz-market-product-link {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  color: inherit;
}
.dz-market-product img,
.dz-market-product-ph {
  width: 54px;
  height: 54px;
  border-radius: 11px;
  object-fit: cover;
  flex: none;
  background: var(--surface-subtle);
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.dz-market-product-info { flex: 1; min-width: 0; }
.dz-market-product-info b {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}
.dz-market-product-info strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 900;
}
.dz-market-product-info span {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  color: var(--text-muted);
  font-weight: 700;
}
.dz-mini-save {
  width: 27px;
  height: 27px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 50%;
  color: var(--text-muted);
  flex: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 11px;
}
.dz-mini-save:hover {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 40%, #fff);
  background: color-mix(in srgb, var(--primary) 6%, #fff);
}
.dz-seller-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid var(--border-light, #f1f2f4);
}
.dz-seller-row:first-of-type { border-top: 0; }
.dz-seller-avatar,
.dz-seller-avatar-fb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.dz-seller-info { flex: 1; min-width: 0; }
.dz-seller-name-link {
  display: block;
  color: inherit;
}
.dz-seller-name-link:hover b { color: var(--primary); }
.dz-seller-info b {
  display: block;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}
.dz-seller-info span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dz-seller-follow {
  border: 1px solid color-mix(in srgb, var(--primary) 45%, #fff);
  background: var(--surface);
  color: var(--primary);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.dz-seller-follow:hover,
.dz-seller-follow.is-following {
  background: color-mix(in srgb, var(--primary) 8%, #fff);
}
.dz-market-deal-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 6%, #fff), #fff);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, #fff);
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 5px 20px color-mix(in srgb, var(--primary) 10%, transparent);
  margin-bottom: 0;
}
.dz-deal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: var(--text-muted);
  font-weight: 800;
}
.dz-deal-badge {
  color: #fff;
  background: linear-gradient(135deg, var(--danger, #f04438), var(--warning, #ff7a18));
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 900;
}
.dz-deal-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 11px 0;
}
.dz-deal-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-primary);
}
.dz-deal-price {
  margin-top: 5px;
  font-size: 9px;
  color: var(--text-muted);
}
.dz-deal-price b {
  color: var(--primary);
  font-size: 13px;
}
.dz-deal-meta {
  margin-top: 3px;
  font-size: 8px;
  color: var(--text-muted);
  font-weight: 700;
}
.dz-deal-content img {
  width: 62px;
  height: 62px;
  border-radius: 11px;
  object-fit: cover;
}
.dz-deal-button {
  display: block;
  width: 100%;
  border: 0;
  background: var(--primary);
  color: var(--color-on-primary, #fff) !important;
  border-radius: 10px;
  padding: 8px;
  font-size: 9px;
  font-weight: 900;
}
.dz-deal-button:hover {
  background: color-mix(in srgb, var(--primary) 85%, #000);
  color: var(--color-on-primary, #fff) !important;
}
.dz-compact-card { padding-bottom: 9px; }
.dz-market-shortcuts a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 5px;
  border-top: 1px solid var(--border-light, #f1f2f4);
  color: var(--text-secondary, #374151);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
.dz-market-shortcuts a:first-child { border-top: 0; }
.dz-market-shortcuts a span { width: 24px; text-align: center; }
.dz-market-shortcuts a b {
  margin-left: auto;
  font-size: 9px;
  color: var(--primary);
}

/* Marketplace desktop chrome — Theme status bar + cards */
@media (min-width: 1024px) {
  .mp-statusbar {
    border-radius: 24px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  }
  .mp-statusbar-count,
  .sng-feed-layout--marketplace .mp-count-main.mp-statusbar-count {
    color: var(--text-primary, #0f172a) !important;
    font-weight: 900 !important;
    font-size: 12px !important;
  }
  .mp-refine-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
  }
  .mp-statusbar-sell {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: var(--surface, #fff) !important;
    color: var(--text-secondary, #475569) !important;
    border: 1px solid var(--border, #e2e8f0) !important;
    border-radius: 12px !important;
    height: 32px;
    padding: 0 12px !important;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
  }
  .mp-statusbar-sell:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
  }
  .mp-statusbar-sell i { color: var(--primary) !important; font-size: 12px; }
  /* Theme Marketplace Apply — theme primary */
  .sng-feed-layout--marketplace .mp-apply-btn {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: none !important;
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
  }
  .sng-feed-layout--marketplace .mp-apply-btn:hover {
    background: var(--primary-hover, var(--primary)) !important;
  }
  .sng-feed-layout--marketplace .sng-side-card:not(.mp-filters-card) {
    border-radius: 18px !important;
    padding: 20px !important;
  }
  .sng-side-card.mp-filters-card {
    border-radius: 18px !important;
    padding: 0 !important;
  }
  .mp2-card {
    border-radius: 24px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    overflow: hidden;
  }
}

/* Listing detail desktop — Theme continuous card shell */
@media (min-width: 1024px) {
  body.sng-listing-immersive .ld-page,
  .ld-page.detail-immersive {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
  }
  body.sng-listing-immersive .ld-details-header .ld-price {
    font-size: 30px !important;
    font-weight: 900 !important;
  }
  body.sng-listing-immersive .ld-details-header .ld-title {
    font-size: 18px !important;
    font-weight: 800 !important;
  }
}

/* Hide legacy profile/trending widgets if any leftover */
.wow-profile-widget,
.wow-trending-widget { /* kept for other pages */ }

@media (min-width: 768px) and (max-width: 1023px) {
  .sng-post-price-pill {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--price-glass-bg);
    border: 1px solid var(--price-glass-border);
    backdrop-filter: blur(var(--price-glass-blur));
    -webkit-backdrop-filter: blur(var(--price-glass-blur));
    box-shadow: var(--price-glass-shadow);
    color: var(--price-glass-text);
    font-weight: 800;
    white-space: nowrap;
  }
  .sng-post-price-pill-cur { font-size: 10px; color: var(--price-glass-text); }
  .sng-post-price-pill-amt { font-size: 14px; color: var(--price-glass-text); }
  .sng-post-media {
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
  }
  .sng-post-narrative {
    margin: 0;
    padding: 8px 14px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
  }
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Marketplace Top Filters Bar */
.mp-top-bar {
  background: #fff;
  border-radius: 1.5rem;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.mp-top-bar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.mp-top-bar-counts {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mp-top-bar-count-text {
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
}
.mp-top-bar-subtext {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}
.mp-top-bar-type {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
  border-left: 1px solid #e2e8f0;
}
.mp-top-bar-select {
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 0.75rem;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  outline: none;
}
.mp-top-bar-select:focus {
  border-color: var(--primary);
}
.mp-top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-top-bar-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #fff;
  color: #334155;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.2s;
}
.mp-top-bar-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.mp-top-bar-btn i {
  font-size: 12px;
  color: var(--primary);
}
.mp-top-bar-dropdown {
  position: relative;
}
.mp-top-bar-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.2s;
}
.mp-top-bar-icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.mp-top-bar-icon-btn i {
  font-size: 12px;
}
.mp-top-bar-dropdown-select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.mp-top-bar-view-toggles {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 4px;
  border-left: 1px solid #e2e8f0;
}
.mp-top-bar-view-toggles .mp-top-bar-icon-btn {
  background: #f1f5f9;
  border-color: transparent;
  box-shadow: none;
}
.mp-top-bar-view-toggles .mp-top-bar-icon-btn:hover {
  background: #e2e8f0;
}
.mp-top-bar-view-toggles .mp-top-bar-icon-btn.is-active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(198, 73, 73, 0.2);
}

/* ==========================================================================
   HOME FEED + TOPBAR v151 — Typography Design System
   Left/right columns: type/color only. Brand → var(--primary) / soft mixes.
   ========================================================================== */

:root {
  --primary-soft: var(--brand-soft, color-mix(in srgb, var(--primary) 8%, #fff));
}

@media (min-width: 1024px) {
  /* ---- Top bar ---- */
  .sng-header.dz-topbar {
    height: 70px !important;
    background: var(--surface, var(--bg-card, #fff)) !important;
    border-bottom: 1px solid var(--border) !important;
    z-index: 100;
  }
  .sng-header.dz-topbar .dz-topbar-inner,
  .sng-header.dz-topbar .sng-header-inner {
    max-width: 1280px !important;
    height: 70px !important;
    padding: 0 24px !important;
    gap: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .dz-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
  }
  .dz-brand-logo {
    height: 32px;
    width: auto;
    display: block;
  }
  .dz-brand-mark {
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 19px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
  }
  .dz-brand-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.6px;
  }
  .dz-brand-text span { color: var(--primary); }

  .dz-search-bar.sng-search-wrap {
    position: relative;
    flex: 1;
    max-width: 480px;
    min-width: 220px;
    width: auto !important;
    margin-left: 0 !important;
    display: flex !important;
    align-items: center;
    background: var(--bg, #F4F6F9) !important;
    border: 1px solid var(--border) !important;
    border-radius: 9999px !important;
    padding: 4px 14px !important;
    backdrop-filter: none !important;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  }
  .dz-search-bar.sng-search-wrap:focus-within {
    background: var(--surface, #fff) !important;
    border-color: var(--primary) !important;
    box-shadow: var(--focus-ring) !important;
  }
  .dz-search-bar .dz-search-icon,
  .dz-search-bar > i.fa-magnifying-glass {
    position: static !important;
    transform: none !important;
    margin-right: 8px;
    color: var(--text-light, #9CA3AF);
    font-size: 14px;
    flex-shrink: 0;
  }
  .dz-search-bar input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    height: 32px !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--text-main) !important;
    width: 100% !important;
    min-width: 0;
    border-radius: 0 !important;
  }
  .dz-search-bar input::placeholder {
    color: var(--text-light) !important;
    font-weight: 400 !important;
  }
  /* Location chip removed from desktop top search */
  .dz-search-bar .dz-location-trigger { display: none !important; }

  .dz-nav-menu.sng-header-tabs {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    list-style: none;
    margin: 0;
    padding: 0;
    height: auto !important;
    flex: 0 0 auto !important;
    justify-content: center;
  }
  .dz-nav-menu li { list-style: none; margin: 0; padding: 0; }
  .dz-nav-link.sng-header-tab {
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
    padding: 8px 14px !important;
    height: auto !important;
    border-bottom: none !important;
    border-radius: 9999px !important;
    transition: all .15s ease;
    line-height: 1;
  }
  .dz-nav-link.sng-header-tab:hover {
    color: var(--text-main) !important;
    background: var(--bg, #F4F6F9) !important;
  }
  .dz-nav-link.sng-header-tab.is-active {
    color: var(--primary) !important;
    background: var(--primary-soft, var(--primary-light)) !important;
    font-weight: 700 !important;
    border-bottom: none !important;
  }

  .dz-header-actions {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
    flex-shrink: 0;
  }
  .dz-btn-post-ad {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 9px 18px !important;
    border-radius: 9999px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    transition: background .15s ease, transform .15s ease;
    line-height: 1;
  }
  .dz-btn-post-ad:hover {
    background: var(--primary-hover) !important;
    filter: none;
    color: #fff !important;
    transform: translateY(-1px);
  }
  .dz-btn-post-ad i { font-size: 12px; }

  .dz-btn-icon {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--surface, #fff);
    display: grid;
    place-items: center;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: background .15s ease, color .15s ease;
  }
  .dz-btn-icon:hover {
    background: var(--bg-page);
    color: var(--text-main);
  }
  .dz-btn-icon .sng-badge-count {
    top: -2px;
    right: -2px;
  }

  /* Create (+) dropdown under topbar plus */
  .dz-create-wrap { flex-shrink: 0; }
  .dz-create-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1100;
    min-width: 200px;
    padding: 6px;
    background: var(--surface, #fff);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    font-family: var(--font-family-primary, 'Plus Jakarta Sans', system-ui, sans-serif);
  }
  .dz-create-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    line-height: 1.2;
    transition: background .15s ease, color .15s ease;
  }
  .dz-create-menu-item i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
  }
  .dz-create-menu-item:hover {
    background: var(--primary-soft, color-mix(in srgb, var(--primary) 8%, #fff));
    color: var(--primary);
  }
  .dz-create-menu-item:hover i { color: var(--primary); }
  .dz-notif-wrap .sng-badge-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 9999px !important;
    border: 1px solid var(--border) !important;
    background: var(--surface, #fff) !important;
    font-size: 16px !important;
  }
  .dz-user-avatar.sng-header-user-avatar,
  .dz-user-avatar {
    width: 38px !important;
    height: 38px !important;
    border-radius: 9999px !important;
    border: 2px solid #fff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    object-fit: cover;
  }
  .dz-user-trigger { display: flex; align-items: center; }

  /* Hide legacy header chrome that conflicts */
  .sng-header.dz-topbar .sng-header-left { display: contents; }
  .sng-header.dz-topbar .sng-header-post-btn { display: none !important; }
  .sng-header.dz-topbar .sng-header-user-name,
  .sng-header.dz-topbar .sng-header-tab-dot { display: none !important; }

  /* ---- Middle feed: reels section card ---- */
  .sng-feed-center .dz-reels-section {
    background: var(--surface, #fff);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    margin-bottom: 16px !important;
  }
  .dz-reels-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  .dz-section-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .dz-live-dot {
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .dz-section-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
  }
  .dz-reels-scroll.sng-reels-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .dz-reels-scroll.sng-reels-row::-webkit-scrollbar { display: none; }

  .sng-feed-center .dz-reel-item.sng-reel-card {
    min-width: 125px !important;
    max-width: 125px !important;
    width: 125px !important;
    height: 180px !important;
    border-radius: 12px !important;
    flex-shrink: 0;
  }
  .sng-feed-center .dz-reel-item .sng-reel-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
  }
  .sng-feed-center .dz-reel-item .sng-reel-ring,
  .sng-feed-center .dz-reel-item .sng-reel-avatar {
    display: none !important;
  }
  .dz-reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.1) 40%, rgba(0,0,0,.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    color: #fff;
    z-index: 2;
    pointer-events: none;
  }
  .dz-reel-tag {
    align-self: flex-start;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
  }
  .dz-reel-author {
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ---- Sell dock ---- */
  .dz-sell-dock {
    background: var(--surface, #fff);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .dz-dock-top {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .dz-dock-avatar {
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    background: var(--primary-soft, var(--primary-light));
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
  }
  .dz-dock-avatar-img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    padding: 0;
  }
  .dz-dock-input-btn {
    flex: 1;
    background: var(--bg, #F4F6F9);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background .15s ease, color .15s ease;
    line-height: 1;
  }
  .dz-dock-input-btn:hover {
    background: color-mix(in srgb, var(--bg-page) 80%, #c5ccd4);
    color: var(--text-main);
  }
  .dz-dock-shortcuts {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--border-subtle, #F1F4F7);
    padding-top: 10px;
  }
  .dz-dock-shortcut-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 7px 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: all .15s ease;
  }
  .dz-dock-shortcut-btn i { color: var(--primary); font-size: 13px; }
  .dz-dock-shortcut-btn:hover {
    background: var(--bg-page);
    color: var(--text-main);
  }

  /* ---- Filter rail ---- */
  .dz-filter-rail {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0;
  }
  .dz-filter-rail::-webkit-scrollbar { display: none; }
  .dz-filter-chip {
    background: var(--surface, #fff) !important;
    border: 1px solid var(--border) !important;
    border-radius: 9999px !important;
    padding: 7px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    transition: all .15s ease;
    line-height: 1;
  }
  .dz-filter-chip:hover {
    color: var(--text-main) !important;
    border-color: var(--text-light, #9CA3AF) !important;
  }
  .dz-filter-chip.is-active {
    background: var(--text-main) !important;
    color: #fff !important;
    border-color: var(--text-main) !important;
  }

  /* Hide old dz-filter-chips / dz-composer if any remnant */
  .wow-feed-widgets .dz-filter-chips,
  .wow-feed-widgets .dz-composer { display: none !important; }

  /* ---- Listing cards ---- */
  .sng-feed-center .dz-listing-card.sng-post-card {
    border-radius: 16px !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.04) !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    transform: none !important;
  }
  .sng-feed-center .dz-listing-card.sng-post-card:hover {
    border-color: var(--border-hover, #D1D5DB) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.04) !important;
    transform: none !important;
  }
  .dz-listing-header.sng-post-header {
    padding: 12px 16px !important;
    align-items: center;
  }
  .dz-seller-badge-icon.sng-post-avatar,
  .dz-seller-badge-icon .sng-post-avatar-fallback {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
  }
  .dz-seller-badge-icon img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
  }
  .dz-seller-badge-icon .sng-post-avatar-fallback {
    background: color-mix(in srgb, var(--primary) 14%, #FEE2E2) !important;
    color: var(--primary) !important;
    font-size: 13px !important;
  }
  .dz-listing-header .sng-post-seller-name {
    font-size: 13.5px !important;
    font-weight: 700 !important;
  }
  .dz-listing-header .sng-post-time {
    font-size: 11.5px !important;
    margin-top: 0 !important;
  }
  .dz-btn-store-follow {
    background: var(--bg-page, #F4F6F9);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
  }
  .dz-btn-store-follow:hover { background: var(--follow-hover-bg, #E5E7EB); border-color: var(--border-hover, #D1D5DB); }
  .dz-btn-store-follow.following,
  .dz-btn-store-follow.is-following {
    background: var(--primary-soft, var(--primary-light));
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  }

  .sng-feed-center .dz-listing-image.sng-post-media {
    height: 320px !important;
    max-height: 320px !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    background: #111827;
  }
  .sng-feed-center .dz-listing-price-tag.sng-post-price-pill {
    bottom: 12px !important;
    left: 12px !important;
    right: auto !important;
    color: var(--price-glass-text) !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: baseline;
    gap: 4px;
  }
  .sng-feed-center .dz-listing-price-tag .sng-post-price-pill-cur,
  .sng-feed-center .dz-listing-price-tag .sng-post-price-pill-amt {
    display: inline !important;
    color: var(--price-glass-text) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }
  .sng-feed-center .dz-listing-price-tag .sng-post-price-pill-neg {
    color: color-mix(in srgb, var(--price-glass-text) 70%, var(--text-muted, #64748b)) !important;
    margin-top: 0 !important;
    margin-left: 4px;
  }

  .dz-listing-content {
    padding: 16px;
  }
  .dz-listing-title {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.35;
  }
  .dz-listing-title:hover { color: var(--primary); }
  .dz-listing-summary {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 12px;
  }
  .dz-listing-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  .dz-tag {
    background: var(--bg-page, #F4F6F9);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
  }

  .dz-listing-footer {
    border-top: 1px solid var(--border-subtle, #F1F4F7);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-footer, #FAFAFB);
  }
  .dz-location-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }
  .dz-location-text span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dz-card-actions-right {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
  }
  .dz-action-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
  }
  .dz-action-icon-btn i { font-size: 15px; }
  .dz-action-icon-btn:hover {
    background: color-mix(in srgb, var(--bg-page) 80%, #c5ccd4);
    color: var(--text-main);
  }
  .dz-action-icon-btn.dz-like-btn:hover,
  .dz-action-icon-btn.dz-like-btn.is-active { color: #EF4444; }
  .dz-action-icon-btn.dz-report-btn:hover { color: #DC2626; }

  /* Tighten middle column gap like mock */
  .sng-feed-layout:not(.sng-feed-layout--marketplace) .sng-feed-center {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .sng-feed-center .wow-feed-widgets { gap: 16px !important; margin-bottom: 0 !important; }
  .sng-feed-center .sng-feed-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 1100px) and (min-width: 1024px) {
  .dz-nav-menu.sng-header-tabs { display: none !important; }
}

/* ==========================================================================
   Marketplace Refine Search — mock fidelity (tmp/marketplace-refine-mock.html)
   Visual/fonts only. Select2 keeps cascading category/city/CF behavior.
   Colors map to var(--primary) + color-mix soft/glow (admin theme safe).
   ========================================================================== */
.sng-feed-layout--marketplace .mp-filters-card {
  --mp-refine-soft: color-mix(in srgb, var(--primary, #FF4A1C) 12%, #ffffff);
  --mp-refine-glow: color-mix(in srgb, var(--primary, #FF4A1C) 14%, transparent);
  --mp-refine-radius: 18px;
  --mp-refine-radius-md: 12px;
  --mp-refine-radius-sm: 8px;
  --mp-refine-surface-subtle: var(--surface-subtle, #F8FAFC);
  --mp-refine-border: var(--border, #E5E9F0);
  font-family: var(--font-family-primary, 'Plus Jakarta Sans', system-ui, sans-serif);
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--mp-refine-border);
  border-radius: var(--mp-refine-radius) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  padding: 0 !important;
  overflow: visible;
  user-select: none;
  gap: 0;
}

.sng-feed-layout--marketplace .mp-filters-card-head {
  margin: 0 !important;
  padding: 16px 20px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--mp-refine-border) !important;
}

.sng-feed-layout--marketplace .mp-filters-card-head .mp-refine-title,
.sng-feed-layout--marketplace .mp-filters-card-head span.mp-refine-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  color: var(--text-main, #0F172A) !important;
  line-height: 1.2;
}

.sng-feed-layout--marketplace .mp-filters-card-head .mp-refine-title i {
  color: var(--primary, #FF4A1C);
  font-size: 13px;
}

.sng-feed-layout--marketplace .mp-filter-reset {
  background: transparent;
  border: none;
  color: var(--primary, #FF4A1C) !important;
  font-family: inherit;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer;
  padding: 2px 4px !important;
  border-radius: var(--mp-refine-radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.sng-feed-layout--marketplace .mp-filter-reset:hover {
  color: var(--primary-hover, var(--primary, #E0380D)) !important;
  background: var(--mp-refine-soft, #FFF2EE) !important;
}

.sng-feed-layout--marketplace .mp-filters-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sng-feed-layout--marketplace .mp-filters-card .mb-3 {
  margin-bottom: 0 !important;
}

.sng-feed-layout--marketplace .mp-location-level,
.sng-feed-layout--marketplace .mp-condition-level,
.sng-feed-layout--marketplace .mp-posted-by-level,
.sng-feed-layout--marketplace .mp-search-level,
.sng-feed-layout--marketplace .mp-filter-section,
.sng-feed-layout--marketplace .mp-brand-level,
.sng-feed-layout--marketplace .mp-model-level,
.sng-feed-layout--marketplace .mp-perm-field,
.sng-feed-layout--marketplace .mp-adv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  min-width: 0;
}

.sng-feed-layout--marketplace .mp-filter-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 !important;
}

.sng-feed-layout--marketplace .mp-filter-group > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sng-feed-layout--marketplace .mp-permanent-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 !important;
}

.sng-feed-layout--marketplace .mp-filter-label,
.sng-feed-layout--marketplace .mp-filter-section-head .mp-filter-label {
  display: block;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--text-muted, #64748B) !important;
  line-height: 1.2;
  margin: 0 !important;
}

.sng-feed-layout--marketplace .mp-filter-label i,
.sng-feed-layout--marketplace .mp-search-level .mp-filter-label::before,
.sng-feed-layout--marketplace .mp-filter-section-head i {
  display: none !important;
}

.sng-feed-layout--marketplace .mp-filter-label.mp-label-active {
  color: var(--text-muted, #64748B) !important;
  font-weight: 800 !important;
}

/* Inputs — mock .custom-input (tight ~32–34px shell; was 9.5px pad ≈ too tall) */
.sng-feed-layout--marketplace .mp-filter-input {
  width: 100%;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 34px !important;
  box-sizing: border-box !important;
  background: var(--mp-refine-surface-subtle) !important;
  border: 1.5px solid var(--mp-refine-border) !important;
  border-radius: var(--mp-refine-radius-md) !important;
  padding: 6px 12px !important;
  font-family: inherit !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: var(--text-main, #0F172A) !important;
  outline: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: none !important;
}

.sng-feed-layout--marketplace .mp-filter-input::placeholder {
  color: var(--text-light, #94A3B8) !important;
  font-weight: 500 !important;
  font-size: 12.5px !important;
  font-style: normal !important;
  opacity: 1;
}

.sng-feed-layout--marketplace .mp-filter-input:hover {
  border-color: var(--border-focus, #CBD5E1) !important;
  background: #FFFFFF !important;
}

.sng-feed-layout--marketplace .mp-filter-input:focus {
  background: #FFFFFF !important;
  border-color: var(--primary, #FF4A1C) !important;
  box-shadow: 0 0 0 3.5px var(--mp-refine-glow, rgba(255, 74, 28, 0.14)) !important;
}

.sng-feed-layout--marketplace .mp-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.sng-feed-layout--marketplace .mp-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light, #94A3B8);
  font-size: 12px;
  pointer-events: none;
  z-index: 1;
}

.sng-feed-layout--marketplace .mp-search-level .mp-filter-input {
  padding-left: 36px !important;
  padding-right: 12px !important;
}

.sng-feed-layout--marketplace .mp-price-duo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.sng-feed-layout--marketplace .mp-price-duo .mp-filter-input {
  padding-left: 12px !important;
}

.sng-feed-layout--marketplace .mp-price-sep {
  color: var(--text-light, #94A3B8);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}

/* Native selects — mock .custom-select-trigger shell */
.sng-feed-layout--marketplace .mp-filter-select {
  width: 100%;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 34px !important;
  box-sizing: border-box !important;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--mp-refine-surface-subtle) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 10px !important;
  border: 1.5px solid var(--mp-refine-border) !important;
  border-radius: var(--mp-refine-radius-md) !important;
  padding: 6px 34px 6px 14px !important;
  font-family: inherit !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: var(--text-secondary, #475569) !important;
  outline: none !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sng-feed-layout--marketplace .mp-filters-card .mp-filter-select:has(option[value=""]:checked),
.sng-feed-layout--marketplace .mp-filters-card .mp-filter-select:has(option[value="all"]:checked) {
  color: var(--text-light, #94A3B8) !important;
  font-weight: 600 !important;
}

.sng-feed-layout--marketplace .mp-filter-select:hover {
  background-color: #FFFFFF !important;
  border-color: var(--border-focus, #CBD5E1) !important;
}

.sng-feed-layout--marketplace .mp-filter-select:focus {
  background-color: #FFFFFF !important;
  border-color: var(--primary, #FF4A1C) !important;
  box-shadow: 0 0 0 3.5px var(--mp-refine-glow, rgba(255, 74, 28, 0.14)) !important;
}

.sng-feed-layout--marketplace .mp-filter-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Select2 → look like .custom-select-trigger / .dropdown-flyout / .dropdown-opt */
.sng-feed-layout--marketplace .mp-filters-card .select2-container {
  width: 100% !important;
}

.sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-selection--single,
.sng-feed-layout--marketplace .select2-container--bootstrap-5 .select2-selection--single {
  height: 32px !important;
  min-height: 32px !important;
  max-height: 34px !important;
  box-sizing: border-box !important;
  border: 1.5px solid var(--mp-refine-border, #E5E9F0) !important;
  border-radius: 12px !important;
  background-color: var(--mp-refine-surface-subtle, #F8FAFC) !important;
  font-family: var(--font-family-primary, 'Plus Jakarta Sans', system-ui, sans-serif) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: none !important;
}

.sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-selection--single:hover {
  background-color: #FFFFFF !important;
  border-color: var(--border-focus, #CBD5E1) !important;
}

.sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-selection__rendered {
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center;
  line-height: 1.25 !important;
  padding: 0 34px 0 14px !important;
  font-family: inherit !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--text-secondary, #475569) !important;
}
/* Hide oversized Select2 clear × in Refine (city uses allowClear:false + All Cities) */
.sng-feed-layout--marketplace .mp-filters-card .select2-selection__clear {
  display: none !important;
}

.sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-selection__placeholder,
.sng-feed-layout--marketplace .mp-filters-card .select2-container.mp-s2-placeholder .select2-selection__rendered {
  color: var(--text-light, #94A3B8) !important;
  font-weight: 600 !important;
  font-style: normal !important;
}

.sng-feed-layout--marketplace .mp-filters-card .select2-container--focus .select2-selection--single,
.sng-feed-layout--marketplace .mp-filters-card .select2-container--open .select2-selection--single {
  background-color: #FFFFFF !important;
  border-color: var(--primary, #FF4A1C) !important;
  box-shadow: 0 0 0 3.5px var(--mp-refine-glow, rgba(255, 74, 28, 0.14)) !important;
}

.sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-selection__arrow {
  width: 30px !important;
  height: 100% !important;
  top: 0 !important;
  right: 4px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 10px !important;
  transition: transform 0.2s ease;
}

.sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-selection__arrow b {
  display: none !important;
}

.sng-feed-layout--marketplace .mp-filters-card .select2-container--open .select2-selection__arrow {
  transform: rotate(180deg);
}

.sng-feed-layout--marketplace .mp-filters-card .select2-dropdown {
  border: 1px solid var(--mp-refine-border, #E5E9F0) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 34px -4px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04) !important;
  background: #FFFFFF !important;
  padding: 6px !important;
  margin-top: 6px;
  overflow: hidden;
}

.sng-feed-layout--marketplace .mp-filters-card .select2-search--dropdown {
  padding: 4px 4px 6px !important;
}

.sng-feed-layout--marketplace .mp-filters-card .select2-search--dropdown .select2-search__field {
  border: 1.5px solid var(--mp-refine-border, #E5E9F0) !important;
  border-radius: 8px !important;
  font-family: inherit !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--text-main, #0F172A) !important;
  background: var(--mp-refine-surface-subtle, #F8FAFC) !important;
  padding: 8px 10px !important;
  outline: none !important;
}

.sng-feed-layout--marketplace .mp-filters-card .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--primary, #FF4A1C) !important;
  box-shadow: 0 0 0 3px var(--mp-refine-glow, rgba(255, 74, 28, 0.14));
}

.sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-results__options .select2-results__option {
  padding: 8px 10px !important;
  border-radius: 8px !important;
  margin: 0 0 2px !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--text-muted, #64748B) !important;
  line-height: 1.35 !important;
  transition: background 0.12s ease, color 0.12s ease;
}

.sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-results__option--selectable:hover,
.sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-results__option--highlighted.select2-results__option--selectable,
.sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-results__option--highlighted[aria-selected] {
  background: var(--mp-refine-soft, #FFF2EE) !important;
  color: var(--primary, #FF4A1C) !important;
}

.sng-feed-layout--marketplace .mp-filters-card .select2-container .select2-results__options .select2-results__option[aria-selected="true"] {
  background: var(--mp-refine-soft, #FFF2EE) !important;
  color: var(--primary, #FF4A1C) !important;
  font-weight: 700 !important;
}

/* Body-teleported Select2 dropdown (overflow-safe) */
body.sng-page-marketplace > .select2-container--open .select2-dropdown {
  border: 1px solid var(--border, #E5E9F0) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 34px -4px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04) !important;
  padding: 6px !important;
  background: #FFFFFF !important;
}

body.sng-page-marketplace > .select2-container--open .select2-dropdown .select2-results__options .select2-results__option {
  padding: 8px 10px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--text-muted, #64748B) !important;
}

body.sng-page-marketplace > .select2-container--open .select2-results__option--selectable:hover,
body.sng-page-marketplace > .select2-container--open .select2-results__option--highlighted.select2-results__option--selectable,
body.sng-page-marketplace > .select2-container--open .select2-results__option--highlighted[aria-selected],
body.sng-page-marketplace > .select2-container--open .select2-dropdown .select2-results__options .select2-results__option[aria-selected="true"] {
  background: color-mix(in srgb, var(--primary, #FF4A1C) 12%, #ffffff) !important;
  color: var(--primary, #FF4A1C) !important;
  font-weight: 700 !important;
}

body.sng-page-marketplace > .select2-container--open .select2-search--dropdown .select2-search__field {
  border: 1.5px solid var(--border, #E5E9F0) !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 8px 10px !important;
}

body.sng-page-marketplace > .select2-container--focus .select2-selection--single,
body.sng-page-marketplace > .select2-container--open .select2-selection--single {
  border-color: var(--primary, #FF4A1C) !important;
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--primary, #FF4A1C) 14%, transparent) !important;
}

/* Advanced accordion */
.sng-feed-layout--marketplace .mp-advanced-wrap {
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--mp-refine-border, #E5E9F0);
  border-bottom: 1px solid var(--mp-refine-border, #E5E9F0);
  background: var(--mp-refine-surface-subtle, #F8FAFC);
}

.sng-feed-layout--marketplace .mp-advanced-toggle {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent !important;
  border: none !important;
  padding: 14px 20px !important;
  cursor: pointer;
  font-family: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: inherit !important;
  transition: background 0.15s ease;
}

.sng-feed-layout--marketplace .mp-advanced-toggle:hover {
  background: #EDF2F7 !important;
}

.sng-feed-layout--marketplace .mp-advanced-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main, #0F172A);
}

.sng-feed-layout--marketplace .mp-advanced-badge {
  font-size: 10px;
  font-weight: 800;
  background: var(--mp-refine-soft, #FFF2EE);
  color: var(--primary, #FF4A1C);
  padding: 2px 7px;
  border-radius: 9999px;
  line-height: 1.2;
}

.sng-feed-layout--marketplace .mp-advanced-chevron {
  font-size: 11px;
  color: var(--text-muted, #64748B);
  transition: transform 0.25s ease, color 0.15s ease;
}

.sng-feed-layout--marketplace .mp-advanced-toggle.is-expanded .mp-advanced-chevron {
  transform: rotate(180deg);
  color: var(--primary, #FF4A1C);
}

.sng-feed-layout--marketplace .mp-advanced-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 !important;
  padding: 16px 20px 20px !important;
  background: #FFFFFF;
  border-top: 1px solid var(--mp-refine-border, #E5E9F0);
}

.sng-feed-layout--marketplace .mp-advanced-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #64748B);
}

.sng-feed-layout--marketplace .mp-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sng-feed-layout--marketplace .mp-chip-btn {
  background: #FFFFFF;
  border: 1px solid var(--mp-refine-border, #E5E9F0);
  padding: 6px 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #64748B);
  cursor: pointer;
  text-align: center;
  transition: all 0.12s ease;
}

.sng-feed-layout--marketplace .mp-chip-btn:hover {
  border-color: var(--primary, #FF4A1C);
  color: var(--primary, #FF4A1C);
  background: var(--mp-refine-soft, #FFF2EE);
}

.sng-feed-layout--marketplace .mp-chip-btn.is-selected {
  background: var(--primary, #FF4A1C);
  border-color: var(--primary, #FF4A1C);
  color: #FFFFFF;
}

.sng-feed-layout--marketplace .mp-filters-card-footer {
  padding: 16px 20px;
  background: #FFFFFF;
  border-radius: 0 0 var(--mp-refine-radius, 18px) var(--mp-refine-radius, 18px);
}

.sng-feed-layout--marketplace .mp-apply-btn {
  width: 100%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 11px 18px !important;
  border: none !important;
  border-radius: 12px !important;
  background: var(--primary, #FF4A1C) !important;
  color: #FFFFFF !important;
  font-family: inherit !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--mp-refine-glow, rgba(255, 74, 28, 0.14)) !important;
  transition: background 0.15s ease, transform 0.1s ease;
}

.sng-feed-layout--marketplace .mp-apply-btn:hover {
  background: var(--primary-hover, var(--primary, #E0380D)) !important;
  transform: translateY(-1px);
}

.sng-feed-layout--marketplace .mp-apply-btn:active {
  transform: scale(0.99);
}

.sng-feed-layout--marketplace .mp-apply-btn i {
  font-size: 12px;
}

/* Partial .mp-refine (shared visual system) */
.mp-refine {
  font-family: var(--font-family-primary, 'Plus Jakarta Sans', system-ui, sans-serif);
  gap: 14px;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
}
.mp-refine-head {
  padding: 16px 20px;
  margin: 0;
  border-bottom: 1px solid var(--border, #E5E9F0);
}
.mp-refine-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-main, #0F172A);
}
.mp-refine-title i { color: var(--primary); font-size: 13px; }
.mp-refine-reset {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  padding: 2px 4px;
}
.mp-refine-reset:hover {
  background: color-mix(in srgb, var(--primary) 12%, #fff);
  text-decoration: none;
}
.mp-refine-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #64748B);
  margin-bottom: 0;
}
.mp-refine-select,
.mp-refine-input {
  background: var(--surface-subtle, #F8FAFC);
  border: 1.5px solid var(--border, #E5E9F0);
  border-radius: 12px;
  padding: 6px 14px;
  height: 32px;
  min-height: 32px;
  max-height: 34px;
  box-sizing: border-box;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main, #0F172A);
}
.mp-refine-select { font-weight: 700; padding-right: 34px; }
.mp-refine-select:focus,
.mp-refine-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--primary) 14%, transparent);
  background: #fff;
}
.mp-refine-apply {
  background: var(--primary) !important;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  padding: 11px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 14%, transparent);
}
.mp-refine-apply:hover {
  background: var(--primary-hover, var(--primary)) !important;
}

/* ==========================================================================
   THEME MIGRATION v172 — Batch 3 (ad details, chats, login, seller profile)
   Reference: Mobile View/ad details page.html, All Chats.html, Chat.html,
   Login.html, Seller-posted by profile.html
   ========================================================================== */
@media (max-width: 767px) {

  /* --- Ad details: hero overlay + hide separate topbar / 5-tab footer --- */
  body.sng-listing-immersive .al-detail-topbar { display: none !important; }
  body.sng-listing-immersive .al-bottom-nav { display: none !important; }

  .ld-gallery-main { position: relative; }
  .ld-gallery-overlay {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 25;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--text-main) 55%, transparent), transparent);
    pointer-events: none;
  }
  .ld-gallery-overlay-actions {
    display: flex;
    gap: 8px;
    pointer-events: auto;
  }
  .ld-gallery-overlay-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }
  .ld-gallery-overlay-btn.is-active,
  .ld-gallery-overlay-btn.is-active i { color: var(--primary); }
  .ld-gallery-overlay-btn i { font-size: 14px; }

  /* Theme sticky footer: Call Seller + Send Message (offer stays in negotiate bar) */
  body.sng-listing-immersive .ld-mobile-action-bar {
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top-color: var(--border);
    box-shadow: 0 -2px 12px color-mix(in srgb, var(--text-main) 8%, transparent);
  }
  body.sng-listing-immersive .ld-mab-btn--extra { display: none !important; }
  body.sng-listing-immersive .ld-mab-btn {
    flex: 1;
    min-height: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
  }
  body.sng-listing-immersive .ld-mab-btn--call {
    background: var(--bg-page);
    border: 1px solid var(--border);
    color: var(--text-main) !important;
  }
  body.sng-listing-immersive .ld-mab-btn--message {
    background: var(--primary);
    color: var(--color-on-primary, #fff) !important;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 28%, transparent);
  }
  body.sng-listing-immersive .ld-mab-label-short { display: none; }
  body.sng-listing-immersive .ld-page.detail-immersive,
  body.sng-listing-immersive .ld-layout {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  /* --- Stories: hide Report rail (display:flex!important override) --- */
  body.sng-stories-page .sng-reels-action-btn.sng-hide-mobile,
  body.sng-stories-page .sng-reels-action-btn[aria-label="Report"] {
    display: none !important;
  }

  /* --- All Chats: header toolbar + search placeholder --- */
  .chat-pills-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .chat-pills-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .chat-pills-tool-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: var(--bg-page);
    color: var(--text-muted);
    cursor: default;
    opacity: .85;
  }
  .dash-messages-page .sidebar-search .search-wrap input::placeholder {
    content: 'Search chats or listing items...';
  }
  .dash-messages-page .sidebar-search .search-wrap input::placeholder {
    color: var(--text-muted);
  }

  /* Hide 5-tab footer in active chat thread (Theme Chat.html) */
  .dash-messages-page .messaging-wrapper.erp-msg-has-thread ~ .al-bottom-nav,
  .dash-messages-page .messaging-wrapper.erp-msg-has-thread ~ .sng-tab-bar {
    display: none !important;
  }
  .dash-messages-page .messaging-wrapper.erp-msg-has-thread .chat-window {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* --- Chat thread header (Theme Chat.html) --- */
  .dash-messages-page .chat-header {
    padding: 10px 12px;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
  }
  .dash-messages-page .erp-msg-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
  }
  .dash-messages-page .erp-msg-header-action {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
  }
  .dash-messages-page .erp-msg-header-action:hover { background: var(--bg-page); color: var(--text-main); }
  .dash-messages-page .erp-msg-status-online {
    color: var(--color-success);
    font-size: 10px;
    font-weight: 600;
  }
  .dash-messages-page .erp-msg-context-btn {
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    padding: 8px 12px;
  }

  /* --- Login (Theme Login.html) mobile card polish --- */
  .al-auth-page-centered { background: var(--bg-page); }
  .al-auth-card {
    border-radius: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px color-mix(in srgb, var(--text-main) 8%, transparent);
  }
  .al-auth-submit {
    background: var(--text-main);
    color: var(--bg-card);
    border-radius: 12px;
    font-weight: 700;
    height: 48px;
  }
  .al-auth-submit:hover { background: color-mix(in srgb, var(--text-main) 88%, black); }

  /* --- Seller profile (Theme Seller-posted by profile.html) --- */
  body.dz-seller-profile-page .al-topbar,
  body.dz-seller-profile-page .al-topbar-spacer-block { display: none !important; }
  body.dz-seller-profile-page .sng-feed-container > main.min-h-screen {
    padding-top: 0 !important;
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .dz-seller-profile {
    background: var(--bg-page);
    min-height: 100dvh;
  }
  .dz-seller-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 8px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .dz-seller-profile-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .dz-seller-profile-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
  }
  .dz-seller-profile-header-actions { display: flex; gap: 8px; }
  .dz-seller-profile-icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--bg-page);
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
  }
  .dz-seller-profile-hero {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 14px 14px 16px;
  }
  .dz-seller-profile-identity {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  .dz-seller-profile-avatar-wrap { position: relative; flex-shrink: 0; }
  .dz-seller-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-sm);
  }
  .dz-seller-profile-online {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--color-success);
    border: 2px solid var(--bg-card);
  }
  .dz-seller-profile-meta { flex: 1; min-width: 0; }
  .dz-seller-profile-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .dz-seller-profile-name {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dz-seller-profile-verified { color: var(--color-info); font-size: 14px; }
  .dz-seller-profile-tagline {
    margin: 2px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
  }
  .dz-seller-profile-stats-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
  }
  .dz-seller-profile-rating { color: var(--color-warning); }
  .dz-seller-profile-dot { opacity: .6; }
  .dz-seller-profile-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
  }
  .dz-seller-profile-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 0;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .dz-seller-profile-btn--primary {
    background: var(--primary);
    color: var(--color-on-primary, #fff);
  }
  .dz-seller-profile-btn--primary.is-following {
    background: var(--bg-page);
    color: var(--text-main);
    border: 1px solid var(--border);
  }
  .dz-seller-profile-btn--secondary {
    background: var(--bg-page);
    color: var(--text-main);
    border: 1px solid var(--border);
  }
  .dz-seller-profile-btn--block { width: 100%; margin-top: 12px; }
  .dz-seller-profile-tabs {
    display: flex;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: calc(52px + env(safe-area-inset-top, 0px));
    z-index: 15;
  }
  .dz-seller-profile-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }
  .dz-seller-profile-tab.is-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
  }
  .dz-seller-profile-tab-count {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 12%, var(--bg-card));
    color: var(--primary);
  }
  .dz-seller-profile-panels { padding: 12px; }
  .dz-seller-profile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 2px;
  }
  .dz-seller-profile-panel-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
  }
  .dz-seller-profile-view-toggle {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: var(--bg-page);
    color: var(--text-main);
    cursor: pointer;
  }
  .dz-seller-profile-listings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .dz-seller-profile-listings.is-list { grid-template-columns: 1fr; }
  .dz-seller-profile-listing {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
  }
  .dz-seller-profile-listings.is-list .dz-seller-profile-listing {
    display: grid;
    grid-template-columns: 88px 1fr;
  }
  .dz-seller-profile-listing-img {
    aspect-ratio: 1;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .dz-seller-profile-listings.is-list .dz-seller-profile-listing-img { aspect-ratio: auto; min-height: 88px; }
  .dz-seller-profile-listing-img img { width: 100%; height: 100%; object-fit: cover; }
  .dz-seller-profile-listing-body { padding: 10px; }
  .dz-seller-profile-listing-price {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
  }
  .dz-seller-profile-listing-title {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .dz-seller-profile-listing-loc {
    margin: 4px 0 0;
    font-size: 10px;
    color: var(--text-muted);
  }
  .dz-seller-profile-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px 16px;
    color: var(--text-muted);
  }
  .dz-seller-profile-empty i {
    display: block;
    font-size: 28px;
    opacity: .35;
    margin-bottom: 8px;
  }
  .dz-seller-profile-contact-card,
  .dz-seller-profile-review {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
  }
  .dz-seller-profile-contact-row {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .dz-seller-profile-ratings-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
  }
  .dz-seller-profile-rating-big {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-main);
  }
  .dz-seller-profile-reviews { display: flex; flex-direction: column; gap: 10px; }
  .dz-seller-profile-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
  }
  .dz-seller-profile-review-stars { color: var(--color-warning); font-size: 10px; }
  .dz-star-muted { opacity: .25; }
  .dz-seller-profile-review-text {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.45;
  }
  .dz-seller-profile-review-date {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    color: var(--text-muted);
  }
  .dz-seller-profile-stories { margin-top: 18px; }
  .dz-seller-profile-pagination { margin-top: 12px; }
}

/* Seller profile — desktop (v172 batch was mobile-only; mirror theme on ≥768px) */
@media (min-width: 768px) {
  body.dz-seller-profile-page .sng-feed-container > main.min-h-screen {
    padding: 20px 24px 32px !important;
  }

  .dz-seller-profile {
    background: var(--bg-page);
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .dz-seller-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: static;
  }
  .dz-seller-profile-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .dz-seller-profile-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
  }
  .dz-seller-profile-header-actions { display: flex; gap: 8px; }
  .dz-seller-profile-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--bg-page);
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
  }
  .dz-seller-profile-hero {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 20px;
  }
  .dz-seller-profile-identity {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }
  .dz-seller-profile-avatar-wrap { position: relative; flex-shrink: 0; }
  .dz-seller-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-sm);
  }
  .dz-seller-profile-online {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--color-success);
    border: 2px solid var(--bg-card);
  }
  .dz-seller-profile-meta { flex: 1; min-width: 0; }
  .dz-seller-profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .dz-seller-profile-name {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
  }
  .dz-seller-profile-verified { color: var(--color-info); font-size: 16px; }
  .dz-seller-profile-tagline {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
  }
  .dz-seller-profile-stats-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
  }
  .dz-seller-profile-rating { color: var(--color-warning); }
  .dz-seller-profile-dot { opacity: .6; }
  .dz-seller-profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    max-width: 420px;
  }
  .dz-seller-profile-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
  }
  .dz-seller-profile-btn--primary {
    background: var(--primary);
    color: var(--color-on-primary, #fff);
  }
  .dz-seller-profile-btn--primary.is-following {
    background: var(--bg-page);
    color: var(--text-main);
    border: 1px solid var(--border);
  }
  .dz-seller-profile-btn--secondary {
    background: var(--bg-page);
    color: var(--text-main);
    border: 1px solid var(--border);
  }
  .dz-seller-profile-btn--block { width: 100%; max-width: none; margin-top: 12px; }
  .dz-seller-profile-tabs {
    display: flex;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: static;
  }
  .dz-seller-profile-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }
  .dz-seller-profile-tab.is-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
  }
  .dz-seller-profile-tab-count {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 12%, var(--bg-card));
    color: var(--primary);
  }
  .dz-seller-profile-panels { padding: 20px; }
  .dz-seller-profile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .dz-seller-profile-panel-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
  }
  .dz-seller-profile-view-toggle {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: var(--bg-page);
    color: var(--text-main);
    cursor: pointer;
  }
  .dz-seller-profile-listings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .dz-seller-profile-listings.is-list { grid-template-columns: 1fr; }
  .dz-seller-profile-listing {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
  }
  .dz-seller-profile-listings.is-list .dz-seller-profile-listing {
    display: grid;
    grid-template-columns: 120px 1fr;
  }
  .dz-seller-profile-listing-img {
    aspect-ratio: 1;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .dz-seller-profile-listings.is-list .dz-seller-profile-listing-img { aspect-ratio: auto; min-height: 100px; }
  .dz-seller-profile-listing-img img { width: 100%; height: 100%; object-fit: cover; }
  .dz-seller-profile-listing-body { padding: 12px; }
  .dz-seller-profile-listing-price {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
  }
  .dz-seller-profile-listing-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .dz-seller-profile-listing-loc {
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--text-muted);
  }
  .dz-seller-profile-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
  }
  .dz-seller-profile-empty i {
    display: block;
    font-size: 32px;
    opacity: .35;
    margin-bottom: 10px;
  }
  .dz-seller-profile-contact-card,
  .dz-seller-profile-review {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    max-width: 480px;
  }
  .dz-seller-profile-contact-row {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .dz-seller-profile-ratings-summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
  }
  .dz-seller-profile-rating-big {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-main);
  }
  .dz-seller-profile-reviews { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
  .dz-seller-profile-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
  }
  .dz-seller-profile-review-stars { color: var(--color-warning); font-size: 12px; }
  .dz-seller-profile-review-text {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.45;
  }
  .dz-seller-profile-review-date {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
  }
  .dz-seller-profile-stories { margin-top: 24px; }
  .dz-seller-profile-pagination { margin-top: 16px; }

  body.dz-flutter-mobile.dz-flutter-route-seller .dz-seller-profile-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  body.dz-flutter-mobile.dz-flutter-route-seller .dz-seller-profile-btn--primary {
    background: var(--primary);
    border-color: var(--primary);
  }
}

/* ==========================================================================
   THEME MIGRATION v173 — Batch 4 (partner storefront, account subpages, chats)
   Reference: Partners Page-seller profiles.html, User Account.html, All Chats.html
   ========================================================================== */
@media (max-width: 767px) {

  /* --- Business / partner storefront (/business/{slug}) --- */
  body.dz-partner-profile-page .al-topbar,
  body.dz-partner-profile-page .al-topbar-spacer-block { display: none !important; }
  body.dz-partner-profile-page .sng-feed-container > main.min-h-screen {
    padding-top: 0 !important;
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.dz-partner-profile-page .biz-hero { display: none !important; }
  body.dz-partner-profile-page .biz-header-card {
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    padding-top: 8px;
  }
  .dz-partner-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 8px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 25;
  }
  .dz-partner-mobile-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .dz-partner-mobile-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
  }
  .dz-partner-mobile-header-actions { display: flex; gap: 8px; }
  .dz-partner-icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--bg-page);
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
  }
  body.dz-partner-profile-page .biz-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: 2px solid var(--primary);
  }
  body.dz-partner-profile-page .dz-partner-action-row {
    width: 100%;
    flex-wrap: wrap;
  }
  body.dz-partner-profile-page .dz-partner-follow-btn.is-following {
    background: var(--bg-page) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border);
  }
  body.dz-partner-profile-page .biz-tabs-wrap {
    margin-top: 0;
    position: sticky;
    top: calc(52px + env(safe-area-inset-top, 0px));
    z-index: 20;
  }
  body.dz-partner-profile-page .biz-tabs {
    gap: 0;
    padding: 0;
    justify-content: stretch;
  }
  body.dz-partner-profile-page .biz-tab {
    flex: 1;
    justify-content: center;
    border-radius: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    padding: 12px 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
  }
  body.dz-partner-profile-page .biz-tab.active {
    color: var(--primary);
    background: transparent;
    border-bottom-color: var(--primary);
  }
  body.dz-partner-profile-page .biz-tab-label-desktop { display: none; }
  body.dz-partner-profile-page .biz-tab-label-mobile { display: inline; }
  body.dz-partner-profile-page .biz-tab-count {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 12%, var(--bg-card));
    color: var(--primary);
  }
  body.dz-partner-profile-page .biz-hero-fallback {
    background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 55%, black) 100%) !important;
  }

  /* --- All Chats: Buying / Selling pills --- */
  .chat-pills-row .chat-pill[data-chat-filter="buying"],
  .chat-pills-row .chat-pill[data-chat-filter="selling"] {
    font-size: 11px;
    padding: 7px 11px;
  }
}

@media (min-width: 768px) {
  .dz-partner-mobile-header { display: none !important; }
  .biz-tab-label-mobile { display: none; }
  .biz-tab-label-desktop { display: inline; }
}

/* ==========================================================================
   THEME MIGRATION v174 — Batch 5 (business directory, account subpages, listings tabs)
   Reference: Partners Page-seller profiles.html View 1, User Account.html
   ========================================================================== */
@media (max-width: 767px) {

  /* --- Business directory (/businesses) View 1 --- */
  body.dz-business-directory-page .al-topbar,
  body.dz-business-directory-page .al-topbar-spacer-block,
  body.dz-business-directory-page .sng-feed-container > .wowonder-feed-top,
  body.dz-business-directory-page #page-businesses .biz-status-bar,
  body.dz-business-directory-page #page-businesses .biz-mobile-filters-bar,
  body.dz-business-directory-page #page-businesses .px-3.py-2.sng-hide-desktop {
    display: none !important;
  }
  body.dz-business-directory-page .sng-feed-container > main.min-h-screen {
    padding-top: 0 !important;
  }
  body.dz-business-directory-page #page-businesses #biz-feed {
    background: var(--bg-page);
  }
  body.dz-business-directory-page #page-businesses .pb-16 {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .biz-mobile-header {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 35;
  }
  .biz-mobile-header-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .biz-mobile-search-row {
    padding: 8px 12px 4px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  .biz-mobile-search-form {
    position: relative;
    display: flex;
    align-items: center;
  }
  .biz-mobile-search-icon {
    position: absolute;
    left: 12px;
    font-size: 14px;
    color: var(--text-muted);
    pointer-events: none;
  }
  .biz-mobile-search-input {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: var(--bg-page);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 36px 10px 34px;
    outline: none;
  }
  .biz-mobile-search-input:focus {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 35%, var(--border));
  }
  .biz-mobile-search-clear {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
  }
  .biz-mobile-search-clear.is-hidden { display: none; }

  .biz-picks-bar {
    position: sticky;
    top: calc(52px + env(safe-area-inset-top, 0px));
    z-index: 34;
  }

  body.dz-business-directory-page #page-businesses .biz-list-wrap,
  body.dz-business-directory-page #page-businesses #biz-grid-wrap {
    margin: 12px;
    gap: 12px;
  }
  body.dz-business-directory-page #page-businesses .biz-list-row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    border-radius: 12px;
    padding: 12px;
    gap: 12px;
    box-shadow: var(--shadow-xs);
  }
  body.dz-business-directory-page #page-businesses .biz-list-logo {
    width: 56px;
    flex: 0 0 56px;
    border: 0;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  body.dz-business-directory-page #page-businesses .biz-list-logo .biz-avatar-img,
  body.dz-business-directory-page #page-businesses .biz-list-logo .biz-avatar-letter {
    width: 56px;
    height: 56px;
    border-radius: 8px;
  }
  body.dz-business-directory-page #page-businesses .biz-list-body {
    flex: 1;
    min-width: 0;
    padding: 0;
  }
  body.dz-business-directory-page #page-businesses .biz-list-name {
    font-size: 14px;
    font-weight: 800;
  }
  body.dz-business-directory-page #page-businesses .biz-list-cat {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
  }
  body.dz-business-directory-page #page-businesses .biz-star-row {
    font-size: 11px;
    gap: 4px;
  }
  body.dz-business-directory-page #page-businesses .biz-list-desc {
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.dz-business-directory-page #page-businesses .biz-list-bottom {
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }
  body.dz-business-directory-page #page-businesses .biz-view-details {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
  }
  body.dz-business-directory-page #page-businesses .biz-follow-btn {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 8px;
  }

  /* --- Account messages hub: hide duplicate title when subheader present --- */
  body.dz-account-subpage.dash-messages-page .chat-pills-title-text {
    display: none;
  }
  body.dz-account-subpage.dash-messages-page .dash-topbar {
    display: none !important;
  }
  body.dz-account-subpage.dash-messages-page .dz-account-subheader {
    flex-shrink: 0;
  }
  body.dz-account-subpage.dash-messages-page .dash-content-messages {
    padding: 0 !important;
    height: calc(100dvh - 52px - env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 52px - env(safe-area-inset-top, 0px));
  }
  body.dz-account-subpage.dash-messages-page .messaging-wrapper:not(.erp-msg-has-thread) {
    height: 100%;
  }
  body.dz-account-subpage.dash-messages-page .messaging-wrapper.erp-msg-has-thread ~ .dz-account-subheader {
    display: none;
  }
}

/* ==========================================================================
   THEME MIGRATION v193 — Posted By seller row: flat on card (no nested panel)
   --------------------------------------------------------------------------
   Profile-link work wrapped ld-seller-inline / ld-seller-avatar-side in <a>
   tags with background: var(--bg-page), which read as an extra grey box on
   the white Posted By card. Seller row is avatar + name + meta only — no
   nested surface-subtle panel or type-chip pills inside the card.
   ========================================================================== */
body.sng-listing-immersive .ld-seller-top,
body.sng-listing-immersive .ld-details-header .ld-seller-inline,
body.sng-listing-immersive .ld-posted-by-store-card,
body.sng-listing-immersive .ld-posted-by-store-inner {
  background: transparent !important;
  border-radius: 0;
  box-shadow: none;
}
body.sng-listing-immersive .ld-seller-avatar-side,
body.sng-listing-immersive .ld-seller-avatar-link,
body.sng-listing-immersive .ld-seller-inline-avatar,
body.sng-listing-immersive .ld-posted-by-avatar {
  background: transparent !important;
}
body.sng-listing-immersive a.ld-seller-inline-name,
body.sng-listing-immersive a.ld-seller-inline-profile,
body.sng-listing-immersive a.ld-seller-avatar-link,
body.sng-listing-immersive a.ld-posted-by-store-card {
  text-decoration: none;
  color: inherit;
  background: transparent !important;
  border: 0;
  box-shadow: none;
}
body.sng-listing-immersive .ld-details-header .ld-seller-inline:hover .ld-seller-inline-name {
  color: var(--primary);
}
a.sng-post-header-user.dz-seller-profile,
a.dz-seller-profile {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: none) {
  body.sng-listing-immersive .ld-seller-inline-avatar:active,
  body.sng-listing-immersive .ld-seller-inline-name:active,
  body.sng-listing-immersive .ld-seller-inline-profile:active,
  body.sng-listing-immersive .ld-seller-avatar-link:active {
    background: transparent !important;
  }
}
@media (min-width: 768px) {
  .ld-page.detail-immersive .ld-seller-stats-grid {
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid var(--border-light) !important;
    border-radius: 0 !important;
    padding: 10px 0 0 !important;
  }
  .ld-page.detail-immersive .ld-seller-type-chip,
  .ld-page.detail-immersive .ld-seller-type-chip--neutral {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }
}

@media (min-width: 768px) {
  .biz-mobile-search-row { display: none !important; }
}

/* ==========================================================================
   THEME MIGRATION v194 — Mobile listing detail: Posted By store card after map
   --------------------------------------------------------------------------
   Theme Mobile View/ad details page.html: Location → Posted By → Comments.
   Seller/store card lives below the map on mobile only (≤767px); desktop keeps
   the sidebar Posted By card. v193 flat-link rules extended to ld-posted-by-*.
   ========================================================================== */
@media (max-width: 767px) {
  body.sng-listing-immersive .ld-posted-by-mobile {
    display: block !important;
  }
  body.sng-listing-immersive .ld-posted-by-title {
    margin: 0 0 10px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
  }
  body.sng-listing-immersive .ld-posted-by-store-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    background: var(--bg-card) !important;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  body.sng-listing-immersive .ld-posted-by-store-card:hover,
  body.sng-listing-immersive .ld-posted-by-store-card:active {
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  }
  body.sng-listing-immersive .ld-posted-by-store-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  body.sng-listing-immersive .ld-posted-by-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 0;
    background: transparent !important;
  }
  body.sng-listing-immersive .ld-posted-by-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  body.sng-listing-immersive .ld-posted-by-verify {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--success, var(--color-success));
    color: #fff;
    border: 2px solid var(--bg-card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
  }
  body.sng-listing-immersive .ld-posted-by-meta {
    flex: 1;
    min-width: 0;
  }
  body.sng-listing-immersive .ld-posted-by-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
  }
  body.sng-listing-immersive .ld-posted-by-name {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  body.sng-listing-immersive .ld-posted-by-badge {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border-radius: 6px;
    padding: 2px 6px;
    flex-shrink: 0;
  }
  body.sng-listing-immersive .ld-posted-by-sub {
    margin: 2px 0 0;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.35;
  }
  body.sng-listing-immersive .ld-posted-by-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
  }
  body.sng-listing-immersive .ld-posted-by-cta i {
    font-size: 10px;
  }
  body.sng-listing-immersive .ld-posted-by-store-card:hover .ld-posted-by-name,
  body.sng-listing-immersive .ld-posted-by-store-card:hover .ld-posted-by-cta {
    color: var(--primary);
  }
}
@media (min-width: 768px) {
  body.sng-listing-immersive .ld-posted-by-mobile {
    display: none !important;
  }
}
