
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Manrope:wght@400;500;600&family=Pirata+One&display=swap');

        @font-face {
            font-family: 'Macan';
            src: url('Fonts/Macan/MacanPanWeb-Thin.ttf') format('truetype');
            font-weight: 300;
            font-style: normal;
        }

        @font-face {
            font-family: 'Macan';
            src: url('Fonts/Macan/MacanPanWeb-Regular.ttf') format('truetype');
            font-weight: 400;
            font-style: normal;
        }

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

        *:focus {
            outline: none;
        }

        /* Hide scrollbar globally but allow scroll */
        * {
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        *::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }

        html, body {
            height: 100%;
            overflow: hidden;
            font-family: 'Macan', sans-serif;
        }

        .container {
            display: flex;
            height: 100vh;
            background: #D6D1CB;
            isolation: isolate;
            min-width: 0;
        }

        /* ─── Nav Rail ─── */
        .nav-rail {
            width: 72px;
            height: calc(100% - 16px);
            align-self: center;
            background: #E2DFDB;
            border-right: 0.5px solid #ccc;
            border-radius: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 16px 0;
            gap: 16px;
            flex-shrink: 0;
            position: relative;
            z-index: 1100;
            transition: border-radius 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .nav-rail-top {
            position: absolute;
            top: 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .nav-rail-center {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            position: relative;
        }

        .nav-rail-indicator {
            position: absolute;
            width: 56px;
            height: 52px;
            background: #1c1c1c;
            border-radius: 16px;
            transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
            z-index: 0;
            pointer-events: none;
        }

        .text-inspector-toggle {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #999;
            background: transparent;
            border: 1.5px solid #ccc;
            font-family: 'Inter', sans-serif;
            font-size: 11px;
            font-weight: 600;
        }

        .text-inspector-toggle:hover {
            border-color: #999;
            color: #666;
        }

        .text-inspector-toggle.active {
            background: #FF6F00;
            border-color: #FF6F00;
            color: #fff;
        }

        .text-inspector-tooltip {
            position: fixed;
            background: rgba(0, 0, 0, 0.85);
            color: #fff;
            padding: 6px 10px;
            border-radius: 6px;
            font-family: 'Inter', sans-serif;
            font-size: 11px;
            font-weight: 500;
            pointer-events: none;
            z-index: 99999;
            white-space: nowrap;
            opacity: 0;
            transition: opacity 0.15s ease;
            transform: translate(-50%, -100%);
            margin-top: -12px;
        }

        .text-inspector-tooltip.visible {
            opacity: 1;
        }

        .nav-rail-icon {
            width: 56px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 8px 4px;
            border-radius: 16px;
            cursor: pointer;
            transition: color 0.2s ease;
            color: #1c1c1c;
            position: relative;
            z-index: 1;
        }

        .nav-rail-icon:hover {
            color: #1c1c1c;
        }

        .nav-rail-icon.active {
            color: #F1EFEB;
        }

        .nav-rail-icon svg {
            width: 20px;
            height: 20px;
        }

        #navMe {
            display: none;
        }

        body.logged-in #navMe {
            display: flex;
        }

        .nav-me-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            object-fit: cover;
            display: none;
        }

        #navMe.logged-in .nav-me-icon {
            display: none;
        }

        #navMe.logged-in .nav-me-avatar {
            display: block;
        }

        .nav-rail-icon-label {
            font-family: 'Macan', sans-serif;
            font-size: 9px;
            font-weight: 500;
            letter-spacing: 0.02em;
            white-space: nowrap;
        }

        .nav-rail-bottom {
            position: absolute;
            bottom: 16px;
        }

        .nav-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #fafafa;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #666;
        }

        .nav-avatar:hover {
            background: #ccc;
            color: #1c1c1c;
        }

        .nav-avatar svg {
            width: 20px;
            height: 20px;
        }

        .nav-flyout {
            position: fixed;
            bottom: 16px;
            left: 80px;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 24px rgba(0,0,0,0.15);
            padding: 16px;
            min-width: 200px;
            opacity: 0;
            transform: translateX(-10px);
            pointer-events: none;
            transition: opacity 0.2s ease, transform 0.2s ease;
            z-index: 2000;
        }

        .nav-flyout.visible {
            opacity: 1;
            transform: translateX(0);
            pointer-events: auto;
        }

        .nav-flyout-email {
            font-family: 'Inter', sans-serif;
            font-size: 13px;
            color: #999;
            padding: 8px 12px;
            margin-bottom: 8px;
        }

        .nav-flyout-divider {
            height: 1px;
            background: #eee;
            margin: 8px 0;
        }

        .nav-flyout-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            color: #1c1c1c;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.15s ease;
        }

        .nav-flyout-item:hover {
            background: #f5f5f5;
        }

        .nav-flyout-item svg {
            width: 16px;
            height: 16px;
            color: #666;
            flex-shrink: 0;
        }

        .nav-flyout-divider {
            height: 1px;
            background: #e0e0e0;
            margin: 8px 16px;
        }

        .nav-flyout-footer {
            padding: 10px 16px;
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 14px;
            color: #000;
        }

        .nav-flyout-logout {
            color: #c0392b;
        }

        .nav-flyout-logout svg {
            color: #c0392b;
        }

        .nav-flyout-logout:hover {
            background: #fdf2f2;
        }

        .nav-divider {
            width: 0.5px;
            background: #ddd;
            align-self: center;
            height: 100%;
            max-height: calc(100% - 32px);
            flex-shrink: 0;
            transition: none;
        }

        /* ─── View Containers ─── */
        .view-container {
            background: #D7D1CA;
            position: relative;
            z-index: 1;
        }

        /* ─── Classifieds View ─── */
        #viewClassifieds {
            flex-direction: row !important;
            background: #D6D1CB;
            gap: 8px;
            padding: 0 8px 0 0;
            transition: padding 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                        gap 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .classifieds-left-panel {
            flex: 0 0 auto;
            width: fit-content;
            min-width: 0;
            align-self: center;
            height: calc(100% - 16px);
            background: #E2DFDB;
            border-radius: 0 32px 32px 0;
            padding: 28px 24px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            overscroll-behavior: none;
            position: relative;
            z-index: 0;
        }

        .classifieds-left-panel::-webkit-scrollbar {
            width: 4px;
        }

        .classifieds-left-panel::-webkit-scrollbar-track {
            background: transparent;
        }

        .classifieds-left-panel::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.15);
            border-radius: 2px;
        }

        .classifieds-left-panel .supertitle,
        .left-panel .supertitle {
            margin-bottom: 2px;
            margin-top: 6px;
            flex-shrink: 0;
            font-size: 24px;
            letter-spacing: 0;
        }
        .supertitle,
        .mobile-view-supertitle,
        .ff-brand {
            cursor: pointer;
        }

        .supertitle:focus-visible,
        .mobile-view-supertitle:focus-visible,
        .ff-brand:focus-visible {
            outline: 2px solid #1c1c1c;
            outline-offset: 4px;
        }

        .classifieds-left-panel .subtitle {
            font-size: 14px;
        }

        .classifieds-left-panel .title {
            margin-bottom: 24px;
            flex-shrink: 0;
        }

        .classifieds-accordion {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden !important;
            min-height: 0;
            scrollbar-width: none;
            overscroll-behavior: none;
        }

        .classifieds-accordion.needs-scroll {
            overflow-y: auto !important;
        }

        .classifieds-accordion::-webkit-scrollbar {
            display: none;
        }

        .classifieds-filter-hint .accordion-search-icon {
            display: none;
        }

        .classifieds-filter-hint {
            flex-shrink: 0;
            padding-bottom: 8px;
        }

        .classifieds-accordion-item {
            flex-shrink: 0 !important;
            transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .classifieds-accordion-item .accordion-number {
            display: none;
        }

        .classifieds-accordion-item.active {
            flex: none !important;
            overflow: visible !important;
            min-height: auto !important;
        }

        .classifieds-accordion-item .accordion-content {
            display: block !important;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: max-height 0.3s ease-out, opacity 0.2s ease;
            flex: none !important;
        }

        .classifieds-accordion-item .accordion-content .accordion-inner {
            overflow: visible;
            padding: 8px 0;
        }

        .classifieds-accordion-item.active .accordion-content {
            opacity: 1;
            max-height: 300px;
            overflow: visible;
        }

        .classifieds-accordion-item.active .accordion-header .accordion-chevron {
            opacity: 1;
            transform: rotate(45deg);
        }

        .classifieds-accordion-item .accordion-header {
            padding: 0 16px 12px 12px;
        }

        .classifieds-accordion-item .accordion-header .accordion-chevron {
            margin-right: 8px;
        }

        .classifieds-filter-content {
            display: flex;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            flex-direction: column;
            gap: 0;
            padding: 0 0 0 0;
            margin: 0 -16px;
            transition: max-height 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                        opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1),
                        padding 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .classifieds-accordion-item.active .classifieds-filter-content {
            max-height: 500px;
            opacity: 1;
            padding: 8px 0 16px 0;
        }

        .classifieds-filter-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        @keyframes filterItemFadeIn {
            from {
                opacity: 0;
                transform: translateY(8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .classifieds-filter-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 20px 12px 64px;
            cursor: pointer;
            transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
            opacity: 0;
            animation: filterItemFadeIn 0.4s ease forwards;
        }

        .classifieds-filter-item:hover {
            opacity: 0.7;
            background: rgba(0, 0, 0, 0.03);
        }

        .classifieds-filter-checkbox {
            width: 18px;
            height: 18px;
            border: 1px solid #1c1c1c;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease, border-color 0.2s ease;
            flex-shrink: 0;
        }

        .classifieds-filter-checkbox svg {
            width: 12px;
            height: 12px;
            stroke: #fff;
            stroke-width: 2.5;
            opacity: 0;
            transition: opacity 0.15s ease;
        }

        .classifieds-filter-item.checked .classifieds-filter-checkbox {
            background: #1c1c1c;
            border-color: #1c1c1c;
        }

        .classifieds-filter-item.checked .classifieds-filter-checkbox svg {
            opacity: 1;
        }

        .classifieds-filter-label {
            font-size: 13px;
            color: #1c1c1c;
        }

        .classifieds-filter-item.checked .classifieds-filter-label {
            color: #1c1c1c;
            font-weight: 500;
        }

        .classifieds-filter-item.disabled {
            pointer-events: none;
            opacity: 0.35;
        }

        .classifieds-filter-item.disabled .classifieds-filter-checkbox {
            border-color: #999;
        }

        .classifieds-filter-item.disabled .classifieds-filter-label {
            color: #999;
        }

        .classifieds-content-area {
            flex: 1;
            display: flex;
            overflow: hidden;
            background: #D6D1CB;
            gap: 8px;
            padding: 8px 0;
            position: relative;
            z-index: 0;
            transition: margin 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .classifieds-main {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            min-width: 0;
            padding: 0;
        }

        .classifieds-main-container {
            flex: 1;
            background: #E2DFDB;
            border-radius: 32px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            padding: 28px 28px 0 28px;
            position: relative;
            transition: border-radius 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .classifieds-main-container::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.7) 100%);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
            pointer-events: none;
            border-radius: 0 0 32px 32px;
        }

        .classifieds-detail-panel {
            display: none;
            flex: 1;
            min-width: 300px;
            background: #D6D1CB;
            padding: 0;
            flex-direction: column;
        }

        .classifieds-detail-panel.visible {
            display: flex;
        }

        .classifieds-detail-container {
            flex: 1;
            background: #E2DFDB;
            border-radius: 32px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: border-radius 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .classifieds-detail-scroll {
            flex: 1;
            overflow-y: auto;
            padding: 16px 28px 16px 28px;
            display: flex;
            flex-direction: column;
            min-width: 320px;
        }

        .classifieds-detail-scroll::-webkit-scrollbar {
            display: none;
        }

        .classifieds-analysis-panel {
            display: none;
            min-width: 0;
            flex-direction: column;
        }

        .classifieds-analysis-panel.visible {
            display: flex;
        }

        /* Right column - stacks analysis + chat vertically */
        .classifieds-right-column {
            display: none;
            flex: 0 0 340px;
            flex-direction: column;
            gap: 8px;
            overflow: hidden;
            background: #D6D1CB;
            padding: 0;
            height: 100%;
            min-height: 0;
        }

        #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-right-column {
            display: flex;
        }

        /* ─── Classifieds Elegant Animations ─── */
        @keyframes classifiedsPanelSlideIn {
            from {
                opacity: 0;
                transform: translateX(24px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes classifiedsSellerSlideUp {
            from {
                opacity: 0;
                transform: translateY(24px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes classifiedsChatMessageIn {
            from {
                opacity: 0;
                transform: translateY(12px) scale(0.96);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes classifiedsTypingPulse {
            0%, 100% { opacity: 0.4; }
            50% { opacity: 1; }
        }

        @keyframes classifiedsButtonPress {
            0% { transform: scale(1); }
            50% { transform: scale(0.95); }
            100% { transform: scale(1); }
        }

        @keyframes classifiedsPanelExpand {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-right-column {
            display: flex;
        }

        #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-left-panel {
            display: none;
        }

        #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-main {
            flex: 0 0 294px;
            min-width: 294px;
            max-width: 294px;
            padding: 0;
        }

        #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-detail-panel {
            padding: 0;
        }

        #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-search-group {
            display: none;
        }

        #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-main-container {
            padding: 20px 24px 16px;
            border-radius: 0 32px 32px 0;
        }

        .classifieds-list-back-btn {
            display: none;
            align-items: center;
            gap: 6px;
            background: none;
            border: none;
            font-family: 'Macan', sans-serif;
            font-size: 20px;
            font-weight: 400;
            color: #000;
            cursor: pointer;
            padding: 8px 0;
            margin-top: 20px;
            margin-bottom: 20px;
            transition: color 0.2s ease;
        }

        .classifieds-list-back-btn:hover {
            color: #666;
        }

        .classifieds-list-back-btn svg {
            width: 16px;
            height: 16px;
        }

        #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-list-back-btn {
            display: flex;
        }

        #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-register-btn {
            display: none;
        }

        #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-login-btn {
            display: none;
        }

        #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-chat-btn {
            display: none;
        }

        #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-grid-label {
            display: none;
        }

        body:has(#viewClassifieds .classifieds-detail-panel.visible) .nav-divider {
            visibility: hidden;
            opacity: 0;
            width: 0;
        }

        /* Nav styling when post form is visible - wide viewport (left panel visible) */
        body:has(.classifieds-post-form.visible) .nav-rail,
        body:has(#mePostFormView[style*="flex"]) .nav-rail {
            border-radius: 0 !important;
        }

        body:has(.classifieds-post-form.visible) .nav-divider,
        body:has(#mePostFormView[style*="flex"]) .nav-divider {
            width: 0 !important;
            background: transparent !important;
        }

        /* Nav styling when post form is visible - narrow viewport (left panel hidden) */
        @media (max-width: 900px) {
            body:has(.classifieds-post-form.visible) .nav-rail,
            body:has(#mePostFormView[style*="flex"]) .nav-rail {
                border-radius: 0 32px 32px 0 !important;
            }
        }

        #viewMe:has(#mePostFormView[style*="flex"]) {
            padding-right: 0 !important;
        }

        #viewMe:has(#mePostFormView[style*="flex"]) .me-post-form-panel {
            padding-left: 0 !important;
        }

        #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-grid {
            display: flex;
            flex-direction: column;
            gap: 8px;
            align-content: unset;
            padding: 4px;
            margin: -4px;
        }

        #viewClassifieds:has(.classifieds-detail-panel.visible) .classified-card {
            flex-shrink: 0;
        }

        #viewClassifieds:has(.classifieds-detail-panel.visible) .classified-img {
            height: 140px;
        }

        #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-detail-panel,
        #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-right-column {
            flex: 1 1 0;
            min-width: 0;
        }

        .classifieds-analysis-container {
            flex: 1;
            background: #E2DFDB;
            border-radius: 32px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
            transform: translateX(0);
            animation: classifiedsPanelSlideIn 0.5s cubic-bezier(0.32, 0.72, 0, 1) backwards;
            min-height: 0;
        }

        .classifieds-analysis-scroll {
            flex: 1;
            overflow-y: auto;
            padding: 16px 28px 100px 28px;
            display: flex;
            flex-direction: column;
            opacity: 0;
            transition: opacity 0.35s cubic-bezier(0.32, 0.72, 0, 1);
            min-height: 0;
        }

        .classifieds-analysis-panel.expanded .classifieds-analysis-scroll {
            opacity: 1;
        }

        .classifieds-analysis-scroll::-webkit-scrollbar {
            display: none;
        }

        .classifieds-analysis-card h2 {
            font-family: 'Manrope', sans-serif;
            font-size: 20px;
            font-weight: 500;
            letter-spacing: 0.05em;
            color: #1c1c1c;
            text-transform: uppercase;
            margin-top: 22px;
            margin-bottom: 16px;
            text-align: center;
        }

        .classifieds-analysis-card p {
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            line-height: 1.6;
            color: #1c1c1c;
            margin-bottom: 16px;
        }

        /* Classifieds responsive - menu hover trigger and scrim */
        .classifieds-menu-hover-trigger {
            display: none;
            position: fixed;
            left: 48px;
            top: 0;
            width: 20px;
            height: 100%;
            z-index: 1002;
        }

        .classifieds-menu-scrim {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s cubic-bezier(0.32, 0.72, 0, 1);
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
        }

        .classifieds-menu-scrim.visible {
            opacity: 1;
            pointer-events: auto;
        }

        /* Detail panel back button - only visible on smaller screens */
        .classifieds-detail-back-btn {
            display: none;
            align-items: center;
            gap: 6px;
            background: none;
            border: none;
            font-size: 18px;
            font-weight: 500;
            color: #1c1c1c;
            cursor: pointer;
            padding: 8px 0;
            margin: 40px 28px 0 28px;
            transition: color 0.2s ease;
        }

        .classifieds-detail-back-btn:hover {
            color: #666;
        }

        .classifieds-detail-back-btn svg {
            width: 16px;
            height: 16px;
        }

        /* Classifieds responsive: narrower list on smaller screens */
        @media (min-width: 501px) and (max-width: 1200px) {
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-main {
                flex: 0 0 0px;
                min-width: 0;
                max-width: 0;
                opacity: 0;
                transform: translateX(-100%);
                pointer-events: none;
            }
            body:has(#viewClassifieds .classifieds-detail-panel.visible) .nav-rail {
                border-radius: 0 32px 32px 0 !important;
            }
            .classifieds-detail-back-btn {
                display: flex;
            }
            .classifieds-detail-scroll {
                padding-top: 0;
            }
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-detail-container {
                border-radius: 32px;
            }
        }
        @media (max-width: 500px) {
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-main {
                flex: 0 0 0px;
                min-width: 0;
                max-width: 0;
                opacity: 0;
                transform: translateX(-100%);
                pointer-events: none;
            }
            .classifieds-detail-back-btn {
                display: flex;
            }
            .classifieds-detail-scroll {
                padding-top: 0;
            }
        }

        /* Classifieds grid view: slide left panel when viewport shrinks */
        @media (max-width: 900px) {
            #viewClassifieds:not(:has(.classifieds-detail-panel.visible)) .classifieds-left-panel {
                flex: 0 0 0px;
                min-width: 0;
                max-width: 0;
                padding: 0;
                margin: 0;
                opacity: 0;
                transform: translateX(-100%);
                pointer-events: none;
                overflow: hidden;
            }

            body:has(#viewClassifieds[style*="flex"]) .nav-rail {
                border-right: none !important;
            }

            body:has(#viewClassifieds[style*="flex"]) .nav-divider {
                visibility: hidden;
                opacity: 0;
                width: 0;
            }
        }

        @media (max-width: 900px) {
            /* Me view panel - slide off like Buy/Sell */
            #viewMe #meLeftPanel {
                flex: 0 0 0px;
                min-width: 0;
                max-width: 0;
                padding: 0;
                margin: 0;
                opacity: 0;
                transform: translateX(-100%);
                pointer-events: none;
                overflow: hidden;
            }
        }

        .listing-header {
            position: sticky;
            top: -16px;
            background: #E4DFDB;
            padding: 36px 28px 8px 28px;
            margin: -16px -28px 12px -28px;
            z-index: 10;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }

        .listing-header-text {
            flex: 1;
            min-width: 0;
            padding-top: 10px;
        }

        .listing-star-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            color: #fff;
            transition: color 0.2s ease, transform 0.2s ease;
            z-index: 10;
        }

        .listing-star-btn.dark-bg {
            color: #fff;
        }

        .listing-star-btn.light-bg {
            color: #000;
        }

        .listing-star-btn:hover {
            transform: scale(1.1);
        }

        .listing-star-btn.starred {
            color: #f5a623;
        }

        .listing-star-btn.starred:hover {
            color: #e09000;
        }

        .listing-star-btn svg {
            width: 24px;
            height: 24px;
            display: block;
        }

        .listing-brand {
            display: none;
        }

        .listing-model {
            font-size: 20px;
            font-weight: 400;
            color: #000;
            margin-top: 4px;
            margin-bottom: 12px;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .listing-price {
            font-size: 28px;
            font-weight: 700;
            color: #1c1c1c;
            margin-bottom: 8px;
        }

        .listing-meta {
            font-size: 13px;
            color: #999;
        }

        /* Shared element transition - flying thumbnail */
        .flying-thumbnail {
            position: fixed;
            z-index: 9999;
            pointer-events: none;
            will-change: transform, width, height, border-radius;
        }

        .listing-image-container {
            position: relative;
            margin-bottom: 12px;
        }

        .listing-sold-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: rgba(0, 0, 0, 0.75);
            color: #fff;
            font-family: 'Macan', sans-serif;
            font-size: 12px;
            font-weight: 500;
            padding: 6px 12px;
            border-radius: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: none;
        }

        .listing-sold-badge.visible {
            display: block;
        }

        .listing-image {
            width: 100%;
            aspect-ratio: 16 / 9;
            border-radius: 12px;
            margin-bottom: 0;
            transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
            box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
            background-size: cover;
            background-position: center;
        }

        .listing-image.awaiting-transition {
            visibility: hidden;
        }

        .listing-thumbnails {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
        }

        .listing-thumb {
            width: 56px;
            height: 56px;
            border-radius: 8px;
            cursor: pointer;
            opacity: 0.5;
            transition: opacity 0.2s ease, outline 0.2s ease;
        }

        .listing-thumb.active {
            opacity: 1;
            outline: 4px solid #1c1c1c;
            outline-offset: 2px;
        }

        /* Classifieds back button */
        .classifieds-back-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            margin-bottom: 16px;
            background: transparent;
            border: none;
            border-radius: 8px;
            font-family: 'Inter', sans-serif;
            font-size: 18px;
            font-weight: 500;
            color: #666;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
        }

        .classifieds-back-btn:hover {
            background: rgba(0,0,0,0.05);
            color: #1c1c1c;
        }

        .classifieds-back-btn:active {
            transform: scale(0.97);
        }

        .classifieds-back-btn svg {
            width: 16px;
            height: 16px;
            transition: transform 0.2s ease;
        }

        .classifieds-back-btn:hover svg {
            transform: translateX(-2px);
        }

        .listing-section {
            margin-bottom: 24px;
        }

        .listing-section-title {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.1em;
            color: #999;
            text-transform: uppercase;
            margin-bottom: 8px;
        }

        /* Mobile detail tabs - hidden by default on desktop */
        .mobile-detail-tabs {
            display: none;
        }
        .mobile-detail-tab-content {
            display: block; /* Always show on desktop */
        }

        /* Hide mobile-only tabs on desktop */
        .mobile-detail-tab-content[data-tab-content="analysis"],
        .mobile-detail-tab-content[data-tab-content="chat"],
        .mobile-detail-tab-content[data-tab-content="seller"] {
            display: none;
        }

        /* Show tabs on tablet and mobile (740px and below - when right column is hidden) */
        @media (max-width: 740px) {
            .mobile-detail-tabs {
                display: flex;
                gap: 0;
                margin: -20px 0 0 0;
                padding: 0 20px;
                border-bottom: 1px solid rgba(0,0,0,0.1);
                position: sticky;
                top: 0;
                z-index: 99;
            }
            .mobile-detail-tab {
                flex: 1;
                padding: 12px 8px;
                background: none;
                border: none;
                font-family: 'Inter', sans-serif;
                font-size: 13px;
                font-weight: 500;
                color: rgba(0,0,0,0.4);
                cursor: pointer;
                position: relative;
                transition: color 0.2s ease;
            }
            .mobile-detail-tab.active {
                color: #000;
            }
            .mobile-detail-tab.active::after {
                content: '';
                position: absolute;
                bottom: -1px;
                left: 0;
                right: 0;
                height: 2px;
                background: #000;
            }
            .mobile-detail-tab-content {
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                opacity: 0;
                visibility: hidden;
                transition: opacity 0.5s ease-out, visibility 0.5s;
            }
            .mobile-detail-tab-content.active {
                position: relative;
                opacity: 1;
                visibility: visible;
                padding-top: 24px;
                display: block !important;
            }
            /* When fixed tabs are active, disable parent scroll and make tab content scrollable */
            .classifieds-detail-scroll.fixed-tabs-active {
                overflow: hidden !important;
                display: flex !important;
                flex-direction: column !important;
                height: 100vh !important;
                padding-top: 44px !important;
            }
            .classifieds-detail-scroll.fixed-tabs-active .mobile-detail-tabs {
                flex-shrink: 0 !important;
                animation: slideTabsUp 0.5s ease-out forwards;
            }
            .mobile-detail-tabs.slide-down {
                animation: slideTabsDown 0.5s ease-out forwards;
            }
            @keyframes slideTabsUp {
                from {
                    transform: translateY(20px);
                    opacity: 0.8;
                }
                to {
                    transform: translateY(0);
                    opacity: 1;
                }
            }
            @keyframes slideTabsDown {
                from {
                    transform: translateY(-20px);
                    opacity: 0.8;
                }
                to {
                    transform: translateY(0);
                    opacity: 1;
                }
            }
            @keyframes tabFadeIn {
                from { opacity: 0; }
                to { opacity: 1; }
            }
            .classifieds-detail-scroll.fixed-tabs-active .mobile-detail-tab-content.active {
                flex: 1 !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch !important;
                overscroll-behavior-y: contain !important;
                padding: 28px 20px 100px 20px !important;
            }
        }

        .listing-description {
            font-size: 14px;
            line-height: 1.6;
            color: #333;
        }

        .listing-specs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .listing-spec {
            font-size: 13px;
        }

        .listing-spec-label {
            color: #999;
        }

        .listing-spec-value {
            color: #1c1c1c;
            font-weight: 500;
        }

        .listing-seller-row {
            display: flex;
            gap: 12px;
            align-items: stretch;
            margin-top: 16px;
        }

        .listing-seller {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px;
            background: #F1EFEC;
            border-radius: 16px;
            transition: background 0.25s ease;
            flex: 1;
            cursor: pointer;
        }

        .listing-seller:hover {
            background: #fafafa;
        }

        .listing-seller-about {
            font-family: 'Macan', sans-serif;
            font-size: 15px;
            color: #1c1c1c;
            margin-left: auto;
        }

        .seller-toggle {
            position: relative;
            display: inline-block;
            width: 40px;
            height: 24px;
            margin-left: 12px;
            flex-shrink: 0;
        }

        .seller-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .seller-toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            border-radius: 24px;
            transition: background-color 0.2s ease;
        }

        .seller-toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            border-radius: 50%;
            transition: transform 0.2s ease;
        }

        .seller-toggle input:checked + .seller-toggle-slider {
            background-color: #DFFF00;
        }

        .seller-toggle input:checked + .seller-toggle-slider:before {
            transform: translateX(16px);
            background-color: #000;
        }

        .listing-seller-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #ddd;
            transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .listing-seller:hover .listing-seller-avatar {
            transform: scale(1.05);
        }

        .listing-seller-info {
            flex: 1;
        }

        .listing-seller-name {
            font-size: 14px;
            font-weight: 500;
            color: #1c1c1c;
        }

        .listing-seller-rating {
            font-size: 12px;
            color: #999;
        }

        .listing-seller-btn {
            flex: 1;
            padding: 12px 20px;
            background: transparent;
            color: #1c1c1c;
            border: 1px solid #1c1c1c;
            border-radius: 50px;
            font-family: 'Inter', sans-serif;
            font-size: 18px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.25s ease;
            white-space: nowrap;
        }

        .listing-seller-btn:hover,
        .listing-seller-btn.active {
            background: #fff;
            color: #1c1c1c;
            border-color: #1c1c1c;
        }

        .listing-seller-btn:active {
            transform: scale(0.98);
        }

        /* Accordion panel headers */
        .accordion-panel-header {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 28px;
            cursor: pointer;
            transition: background 0.25s cubic-bezier(0.32, 0.72, 0, 1);
            position: relative;
        }

        .classifieds-analysis-panel .accordion-panel-header {
            height: 120px;
            box-sizing: border-box;
            flex-shrink: 0;
            transition: none;
        }

        .accordion-panel-header .accordion-chevron {
            position: absolute;
            right: 30px;
            top: 50%;
            transform: translateY(-40%);
            width: 20px;
            height: 20px;
        }

        .accordion-panel-header .accordion-chevron::before,
        .accordion-panel-header .accordion-chevron::after {
            content: '';
            position: absolute;
            background: #1c1c1c;
            border-radius: 0;
            width: 8px;
            height: 2px;
            top: 50%;
            margin-top: -1px;
            transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .accordion-panel-header .accordion-chevron::before {
            right: calc(50% - 0.5px);
            transform-origin: 100% 50%;
            transform: rotate(-45deg);
        }

        .accordion-panel-header .accordion-chevron::after {
            left: calc(50% - 0.5px);
            transform-origin: 0% 50%;
            transform: rotate(45deg);
        }

        .classifieds-analysis-panel .accordion-panel-header .accordion-chevron::before {
            transform: rotate(45deg);
        }

        .classifieds-analysis-panel .accordion-panel-header .accordion-chevron::after {
            transform: rotate(-45deg);
        }

        .classifieds-analysis-panel.expanded .accordion-panel-header .accordion-chevron::before {
            transform: rotate(-45deg);
        }

        .classifieds-analysis-panel.expanded .accordion-panel-header .accordion-chevron::after {
            transform: rotate(45deg);
        }

        .classifieds-chat-panel.expanded .accordion-panel-header .accordion-chevron::before {
            transform: rotate(-45deg);
        }

        .classifieds-chat-panel.expanded .accordion-panel-header .accordion-chevron::after {
            transform: rotate(45deg);
        }

        .accordion-panel-header h2 {
            font-size: 20px;
            font-weight: 400;
            color: #1c1c1c;
            margin: 0;
            transition: color 0.2s ease;
        }

        .accordion-panel-header:hover h2 {
            color: #333;
        }

        .accordion-header-with-avatar {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .chat-header-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #ddd;
            flex-shrink: 0;
            transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .accordion-panel-header:hover .chat-header-avatar {
            transform: scale(1.08);
        }

        .chat-header-status {
            font-size: 11px;
            color: #999;
            transition: color 0.2s ease;
        }

        .accordion-panel-header:hover .chat-header-status {
            color: #666;
        }

        /* Collapsed chat panel - hide avatar and status, center MESSAGE SELLER */
        .classifieds-chat-panel.visible:not(.expanded) .chat-header-avatar,
        .classifieds-chat-panel.visible:not(.expanded) .chat-header-status {
            display: none;
        }

        .classifieds-chat-panel.visible:not(.expanded) .accordion-header-with-avatar {
            justify-content: center;
        }

        .classifieds-chat-panel.visible:not(.expanded) .accordion-panel-header {
            justify-content: center;
            align-items: center;
            flex: 1;
            position: relative;
        }

        .classifieds-chat-panel.visible:not(.expanded) .accordion-panel-header .accordion-chevron::before {
            transform: rotate(-45deg);
        }

        .classifieds-chat-panel.visible:not(.expanded) .accordion-panel-header .accordion-chevron::after {
            transform: rotate(45deg);
        }

        .classifieds-chat-panel.visible:not(.expanded) .classifieds-chat-container {
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            height: 116px;
        }

        .classifieds-chat-panel.visible:not(.expanded) .accordion-panel-header {
            position: static;
            padding: 48px 28px;
        }

        .accordion-chevron {
            width: 16px;
            height: 16px;
            color: #999;
            transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), color 0.25s ease;
            flex-shrink: 0;
        }

        .accordion-panel-header:hover .accordion-chevron {
            color: #666;
        }

        /* Analysis panel - inside right column */
        .classifieds-right-column .classifieds-analysis-panel {
            display: flex;
            flex: 0 0 auto;
            min-height: 120px;
            transition: flex 0.5s cubic-bezier(0.32, 0.72, 0, 1), min-height 0.5s cubic-bezier(0.32, 0.72, 0, 1);
            overflow: hidden;
        }

        .classifieds-right-column .classifieds-analysis-panel .classifieds-analysis-scroll {
            display: none;
        }

        .classifieds-right-column .classifieds-analysis-panel.expanded {
            flex: 1;
            min-height: 0;
            overflow: hidden;
        }

        .classifieds-right-column .classifieds-analysis-panel.expanded .classifieds-analysis-scroll {
            display: flex;
            overflow-y: auto;
            max-height: calc(100vh - 300px);
        }

        /* Chat panel - inside right column */
        .classifieds-chat-panel {
            display: none;
            min-width: 0;
            flex-direction: column;
            flex: 0 0 auto;
            transition: flex 0.5s cubic-bezier(0.32, 0.72, 0, 1);
            position: relative;
        }

        .classifieds-chat-panel.visible {
            display: flex;
        }

        .classifieds-chat-panel.expanded {
            flex: 1;
            min-height: 0;
        }

        .classifieds-chat-container {
            flex: 1;
            background: #E2DFDB;
            border-radius: 32px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            animation: classifiedsPanelSlideIn 0.5s cubic-bezier(0.32, 0.72, 0, 1) 0.1s backwards;
        }

        .classifieds-chat-scroll {
            flex: 1;
            display: none;
            flex-direction: column;
            overflow: hidden;
            opacity: 0;
            transition: opacity 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .classifieds-chat-panel.expanded .classifieds-chat-scroll {
            display: flex;
            opacity: 1;
        }

        /* ─── Seller Panel ─── */
        .classifieds-seller-panel {
            display: none;
            flex-direction: column;
            overflow: hidden;
            background: #D6D1CB;
            border-radius: 32px;
        }

        .classifieds-seller-panel.visible {
            display: flex;
        }

        .classifieds-seller-panel.expanded {
            flex: 1;
            min-height: 0;
        }

        .classifieds-seller-container {
            flex: 1;
            background: #E2DFDB;
            border-radius: 32px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            animation: classifiedsPanelSlideIn 0.5s cubic-bezier(0.32, 0.72, 0, 1) backwards;
        }

        .classifieds-seller-scroll {
            flex: 1;
            display: none;
            flex-direction: column;
            overflow: hidden;
            opacity: 0;
            transition: opacity 0.35s cubic-bezier(0.32, 0.72, 0, 1);
            padding: 0 20px 20px 20px;
            position: relative;
        }

        .classifieds-seller-panel.expanded .classifieds-seller-scroll {
            display: flex;
            opacity: 1;
        }

        .seller-tabs {
            display: flex;
            gap: 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.2);
            margin-bottom: 16px;
            position: relative;
        }

        .seller-tab {
            flex: 1;
            padding: 12px 16px;
            background: none;
            border: none;
            font-family: 'Macan', sans-serif;
            font-size: 14px;
            font-weight: 400;
            color: #999;
            cursor: pointer;
            margin-bottom: -1px;
            transition: color 0.2s ease;
            outline: none;
        }

        .seller-tab:hover {
            color: #1c1c1c;
        }

        .seller-tab.active {
            color: #1c1c1c;
        }

        .seller-tab-indicator {
            position: absolute;
            bottom: -1px;
            height: 2px;
            background: #1c1c1c;
            transition: left 0.3s cubic-bezier(0.32, 0.72, 0, 1), width 0.3s cubic-bezier(0.32, 0.72, 0, 1);
            pointer-events: none;
        }

        .seller-tab-content {
            flex: 1;
            overflow-y: auto;
        }

        .seller-review {
            padding: 16px 0;
            border-bottom: 1px solid #eee;
        }

        .seller-review:last-child {
            border-bottom: none;
        }

        .seller-review-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .seller-review-rating {
            color: #f5a623;
            font-size: 13px;
        }

        .seller-review-date {
            font-size: 12px;
            color: #999;
        }

        .seller-review-text {
            font-size: 14px;
            line-height: 1.5;
            color: #333;
            margin-bottom: 8px;
        }

        .seller-review-author {
            font-size: 12px;
            color: #666;
            font-style: italic;
        }

        .seller-listings-content {
            display: none;
        }

        .seller-listings-content.active {
            display: block;
        }

        .seller-reviews-content {
            display: block;
        }

        .seller-reviews-content.hidden {
            display: none;
        }

        .leave-review-btn {
            position: absolute;
            bottom: 20px;
            left: 20px;
            right: 20px;
            width: auto;
            padding: 12px 16px;
            margin-top: 0;
            background: transparent;
            color: #1c1c1c;
            border: none;
            border-radius: 8px;
            font-family: 'Macan', sans-serif;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: color 0.2s ease;
        }

        .leave-review-btn:hover {
            color: #666;
        }

        .review-form-container {
            margin-top: 16px;
            padding: 16px;
            background: #F1EFEC;
            border-radius: 8px;
        }

        .review-form-rating {
            display: flex;
            gap: 4px;
            margin-bottom: 12px;
        }

        .review-star {
            font-size: 24px;
            color: #ccc;
            cursor: pointer;
            transition: color 0.15s ease;
        }

        .review-star:hover,
        .review-star.active {
            color: #E8B946;
        }

        .review-form-text {
            width: 100%;
            min-height: 80px;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-family: 'Macan', sans-serif;
            font-size: 14px;
            resize: vertical;
            margin-bottom: 12px;
        }

        .review-form-text:focus {
            outline: none;
            border-color: #1c1c1c;
        }

        .review-form-actions {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
        }

        .review-cancel-btn {
            padding: 8px 16px;
            background: transparent;
            border: 1px solid #ccc;
            border-radius: 6px;
            font-family: 'Macan', sans-serif;
            font-size: 13px;
            cursor: pointer;
        }

        .review-submit-btn {
            padding: 8px 16px;
            background: #1c1c1c;
            color: #fff;
            border: none;
            border-radius: 6px;
            font-family: 'Macan', sans-serif;
            font-size: 13px;
            cursor: pointer;
        }

        .review-submit-btn:hover {
            background: #333;
        }

        .seller-listing-item {
            display: flex;
            gap: 12px;
            padding: 12px;
            margin-bottom: 8px;
            background: #F1EFEC;
            border-radius: 16px;
            cursor: pointer;
            transition: background 0.15s ease;
        }

        .seller-listing-item:hover {
            background: #fafafa;
        }

        .seller-listing-thumb {
            width: 60px;
            height: 60px;
            border-radius: 12px;
            background-size: cover;
            background-position: center;
            flex-shrink: 0;
        }

        .seller-listing-info {
            flex: 1;
            min-width: 0;
        }

        .seller-listing-title {
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 14px;
            font-weight: 500;
            color: #1c1c1c;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .seller-listing-price {
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 13px;
            font-weight: 600;
            color: #1c1c1c;
            margin-bottom: 2px;
        }

        .seller-listing-meta {
            font-size: 12px;
            color: #999;
        }

        .classifieds-seller-panel .accordion-panel-header {
            height: 120px;
            box-sizing: border-box;
            flex-shrink: 0;
            transition: none;
        }

        .classifieds-seller-panel .accordion-panel-header .accordion-chevron::before {
            transform: rotate(45deg);
        }

        .classifieds-seller-panel .accordion-panel-header .accordion-chevron::after {
            transform: rotate(-45deg);
        }

        .classifieds-seller-panel.expanded .accordion-panel-header .accordion-chevron::before {
            transform: rotate(-45deg);
        }

        .classifieds-seller-panel.expanded .accordion-panel-header .accordion-chevron::after {
            transform: rotate(45deg);
        }

        .classifieds-seller-panel.visible:not(.expanded) .classifieds-seller-container {
            cursor: pointer;
        }

        .classifieds-seller-panel.visible:not(.expanded) .classifieds-seller-scroll {
            display: none;
        }

        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 0 20px 16px 20px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            gap: 12px;
            min-height: 0;
        }

        .chat-messages::-webkit-scrollbar {
            width: 4px;
        }

        .chat-messages::-webkit-scrollbar-track {
            background: transparent;
        }

        .chat-messages::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.15);
            border-radius: 2px;
        }

        .chat-date-divider {
            text-align: center;
            font-size: 11px;
            color: #999;
            padding: 8px 0;
            opacity: 0;
            animation: classifiedsChatMessageIn 0.4s cubic-bezier(0.32, 0.72, 0, 1) forwards;
        }

        .chat-message {
            max-width: 75%;
            padding: 10px 14px;
            border-radius: 16px;
            font-size: 18px;
            line-height: 1.5;
            opacity: 0;
            animation: classifiedsChatMessageIn 0.4s cubic-bezier(0.32, 0.72, 0, 1) forwards;
        }

        .chat-message.no-animate,
        .chat-date-divider.no-animate {
            animation: none !important;
            opacity: 1 !important;
        }

        .chat-message.sent {
            align-self: flex-end;
            background: #1c1c1c;
            color: #fff;
            border-bottom-right-radius: 4px;
        }

        .chat-message.received {
            align-self: flex-start;
            background: #fff;
            color: #1c1c1c;
            border-bottom-left-radius: 4px;
        }

        .chat-message img {
            cursor: pointer;
            transition: opacity 0.15s ease;
        }

        .chat-message img:hover {
            opacity: 0.85;
        }

        /* ─── Image Lightbox ─── */
        .image-lightbox {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0);
            backdrop-filter: blur(0px);
            -webkit-backdrop-filter: blur(0px);
            z-index: 10001;
            align-items: center;
            justify-content: center;
            padding: 40px;
            display: flex;
            opacity: 0;
            pointer-events: none;
            transition: background 0.7s cubic-bezier(0.32, 0.72, 0, 1),
                        backdrop-filter 0.7s cubic-bezier(0.32, 0.72, 0, 1),
                        -webkit-backdrop-filter 0.7s cubic-bezier(0.32, 0.72, 0, 1),
                        opacity 0.7s cubic-bezier(0.32, 0.72, 0, 1);
            cursor: pointer;
        }

        .image-lightbox.visible {
            opacity: 1;
            pointer-events: auto;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(40px);
            -webkit-backdrop-filter: blur(40px);
        }

        .image-lightbox img {
            max-width: 90%;
            max-height: 90%;
            border-radius: 16px;
            object-fit: contain;
            transform: scale(0.9);
            opacity: 0;
            transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
                        opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .image-lightbox.visible img {
            transform: scale(1);
            opacity: 1;
        }

        .chat-message.received em {
            animation: classifiedsTypingPulse 1.2s ease-in-out infinite;
        }

        .chat-message-time {
            font-size: 10px;
            margin-top: 4px;
            opacity: 0.6;
        }

        .chat-input-area {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 12px 16px;
            background: transparent;
        }

        .chat-suggestions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .chat-suggestion-chip {
            display: inline-flex;
            padding: 10px 16px;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            color: #1c1c1c;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .chat-suggestion-chip:hover {
            background: #f5f5f5;
            border-color: #1c1c1c;
        }

        .chat-input-row {
            display: flex;
            gap: 8px;
        }

        .chat-input-wrapper {
            flex: 1;
            position: relative;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 60px 8px 12px;
            border: none;
            border-radius: 50px;
            background: #fff;
            transition: border-color 0.25s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .chat-input-wrapper:focus-within {
            border-color: #1c1c1c;
        }

        .chat-input {
            flex: 1;
            padding: 16px 0 16px 12px;
            border: none;
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 18px;
            outline: none;
            background: transparent;
        }

        .chat-input::placeholder {
            font-size: 18px;
            color: #999;
        }

        .chat-input:focus {
            border-color: transparent;
        }

        .chat-send-btn {
            width: 68px;
            height: 68px;
            border: none;
            border-radius: 50%;
            background: #DFFF00;
            color: #1c1c1c;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease, transform 0.15s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.2s ease, opacity 0.2s ease;
            flex-shrink: 0;
        }

        .chat-send-btn:disabled {
            background: #e5e5e5;
            cursor: default;
        }

        .chat-send-btn:disabled svg {
            color: #bbb;
        }

        .chat-send-btn:disabled:hover {
            transform: none;
        }

        .chat-send-btn:hover:not(:disabled) {
            background: #E8FF33;
            transform: scale(1.05);
        }

        .chat-send-btn:active {
            transform: scale(0.95);
        }

        .chat-send-btn svg {
            width: 28px;
            height: 28px;
            stroke: #1c1c1c;
            transition: transform 0.2s ease;
        }

        .chat-send-btn:hover:not(:disabled) svg {
            transform: translateY(-2px);
        }

        .chat-image-btn {
            position: absolute;
            right: 12px;
            width: 44px;
            height: 44px;
            border: none;
            border-radius: 50%;
            background: transparent;
            color: #1c1c1c;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease, color 0.2s ease, transform 0.15s cubic-bezier(0.32, 0.72, 0, 1);
            flex-shrink: 0;
        }

        .chat-image-btn:hover {
            background: #f0f0f0;
        }

        .chat-image-btn:active {
            transform: scale(0.95);
        }

        .chat-image-btn svg {
            width: 22px;
            height: 22px;
        }

        .chat-input-row.drag-over .chat-input-wrapper .chat-input {
            border-color: #DFFF00;
            background: #FAFFF0;
        }

        .chat-image-preview {
            display: none;
            position: relative;
            flex-shrink: 0;
        }

        .chat-image-preview.visible {
            display: inline-flex;
        }

        .chat-image-preview img {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            object-fit: cover;
        }

        .chat-image-preview-remove {
            position: absolute;
            top: -6px;
            right: -6px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #1c1c1c;
            color: #fff;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            line-height: 1;
        }

        .classifieds-header-row {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 16px;
            margin-bottom: 24px;
            flex-shrink: 0;
        }

        .classifieds-header-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            width: 100%;
            position: relative;
        }

        .header-music-wire {
            position: absolute;
            display: none;
            overflow: visible;
            z-index: 2;
            cursor: pointer;
            border-radius: 4px;
            pointer-events: none;
        }

        .header-music-wire .physics-wire {
            stroke: #FF6F00;
            pointer-events: stroke;
        }

        .header-music-wire .physics-wire-socket {
            fill: #FF6F00;
            stroke: #1c1c1c;
            stroke-width: 1.5;
        }

        .header-music-wire:focus-visible {
            outline: 2px solid #FF6F00;
            outline-offset: 4px;
        }

        .classifieds-search-group {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .classifieds-register-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px 24px;
            background: transparent;
            color: #1c1c1c;
            border: 1px solid #1c1c1c;
            border-radius: 50px;
            font-family: 'Macan', sans-serif;
            font-size: 18px;
            font-weight: 400;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease;
            white-space: nowrap;
            position: relative;
            overflow: hidden;
        }

        .classifieds-register-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: none;
        }

        .classifieds-register-btn:hover::before {
            animation: shimmer 0.6s ease forwards;
        }

        .classifieds-register-btn:hover {
            background: #CDFB00;
            color: #1c1c1c;
            border-color: #1c1c1c;
            box-shadow: none;
            transform: scale(1.06) rotate(-5deg);
        }

        .classifieds-register-btn:active {
            transform: scale(0.98);
        }

        .classifieds-auth-buttons {
            display: flex;
            gap: 12px;
        }

        .classifieds-login-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px 24px;
            background: transparent;
            color: #1c1c1c;
            border: 1px solid #1c1c1c;
            border-radius: 50px;
            font-family: 'Macan', sans-serif;
            font-size: 18px;
            font-weight: 400;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease;
            white-space: nowrap;
            position: relative;
            overflow: hidden;
        }

        .classifieds-login-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: none;
        }

        .classifieds-login-btn:hover::before {
            animation: shimmer 0.6s ease forwards;
        }

        .classifieds-login-btn:hover {
            background: #1c1c1c;
            color: #fff;
            border-color: #1c1c1c;
            box-shadow: none;
            transform: scale(1.06) rotate(-5deg);
        }

        .classifieds-login-btn:active {
            transform: scale(0.98);
        }

        .classifieds-login-btn.logged-in {
            background: #CDFB00;
            border-color: #1c1c1c;
            color: #1c1c1c;
            padding: 16px 28px;
        }

        .classifieds-login-btn.logged-in::before {
            display: none;
        }

        .classifieds-login-btn.logged-in:hover {
            transform: scale(1.02);
            background: #d8fc33;
        }

        /* Hide both buttons when logged in */
        body.logged-in .classifieds-register-btn,
        body.logged-in .classifieds-login-btn {
            display: none;
        }

        /* Hide chat and favorites buttons when logged out */
        body:not(.logged-in) .classifieds-chat-btn {
            display: none;
        }

        .classifieds-chat-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 56px;
            height: 56px;
            background: transparent;
            color: #1c1c1c;
            border: 1px solid #1c1c1c;
            border-radius: 28px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
            flex-shrink: 0;
            overflow: hidden;
        }

        .classifieds-chat-btn:hover {
            width: 180px;
            background: #fff;
        }

        .classifieds-chat-btn svg {
            width: 22px;
            height: 22px;
            flex-shrink: 0;
            stroke: #1c1c1c;
        }

        .classifieds-chat-btn-text {
            font-family: 'Macan', sans-serif;
            font-size: 16px;
            font-weight: 400;
            max-width: 0;
            opacity: 0;
            overflow: hidden;
            white-space: nowrap;
            transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
        }

        .classifieds-chat-btn:hover .classifieds-chat-btn-text {
            max-width: 110px;
            opacity: 1;
            margin-left: 8px;
        }

        .classifieds-post-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 16px 20px;
            background: transparent;
            color: #1c1c1c;
            border: 1px solid #1c1c1c;
            border-radius: 50px;
            font-family: 'Macan', sans-serif;
            font-size: 18px;
            font-weight: 400;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
            white-space: nowrap;
            position: relative;
            overflow: hidden;
        }

        .classifieds-post-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: none;
        }

        .classifieds-post-btn:hover::before {
            animation: shimmer 0.6s ease forwards;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        .classifieds-post-btn:hover {
            background: #1c1c1c;
            color: #fff;
            border-color: #1c1c1c;
            box-shadow: none;
            transform: scale(1.06) rotate(-5deg);
        }

        .classifieds-post-btn:hover svg {
            stroke: #fff;
        }

        .classifieds-post-btn:active {
            transform: scale(0.98);
        }

        .classifieds-post-btn svg {
            width: 26px;
            height: 26px;
            margin-left: -4px;
        }

        .classifieds-analyze-system-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: calc(100% - 56px);
            padding: 22px 20px;
            margin: 0;
            position: absolute;
            bottom: 16px;
            left: 28px;
            background: #E4DFDB;
            color: #1c1c1c;
            border: 1px solid #1c1c1c;
            border-radius: 50px;
            font-family: 'Macan', sans-serif;
            font-size: 18px;
            font-weight: 400;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
            opacity: 0;
            visibility: hidden;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .classifieds-analysis-panel.expanded .classifieds-analyze-system-btn.visible {
            visibility: visible;
            animation: fadeInButton 0.3s ease 0.2s forwards;
        }

        @keyframes fadeInButton {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .classifieds-analyze-system-btn:hover {
            background: #fff;
            color: #1c1c1c;
        }

        .classifieds-analyze-system-btn:active {
            transform: scale(0.98);
        }

        .classifieds-analyze-system-btn svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
        }

        .analyze-flower-canvas {
            width: 24px;
            height: 24px;
            flex-shrink: 0;
            overflow: visible;
        }

        .classifieds-search {
            position: relative;
            flex: 0;
            flex-shrink: 0;
        }

        .classifieds-search .search-icon {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            width: 22px;
            height: 22px;
            color: #000;
            stroke: #000 !important;
            opacity: 1;
            z-index: 1;
        }

        .classifieds-search-input {
            width: 130px;
            padding: 16px 20px 16px 50px;
            font-family: 'Macan', sans-serif;
            font-size: 18px;
            border: 1px solid #1c1c1c;
            border-radius: 50px;
            background: transparent;
            outline: none;
            transition: width 0.3s cubic-bezier(0.32, 0.72, 0, 1), background 0.25s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.25s cubic-bezier(0.32, 0.72, 0, 1), padding 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .classifieds-search-input::-webkit-search-cancel-button {
            -webkit-appearance: none;
            display: none;
        }

        .classifieds-search-input::placeholder {
            color: #1c1c1c;
        }

        .classifieds-search-input:focus,
        .classifieds-search.has-text .classifieds-search-input {
            width: 480px;
            padding-right: 46px;
            background: #fff;
        }

        .classifieds-search-input:hover:not(:focus) {
            background: #1c1c1c;
            color: #fff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .classifieds-search-input:hover:not(:focus)::placeholder {
            color: #fff;
        }

        .classifieds-search:hover:not(:focus-within) .search-icon {
            stroke: #fff !important;
        }

        .classifieds-search-suggestions {
            display: none !important;
        }

        .classifieds-search.active .classifieds-search-suggestions {
            display: none;
        }

        .classifieds-search-suggestion {
            padding: 12px 20px;
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            text-transform: uppercase;
            cursor: pointer;
            transition: background 0.15s ease;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .classifieds-search-suggestion:hover {
            background: #f5f5f5;
        }

        .classifieds-search-suggestion-brand {
            font-weight: 500;
            color: #1c1c1c;
        }

        .classifieds-search-suggestion-model {
            color: #666;
        }

        .classifieds-search-clear {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s ease, visibility 0.2s ease;
            z-index: 1;
        }

        .classifieds-search.has-text .classifieds-search-clear {
            opacity: 1;
            visibility: visible;
        }

        .classifieds-search-clear:hover {
            opacity: 0.7;
        }

        .classifieds-search-clear svg {
            width: 20px;
            height: 20px;
            stroke: #1c1c1c;
        }

        .classifieds-search-input::placeholder {
            color: #1c1c1c;
            font-size: 18px;
            transition: color 0.2s ease;
        }

        .classifieds-search-input:focus::placeholder {
            color: #bbb;
        }

        @media (max-width: 768px) {
            /* Collapse search and post buttons to icon-only circles */
            .classifieds-search-input {
                width: 44px !important;
                height: 44px !important;
                padding: 0 !important;
                color: transparent;
            }
            .classifieds-search .search-icon {
                left: 50%;
                transform: translate(-50%, -50%);
            }
            .classifieds-search-input::placeholder {
                color: transparent !important;
            }
            .classifieds-search-input:focus,
            .classifieds-search.has-text .classifieds-search-input {
                width: 200px !important;
                height: auto !important;
                color: #1c1c1c;
                padding: 16px 46px 16px 48px !important;
            }
            .classifieds-search:focus-within .search-icon,
            .classifieds-search.has-text .search-icon {
                left: 14px;
                transform: translateY(-50%);
            }
            .classifieds-search-input:focus::placeholder,
            .classifieds-search.has-text .classifieds-search-input::placeholder {
                color: #999 !important;
            }
            .classifieds-post-btn {
                width: 44px !important;
                height: 44px !important;
                padding: 0 !important;
                font-size: 0 !important;
                gap: 0 !important;
            }
            .classifieds-post-btn svg {
                margin: 0 !important;
            }
        }

        .classifieds-grid-label {
            font-family: 'Macan', sans-serif;
            font-size: 15px;
            font-weight: 400;
            color: #1c1c1c;
            padding-left: 4px;
            margin-top: 20px;
            margin-bottom: -30px;
            transition: opacity 0.2s ease;
        }

        .classifieds-grid-label.hidden {
            opacity: 0;
        }

        .classifieds-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
            gap: 8px;
            overflow-y: auto;
            flex: 1;
            align-content: start;
            padding: 34px 10px 10px 20px;
            margin: 8px -10px -10px -20px;
            transition: opacity 0.3s ease;
        }

        .classifieds-grid.fade-in {
            animation: gridFadeIn 0.35s cubic-bezier(0.32, 0.72, 0, 1) forwards;
        }

        @keyframes gridFadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .classifieds-grid::-webkit-scrollbar {
            display: none;
        }

        .classifieds-grid {
            scrollbar-width: none;
        }

        @media (max-width: 500px) {
            .classifieds-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            /* Hide post button and login when search focused on mobile */
            .classifieds-search:focus-within ~ .classifieds-post-btn,
            .classifieds-search.has-text ~ .classifieds-post-btn {
                display: none !important;
            }
            .classifieds-search-group:focus-within ~ .classifieds-auth-buttons,
            .classifieds-search-group:has(.has-text) ~ .classifieds-auth-buttons {
                display: none !important;
            }
            .classifieds-search-group:focus-within,
            .classifieds-search-group:has(.has-text) {
                flex: 1;
            }
            .classifieds-search:focus-within,
            .classifieds-search.has-text {
                flex: 1;
            }
            .classifieds-search:focus-within .classifieds-search-input,
            .classifieds-search.has-text .classifieds-search-input {
                width: 100% !important;
            }
        }

        /* ─── Post it! Form ─── */
        .classifieds-post-form {
            display: none;
            flex-direction: column;
            gap: 24px;
            padding: 8px 4px;
            overflow-y: auto;
            flex: 1;
        }

        .classifieds-post-form.visible {
            display: flex;
        }

        .classifieds-post-form.visible ~ .classifieds-grid,
        .classifieds-post-form.visible ~ .classifieds-header-row {
            display: none;
        }

        .classifieds-main-container:has(.classifieds-post-form.visible) .classifieds-grid-label {
            display: none;
        }

        .classifieds-main-container:has(.classifieds-post-form.visible)::after {
            display: none;
        }

        .post-form-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 24px;
        }

        .post-form-back-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            background: none;
            border: none;
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 18px;
            font-weight: 500;
            color: #000;
            cursor: pointer;
            padding: 8px 0;
            transition: color 0.2s ease;
        }

        .post-form-back-btn:hover {
            color: #1c1c1c;
        }

        .post-form-back-btn svg {
            width: 16px;
            height: 16px;
        }

        .post-form-title {
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 20px;
            font-weight: 500;
            color: #1c1c1c;
        }

        .post-form-title-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 24px;
        }

        .post-form-section {
            padding: 20px 0;
        }

        .post-form-section-title {
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0.1em;
            color: #1c1c1c;
            margin-bottom: 16px;
        }

        .post-form-section-hint {
            font-size: 12px;
            color: #999;
            margin-top: -8px;
            margin-bottom: 16px;
        }

        .post-form-row {
            display: flex;
            gap: 16px;
            margin-bottom: 16px;
        }

        .post-form-row:last-child {
            margin-bottom: 0;
        }

        .post-form-field {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-top: 16px;
        }

        .post-form-label {
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 12px;
            font-weight: 500;
            color: #1c1c1c;
        }

        .post-form-input,
        .post-form-select,
        .post-form-textarea {
            padding: 24px 14px;
            font-family: 'Inter', sans-serif;
            font-size: 18px;
            border: none;
            border-radius: 18px;
            background: #fff;
            outline: none;
            transition: box-shadow 0.2s ease;
        }

        .post-form-textarea {
            min-height: 240px;
            resize: none;
            overflow: hidden;
        }

        .post-form-select {
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 26px center;
            padding-right: 50px;
        }

        .post-form-input::placeholder,
        .post-form-textarea::placeholder {
            color: #bbb;
        }

        .post-form-input:focus,
        .post-form-select:focus,
        .post-form-textarea:focus {
            box-shadow: 0 0 0 2px #1c1c1c;
        }

        .post-form-select:disabled {
            background: #e8e8e8;
            color: #999;
            cursor: not-allowed;
        }

        .post-form-field {
            position: relative;
        }

        .autocomplete-dropdown {
            position: fixed;
            background: #fff;
            border-radius: 18px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            max-height: 200px;
            overflow-y: auto;
            z-index: 99999;
            display: none;
            border: 1px solid #1c1c1c;
        }

        .autocomplete-dropdown.visible {
            display: block;
        }

        .autocomplete-item {
            padding: 10px 14px;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.15s ease;
        }

        .autocomplete-item:hover {
            background: #f5f5f5;
        }

        .autocomplete-item:first-child {
            border-radius: 8px 8px 0 0;
        }

        .autocomplete-item:last-child {
            border-radius: 0 0 8px 8px;
        }

        .post-form-textarea {
            min-height: 120px;
            resize: vertical;
        }

        .post-form-price-input {
            display: flex;
            align-items: center;
            border: 1.5px solid #ccc;
            border-radius: 18px;
            background: #fff;
            overflow: hidden;
            transition: border-color 0.2s ease;
            margin-top: -12px;
        }

        .post-form-price-input:focus-within {
            border-color: #1c1c1c;
        }

        .post-form-price-input span {
            padding: 18px 14px;
            background: #f5f5f5;
            color: #666;
            font-size: 21px;
            border-right: 1.5px solid #ccc;
        }

        .post-form-price-input input {
            flex: 1;
            padding: 18px 14px;
            font-family: 'Inter', sans-serif;
            font-size: 21px;
            border: none;
            outline: none;
        }

        .post-form-upload {
            border: 2px dashed #ccc;
            border-radius: 12px;
            padding: 32px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease;
        }

        .post-form-upload:hover {
            border-color: #999;
            background: rgba(0,0,0,0.02);
        }

        .post-form-upload.drag-over {
            border: 3px solid #FF6F00;
            border-style: solid;
            background: rgba(255, 111, 0, 0.05);
            box-shadow: 0 8px 24px rgba(255, 111, 0, 0.3);
        }

        @keyframes thumbnailSlideIn {
            0% {
                opacity: 0;
                transform: scale(0.8) translateY(10px);
            }
            100% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .upload-preview-item {
            animation: thumbnailSlideIn 0.3s cubic-bezier(0.32, 0.72, 0, 1) forwards;
        }

        .post-form-upload svg {
            width: 32px;
            height: 32px;
            color: #999;
        }

        .post-form-upload-text {
            font-size: 14px;
            color: #666;
            text-align: center;
        }

        .post-form-upload-hint {
            font-size: 12px;
            color: #999;
        }

        .post-form-toggle {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }

        .post-form-toggle input {
            display: none;
        }

        .post-form-toggle-track {
            width: 36px;
            height: 20px;
            background: #ccc;
            border-radius: 10px;
            position: relative;
            transition: background 0.2s ease;
        }

        .post-form-toggle input:checked + .post-form-toggle-track {
            background: #FF6F00;
        }

        .post-form-toggle-knob {
            width: 16px;
            height: 16px;
            background: #fff;
            border-radius: 50%;
            position: absolute;
            top: 2px;
            left: 2px;
            transition: left 0.2s ease;
        }

        .post-form-toggle input:checked + .post-form-toggle-track .post-form-toggle-knob {
            left: 18px;
        }

        .post-form-toggle-label {
            font-size: 13px;
            color: #666;
        }

        .post-form-radio-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .post-form-radio {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }

        .post-form-radio input {
            display: none;
        }

        .post-form-radio-circle {
            width: 18px;
            height: 18px;
            border: 2px solid #ccc;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: border-color 0.2s ease;
        }

        .post-form-radio input:checked + .post-form-radio-circle {
            border-color: #FF6F00;
        }

        .post-form-radio-dot {
            width: 10px;
            height: 10px;
            background: #FF6F00;
            border-radius: 50%;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .post-form-radio input:checked + .post-form-radio-circle .post-form-radio-dot {
            opacity: 1;
        }

        .post-form-radio-label {
            font-size: 13px;
            color: #666;
        }

        .post-form-submit {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 20px 40px;
            margin-bottom: 60px;
            background: transparent;
            color: #1c1c1c;
            border: 1px solid #1c1c1c;
            border-radius: 50px;
            font-family: 'Macan', sans-serif;
            font-size: 20px;
            font-weight: 400;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
            align-self: flex-start;
            position: relative;
            overflow: hidden;
        }

        .post-form-submit::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: none;
        }

        .post-form-submit:hover::before {
            animation: shimmer 0.6s ease forwards;
        }

        .post-form-submit:hover {
            background: #CDFB00;
            color: #1c1c1c;
            border-color: #1c1c1c;
            transform: scale(1.06) rotate(-5deg);
        }

        .post-form-submit:active {
            transform: scale(0.98);
        }

        .post-form-buttons {
            display: flex;
            gap: 16px;
            margin-bottom: 60px;
        }

        .post-form-buttons .post-form-submit,
        .post-form-buttons .post-form-draft {
            flex: 1;
        }

        .post-form-buttons .post-form-submit {
            margin-bottom: 0;
        }

        .post-form-draft {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px 40px;
            background: transparent;
            color: #1c1c1c;
            border: 1px solid #1c1c1c;
            border-radius: 50px;
            font-family: 'Macan', sans-serif;
            font-size: 20px;
            font-weight: 400;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .post-form-draft::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: none;
        }

        .post-form-draft:hover::before {
            animation: shimmer 0.6s ease forwards;
        }

        .post-form-draft:hover {
            background: #CDFB00;
            color: #1c1c1c;
            border-color: #1c1c1c;
            transform: scale(1.06) rotate(-5deg);
        }

        .post-form-draft:active {
            transform: scale(0.98);
        }

        .post-form-p2p-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: rgba(255, 152, 0, 0.15);
            border-radius: 20px;
            font-size: 11px;
            font-weight: 500;
            color: #E65100;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* ─── Register Form ─── */
        .register-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0);
            backdrop-filter: blur(0px);
            -webkit-backdrop-filter: blur(0px);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            display: flex;
            opacity: 0;
            pointer-events: none;
            transition: background 0.7s cubic-bezier(0.32, 0.72, 0, 1),
                        backdrop-filter 0.7s cubic-bezier(0.32, 0.72, 0, 1),
                        -webkit-backdrop-filter 0.7s cubic-bezier(0.32, 0.72, 0, 1),
                        opacity 0.7s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .register-overlay.visible {
            opacity: 1;
            pointer-events: auto;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(40px);
            -webkit-backdrop-filter: blur(40px);
        }

        .register-modal {
            background: #F1EFEB;
            border-radius: 24px;
            width: 100%;
            max-width: 560px;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: registerModalIn 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        }

        @keyframes registerModalIn {
            from {
                opacity: 0;
                transform: scale(0.95) translateY(20px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .register-header {
            padding: 28px 32px 20px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .register-title {
            font-family: 'Pirata One', cursive;
            font-size: 32px;
            color: #1c1c1c;
        }

        .register-close-btn {
            width: 40px;
            height: 40px;
            border: none;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease;
        }

        .register-close-btn:hover {
            background: rgba(0, 0, 0, 0.1);
        }

        .register-close-btn svg {
            width: 20px;
            height: 20px;
            color: #666;
        }

        .register-scroll {
            flex: 1;
            overflow-y: auto;
            padding: 24px 32px 32px;
        }

        .register-scroll::-webkit-scrollbar {
            width: 6px;
        }

        .register-scroll::-webkit-scrollbar-track {
            background: transparent;
        }

        .register-scroll::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.15);
            border-radius: 3px;
        }

        .register-section {
            margin-bottom: 28px;
        }

        .register-section:last-child {
            margin-bottom: 0;
        }

        .register-section-title {
            font-family: 'Manrope', sans-serif;
            font-size: 12px;
            font-weight: 600;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 16px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        }

        .register-field {
            margin-bottom: 16px;
        }

        .register-field:last-child {
            margin-bottom: 0;
        }

        .register-label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: #1c1c1c;
            margin-bottom: 6px;
        }

        .register-label .required {
            color: #c0392b;
        }

        .register-input,
        .register-select {
            width: 100%;
            padding: 12px 14px;
            border: 1.5px solid #ccc;
            border-radius: 8px;
            font-size: 15px;
            font-family: 'Inter', sans-serif;
            background: #fff;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .register-input:focus,
        .register-select:focus {
            outline: none;
            border-color: #1c1c1c;
            box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.1);
        }

        .register-input::placeholder {
            color: #bbb;
        }

        .register-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .register-checkbox-group {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .register-checkbox-item {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .register-checkbox-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: #1c1c1c;
            cursor: pointer;
        }

        .register-checkbox-item span {
            font-size: 14px;
            color: #1c1c1c;
        }

        .register-radio-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .register-radio-item {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .register-radio-item input[type="radio"] {
            width: 18px;
            height: 18px;
            accent-color: #1c1c1c;
            cursor: pointer;
        }

        .register-radio-item span {
            font-size: 14px;
            color: #1c1c1c;
        }

        .register-terms {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 16px;
            background: rgba(0, 0, 0, 0.03);
            border-radius: 12px;
        }

        .register-terms input[type="checkbox"] {
            width: 20px;
            height: 20px;
            accent-color: #1c1c1c;
            cursor: pointer;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .register-terms-text {
            font-size: 14px;
            color: #666;
            line-height: 1.5;
        }

        .register-terms-text a {
            color: #1c1c1c;
            font-weight: 500;
        }

        .register-submit {
            width: 100%;
            padding: 16px 24px;
            background: #1c1c1c;
            color: #fff;
            border: none;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.15s ease;
            margin-top: 24px;
        }

        .register-submit:hover {
            background: #333;
        }

        .register-submit:active {
            transform: scale(0.98);
        }

        /* ─── Shared Listing Card Styles ─── */
        .listing-card-base {
            background: #D6D1CB;
            border-radius: 20px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .listing-card-base:hover .listing-card-info {
            background: #FAFAFA;
        }

        .listing-card-img {
            position: relative;
            aspect-ratio: 4 / 3;
            background: #ddd;
            background-size: cover;
            background-position: center;
            flex-shrink: 0;
            border-radius: 20px 20px 0 0;
            transition: height 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .listing-card-info {
            padding: 16px;
            background: #F1EFEC;
            transition: background 0.2s ease;
            flex: 1 0 auto;
            border-radius: 0 0 20px 20px;
            display: flex;
            flex-direction: column;
        }

        .listing-card-model {
            font-size: 16px;
            font-weight: 400;
            color: #1c1c1c;
            margin-bottom: 8px;
            line-height: 1.3;
            overflow-wrap: break-word;
            word-wrap: break-word;
            flex: 1;
        }

        .listing-card-price {
            font-size: 18px;
            font-weight: 600;
            color: #1c1c1c;
            margin-bottom: 6px;
            margin-top: auto;
        }

        .listing-card-meta {
            font-size: 11px;
            color: #999;
        }

        .listing-card-location {
            font-size: 11px;
            color: #999;
        }

        .listing-card-status {
            position: absolute;
            bottom: 8px;
            right: 8px;
            display: inline-block;
            font-size: 10px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding: 4px 8px;
            border-radius: 4px;
            width: fit-content;
            z-index: 5;
        }

        .listing-card-status.active {
            background: #7CB342;
            color: #1B5E20;
        }

        .listing-card-status.sold {
            background: rgba(0, 0, 0, 0.08);
            color: #666;
        }

        .classified-card {
            background: #D6D1CB;
            border-radius: 20px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            opacity: 0;
            transform: translateY(30px);
            box-shadow: none;
            position: relative;
        }

        .classified-card.visible {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.4s ease-out,
                        transform 0.4s ease-out;
        }

        .classified-card:active {
            transform: scale(0.98);
        }

        .classified-card.visible:active {
            transform: translateY(0) scale(0.98);
        }

        .classified-card.selected::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 20px;
            box-shadow: inset 0 0 0 4px #1c1c1c;
            pointer-events: none;
            z-index: 2;
        }

        .classified-img {
            position: relative;
            aspect-ratio: 4 / 3;
            background: #ddd;
            background-size: cover;
            background-position: center;
            flex-shrink: 0;
            border-radius: 20px 20px 0 0;
        }

        .classified-star-indicator {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 32px;
            height: 32px;
            color: rgba(255, 255, 255, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
            z-index: 5;
            opacity: 0;
            transition: opacity 0.2s ease, transform 0.15s ease, color 0.15s ease;
            cursor: pointer;
            border-radius: 50%;
        }

        .classified-star-indicator svg {
            width: 20px;
            height: 20px;
        }

        .classified-card:hover .classified-star-indicator {
            opacity: 1;
        }

        .classified-star-indicator:hover {
            transform: scale(1.15);
            color: #fff;
        }

        .classified-star-indicator:active {
            transform: scale(0.95);
        }

        .classified-card.starred .classified-star-indicator {
            opacity: 1;
            color: #f5a623;
        }

        .classified-card.starred .classified-star-indicator svg {
            fill: currentColor;
            stroke: currentColor;
        }

        .classified-card.starred .classified-star-indicator:hover {
            color: #f5a623;
        }

        .classified-info {
            padding: 16px;
            background: #F1EFEC;
            transition: background 0.2s ease;
            flex: 1 0 auto;
            border-radius: 0 0 20px 20px;
            display: flex;
            flex-direction: column;
        }

        .classified-card:hover .classified-info {
            background: #FAFAFA;
        }

        .classified-model {
            font-size: 16px;
            font-weight: 400;
            color: #1c1c1c;
            margin-bottom: 8px;
            line-height: 1.3;
            overflow-wrap: break-word;
            word-wrap: break-word;
            flex: 1;
        }

        .classified-model .classified-brand {
            font-size: 16px;
            font-weight: 400;
        }

        .classified-price {
            font-size: 18px;
            font-weight: 600;
            color: #1c1c1c;
            margin-bottom: 6px;
            margin-top: auto;
        }

        .classified-meta {
            font-size: 11px;
            color: #999;
        }

        /* ─── Login Modal ─── */
        .login-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0);
            backdrop-filter: blur(0px);
            -webkit-backdrop-filter: blur(0px);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            display: flex;
            opacity: 0;
            pointer-events: none;
            transition: background 0.7s cubic-bezier(0.32, 0.72, 0, 1),
                        backdrop-filter 0.7s cubic-bezier(0.32, 0.72, 0, 1),
                        -webkit-backdrop-filter 0.7s cubic-bezier(0.32, 0.72, 0, 1),
                        opacity 0.7s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .login-overlay.visible {
            opacity: 1;
            pointer-events: auto;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(40px);
            -webkit-backdrop-filter: blur(40px);
        }

        .login-modal {
            background: #F1EFEB;
            border-radius: 24px;
            width: 100%;
            max-width: 400px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: loginModalIn 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        }

        @keyframes loginModalIn {
            from {
                opacity: 0;
                transform: scale(0.95) translateY(20px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .login-header {
            padding: 32px 32px 24px;
            text-align: center;
        }

        .login-title {
            font-family: 'Pirata One', cursive;
            font-size: 32px;
            color: #1c1c1c;
            margin-bottom: 8px;
        }

        .login-subtitle {
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 14px;
            color: #666;
        }

        .login-close-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 40px;
            height: 40px;
            border: none;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease;
        }

        .login-close-btn:hover {
            background: rgba(0, 0, 0, 0.1);
        }

        .login-close-btn svg {
            width: 20px;
            height: 20px;
            color: #666;
        }

        .login-content {
            padding: 0 32px 32px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .login-social-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 14px 24px;
            border-radius: 12px;
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
        }

        .login-social-btn svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        .login-google-btn {
            background: white;
            color: #1c1c1c;
            border: 1px solid #ddd;
        }

        .login-google-btn:hover {
            background: #f8f8f8;
            border-color: #ccc;
        }

        .login-facebook-btn {
            background: #1877F2;
            color: white;
        }

        .login-facebook-btn:hover {
            background: #166FE5;
        }

        .login-divider {
            display: flex;
            align-items: center;
            gap: 16px;
            margin: 8px 0;
        }

        .login-divider-line {
            flex: 1;
            height: 1px;
            background: #ddd;
        }

        .login-divider-text {
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 12px;
            color: #999;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .login-email-form {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .login-input {
            padding: 14px 16px;
            border: 1px solid #ddd;
            border-radius: 12px;
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 15px;
            background: white;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .login-input:focus {
            outline: none;
            border-color: #1c1c1c;
            box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.1);
        }

        .login-input::placeholder {
            color: #999;
        }

        .login-submit-btn {
            padding: 14px 24px;
            background: #1c1c1c;
            color: white;
            border: none;
            border-radius: 12px;
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.1s ease;
        }

        .login-submit-btn:hover {
            background: #333;
        }

        .login-submit-btn:active {
            transform: scale(0.98);
        }

        .login-submit-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
        }

        .login-error {
            display: none;
            margin: -2px 32px 20px;
            padding: 10px 12px;
            border: 1px solid rgba(188, 45, 35, 0.3);
            background: rgba(188, 45, 35, 0.08);
            border-radius: 8px;
            color: #9A271D;
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 13px;
            line-height: 1.35;
        }

        .login-error.visible {
            display: block;
        }

        .login-footer {
            padding: 20px 32px;
            border-top: 1px solid rgba(0, 0, 0, 0.08);
            text-align: center;
        }

        .login-footer-text {
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 13px;
            color: #666;
        }

        .login-footer-link {
            color: #1c1c1c;
            font-weight: 500;
            cursor: pointer;
            text-decoration: none;
        }

        .login-footer-link:hover {
            text-decoration: underline;
        }

        /* Google Account Chooser */
        .login-accounts {
            display: none;
            flex-direction: column;
            padding: 0;
            gap: 0;
        }

        .login-accounts.visible {
            display: flex;
        }

        .login-accounts-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 0 32px 16px 32px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
            margin-bottom: 8px;
        }

        .login-accounts-back {
            width: 32px;
            height: 32px;
            border: none;
            background: transparent;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            transition: all 0.15s ease;
        }

        .login-accounts-back:hover {
            background: #f0f0f0;
            color: #1c1c1c;
        }

        .login-accounts-back svg {
            width: 18px;
            height: 18px;
        }

        .login-accounts-title {
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 15px;
            font-weight: 500;
            color: #1c1c1c;
        }

        .login-account-list {
            display: flex;
            flex-direction: column;
            padding: 8px 16px;
            gap: 4px;
        }

        .login-account-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 16px;
            border-radius: 12px;
            cursor: pointer;
            transition: background 0.15s ease;
        }

        .login-account-item:hover {
            background: #f5f5f5;
        }

        .login-account-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            background: #ddd;
        }

        .login-account-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .login-account-name {
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 14px;
            font-weight: 500;
            color: #1c1c1c;
        }

        .login-account-email {
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 12px;
            color: #666;
        }

        .login-account-add {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 16px;
            border-radius: 12px;
            cursor: pointer;
            transition: background 0.15s ease;
            color: #666;
        }

        .login-account-add:hover {
            background: #f5f5f5;
        }

        .login-account-add-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .login-account-add-icon svg {
            width: 20px;
            height: 20px;
            color: #666;
        }

        .login-account-add-text {
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 14px;
            font-weight: 500;
        }

        .login-loading {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 48px 32px;
            gap: 16px;
        }

        .login-loading.visible {
            display: flex;
        }

        .login-spinner {
            width: 32px;
            height: 32px;
            border: 3px solid #eee;
            border-top-color: #1c1c1c;
            border-radius: 50%;
            animation: loginSpin 0.8s linear infinite;
        }

        @keyframes loginSpin {
            to { transform: rotate(360deg); }
        }

        .login-loading-text {
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 14px;
            color: #666;
        }

        .login-success {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 48px 32px;
            gap: 16px;
        }

        .login-success.visible {
            display: flex;
        }

        .login-success-icon {
            width: 64px;
            height: 64px;
            background: #4CAF50;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: loginSuccessPop 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        }

        @keyframes loginSuccessPop {
            0% { transform: scale(0); }
            70% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        .login-success-icon svg {
            width: 32px;
            height: 32px;
            color: white;
        }

        .login-success-text {
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 18px;
            font-weight: 500;
            color: #1c1c1c;
        }

        .login-success-subtext {
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 14px;
            color: #666;
        }

        /* ─── Forums View ─── */
        .forums-title .supertitle,
        .forums-title .title {
            opacity: 1;
            animation: none;
        }

        .forums-header {
            padding: 28px 32px 20px;
            flex-shrink: 0;
        }

        .forums-content {
            padding: 0 32px 32px;
            overflow-y: auto;
            flex: 1;
        }

        .forum-post {
            display: flex;
            gap: 16px;
            padding: 16px 0;
            border-bottom: 1px solid #e0deda;
        }

        .forum-post:last-child {
            border-bottom: none;
        }

        .forum-votes {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            min-width: 40px;
        }

        .vote-btn {
            background: none;
            border: none;
            color: #999;
            cursor: pointer;
            font-size: 12px;
            padding: 4px;
            transition: color 0.2s ease;
        }

        .vote-btn:hover {
            color: #1c1c1c;
        }

        .vote-count {
            font-size: 13px;
            font-weight: 600;
            color: #1c1c1c;
        }

        .forum-main {
            flex: 1;
        }

        .forum-title {
            font-size: 15px;
            font-weight: 500;
            color: #1c1c1c;
            margin-bottom: 6px;
            cursor: pointer;
        }

        .forum-title:hover {
            color: #2563eb;
        }

        .forum-meta {
            font-size: 12px;
            color: #999;
            margin-bottom: 8px;
        }

        .forum-author {
            color: #666;
            font-weight: 500;
        }

        .forum-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .forum-tag {
            font-size: 10px;
            padding: 3px 8px;
            background: #e0deda;
            border-radius: 4px;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .forum-comments {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #999;
            font-size: 13px;
            min-width: 60px;
        }

        /* ─── Me View ─── */
        #viewMe {
            flex-direction: row !important;
            padding-right: 8px;
            min-width: 0;
        }

        /* Hide mobile tabs on desktop */
        .me-mobile-tabs {
            display: none;
        }

        /* Hide global right-panel when Me or Classifieds view is active */
        .container:has(#viewMe[style*="flex"]) > .right-panel,
        .container:has(#viewClassifieds[style*="flex"]) > .right-panel,
        .container:has(#viewForums[style*="flex"]) > .right-panel {
            display: none;
        }

        .me-content {
            display: flex;
            flex: 1 1 0;
            overflow: hidden;
            gap: 0;
            background: #D6D1CB;
            position: relative;
            z-index: 0;
            min-width: 0;
        }

        .me-sidebar {
            width: 280px;
            min-width: 200px;
            flex-shrink: 1;
            background: #F1EFEB;
            display: flex;
            flex-direction: column;
            padding: 28px 20px 14px 20px;
            overflow-y: auto;
        }

        .me-sidebar .accordion-chevron {
            display: none;
        }

        #meLeftPanel .accordion-chevron {
            display: none;
        }

        #meLeftPanel .classifieds-accordion-item.active .accordion-content {
            max-height: 8px;
        }

        #meLeftPanel .accordion-item:last-child.active::before {
            height: calc(100% + 8px);
            border-radius: 14px 14px 0 0;
            border-bottom: none;
        }

        #meLeftPanel .accordion-item:last-child.active::after {
            display: block;
        }

        .me-sidebar::-webkit-scrollbar {
            width: 4px;
        }

        .me-sidebar::-webkit-scrollbar-track {
            background: transparent;
        }

        .me-sidebar::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.15);
            border-radius: 2px;
        }

        .me-sidebar-header {
            margin-bottom: 24px;
        }

        .me-sidebar-header .supertitle {
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 0.1em;
            color: #1c1c1c;
            text-transform: uppercase;
            margin-bottom: 8px;
            opacity: 1;
            animation: none;
        }

        .me-sidebar-header .title {
            font-family: 'Pirata One', cursive;
            font-size: 42px;
            font-weight: 400;
            letter-spacing: 0.02em;
            line-height: 0.95;
            color: #1c1c1c;
            margin-bottom: 0;
            opacity: 1;
            animation: none;
        }

        .me-sidebar-section-title {
            font-family: 'Inter', sans-serif;
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 0.1em;
            color: #1c1c1c;
            text-transform: uppercase;
            margin-bottom: 16px;
        }

        .me-sidebar-items {
            display: flex;
            flex-direction: column;
        }

        .me-sidebar-item {
            position: relative;
            padding-top: 12px;
            cursor: pointer;
            background: none;
            border: none;
            width: 100%;
            text-align: left;
        }

        .me-sidebar-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 20px;
            border: 1px solid #1c1c1c;
            border-bottom: none;
            border-radius: 14px 14px 0 0;
            pointer-events: none;
        }

        .me-sidebar-item:last-child::before {
            height: 100%;
            border: 1px solid #1c1c1c;
            border-radius: 14px;
        }

        .me-sidebar-item:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 20px;
            left: 0;
            right: 0;
            bottom: 0;
            border-left: 1px solid #1c1c1c;
            border-right: 1px solid #1c1c1c;
            pointer-events: none;
        }

        .me-sidebar-item.active::before {
            background: #1c1c1c;
        }

        .me-sidebar-item:last-child.active::before {
            background: #1c1c1c;
        }

        .me-sidebar-item-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 0 12px 12px;
            position: relative;
            z-index: 1;
        }

        .me-sidebar-item-text {
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            font-weight: 500;
            color: #1c1c1c;
            text-transform: uppercase;
            letter-spacing: 0.02em;
        }

        .me-sidebar-item.active .me-sidebar-item-text {
            color: #fff;
        }

        .me-sidebar-item-count {
            font-family: 'Inter', sans-serif;
            font-size: 12px;
            color: #999;
            margin-right: 12px;
        }

        .me-sidebar-item.active .me-sidebar-item-count {
            color: rgba(255, 255, 255, 0.7);
        }

        .me-main {
            flex: 1 1 0;
            overflow: hidden;
            padding: 8px;
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 0;
            min-width: 0;
        }

        .me-content:has(.me-detail-panel.visible) .me-main {
            flex: 0 0 304px;
            min-width: 304px;
            max-width: 304px;
            padding: 8px 0 8px 0;
        }

        .me-content:has(.me-detail-panel.visible) #meLeftPanel {
            opacity: 0;
            transform: translateX(-20px);
            pointer-events: none;
            position: absolute;
            width: 0;
            overflow: hidden;
        }

        .me-content:has(.me-detail-panel.visible) .me-main-container {
            padding: 20px 20px 16px 20px;
            border-radius: 0 32px 32px 0;
        }

        .me-content:has(.me-detail-panel.visible) .me-listings-panel-header {
            opacity: 0;
            height: 0;
            padding: 0;
            margin: 0;
            overflow: hidden;
        }

        .me-content:has(.me-detail-panel.visible) .me-listings-grid {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 4px;
            margin: -4px;
            overflow: hidden;
        }

        .me-content:has(.me-detail-panel.visible) .listing-card-img {
            height: 140px;
            aspect-ratio: unset;
        }

        .me-listing-card.selected::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 12px;
            box-shadow: inset 0 0 0 4px #1c1c1c;
            pointer-events: none;
            z-index: 2;
        }

        .me-list-back-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            background: none;
            border: none;
            font-family: 'Macan', sans-serif;
            font-size: 20px;
            font-weight: 400;
            color: #000;
            cursor: pointer;
            padding: 8px 0;
            margin-top: 20px;
            margin-bottom: 20px;
            transition: color 0.2s ease, opacity 0.3s ease;
            opacity: 0;
            pointer-events: none;
            height: 0;
            overflow: hidden;
            margin: 0;
            padding: 0;
        }

        .me-list-back-btn:hover {
            color: #666;
        }

        .me-list-back-btn svg {
            width: 16px;
            height: 16px;
        }

        .me-content:has(.me-detail-panel.visible) .me-list-back-btn {
            opacity: 1;
            pointer-events: auto;
            height: auto;
            margin-top: 20px;
            margin-bottom: 20px;
            padding: 8px 0;
        }

        .me-main-container {
            flex: 1 1 0;
            background: #E2DFDB;
            border-radius: 32px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            padding: 28px 0 0 0;
            position: relative;
            transition: padding 0.35s cubic-bezier(0.32, 0.72, 0, 1);
            min-width: 0;
            max-width: 100%;
        }

        .me-main-container::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 1) 100%);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
            pointer-events: none;
            border-radius: 0 0 32px 32px;
        }

        .me-main-scroll {
            flex: 1 1 0;
            overflow-y: auto;
            overflow-x: hidden;
            padding-bottom: 0;
            display: flex;
            flex-direction: column;
            min-width: 0;
            max-width: 100%;
            overscroll-behavior: none;
        }

        #meSectionChats.active {
            margin-bottom: -32px;
        }

        .me-detail-panel {
            flex: 0;
            background: #D6D1CB;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            padding: 8px;
            opacity: 0;
            pointer-events: none;
        }

        .me-detail-panel.visible {
            flex: 1;
            opacity: 1;
            pointer-events: auto;
        }

        .me-detail-panel .classifieds-detail-container {
            flex: 1;
            background: #E2DFDB;
            border-radius: 32px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .me-detail-panel .classifieds-detail-scroll {
            flex: 1;
            overflow-y: auto;
            padding: 24px 28px;
        }

        .me-detail-panel .listing-header {
            position: relative;
            top: 0;
            background: transparent;
            padding: 0 0 8px 0;
            margin: 0 0 12px 0;
        }

        .me-listing-view-mode,
        .me-listing-edit-mode {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .me-listing-edit-mode .classifieds-detail-scroll {
            padding: 24px 28px;
        }

        .me-listing-edit-mode .post-form-title {
            font-family: 'Macan', sans-serif;
            font-size: 20px;
            font-weight: 400;
            color: #000;
            margin: 0;
            padding: 8px 0;
            margin-top: 20px;
            margin-bottom: 20px;
        }

        .me-listing-edit-mode .post-form-buttons {
            padding: 16px 28px;
            margin-top: auto;
        }

        .me-listings-panel {
            width: 280px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .me-listings-panel-header {
            padding: 20px 20px 12px 20px;
            font-family: 'Macan', sans-serif;
            font-size: 14px;
            font-weight: 600;
            color: #1c1c1c;
            transition: opacity 0.3s ease, height 0.3s ease, padding 0.3s ease;
        }

        .me-listings-wrapper {
            display: flex;
            gap: 8px;
            flex: 1;
            min-height: 0;
        }

        .me-detail-buttons {
            display: flex;
            gap: 12px;
            padding: 24px;
        }

        .me-detail-buttons-default,
        .me-detail-buttons-confirm {
            display: flex;
            gap: 12px;
            flex: 1;
            align-items: center;
            transition: opacity 0.35s cubic-bezier(0.32, 0.72, 0, 1),
                        transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .me-detail-buttons-confirm {
            justify-content: flex-end;
        }

        .me-detail-buttons-default.fade-out {
            opacity: 0;
            transform: translateX(-12px);
        }

        .me-detail-buttons-confirm.fade-out {
            opacity: 0;
            transform: translateX(12px);
        }

        .me-confirm-text {
            font-family: 'Macan', sans-serif;
            font-size: 16px;
            color: #1c1c1c;
            white-space: nowrap;
            margin-right: 8px;
        }

        .me-confirm-text,
        .me-confirm-yes-btn,
        .me-confirm-no-btn {
            opacity: 0;
            transform: translateX(8px);
            animation: confirmSlideIn 0.4s cubic-bezier(0.32, 0.72, 0, 1) forwards;
        }

        .me-confirm-text { animation-delay: 0.05s; }
        .me-confirm-yes-btn { animation-delay: 0.1s; }
        .me-confirm-no-btn { animation-delay: 0.15s; }

        @keyframes confirmSlideIn {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .me-detail-buttons-confirm[style*="display: none"] .me-confirm-text,
        .me-detail-buttons-confirm[style*="display: none"] .me-confirm-yes-btn,
        .me-detail-buttons-confirm[style*="display: none"] .me-confirm-no-btn {
            animation: none;
        }

        .me-confirm-yes-btn,
        .me-confirm-no-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px 20px;
            border-radius: 50px;
            font-family: 'Macan', sans-serif;
            font-size: 16px;
            font-weight: 400;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
        }

        .me-confirm-yes-btn {
            background: #c0392b;
            color: #fff;
            border: 1px solid #c0392b;
        }

        .me-confirm-yes-btn:hover {
            background: #a33025;
            border-color: #a33025;
        }

        .me-confirm-no-btn {
            background: transparent;
            color: #1c1c1c;
            border: 1px solid #1c1c1c;
        }

        .me-confirm-no-btn:hover {
            background: #f5f5f5;
        }

        .me-confirm-yes-btn:active,
        .me-confirm-no-btn:active {
            transform: scale(0.98);
        }

        .me-edit-btn,
        .me-sold-btn,
        .me-delete-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 16px 24px;
            background: transparent;
            color: #1c1c1c;
            border: 1px solid #1c1c1c;
            border-radius: 50px;
            font-family: 'Macan', sans-serif;
            font-size: 13px;
            font-weight: 400;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .me-edit-btn::before,
        .me-sold-btn::before,
        .me-delete-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: none;
        }

        .me-edit-btn:hover::before,
        .me-sold-btn:hover::before,
        .me-delete-btn:hover::before {
            animation: shimmer 0.6s ease forwards;
        }

        .me-edit-btn:hover,
        .me-sold-btn:hover {
            background: #CDFB00;
            color: #1c1c1c;
            border-color: #1c1c1c;
        }

        .me-delete-btn:hover {
            background: #c0392b;
            color: #fff;
            border-color: #c0392b;
        }

        .me-edit-btn:active,
        .me-sold-btn:active,
        .me-delete-btn:active {
            transform: scale(0.98);
        }

        /* Me Section Right Column (Insights + Buyer Chats) */
        .me-detail-panel {
            flex-direction: row;
            gap: 8px;
        }

        .me-detail-left {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .me-detail-left .classifieds-detail-container {
            flex: 1;
        }

        .me-detail-right {
            flex: 0 0 340px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            overflow: hidden;
        }

        .me-insights-panel,
        .me-buyer-chat-panel {
            background: #E2DFDB;
            border-radius: 24px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: flex 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .me-insights-panel {
            flex: 0 0 auto;
        }

        .me-insights-panel.expanded {
            flex: 1;
        }

        .me-buyer-chat-panel {
            flex: 0 0 auto;
        }

        .me-buyer-chat-panel.expanded {
            flex: 1;
        }

        .me-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .me-panel-header:hover {
            background: rgba(0, 0, 0, 0.03);
        }

        .me-panel-header h3 {
            font-family: 'Macan', sans-serif;
            font-size: 16px;
            font-weight: 500;
            color: #1c1c1c;
            margin: 0;
        }

        .me-panel-header .accordion-chevron {
            width: 20px;
            height: 20px;
            position: relative;
            transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .me-panel-header .accordion-chevron::before,
        .me-panel-header .accordion-chevron::after {
            content: '';
            position: absolute;
            background: #666;
            border-radius: 1px;
            width: 8px;
            height: 2px;
            top: 50%;
            transition: transform 0.3s ease, background 0.2s ease;
        }

        .me-panel-header .accordion-chevron::before {
            left: 2px;
            transform: rotate(45deg);
            transform-origin: 100% 50%;
        }

        .me-panel-header .accordion-chevron::after {
            right: 2px;
            transform: rotate(-45deg);
            transform-origin: 0% 50%;
        }

        .me-detail-right .expanded .me-panel-header .accordion-chevron::before {
            transform: rotate(-45deg);
        }

        .me-detail-right .expanded .me-panel-header .accordion-chevron::after {
            transform: rotate(45deg);
        }

        .me-panel-content {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .me-detail-right .expanded .me-panel-content {
            grid-template-rows: 1fr;
        }

        .me-panel-content-inner {
            overflow: hidden;
        }

        .me-insights-content {
            padding: 0 20px 20px 20px;
        }

        .me-insight-stat {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        }

        .me-insight-stat:last-child {
            border-bottom: none;
        }

        .me-insight-icon {
            width: 36px;
            height: 36px;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .me-insight-icon svg {
            width: 18px;
            height: 18px;
            stroke: #666;
        }

        .me-insight-data {
            flex: 1;
        }

        .me-insight-value {
            font-family: 'Macan', sans-serif;
            font-size: 20px;
            font-weight: 500;
            color: #1c1c1c;
        }

        .me-insight-label {
            font-family: 'Macan', sans-serif;
            font-size: 13px;
            color: #888;
        }

        /* Buyer chat panel specific */
        .me-buyer-header {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }

        .me-buyer-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Macan', sans-serif;
            font-size: 13px;
            font-weight: 600;
            color: #fff;
        }

        .me-buyer-info h3 {
            font-family: 'Macan', sans-serif;
            font-size: 15px;
            font-weight: 500;
            color: #1c1c1c;
            margin: 0;
        }

        .me-buyer-preview {
            font-family: 'Macan', sans-serif;
            font-size: 12px;
            color: #888;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 200px;
        }

        .me-buyer-chat-content {
            display: flex;
            flex-direction: column;
            flex: 1;
            overflow: hidden;
        }

        .me-buyer-messages {
            flex: 1;
            overflow-y: auto;
            padding: 0 20px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            gap: 8px;
        }

        .me-buyer-message {
            max-width: 85%;
            padding: 12px 16px;
            border-radius: 18px;
            font-family: 'Macan', sans-serif;
            font-size: 15px;
            line-height: 1.4;
        }

        .me-buyer-message.received {
            align-self: flex-start;
            background: #fff;
            color: #1c1c1c;
            border-bottom-left-radius: 6px;
        }

        .me-buyer-message.sent {
            align-self: flex-end;
            background: #1c1c1c;
            color: #fff;
            border-bottom-right-radius: 6px;
        }

        .me-buyer-input-area {
            padding: 16px 20px;
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .me-buyer-input {
            flex: 1;
            padding: 12px 16px;
            border: none;
            border-radius: 24px;
            background: #fff;
            font-family: 'Macan', sans-serif;
            font-size: 15px;
            outline: none;
        }

        .me-buyer-send-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #DFFF00;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.15s ease, background 0.2s ease;
        }

        .me-buyer-send-btn:hover {
            background: #c8e600;
        }

        .me-buyer-send-btn:active {
            transform: scale(0.95);
        }

        .me-buyer-send-btn svg {
            width: 20px;
            height: 20px;
            stroke: #1c1c1c;
        }

        .me-section {
            display: none;
        }

        .me-section.active {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        #meSectionListings.active,
        #meSectionChats.active {
            display: block;
        }

        .me-section-title {
            font-family: 'Manrope', sans-serif;
            font-size: 12px;
            font-weight: 600;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 16px;
        }

        .me-listings-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
            gap: 8px;
            padding: 8px;
            align-content: start;
            width: 100%;
            box-sizing: border-box;
            min-width: 0;
        }

        .me-listings-grid.fade-in {
            animation: meFadeIn 0.4s ease-out;
        }

        @keyframes meFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes marching-ants {
            0% { stroke-dashoffset: 0; }
            100% { stroke-dashoffset: -20px; }
        }

        .me-listing-card.me-listing-new {
            background: transparent;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 180px;
            cursor: pointer;
            position: relative;
        }

        .me-listing-card.me-listing-new::before {
            content: '';
            position: absolute;
            top: 1px;
            left: 1px;
            right: 1px;
            bottom: 1px;
            border-radius: calc(20px - 1px);
            background: transparent;
            pointer-events: none;
            transition: background 0.2s ease;
            z-index: 0;
        }

        .me-listing-card.me-listing-new:hover::before {
            background: #fff;
        }

        .me-listing-card.me-listing-new .me-listing-border-svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .me-listing-card.me-listing-new .me-listing-border-svg rect {
            fill: none;
            stroke: #999;
            stroke-width: 1;
            stroke-dasharray: 4 4;
        }

        .me-listing-card.me-listing-new:hover .me-listing-border-svg rect {
            animation: marching-ants 2s linear infinite;
        }

        .me-listing-new-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            z-index: 2;
        }

        .me-listing-new-icon {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .me-listing-new-icon svg {
            width: 24px;
            height: 24px;
        }

        .me-listing-card.me-listing-new:hover .me-listing-new-icon {
            background: rgba(0, 0, 0, 0.1);
            color: #666;
            transform: scale(1.15);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .me-listing-new-label {
            font-size: 14px;
            font-weight: 500;
            color: #666;
            letter-spacing: 0.05em;
        }

        .me-listing-card.me-listing-new:hover .me-listing-new-label {
            color: #666;
        }

        .me-starred-card {
            cursor: pointer;
            position: relative;
        }

        .me-starred-card:hover {
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        }

        .me-starred-card.selected {
            box-shadow: inset 0 0 0 3px #1c1c1c;
        }

        .me-starred-img {
            width: 80px;
            height: 80px;
            border-radius: 12px;
            flex-shrink: 0;
            background-size: cover;
            background-position: center;
        }

        .me-starred-info {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .me-starred-brand {
            font-size: 11px;
            font-weight: 500;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 4px;
        }

        .me-starred-model {
            font-size: 15px;
            font-weight: 500;
            color: #1c1c1c;
            margin-bottom: 4px;
        }

        .me-starred-price {
            font-size: 16px;
            font-weight: 600;
            color: #1c1c1c;
            margin-bottom: auto;
        }

        .me-starred-meta {
            font-size: 12px;
            color: #999;
        }

        .me-starred-action {
            display: flex;
            align-items: flex-start;
        }

        .me-starred-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            color: #FFB800;
            transition: transform 0.2s ease;
        }

        .me-starred-btn:hover {
            transform: scale(1.1);
        }

        .me-starred-btn svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .me-chat-card {
            background: #F1EFEB;
            border-radius: 24px;
            padding: 12px;
            margin-bottom: 12px;
            cursor: pointer;
            overflow: hidden;
        }

        .me-chat-back-btn {
            display: none;
            align-items: center;
            gap: 4px;
            background: transparent;
            border: none;
            font-size: 14px;
            font-family: 'Inter', sans-serif;
            color: #1c1c1c;
            cursor: pointer;
            padding: 0;
            margin-bottom: 24px;
        }
        .me-chat-back-btn svg {
            width: 16px;
            height: 16px;
        }

        .me-chat-card:hover {
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            transition: box-shadow 0.15s ease;
        }

        @keyframes chatCardSlideIn {
            from {
                opacity: 0;
                transform: translateY(16px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .me-chat-card:last-child {
            margin-bottom: 0;
        }

        .me-chat-card-header {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .me-chat-card-img {
            width: 56px;
            height: 56px;
            border-radius: 12px;
            flex-shrink: 0;
            background: linear-gradient(135deg, #e0e0e0 0%, #c8c8c8 100%);
        }

        @keyframes chatCardFadeIn {
            to { opacity: 1; }
        }

        .me-chat-card-info {
            flex: 1;
            min-width: 0;
        }

        .me-chat-card-title {
            font-size: 15px;
            font-weight: 600;
            color: #1c1c1c;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .me-chat-card-subtitle {
            font-size: 12px;
            color: #888;
            margin-top: 2px;
        }

        .me-chat-card-preview {
            font-size: 13px;
            color: #666;
            margin-top: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .me-chat-card-header .accordion-chevron {
            width: 20px;
            height: 20px;
            position: relative;
            flex-shrink: 0;
            transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .me-chat-card-header .accordion-chevron::before,
        .me-chat-card-header .accordion-chevron::after {
            content: '';
            position: absolute;
            background: #999;
            width: 8px;
            height: 1.5px;
            top: 50%;
            border-radius: 1px;
        }

        .me-chat-card-header .accordion-chevron::before {
            left: 3px;
            transform: rotate(45deg);
        }

        .me-chat-card-header .accordion-chevron::after {
            right: 3px;
            transform: rotate(-45deg);
        }

        .me-chat-card.expanded .me-chat-card-header .accordion-chevron {
            transform: rotate(180deg);
            transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .me-chat-card .me-chat-card-header .accordion-chevron {
            transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .me-chat-card.expanded {
            cursor: default;
        }

        .me-chat-card.expanded .me-chat-card-header {
            cursor: pointer;
        }

        .me-chat-expanded-content {
            display: flex;
            flex-direction: column;
            margin-top: 0;
            padding-top: 0;
            border-top: none;
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                        opacity 0.3s ease,
                        margin-top 0.3s ease,
                        padding-top 0.3s ease;
        }

        .me-chat-card.expanded .me-chat-expanded-content {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
            max-height: 80vh;
            height: 600px;
            opacity: 1;
        }

        .me-chat-messages {
            display: flex;
            flex-direction: column;
            gap: 12px;
            flex: 1;
            min-height: 400px;
            overflow-y: auto;
            padding: 16px 4px;
            overscroll-behavior: contain;
        }

        .me-chat-message:first-child {
            margin-top: auto;
        }

        .me-chat-messages::-webkit-scrollbar {
            width: 4px;
        }

        .me-chat-messages::-webkit-scrollbar-track {
            background: transparent;
        }

        .me-chat-messages::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.15);
            border-radius: 2px;
        }

        .me-chat-date-divider {
            text-align: center;
            font-size: 11px;
            color: #999;
            padding: 8px 0;
        }

        .me-chat-message {
            padding: 10px 14px;
            border-radius: 16px;
            max-width: 75%;
            font-size: 18px;
            line-height: 1.5;
        }

        .me-chat-message.received {
            background: #fff;
            color: #1c1c1c;
            align-self: flex-start;
            border-bottom-left-radius: 4px;
        }

        .me-chat-message.sent {
            background: #1c1c1c;
            color: #fff;
            align-self: flex-end;
            border-bottom-right-radius: 4px;
        }

        .me-chat-message img {
            cursor: pointer;
        }

        .me-chat-message-time {
            font-size: 10px;
            margin-top: 4px;
            opacity: 0.6;
        }

        .me-chat-input-row {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .me-chat-input-wrapper {
            flex: 1;
            position: relative;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 60px 8px 12px;
            border: 1px solid transparent;
            border-radius: 50px;
            background: #fff;
            transition: border-color 0.25s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .me-chat-input-wrapper:focus-within {
            border-color: #1c1c1c;
        }

        .me-chat-input {
            flex: 1;
            padding: 16px 0 16px 12px;
            border: none;
            background: transparent;
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 18px;
            outline: none;
        }

        .me-chat-image-btn {
            position: absolute;
            right: 12px;
            width: 44px;
            height: 44px;
            border: none;
            border-radius: 50%;
            background: transparent;
            color: #1c1c1c;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease;
        }

        .me-chat-image-btn:hover {
            background: rgba(0, 0, 0, 0.05);
        }

        .me-chat-image-btn svg {
            width: 22px;
            height: 22px;
        }

        .me-chat-image-preview {
            display: none;
            position: relative;
            flex-shrink: 0;
        }

        .me-chat-image-preview.visible {
            display: inline-flex;
        }

        .me-chat-image-preview img {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            object-fit: cover;
        }

        .me-chat-image-preview-remove {
            position: absolute;
            top: -6px;
            right: -6px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #1c1c1c;
            color: #fff;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            line-height: 1;
        }

        .me-chat-input::placeholder {
            font-size: 18px;
            color: #999;
        }

        .me-chat-input:focus {
            border-color: #1c1c1c;
        }

        .me-chat-clear-btn {
            position: absolute;
            right: 16px;
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 50%;
            background: #e5e5e5;
            color: #666;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            line-height: 1;
            transition: background 0.2s ease;
        }

        .me-chat-clear-btn:hover {
            background: #d5d5d5;
        }

        .me-chat-input:not(:placeholder-shown) + .me-chat-clear-btn {
            display: flex;
        }

        .me-chat-send-btn {
            width: 68px;
            height: 68px;
            border-radius: 50%;
            background: #DFFF00;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: background 0.2s ease, transform 0.15s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .me-chat-send-btn:disabled {
            background: #DFFF00;
            cursor: default;
        }

        .me-chat-send-btn:disabled svg {
            stroke: rgba(28, 28, 28, 0.3);
        }

        .me-chat-send-btn:disabled:hover {
            transform: none;
        }

        .me-chat-send-btn:hover:not(:disabled) {
            background: #E8FF33;
            transform: scale(1.05);
        }

        .me-chat-send-btn:active:not(:disabled) {
            transform: scale(0.95);
        }

        .me-chat-send-btn svg {
            width: 28px;
            height: 28px;
            stroke: #1c1c1c;
            transition: transform 0.2s ease;
        }

        .me-chat-send-btn:hover svg {
            transform: translateY(-2px);
        }

        .me-chat-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: #D6D1CB;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .me-chat-avatar svg {
            width: 24px;
            height: 24px;
            color: #999;
        }

        .me-chat-info {
            flex: 1;
            min-width: 0;
        }

        .me-chat-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 4px;
        }

        .me-chat-seller {
            font-size: 15px;
            font-weight: 500;
            color: #1c1c1c;
        }

        .me-chat-time {
            font-size: 12px;
            color: #999;
        }

        .me-chat-item {
            font-size: 13px;
            color: #666;
            margin-bottom: 4px;
        }

        .me-chat-preview {
            font-size: 14px;
            color: #999;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .me-chat-unread {
            width: 10px;
            height: 10px;
            background: #c0392b;
            border-radius: 50%;
            flex-shrink: 0;
            margin-left: 12px;
            align-self: center;
        }

        .me-empty {
            text-align: center;
            padding: 60px 20px;
            color: #999;
        }

        .me-empty svg {
            width: 48px;
            height: 48px;
            color: #ccc;
            margin-bottom: 16px;
        }

        .me-empty-text {
            font-size: 15px;
            margin-bottom: 8px;
        }

        .me-empty-subtext {
            font-size: 13px;
            color: #bbb;
        }

        @media (max-width: 1200px) {
            .me-detail-right {
                display: none;
            }
        }

        @media (max-width: 900px) {
            .me-content:has(.me-detail-panel.visible) .me-main {
                flex: 0 0 0px;
                min-width: 0;
                max-width: 0;
                padding: 0;
                margin: 0;
                opacity: 0;
                transform: translateX(-100%);
                pointer-events: none;
                overflow: hidden;
            }
        }

        /* ─── Me Chats Detail View ─── */
        .me-chats-detail-view {
            display: flex;
            flex: 1;
            overflow: hidden;
        }

        .me-chats-items-panel {
            flex: 0 0 380px;
            background: #D6D1CB;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            padding: 8px 4px 8px 8px;
        }

        .me-chats-items-panel-inner {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: #E2DFDB;
            border-radius: 32px;
            overflow: hidden;
            padding: 20px 28px 16px 28px;
        }

        .me-chats-back-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            background: none;
            border: none;
            cursor: pointer;
            font-family: 'Inter', sans-serif;
            font-size: 18px;
            font-weight: 500;
            color: var(--text);
            text-transform: uppercase;
            padding: 8px 0;
            margin-bottom: 20px;
        }

        .me-chats-back-btn:hover {
            color: var(--muted);
        }

        .me-chats-back-btn svg {
            width: 16px;
            height: 16px;
        }

        .me-chats-items-grid {
            flex: 1;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 4px;
            margin: -4px;
        }

        .me-chats-items-grid::-webkit-scrollbar {
            width: 0;
        }

        .me-chats-item-card {
            background: var(--bg);
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.2s ease;
            border: 2px solid transparent;
            flex-shrink: 0;
        }

        .me-chats-item-card:hover {
            transform: translateY(-2px);
        }

        .me-chats-item-card.selected {
            border-color: var(--text);
        }

        .me-chats-item-img {
            width: 100%;
            height: 140px;
        }

        .me-chats-item-info {
            padding: 12px;
        }

        .me-chats-item-brand {
            font-size: 10px;
            font-weight: 500;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 2px;
        }

        .me-chats-item-model {
            font-size: 13px;
            font-weight: 500;
            color: var(--text);
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .me-chats-item-price {
            font-size: 14px;
            font-weight: 600;
            color: var(--text);
        }

        .me-chats-item-meta {
            font-size: 10px;
            color: var(--muted);
            text-transform: uppercase;
            margin-top: 4px;
        }

        .me-chats-detail-panel {
            flex: 1;
            min-width: 0;
            background: #D6D1CB;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            padding: 8px 4px 8px 4px;
        }

        .me-chats-right-column {
            display: flex;
            flex: 1;
            min-width: 0;
            flex-direction: column;
            gap: 8px;
            overflow: hidden;
            background: #D6D1CB;
            padding: 8px;
        }

        .me-chats-right-column .classifieds-analysis-panel {
            display: flex;
            flex: 0 0 auto;
            min-height: 120px;
        }

        .me-chats-right-column .classifieds-analysis-panel.expanded {
            flex: 0 0 auto;
            max-height: 200px;
        }

        .me-chats-right-column .classifieds-analysis-panel.expanded .classifieds-analysis-scroll {
            display: block;
        }

        .me-chats-right-column .classifieds-chat-panel {
            display: flex;
            flex: 1;
            min-height: 0;
        }

        .me-chats-right-column .classifieds-chat-scroll {
            display: flex;
            opacity: 1;
        }

        /* Me Post Form View */
        .me-post-form-view {
            display: flex;
            flex: 1;
            overflow: hidden;
        }

        .me-post-form-panel {
            flex: 1;
            background: #D6D1CB;
            padding: 12px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .me-post-form-panel .classifieds-main-container {
            flex: 1;
            overflow-y: auto;
        }

        .me-post-form-panel .classifieds-main-container::after {
            display: none;
        }

        #meSectionChats {
            display: none;
            flex: 1;
            min-height: 0;
            overflow: hidden;
        }

        #meSectionChats.active {
            display: flex;
            flex-direction: column;
        }

        #meSectionSystem {
            display: none;
            flex: 1;
            overflow: hidden;
        }

        #meSectionSystem.active {
            display: block;
        }

        .me-system-content {
            padding: 24px 32px;
            overflow-y: auto;
        }

        .me-chats-list {
            padding: 4px 32px 60px 32px;
            overflow-y: auto;
            flex: 1;
            min-height: 0;
        }

        /* Left Panel - Menu */
        .left-panel {
            flex: 0 0 340px;
            min-width: 240px;
            background: #F1EFEB;
            padding: 28px 16px 14px 16px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
            z-index: 0;
            transition: flex 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                        min-width 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                        max-width 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                        transform 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                        opacity 0.3s ease;
        }

        .back-button {
            font-family: 'Inter', sans-serif;
            font-size: 18px;
            font-weight: 400;
            letter-spacing: 0.05em;
            color: #000000;
            text-decoration: none;
            text-transform: uppercase;
            margin-bottom: 20px;
            margin-top: -12px;
            transition: opacity 0.2s ease;
            opacity: 0;
            animation: fadeInUp 0.4s ease-out 0.05s forwards;
        }

        .back-button:hover {
            opacity: 0.6;
        }

        .supertitle {
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 0.1em;
            color: #1c1c1c;
            margin-bottom: 8px;
            opacity: 0;
            animation: fadeInUp 0.5s ease-out 0.05s forwards;
        }

        .title {
            font-family: 'Pirata One', cursive;
            font-size: 42px;
            font-weight: 400;
            letter-spacing: 0.02em;
            line-height: 0.95;
            color: #1c1c1c;
            margin-bottom: 24px;
            opacity: 0;
            animation: fadeInUp 0.5s ease-out 0.1s forwards;
        }

        .search-container {
            position: relative;
            margin-bottom: 44px;
            opacity: 0;
            animation: fadeInUp 0.4s ease-out 0.15s forwards;
        }

        .search-input {
            width: 100%;
            padding: 15px 20px 15px 40px;
            font-family: 'Inter', sans-serif;
            font-size: 13px;
            border: none;
            border-radius: 50px;
            background: #e0deda;
            outline: none;
        }

        .search-input:disabled {
            background: #e0e0e0;
            color: #999;
            cursor: not-allowed;
            opacity: 0.6;
        }

        .search-input::placeholder {
            color: #999;
        }

        .search-input:focus::placeholder {
            opacity: 0;
        }

        .search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 16px;
            color: #999;
            pointer-events: none;
            opacity: 0.5;
        }

        .search-clear {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            border: none;
            background: #999;
            color: #fff;
            border-radius: 50%;
            font-size: 14px;
            line-height: 1;
            cursor: pointer;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .search-clear.visible {
            opacity: 1;
            pointer-events: auto;
        }

        .search-clear:hover {
            background: #666;
        }

        .search-suggestions {
            position: absolute;
            top: calc(100% + 12px);
            left: 0;
            right: 0;
            background: transparent;
            border: none;
            border-radius: 16px;
            max-height: 600px;
            overflow-y: auto;
            z-index: 1000;
            display: none;
        }

        .search-suggestions.visible {
            display: block;
        }

        .search-suggestion {
            padding: 10px 16px 10px 38px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            gap: 2px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            transition: background 0.15s ease;
            font-family: 'Macan', sans-serif;
        }

        .search-suggestion:last-child {
            border-bottom: none;
        }

        .search-suggestion:hover,
        .search-suggestion.highlighted {
            background: rgba(0, 0, 0, 0.05);
        }

        .search-suggestion:active {
            background: #FF6F00;
        }

        .search-suggestion:active .search-suggestion-brand,
        .search-suggestion:active .search-suggestion-model,
        .search-suggestion:active .search-suggestion-category {
            color: white;
        }

        .search-suggestion-brand {
            font-family: 'Inter', sans-serif;
            font-size: 12px;
            font-weight: 600;
            color: #1c1c1c;
            text-transform: capitalize;
        }

        .search-suggestion-model {
            font-family: 'Inter', sans-serif;
            font-size: 11px;
            color: #666;
        }

        .search-suggestion-category {
            font-family: 'Inter', sans-serif;
            font-size: 9px;
            font-weight: 500;
            letter-spacing: 0.05em;
            color: #999;
            text-transform: uppercase;
            margin-top: 2px;
        }

        .search-no-results {
            padding: 16px;
            font-family: 'Inter', sans-serif;
            font-size: 12px;
            color: #999;
            text-align: center;
        }

        .step-label {
            font-family: 'Inter', sans-serif;
            font-size: 11px;
            font-weight: 400;
            color: #1c1c1c;
            letter-spacing: 0.03em;
            margin-top: 10px;
            margin-bottom: 16px;
            text-align: center;
            opacity: 0;
            animation: fadeInUp 0.4s ease-out 0.2s forwards;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .accordion {
            opacity: 0;
            animation: fadeInUp 0.5s ease-out 0.25s forwards;
        }

        .left-panel.search-active .step-label,
        .left-panel.search-active .accordion {
            opacity: 0 !important;
            pointer-events: none;
            transform: translateY(-15px);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }

        .step-label,
        .accordion {
            transition: opacity 0.4s ease, transform 0.4s ease;
        }

        .right-panel .step-label {
            position: relative;
            top: auto;
            left: auto;
            opacity: 0;
            animation: fadeInUp 0.4s ease-out 0.3s forwards;
            align-self: flex-start;
            margin-bottom: 0;
        }

        .step-label.step-two,
        .step-label.step-three {
            color: #1c1c1c;
        }

        .step-label.step-two {
            position: absolute;
            top: 14px;
            left: calc(50% - 69px);
            transform: translateX(-50%);
            margin-bottom: 0;
            z-index: 10;
            font-size: 20px;
        }

        .system-name {
            outline: none;
        }

        .system-name[contenteditable="true"] {
            border-bottom: 1px solid transparent;
            transition: border-color 0.2s ease;
            padding-bottom: 2px;
            cursor: text;
        }

        .system-name[contenteditable="true"]:hover {
            border-bottom-color: rgba(0,0,0,0.2);
        }

        .system-name[contenteditable="true"]:focus {
            border-bottom-color: rgba(0,0,0,0.5);
        }

        .step-label.step-three {
            position: relative;
            top: auto;
            left: auto;
            margin-top: 32px;
            text-align: center;
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .step-label.step-three.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .edit-icon {
            display: none;
            margin-left: 6px;
            color: #444;
            vertical-align: middle;
            cursor: pointer;
        }

        .system-name[contenteditable="true"] + .edit-icon {
            display: inline-block;
        }

        .edit-icon:hover {
            color: #222;
        }

        .empty-state-message {
            font-family: 'Inter', sans-serif;
            font-size: 32px;
            font-weight: 500;
            color: rgba(0, 0, 0, 0.12);
            text-align: center;
            margin-top: 120px;
        }

        /* Results Section */
        .results-section {
            width: 100%;
            max-width: 680px;
            margin: 20px 0 80px 0;
        }

        .results-card {
            background: transparent;
            border-radius: 0;
            padding: 0;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
            pointer-events: none;
        }

        .results-card.visible {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .results-card h2 {
            font-family: 'Manrope', sans-serif;
            font-size: 20px;
            font-weight: 500;
            letter-spacing: 0.05em;
            color: #1c1c1c;
            text-transform: uppercase;
            margin-top: 22px;
            margin-bottom: 16px;
            text-align: center;
        }

        #autoGenerateToggle {
            transition: opacity 0.2s;
        }

        @media (max-width: 1400px) {
            #autoGenerateToggle {
                opacity: 0 !important;
                pointer-events: none;
            }
        }

        .results-card p {
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            line-height: 1.6;
            color: #666;
            margin-bottom: 16px;
        }

        .results-placeholder {
            background: #f0f0f0;
            border-radius: 12px;
            padding: 24px;
            margin-top: 24px;
        }

        .results-placeholder-line {
            height: 12px;
            background: #ddd;
            border-radius: 6px;
            margin-bottom: 12px;
        }

        .results-placeholder-line:last-child {
            width: 60%;
            margin-bottom: 0;
        }

        /* Accordion Menu */
        .accordion {
            display: flex;
            flex-direction: column;
            gap: 0;
            flex: 1;
            min-height: 0;
            padding-bottom: 16px;
            margin-top: 14px;
        }

        .accordion:has(.accordion-item.active) {
            padding-bottom: 0;
        }

        .accordion:not(:has(.accordion-item.active)) {
            flex: 0 0 auto;
        }

        .accordion-search-hint {
            display: flex;
            align-items: center;
            padding: 0 0 12px 12px;
            margin-top: 30px;
            margin-bottom: 4px;
            gap: 12px;
            position: relative;
            min-height: 40px;
            flex-shrink: 0;
        }

        .accordion-search-icon {
            width: 14px;
            height: 14px;
            stroke: #1c1c1c;
            flex-shrink: 0;
        }

        .accordion-search-label {
            font-family: 'Macan', sans-serif;
            font-size: 20px;
            font-weight: 500;
            letter-spacing: 0;
            color: #1c1c1c;
            transition: opacity 0.3s ease;
            cursor: pointer;
            margin-left: 2px;
        }

        .accordion-search-label:hover {
            opacity: 0.6;
        }

        .accordion-search-hint.search-active .accordion-search-label {
            opacity: 0;
            pointer-events: none;
            position: absolute;
        }

        .accordion-search-icon {
            cursor: pointer;
            transition: opacity 0.2s ease;
        }

        .accordion-search-icon:hover {
            opacity: 0.6;
        }

        .inline-search-container {
            display: none;
            align-items: center;
            flex: 1;
            min-width: 0;
            gap: 8px;
        }

        .accordion-search-hint.search-active .inline-search-container {
            display: flex;
        }

        .inline-search-input {
            flex: 1;
            min-width: 0;
            font-family: 'Macan', sans-serif;
            font-size: 20px;
            font-weight: 500;
            letter-spacing: 0;
            color: #1c1c1c;
            background: transparent;
            border: none;
            outline: none;
            height: 28px;
        }

        .inline-search-input::placeholder {
            color: #999;
            text-transform: none;
            font-weight: 400;
            font-size: inherit;
            letter-spacing: 0;
        }

        .inline-search-close {
            width: 20px;
            height: 20px;
            border: none;
            background: #1c1c1c;
            color: #fff;
            border-radius: 50%;
            font-size: 14px;
            line-height: 1;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease;
        }

        .accordion-search-hint.has-input .inline-search-close {
            display: flex;
        }

        .inline-search-close:hover {
            background: #666;
        }

        .accordion-search-hint .search-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: transparent;
            border-radius: 0;
            max-height: calc(100vh - 200px);
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            z-index: 1000;
            margin-top: 8px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease 0.3s;
        }

        .accordion-search-hint .search-suggestions::-webkit-scrollbar {
            display: none;
        }

        .accordion-search-hint .search-suggestions.visible {
            opacity: 1;
            pointer-events: auto;
        }

        .accordion-search-hint.search-active ~ .accordion-item,
        .accordion-search-hint.has-input ~ .accordion-item {
            opacity: 0 !important;
            pointer-events: none;
            visibility: hidden;
            transition: opacity 0.15s ease, visibility 0.15s ease;
        }

        .accordion-item:not(.active) {
            flex-shrink: 0;
            transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), flex 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .accordion-item {
            position: relative;
            padding-top: 12px;
            transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), margin 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
            opacity: 1;
        }

        .accordion-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 20px;
            border: 1px solid #1c1c1c;
            border-bottom: none;
            border-radius: 14px 14px 0 0;
            transition: height 0.25s ease-out, border-color 0.2s ease;
            pointer-events: none;
        }

        .accordion-item.active {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
            overflow: hidden;
        }

        .accordion-item.active::before {
            height: calc(100% - 14px);
            border-bottom: none;
        }

        .accordion-item:last-child.active {
            margin-bottom: 0;
        }

        .accordion-item:last-child.active::before {
            height: calc(100% - 14px);
            border: 1px solid #1c1c1c;
            border-radius: 14px;
        }

        .accordion-item.active::after {
            content: '';
            position: absolute;
            top: 20px;
            left: 0;
            right: 0;
            height: calc(100% - 32px);
            border-left: 1px solid #1c1c1c;
            border-right: 1px solid #1c1c1c;
            pointer-events: none;
            animation: drawLines 0.25s ease-out forwards;
        }

        .accordion-item:last-child.active::after {
            display: none;
        }

        @keyframes drawLines {
            0% {
                clip-path: inset(0 0 100% 0);
            }
            100% {
                clip-path: inset(0 0 0% 0);
            }
        }

        @keyframes drawLinesAndClose {
            0% {
                clip-path: inset(0 0 100% 0);
                border-bottom-color: transparent;
            }
            80% {
                clip-path: inset(0 0 0% 0);
                border-bottom-color: transparent;
            }
            100% {
                clip-path: inset(0 0 0% 0);
                border-bottom-color: #1c1c1c;
            }
        }

        .accordion-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 0 12px 12px 12px;
            cursor: pointer;
            transition: opacity 0.2s ease;
            position: relative;
            z-index: 1;
        }

        .accordion-header .accordion-chevron {
            margin-left: auto;
            margin-right: 16px;
            width: 10px;
            height: 10px;
            border-left: 2px solid #1c1c1c;
            border-top: 2px solid #1c1c1c;
            transform: rotate(-135deg);
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .accordion-item.active .accordion-header .accordion-chevron {
            opacity: 1;
            transform: rotate(45deg);
            transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s;
        }

        .accordion-item.active.has-selection .accordion-header .accordion-chevron {
            opacity: 0;
            transform: rotate(45deg) scale(0.5);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .accordion-header .checkmark {
            position: absolute;
            right: 12px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #FF6F00;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: scale(0.5);
            transition: opacity 0.3s ease, transform 0.3s ease;
            cursor: pointer;
        }

        .accordion-header .checkmark:hover {
            background: #e06200;
        }

        .accordion-header .checkmark::after {
            content: '';
            width: 4px;
            height: 7px;
            border: solid #fff;
            border-width: 0 1.5px 1.5px 0;
            transform: rotate(45deg) translateY(-1px);
        }

        .accordion-header .checkmark.visible {
            opacity: 1;
            transform: scale(1);
            transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s;
        }

        .accordion-header:hover {
            opacity: 0.7;
        }

        .accordion-number {
            font-size: 10px;
            font-weight: 400;
            color: #1c1c1c;
            min-width: 16px;
        }

        .accordion-label {
            font-family: 'Macan', sans-serif;
            font-size: 20px;
            font-weight: 500;
            letter-spacing: 0em;
            color: #1c1c1c;
            white-space: nowrap;
            padding-right: 10px;
        }

        .accordion-content {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-8px);
            transition: max-height 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                        flex 0.35s cubic-bezier(0.32, 0.72, 0, 1),
                        opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1) 0.05s,
                        transform 0.3s cubic-bezier(0.32, 0.72, 0, 1) 0.05s;
        }

        .accordion-item.active:not(.classifieds-accordion-item) .accordion-content {
            opacity: 1;
            transform: translateY(0);
            max-height: none;
            flex: 1;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            min-height: 0;
            transition: max-height 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                        flex 0.35s cubic-bezier(0.32, 0.72, 0, 1),
                        opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1),
                        transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .accordion-item:last-child.active .accordion-content {
            margin-bottom: 14px;
        }

        .accordion-inner {
            padding: 8px 12px 14px 12px;
            flex: 1;
            overflow-y: auto;
            min-height: 0;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .accordion-item:last-child .accordion-inner {
            padding-bottom: 0;
        }

        .accordion-inner::-webkit-scrollbar {
            display: none;
        }

        .component-card {
            margin-bottom: 28px;
            padding: 12px 12px;
        }

        .component-thumb {
            width: 100%;
            aspect-ratio: 4 / 3;
            border-radius: 12px;
            margin-bottom: 6px;
            overflow: visible;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: box-shadow 0.3s ease;
        }

        .component-thumb img {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
            transition: transform 0.3s ease, filter 0.3s ease;
        }

        .component-thumb:hover img {
            transform: scale(1.05);
            filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
        }

        .component-card.selected {
            position: relative;
        }

        .component-card.no-thumb {
            margin-bottom: 16px;
        }

        .component-card.no-thumb .component-thumb {
            display: none;
        }

        .component-card.selected::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border: 3px solid #FF6F00;
            border-radius: 16px;
            pointer-events: none;
        }

        .component-card.selected .component-thumb {
            box-shadow: none;
        }

        .component-thumb.has-image {
            background: transparent;
        }

        .component-brand {
            font-family: 'Manrope', sans-serif;
            font-size: 18px;
            font-weight: 600;
            color: #1c1c1c;
            margin-bottom: 2px;
        }

        .component-model {
            font-family: 'Inter', sans-serif;
            font-size: 13px;
            color: #666;
        }

        /* Right Panel - Content */
        .right-panel {
            flex: 1;
            min-width: 0;
            background: #D6D1CB;
            padding: 8px 0;
            overflow: hidden;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .right-panel-container {
            flex: 1;
            background:
                radial-gradient(circle, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
                rgba(255, 255, 255, 0.3);
            background-size: 24px 24px, 100% 100%;
            border-radius: 32px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .right-panel-scroll {
            flex: 1;
            overflow: auto;
            padding: 16px 16px 16px 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .right-panel-scroll::-webkit-scrollbar {
            display: none;
        }

        /* Third Panel */
        .third-panel {
            flex: 1;
            min-width: 0;
            max-width: 0;
            background: #D6D1CB;
            padding: 8px 0;
            overflow: hidden;
            position: relative;
            display: flex;
            flex-direction: column;
            margin-right: 0;
            transition: max-width 0.8s cubic-bezier(0.32, 0.72, 0, 1);
        }

        #viewAnalyzer > .third-panel:not(.visible) {
            margin-right: -8px;
        }

        .third-panel.visible {
            max-width: none;
        }

        .container:has(.third-panel.visible) .right-panel,
        .container:has(.third-panel.visible) .third-panel {
            flex: 1 1 0;
            min-width: 0;
        }

        .third-panel-container {
            flex: 1;
            background: #E2DFDB;
            border-radius: 32px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
            transform: translateX(100%);
            transition: transform 0.8s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .third-panel.visible .third-panel-container {
            transform: translateX(0);
        }

        .third-panel-scroll {
            flex: 1;
            overflow-y: auto;
            padding: 16px 12px 16px 12px;
            display: flex;
            flex-direction: column;
        }

        .third-panel-title {
            font-family: 'Manrope', sans-serif;
            font-size: 20px;
            font-weight: 500;
            letter-spacing: 0.05em;
            color: #1c1c1c;
            text-transform: uppercase;
            margin-bottom: 24px;
            text-align: center;
        }

        /* Flow indicator decorative elements */
        .flow-indicator {
            position: absolute;
            left: -40px;
            top: 29px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            pointer-events: none;
        }

        .flow-indicator-row {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .flow-circle {
            width: 29px;
            height: 29px;
            border: 1px solid #FF6F00;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .flow-circle::before,
        .flow-circle::after {
            content: '';
            position: absolute;
            border: 1px solid #FF6F00;
            border-radius: 50%;
            animation: radiate 2s ease-out infinite;
        }

        .flow-circle::before {
            width: 38px;
            height: 38px;
        }

        .flow-circle::after {
            width: 29px;
            height: 29px;
            animation-delay: 0.5s;
        }

        @keyframes radiate {
            0% {
                transform: scale(0);
                opacity: 0.6;
            }
            100% {
                transform: scale(1.8);
                opacity: 0;
            }
        }

        .flow-circle-inner {
            width: 14px;
            height: 14px;
            background: #FF6F00;
            border-radius: 50%;
        }

        .flow-arrows-horizontal {
            display: flex;
            align-items: center;
            gap: 2px;
            margin-left: 14px;
        }

        .flow-arrows-horizontal .flow-arrow {
            font-size: 18px;
            color: #FF6F00;
            line-height: 1;
        }

        .flow-indicator .signal-chain-label {
            position: relative;
            top: 0;
            left: -4px;
            font-family: 'Inter', sans-serif;
            font-size: 9px;
            font-weight: 500;
            letter-spacing: 0.08em;
            color: #FF6F00;
            white-space: nowrap;
        }

        .flow-arrows {
            position: absolute;
            top: 96px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
        }

        .drop-zone-arrows {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            margin: 14px 0;
            width: 289px;
            position: relative;
        }

        .drop-zone-arrows.bottom-arrows {
            opacity: 0;
            animation: fadeInUp 0.4s ease-out 0.5s forwards;
            margin-top: 7px;
        }

        .bottom-arrows-row {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
        }

        .signal-chain-label {
            position: absolute;
            left: calc(50% + 22px);
            top: 50%;
            transform: translateY(-50%);
            font-family: 'Inter', sans-serif;
            font-size: 9px;
            font-weight: 500;
            letter-spacing: 0.08em;
            color: #FF6F00;
            white-space: nowrap;
        }

        .arc-label {
            position: absolute;
            right: -260px;
            top: 50%;
            transform: translateY(-50%);
            font-family: 'Inter', sans-serif;
            font-size: 9px;
            font-weight: 500;
            letter-spacing: 0.08em;
            color: #FF6F00;
            white-space: nowrap;
        }

        .arc-label.arc-label-left {
            right: auto;
            left: -102px;
        }

        .arc-label.arc-label-first {
            left: -88px;
        }

        .arc-label.arc-label-right {
            right: -74px;
        }

        .signal-chain-label,
        .arc-label,
        .flow-indicator {
            transition: opacity 0.3s ease;
        }

        .drop-zone-arrows .flow-arrow,
        .flow-arrow {
            font-size: 18px;
            color: #FF6F00;
            line-height: 1;
        }

        .result-container {
            max-width: 600px;
        }

        .result-title {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.08em;
            color: #1c1c1c;
            margin-bottom: 24px;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .result-title.visible {
            opacity: 1;
        }

        .result-card {
            background: #fff;
            border-radius: 12px;
            padding: 24px;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .result-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .result-card h3 {
            font-size: 15px;
            font-weight: 600;
            color: #1c1c1c;
            margin-bottom: 16px;
        }

        .result-card p {
            font-size: 13px;
            line-height: 1.6;
            color: #666;
            margin-bottom: 12px;
        }

        .rating-badge {
            display: inline-block;
            padding: 6px 14px;
            background: #2ecc71;
            color: #fff;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.03em;
            border-radius: 20px;
            margin-bottom: 16px;
        }

        .spec-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin: 20px 0;
        }

        .spec-box {
            background: #f9f9f9;
            border-radius: 8px;
            padding: 14px;
        }

        .spec-box h4 {
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.05em;
            color: #999;
            text-transform: uppercase;
            margin-bottom: 8px;
        }

        .spec-box p {
            font-size: 12px;
            margin-bottom: 4px;
            color: #1c1c1c;
        }

        /* AI Loading Spinner */
        .ai-loading-spinner {
            display: inline-block;
            width: 14px;
            height: 14px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: ai-spin 0.8s linear infinite;
        }

        @keyframes ai-spin {
            to { transform: rotate(360deg); }
        }

        /* Empty state */
        .empty-state {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            font-size: 13px;
            color: #999;
            font-style: italic;
        }

        /* Drop zones */
        .drop-zones {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0;
            padding: 40px;
            padding-top: 0;
            margin-top: 100px;
            margin-left: 9px;
            transform-origin: top center;
            transition: transform 0.3s ease;
            position: relative;
        }

        /* Staggered entrance animations for analyzer elements */
        .drop-zones > :nth-child(1) {
            opacity: 0;
            animation: fadeInUp 0.35s ease-out 0.1s forwards;
        }

        .drop-zones > :nth-child(2) {
            opacity: 0;
            animation: fadeInUp 0.35s ease-out 0.15s forwards;
        }

        .drop-zones > :nth-child(3) {
            opacity: 0;
            animation: fadeInUp 0.35s ease-out 0.2s forwards;
        }

        .drop-zones > :nth-child(4) {
            opacity: 0;
            animation: fadeInUp 0.35s ease-out 0.28s forwards;
        }

        .drop-zones > :nth-child(5) {
            opacity: 0;
            animation: fadeInUp 0.35s ease-out 0.35s forwards;
        }

        .drop-zones > :nth-child(6) {
            opacity: 0;
            animation: fadeInUp 0.35s ease-out 0.43s forwards;
        }

        .drop-zones > :nth-child(7):not(.flower-arrows) {
            opacity: 0;
            animation: fadeInUp 0.35s ease-out 0.5s forwards;
        }

        @keyframes fadeInScale {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @media (max-height: 1050px) {
            .drop-zones {
                transform: scale(0.95);
            }
        }

        @media (max-height: 950px) {
            .drop-zones {
                transform: scale(0.85);
            }
        }

        @media (max-height: 850px) {
            .drop-zones {
                transform: scale(0.75);
            }
        }

        @media (max-height: 750px) {
            .drop-zones {
                transform: scale(0.65);
            }
        }

        @media (max-height: 650px) {
            .drop-zones {
                transform: scale(0.55);
            }
        }

        @media (max-width: 700px) {
            #viewAnalyzer .drop-zones {
                margin-top: 82px;
                transform: scale(0.8);
            }

            #viewAnalyzer .drop-zone {
                height: 84px;
            }

            #viewAnalyzer .chain-connector {
                height: 16px;
            }
        }

        @media (max-width: 700px) {
            #viewAnalyzer .right-panel-container {
                border-radius: 24px;
            }

            #viewAnalyzer .drop-zones {
                padding-top: 72px;
            }

            #viewAnalyzer .flow-indicator {
                left: calc(50% - 40px);
                top: 12px;
                width: 80px;
                transform: none;
            }

            #viewAnalyzer .flow-indicator .signal-chain-label {
                left: 0;
            }

            #viewAnalyzer .flow-indicator-row {
                justify-content: center;
            }

            #viewAnalyzer .thunder-icon {
                transform: none;
                animation-name: thunderPulseMobile;
            }

            #viewAnalyzer .flow-indicator .flow-arrows-horizontal {
                display: none;
            }
        }

        @media (max-width: 500px) {
            .container:has(.third-panel.visible) .arc-label,
            .container:has(.third-panel.visible) .flow-indicator,
            .container:has(.third-panel.visible) .signal-chain-label,
            .container:has(.third-panel.visible) .room-size-toggle {
                opacity: 0 !important;
                pointer-events: none;
            }
        }

        @keyframes thunderPulseMobile {
            0%, 100% {
                opacity: 1;
                transform: scale(1);
                filter: drop-shadow(0 0 0 transparent);
            }
            50% {
                opacity: 1;
                transform: scale(1.3);
                filter: drop-shadow(0 0 8px rgba(255, 111, 0, 0.6));
            }
        }

        @media (max-width: 600px) {
            .container:has(.third-panel.visible) .chain-connector::before {
                opacity: 0;
            }
        }

        /* Orange text labels always hide when third panel is visible */
        .container:has(.third-panel.visible) .arc-label,
        .container:has(.third-panel.visible) .flow-indicator,
        .container:has(.third-panel.visible) .signal-chain-label {
            opacity: 0 !important;
            pointer-events: none;
        }

        /* Curved arc lines and page nav hide at narrower viewport when third panel visible */
        @media (max-width: 1200px) {
            .container:has(.third-panel.visible) .chain-connector::before,
            .container:has(.third-panel.visible) .page-nav {
                opacity: 0 !important;
                pointer-events: none;
            }
        }

        @media (max-width: 1500px) {
            .container:has(.third-panel.visible) .room-size-toggle {
                opacity: 0 !important;
                pointer-events: none;
            }
        }

        /* Responsive: collapsible left menu at different breakpoints based on third panel state */
        @media (max-width: 1400px) {
            .container:has(.third-panel.visible) .left-panel {
                position: fixed;
                left: 72px;
                top: 0;
                bottom: 0;
                width: 340px;
                z-index: 1001;
                opacity: 0;
                pointer-events: none;
                transform: translateX(calc(-100% - 72px));
                box-shadow: 4px 0 20px rgba(0,0,0,0.15);
            }
            .container:has(.third-panel.visible) .left-panel.menu-open {
                opacity: 1;
                pointer-events: auto;
                transform: translateX(0);
                transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease;
            }
            .container:has(.third-panel.visible) .menu-hover-trigger,
            .container:has(.third-panel.visible) .menu-scrim { display: block; }
        }

        /* Research view: slide left panel when viewport shrinks (no third panel) */
        @media (max-width: 900px) {
            #viewAnalyzer:not(:has(.third-panel.visible)) .left-panel {
                flex: 0 0 0px;
                min-width: 0;
                max-width: 0;
                padding: 0;
                margin: 0;
                opacity: 0;
                transform: translateX(-100%);
                pointer-events: none;
                overflow: hidden;
                transition: none;
            }
        }

        @media (max-width: 900px) {
            .right-panel { flex: 1; }
            .third-panel.visible { flex: 1; }

            #viewAnalyzer {
                transition: none !important;
            }
        }

        .menu-scrim {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            display: none;
        }

        .menu-scrim.visible {
            opacity: 1;
            pointer-events: auto;
        }

        .menu-hover-trigger {
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            width: 20px;
            z-index: 999;
            display: none;
        }

        /* Responsive: shrink analyzer boxes at narrow viewports */
        /* With third panel: apply at 1100px */
        @media (max-width: 1100px) {
            .container:has(.third-panel.visible) .drop-zone-wrapper,
            .container:has(.third-panel.visible) .drop-zone,
            .container:has(.third-panel.visible) .chain-connector {
                width: 100%;
                max-width: 289px;
            }

            .container:has(.third-panel.visible) .drop-zone {
                box-sizing: border-box;
            }

            .container:has(.third-panel.visible) .right-panel {
                padding: 8px 0;
                overflow: hidden;
            }

            .container:has(.third-panel.visible) .third-panel {
                padding: 8px 0;
            }

            .container:has(.third-panel.visible) .right-panel-scroll {
                padding: 20px 12px;
                overflow-x: hidden;
                overflow-y: auto;
            }

            .container:has(.third-panel.visible) .drop-zones {
                width: 100%;
                align-items: center;
                padding: 20px 0;
                margin-left: 0;
            }
        }

        /* Without third panel: apply at 700px */
        @media (max-width: 700px) {
            .container:not(:has(.third-panel.visible)) .drop-zone-wrapper,
            .container:not(:has(.third-panel.visible)) .drop-zone,
            .container:not(:has(.third-panel.visible)) .chain-connector {
                width: 100%;
                max-width: 289px;
            }

            .container:not(:has(.third-panel.visible)) .drop-zone {
                box-sizing: border-box;
            }

            .container:not(:has(.third-panel.visible)) .right-panel {
                padding: 8px 0;
                overflow: hidden;
            }

            .container:not(:has(.third-panel.visible)) .right-panel-scroll {
                padding: 20px 12px;
                overflow-x: hidden;
                overflow-y: auto;
            }

            .container:not(:has(.third-panel.visible)) .drop-zones {
                width: 100%;
                align-items: center;
                padding: 20px 0;
                margin-left: 0;
            }
        }

        /* Hide third panel on small screens */
        @media (max-width: 700px) {
            .third-panel {
                display: none !important;
            }
        }

        /* Hide right panels on very small viewports */
        @media (max-width: 740px) {
            .classifieds-right-column {
                display: none !important;
            }
        }

        .drop-zone-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 289px;
        }

        .drop-zone {
            width: 289px;
            height: 109px;
            border: none;
            border-radius: 27px;
            background: #E8E5E0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
            transition: background 0.4s ease, filter 0.4s ease, transform 0.2s ease;
            position: relative;
        }

        .drop-zone::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 27px;
            background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='27' ry='27' stroke='%23333' stroke-width='2' stroke-dasharray='4%2c 4' stroke-linecap='square'/%3e%3c/svg%3e");
            pointer-events: none;
            opacity: 1;
            transition: opacity 0.4s ease-in-out;
        }

        .drop-zone.marching::before {
            background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='27' ry='27' stroke='%23333' stroke-width='2' stroke-dasharray='4%2c 4' stroke-linecap='square'%3e%3canimate attributeName='stroke-dashoffset' values='0;-8' dur='0.4s' calcMode='spline' keySplines='0.4 0 0.2 1' repeatCount='indefinite'/%3e%3c/rect%3e%3c/svg%3e");
            animation: marchFade 2s ease-in-out;
        }

        @keyframes marchFade {
            0% { opacity: 0.5; }
            15% { opacity: 1; }
            85% { opacity: 1; }
            100% { opacity: 0.5; }
        }

        .right-panel.dragging .drop-zone.eligible::before {
            background-image: none;
            border: 5px solid #FF6F00;
        }

        .right-panel.dragging .drop-zone.eligible {
            box-shadow: 0 0 20px rgba(255, 111, 0, 0.6);
        }

        .chain-connector {
            width: 289px;
            height: 28px;
            background: transparent;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1;
            margin: 0 auto;
            overflow: visible;
        }

        .chain-connector::before {
            content: '';
            position: absolute;
            width: 68px;
            height: 136px;
            border: 1px solid #333;
            top: -55px;
            clip-path: inset(0 0 0 0);
            transition: border-color 0.4s ease,
                        border-width 0.4s ease,
                        border-radius 0.4s ease,
                        right 0.4s ease,
                        left 0.4s ease,
                        opacity 0.3s ease;
        }

        /* Right side arcs (1st, 3rd, and 5th connectors) */
        .drop-zone-wrapper:nth-of-type(3) .chain-connector::before,
        .drop-zone-wrapper:nth-of-type(5) .chain-connector::before {
            right: -76px;
            left: auto;
            border-radius: 0 68px 68px 0;
            border-left: none;
        }

        /* Left side arcs (2nd and 4th connectors) */
        .drop-zone-wrapper:nth-of-type(4) .chain-connector::before,
        .drop-zone-wrapper:nth-of-type(6) .chain-connector::before {
            left: -76px;
            right: auto;
            border-radius: 68px 0 0 68px;
            border-right: none;
        }

        .chain-connector.active {
            background: transparent;
        }

        .chain-connector.active::before {
            border-color: #FF6F00;
            border-width: 6px;
            animation: drawArc 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
            filter: drop-shadow(0 6px 16px rgba(255, 111, 0, 0.35));
        }

        .physics-wire-enabled .chain-connector.active::before {
            opacity: 0;
            animation: none;
        }

        .physics-wires {
            position: fixed;
            inset: 0;
            width: 100vw;
            height: 100vh;
            overflow: visible;
            pointer-events: none;
            z-index: 2;
        }

        .physics-wire {
            fill: none;
            stroke: #E53935;
            stroke-width: 3.6;
            stroke-linecap: round;
            stroke-linejoin: round;
            filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.20));
        }

        .physics-wire[data-chain="1-2"] {
            stroke: #2164D7;
        }

        .physics-wire[data-chain="2-3"] {
            stroke: #E5B800;
        }

        .physics-wire[data-chain="3-4"] {
            stroke: #228B4E;
        }

        .physics-wire-socket {
            fill: #171717;
        }

        @keyframes drawArc {
            0% {
                clip-path: inset(0 0 100% 0);
            }
            99.9% {
                clip-path: inset(0 0 0 0);
            }
            100% {
                clip-path: none;
            }
        }

        .connector-arrow {
            font-size: 18px;
            color: #FF6F00;
            line-height: 1;
        }

        /* Move arcs to touch boxes when active */
        .drop-zone-wrapper:nth-of-type(3) .chain-connector.active::before,
        .drop-zone-wrapper:nth-of-type(5) .chain-connector.active::before {
            right: -68px;
            border-radius: 0 136px 136px 0;
        }

        .drop-zone-wrapper:nth-of-type(4) .chain-connector.active::before,
        .drop-zone-wrapper:nth-of-type(6) .chain-connector.active::before {
            left: -68px;
            border-radius: 136px 0 0 136px;
        }

        .chain-bridge {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: -4px;
            width: 50px;
            height: 36px;
            overflow: hidden;
            pointer-events: none;
            fill: #FF6F00;
            filter: url(#chainBridgeMerge);
        }

        .chain-bridge path {
            d: path('M -6 -8 L -6 4 C 8 4 18 4 18 17.5 C 18 27 32 27 32 17.5 C 32 4 42 4 56 4 L 56 -8 Z');
            animation: growChainTeardrop 0.38s cubic-bezier(0.25, 0, 0.3, 1) both;
        }

        .chain-connector.active .connector-arrow {
            visibility: hidden;
        }

        @keyframes growChainTeardrop {
            0% {
                d: path('M -6 -8 L -6 4 C 8 4 14 4 14 4 C 14 4 36 4 36 4 C 36 4 42 4 56 4 L 56 -8 Z');
                animation-timing-function: cubic-bezier(0.45, 0, 0.8, 0.55);
            }
            35% {
                d: path('M -6 -8 L -6 4 C 8 4 18 4 17 9 C 14 19 36 19 33 9 C 32 4 42 4 56 4 L 56 -8 Z');
                animation-timing-function: cubic-bezier(0.2, 0.45, 0.4, 1);
            }
            62% {
                d: path('M -6 -8 L -6 4 C 8 4 17 4 17 17.5 C 17 27.5 33 27.5 33 17.5 C 33 4 42 4 56 4 L 56 -8 Z');
                animation-timing-function: cubic-bezier(0.2, 0, 0.2, 1);
            }
            100% {
                d: path('M -6 -8 L -6 4 C 8 4 18 4 18 17.5 C 18 27 32 27 32 17.5 C 32 4 42 4 56 4 L 56 -8 Z');
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .chain-bridge path {
                animation: none;
            }
        }

        .drop-zone-label {
            font-family: 'Manrope', sans-serif;
            font-size: 22px;
            font-weight: 600;
            letter-spacing: 0.08em;
            color: #333;
            text-transform: uppercase;
        }

        .drop-zone.drag-over {
            background: #FF6F00;
            filter: drop-shadow(0 8px 24px rgba(255, 111, 0, 0.6));
            transform: scale(1.08);
        }

        .drop-zone.drag-over::before {
            display: none;
        }

        .right-panel.dragging .drop-zone.drag-over .drop-zone-label {
            color: #1c1c1c;
            animation: labelFadeIn 0.4s ease-out;
        }

        /* Dragging state - dim non-eligible elements */
        .drop-zone-arrows,
        .chain-connector {
            transition: opacity 0.4s ease;
        }

        .right-panel.dragging .drop-zone-arrows,
        .right-panel.dragging .chain-connector {
            opacity: 0.2;
        }

        .drop-zone {
            transition: opacity 0.4s ease, background 0.2s ease, filter 0.2s ease, transform 0.2s ease;
        }

        .right-panel.dragging .drop-zone {
            opacity: 0.2;
        }

        .right-panel.dragging .drop-zone.eligible {
            opacity: 1;
        }

        .right-panel.dragging .drop-zone.eligible .drop-zone-label {
            animation: labelFadeIn 0.4s ease-out;
        }

        @keyframes labelFadeIn {
            0% {
                opacity: 0;
                transform: translateY(8px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .right-panel.dragging .drop-zone.drag-over {
            opacity: 1;
        }

        @keyframes labelPulse {
            0% {
                opacity: 0;
                transform: scale(0.9);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }

        .drop-zone.filled {
            border: none;
            background: #FF6F00;
            padding: 12px;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            filter: drop-shadow(0 8px 20px rgba(255, 111, 0, 0.5));
            overflow: hidden;
        }

        .drop-zone.filled::before {
            display: none;
        }

        .drop-zone.filled .drop-zone-label {
            display: none;
        }

        .diagram-intro .drop-zone:not(.filled) {
            background: #FF6F00;
            filter: drop-shadow(0 8px 20px rgba(255, 111, 0, 0.5));
            transition: none;
        }

        .diagram-intro .drop-zone:not(.filled)::before {
            opacity: 0;
            animation: none;
            transition: none;
        }

        .diagram-intro-out .drop-zone:not(.filled) {
            transition: background 0.6s ease, filter 0.6s ease;
        }

        .physics-wires .physics-wire,
        .physics-wires .physics-wire-socket {
            transition: opacity 0.5s ease;
        }

        .drop-zone-remove {
            display: none;
            position: absolute;
            top: 10px;
            right: 10px;
            width: 24px;
            height: 24px;
            background: rgba(0, 0, 0, 0.2);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 14px;
            color: #1c1c1c;
            line-height: 1;
            transition: background 0.2s ease;
        }

        .drop-zone-remove:hover {
            background: rgba(0, 0, 0, 0.3);
        }

        .drop-zone.filled .drop-zone-remove {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .drop-zone.filled .dropped-item {
            color: #1c1c1c;
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
        }

        .dropped-item {
            display: none;
        }

        .dropped-thumb {
            width: 85px;
            height: 85px;
            background: #D9D9D9;
            border-radius: 18px;
            flex-shrink: 0;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
        }

        .dropped-thumb img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .dropped-info {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-width: 0;
        }

        .dropped-brand {
            font-family: 'Manrope', sans-serif;
            font-size: 18px;
            font-weight: 600;
            color: #1c1c1c;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .dropped-model {
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            color: rgba(0, 0, 0, 0.7);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Draggable cards */
        .component-card {
            margin-bottom: 16px;
            cursor: grab;
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .component-card:active {
            cursor: grabbing;
        }

        .component-card.dragging {
            opacity: 0.5;
            transform: scale(0.98);
        }

        .panel-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 12px 8px 12px;
            margin-top: auto;
        }

        .auth-hint {
            font-family: 'Inter', sans-serif;
            font-size: 11px;
            color: #1c1c1c;
            text-align: center;
            margin-bottom: 16px;
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .accordion:has(.accordion-item.active) ~ .auth-hint,
        .accordion:has(.accordion-search-hint.has-input) ~ .auth-hint {
            opacity: 0;
            transform: translateY(30px);
            pointer-events: none;
            height: 0;
            margin: 0;
            overflow: hidden;
        }

        /* Post-it Note */
        .post-it {
            background: linear-gradient(135deg, #2d5a3d 0%, #1e4d2b 100%);
            padding: 14px;
            margin: 0 auto 20px;
            position: relative;
            flex-shrink: 0;
            left: 0;
            transform: rotate(-1deg) scale(0.8);
            box-shadow:
                2px 3px 8px rgba(0,0,0,0.18),
                inset 0 -2px 3px rgba(0,0,0,0.08);
            font-family: 'Macan', 'Inter', sans-serif;
            font-size: 22px;
            font-weight: 200;
            line-height: 1.5;
            color: #fff;
            aspect-ratio: 1 / 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .post-it::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 12px;
            background: rgba(30, 60, 40, 0.6);
            border-radius: 0 0 3px 3px;
        }

        .post-it-dismiss {
            position: absolute;
            top: -12px;
            right: -16px;
            width: 48px;
            height: 48px;
            background: #DFFF00;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: 600;
            color: #000;
            line-height: 1;
            transition: transform 0.15s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }

        .post-it-dismiss:hover {
            transform: scale(1.1);
        }

        .post-it p {
            margin: 0;
        }

        .accordion:has(.accordion-item.active) ~ .post-it,
        .accordion:has(.accordion-search-hint.has-input) ~ .post-it {
            opacity: 0;
            transform: translateY(30px) rotate(-1deg);
            pointer-events: none;
            height: 0;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }

        .auth-buttons {
            display: flex;
            gap: 8px;
            padding: 0;
            margin-top: auto;
            margin-bottom: -6px;
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.5s ease 0.05s, transform 0.5s ease 0.05s;
        }

        .accordion:has(.accordion-item.active) ~ .auth-buttons,
        .accordion:has(.accordion-search-hint.has-input) ~ .auth-buttons {
            opacity: 0;
            transform: translateY(30px);
            pointer-events: none;
            height: 0;
            margin: 0;
            overflow: hidden;
        }

        .accordion:has(.accordion-item.active) ~ .panel-footer,
        .accordion:has(.accordion-search-hint.has-input) ~ .panel-footer {
            opacity: 0;
            transform: translateY(30px);
            pointer-events: none;
            height: 0;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }

        .panel-footer {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
        }

        .auth-btn {
            flex: 1;
            padding: 8px 20px;
            font-family: 'Inter', sans-serif;
            font-size: 13px;
            font-weight: 500;
            border-radius: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .login-btn {
            background: transparent;
            border: 1px solid #ccc;
            color: #ccc;
            pointer-events: none;
            cursor: default;
        }

        .login-btn:hover {
            background: transparent;
            color: #ccc;
        }

        .signup-btn {
            background: transparent;
            border: 1px solid #ccc;
            color: #ccc;
            pointer-events: none;
            cursor: default;
        }

        .signup-btn:hover {
            background: transparent;
            color: #ccc;
        }

        .logout-btn {
            background: transparent;
            border: 1px solid #1c1c1c;
            color: #1c1c1c;
        }

        .logout-btn:hover {
            background: #1c1c1c;
            color: #fff;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
        }

        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }

        .user-avatar-placeholder {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #ccc;
        }

        .user-name {
            font-family: 'Inter', sans-serif;
            font-size: 12px;
            font-weight: 500;
            color: #1c1c1c;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .hifi-love {
            font-family: 'Inter', sans-serif;
            font-size: 11px;
            color: #1c1c1c;
        }

        .copyright {
            font-family: 'Inter', sans-serif;
            font-size: 11px;
            color: #1c1c1c;
        }

        .hifi-thumbnail-wrapper {
            position: absolute;
            bottom: 44px;
            right: 44px;
            width: 100px;
            border-radius: 12px;
            overflow: visible;
            cursor: pointer;
            opacity: 0;
            animation: fadeInUp 0.5s ease-out 0.4s forwards;
            z-index: 100;
        }

        .hifi-thumbnail-wrapper .hifi-label {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
            font-family: 'Inter', sans-serif;
            font-size: 11px;
            color: #666;
            opacity: 1;
            line-height: 1.4;
            white-space: nowrap;
            transition: opacity 0.3s ease;
        }

        .hifi-thumbnail-wrapper .hifi-label-top {
            bottom: 100%;
            margin-bottom: 8px;
        }

        .hifi-thumbnail-wrapper .thumb-container {
            width: 75px;
            height: 75px;
            border-radius: 12px;
            overflow: hidden;
            position: relative;
            margin-left: 15px;
        }

        .hifi-thumbnail-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: opacity 0.3s ease;
        }

        .hifi-thumbnail-wrapper img.static {
            opacity: 0;
        }

        .hifi-thumbnail-wrapper img.gif {
            position: absolute;
            top: 0;
            left: 0;
            opacity: 1;
        }

        .container:has(.third-panel.visible) .hifi-thumbnail-wrapper {
            opacity: 0 !important;
            pointer-events: none;
        }

        .room-size-toggle {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 77px;
            height: 77px;
            background: #D6FA43;
            opacity: 0;
            animation: fadeInUp 0.5s ease-out 0.35s forwards;
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            cursor: pointer;
            transition: transform 0.2s ease, opacity 0.3s ease;
            z-index: 100;
            user-select: none;
        }

        .add-button {
            position: absolute;
            bottom: 20px;
            left: 20px;
            width: 67px;
            height: 67px;
            background: #FF6F00;
            opacity: 0;
            animation: fadeInUp 0.5s ease-out 0.4s forwards;
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            cursor: pointer;
            transition: transform 0.2s ease, opacity 0.3s ease, background 0.3s ease;
            z-index: 100;
            user-select: none;
        }

        .add-button.disabled {
            background: #dadada;
            cursor: default;
            pointer-events: none;
        }

        .add-button.disabled .save-icon path {
            stroke: #999;
        }

        .add-button.disabled .label {
            color: #999;
        }

        .add-button:hover:not(.disabled) {
            transform: scale(1.1);
            box-shadow: 0 8px 24px rgba(255, 111, 0, 0.5);
        }

        .add-button:active:not(.disabled) {
            transform: scale(0.85);
            transition: transform 0.1s ease;
        }

        .add-button.animated {
            animation: none;
            opacity: 1;
        }

        .add-button .plus-icon {
            font-size: 20px;
            font-weight: 300;
            color: #333;
            line-height: 1;
        }

        .add-button .label {
            font-family: 'Inter', sans-serif;
            font-size: 7px;
            font-weight: 500;
            color: #333;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .trash-button {
            position: absolute;
            bottom: 45px;
            left: 93px;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.2s ease, opacity 0.2s ease;
            z-index: 100;
            opacity: 0.8;
        }

        .trash-button.visible {
            display: flex;
        }

        .trash-button:hover {
            transform: scale(1.1);
            opacity: 1;
        }

        .trash-button:active {
            transform: scale(0.9);
        }

        .trash-button svg path {
            stroke: #444;
        }

        .page-nav {
            position: absolute;
            top: 50%;
            transform: translateY(calc(-50% - 20px));
            left: 53.5px;
            margin-left: -38px;
            display: none;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            z-index: 100;
        }

        .page-nav.visible {
            display: flex;
        }

        .page-nav-dots {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .page-nav-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #ccc;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease;
        }

        .page-nav-dot:hover {
            transform: scale(1.2);
        }

        .page-nav-dot.active {
            background: #FF6F00;
        }

        .page-nav-arrow {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #333;
            transition: color 0.2s ease;
        }

        .page-nav-arrow:hover {
            color: #111;
        }

        .page-nav-arrow.disabled {
            opacity: 0.3;
            pointer-events: none;
        }

        .drop-zones-container {
            position: relative;
            overflow: hidden;
            flex: 1;
        }

        .drop-zones-wrapper {
            transition: transform 0.4s ease;
        }

        .system-name-input {
            position: absolute;
            top: 36px;
            left: 20px;
            width: 180px;
            font-family: 'Inter', sans-serif;
            font-size: 20px;
            font-weight: 500;
            color: #999;
            background: transparent;
            border: none;
            border-bottom: 1px solid #ccc;
            padding: 4px 0;
            outline: none;
            opacity: 0;
            animation: fadeInUp 0.5s ease-out 0.3s forwards;
            z-index: 100;
            text-transform: uppercase;
            letter-spacing: 0.02em;
        }

        .system-name-input::placeholder {
            color: #ccc;
        }

        .system-name-input:focus {
            border-bottom-color: #999;
            color: #666;
        }

        .thunder-icon {
            width: 29px;
            height: 29px;
            display: flex;
            align-items: center;
            justify-content: center;
            transform: translateX(16px);
            animation: thunderPulse 1.5s ease-in-out infinite;
        }

        @keyframes thunderPulse {
            0%, 100% {
                opacity: 1;
                transform: translateX(16px) scale(1);
                filter: drop-shadow(0 0 0 transparent);
            }
            50% {
                opacity: 1;
                transform: translateX(16px) scale(1.3);
                filter: drop-shadow(0 0 8px rgba(255, 111, 0, 0.6));
            }
        }

        @keyframes fadeInUpRotate {
            from {
                opacity: 0;
                transform: translateY(20px) rotate(30deg) scale(1);
            }
            to {
                opacity: 1;
                transform: rotate(30deg) scale(1);
            }
        }

        .room-size-toggle.animated {
            animation: none;
            opacity: 1;
        }

        .room-size-toggle.animated:hover {
            transform: scale(1.1);
        }

        .room-size-toggle.animated:active {
            transform: scale(0.85);
            transition: transform 0.1s ease;
        }

        .room-size-toggle .label {
            font-family: 'Inter', sans-serif;
            font-size: 7px;
            font-weight: 500;
            color: #333;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .room-size-toggle .sizes {
            display: flex;
            gap: 3px;
        }

        .room-size-toggle .size-option {
            font-family: 'Inter', sans-serif;
            font-size: 11px;
            font-weight: 400;
            color: #333;
            cursor: pointer;
            opacity: 0.35;
            transition: opacity 0.2s ease, font-weight 0.2s ease;
        }

        .room-size-toggle .size-option:hover,
        .room-size-toggle .size-option.active {
            opacity: 1;
            font-weight: 600;
        }

        .flower-animation {
            display: flex;
            justify-content: center;
            width: 231px;
            height: 112px;
            margin: -18px 0 10px 0;
            overflow: hidden;
            opacity: 0;
            transform: scale(1) translateY(0);
            animation: fadeInUp 0.4s ease-out 0.55s forwards;
            transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .flower-animation canvas {
            width: auto;
            height: 100%;
        }

        .drop-zone-arrows.flower-arrows {
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.4s ease, transform 0.4s ease;
            margin-top: -65px;
            overflow: visible;
        }

        .drop-zone-arrows.flower-arrows.visible {
            opacity: 1;
            transform: translateY(-6px);
        }

        .drop-zone-arrows.flower-arrows.visible .flow-arrow {
            animation: bounceDown 1.5s ease-in-out infinite;
        }

        .drop-zone-arrows.flower-arrows.visible .flow-arrow:nth-child(1) {
            animation-delay: 0s;
        }

        .drop-zone-arrows.flower-arrows.visible .flow-arrow:nth-child(2) {
            animation-delay: 0.15s;
        }

        .drop-zone-arrows.flower-arrows.visible .flow-arrow:nth-child(3) {
            animation-delay: 0.3s;
        }

        @keyframes flowerFadeOut {
            0% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
            100% {
                opacity: 0;
                transform: scale(0.6) translateY(20px);
            }
        }

        .flower-animation.force-visible,
        .drop-zones.has-selection .flower-animation.force-visible {
            opacity: 1 !important;
            pointer-events: auto;
            transform: scale(1);
            animation: flowerBounceIn 0.8s ease-out both;
        }

        @keyframes flowerBounceIn {
            0% {
                opacity: 0;
                transform: scale(0.3);
            }
            50% {
                transform: scale(1.1);
            }
            70% {
                transform: scale(0.95);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes bounceDown {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(6px); }
        }

        .right-panel-content {
            display: flex;
            align-items: flex-start;
            position: relative;
        }

        /* AI Analysis Section */
        #analysisContent {
            padding-top: 28px;
        }

        .ai-analysis-container {
            padding: 0 40px 32px 40px;
            margin-bottom: 24px;
        }

        .analyzing-indicator {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .mini-flower-canvas {
            width: 20px;
            height: 20px;
        }

        .ai-analysis-content {
            font-size: 15px;
            color: #444;
            line-height: 1.7;
        }

        .ai-analysis-content.disabled {
            font-size: 12px;
            color: #999;
            font-style: italic;
            text-align: center;
        }

        @keyframes textFadeIn {
            from {
                opacity: 0;
                filter: blur(1px);
            }
            to {
                opacity: 1;
                filter: blur(0);
            }
        }

        .streaming-text {
            animation: textFadeIn 0.4s ease-out forwards;
        }

        /* Menu width consistency across pages - at end for cascade priority */
        #meLeftPanel,
        #classifiedsLeftPanel,
        #viewAnalyzer > .left-panel {
            width: 294px !important;
        }
        #meLeftPanel {
            padding-right: 8px;
        }
        #viewAnalyzer > .left-panel {
            flex-basis: 294px !important;
            align-self: center;
            height: calc(100% - 16px);
            background: #E2DFDB;
            border-radius: 0 32px 32px 0;
            padding: 28px 24px;
            overflow-y: auto;
        }
        #viewAnalyzer {
            background: #D6D1CB;
            gap: 8px;
            padding: 0 8px 0 0;
        }
        #viewAnalyzer > .right-panel {
            padding: 8px 0 !important;
            background: #D6D1CB !important;
        }
        #viewAnalyzer > .third-panel {
            padding: 8px 0 !important;
        }

        /* Nav rail should have radius in Buy/Sell view at narrow viewports (but not mobile) */
        @media (min-width: 501px) and (max-width: 900px) {
            .nav-rail {
                border-radius: 0 32px 32px 0 !important;
            }

            /* Hide scrollbar but allow scroll */
            * {
                scrollbar-width: none !important;
                -ms-overflow-style: none !important;
            }
            *::-webkit-scrollbar {
                display: none !important;
                width: 0 !important;
                height: 0 !important;
            }

            #viewClassifieds .classifieds-content-area {
                padding-right: 8px !important;
            }

            #viewClassifieds .classifieds-grid {
                grid-template-columns: repeat(2, 1fr) !important;
            }

            #viewClassifieds .classifieds-content-area {
                padding-right: 8px !important;
            }

            #viewClassifieds .classifieds-grid {
                grid-template-columns: repeat(2, 1fr) !important;
            }

            /* Make search and post buttons match chat/star buttons */
            #viewClassifieds .classifieds-search {
                width: 56px !important;
                height: 56px !important;
                min-width: 56px !important;
                background: transparent !important;
                border: 1px solid #1c1c1c !important;
                border-radius: 28px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
            }

            #viewClassifieds .classifieds-search-input {
                width: 56px !important;
                height: 56px !important;
                border: none !important;
                padding: 0 !important;
                background: transparent !important;
                cursor: pointer !important;
                position: absolute !important;
                top: 0 !important;
                left: 0 !important;
                color: transparent !important;
                font-size: 0 !important;
                opacity: 0 !important;
                transition: none !important;
            }

            #viewClassifieds .classifieds-search-input::placeholder {
                color: transparent !important;
            }

            #viewClassifieds .classifieds-search .search-icon {
                position: absolute !important;
                left: 50% !important;
                top: 50% !important;
                transform: translate(-50%, -50%) !important;
                stroke: #1c1c1c !important;
                width: 22px !important;
                height: 22px !important;
                transition: stroke 0.15s ease !important;
            }

            #viewClassifieds .classifieds-post-btn {
                width: 56px !important;
                height: 56px !important;
                min-width: 56px !important;
                padding: 0 !important;
                background: transparent !important;
                border: 1px solid #1c1c1c !important;
                border-radius: 28px !important;
                font-size: 0 !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                text-indent: -9999px !important;
                overflow: hidden !important;
                gap: 0 !important;
            }

            #viewClassifieds .classifieds-post-btn svg {
                width: 22px !important;
                height: 22px !important;
                stroke: #1c1c1c !important;
                text-indent: 0 !important;
                flex-shrink: 0 !important;
                margin: 0 !important;
                position: absolute !important;
            }

            /* Hover states - expand to show text */
            #viewClassifieds .classifieds-search {
                transition: width 0.25s ease, min-width 0.25s ease, padding 0.25s ease, background 0.25s ease !important;
                overflow: hidden !important;
            }
            #viewClassifieds .classifieds-search:hover {
                width: 140px !important;
                min-width: 140px !important;
                padding: 0 20px 0 16px !important;
                background: #1c1c1c !important;
                justify-content: flex-start !important;
                gap: 8px !important;
            }
            #viewClassifieds .classifieds-search:hover .search-icon {
                stroke: #fff !important;
                position: relative !important;
                left: auto !important;
                top: auto !important;
                transform: none !important;
                flex-shrink: 0 !important;
            }
            #viewClassifieds .classifieds-search .classifieds-search-input {
                transition: none !important;
            }
            #viewClassifieds .classifieds-search:hover .classifieds-search-input {
                width: auto !important;
                height: auto !important;
                position: relative !important;
                top: auto !important;
                left: auto !important;
                color: #fff !important;
                font-size: 16px !important;
                font-family: 'Macan', sans-serif !important;
                cursor: text !important;
                flex: 1 !important;
                opacity: 1 !important;
            }
            #viewClassifieds .classifieds-search:hover .classifieds-search-input::placeholder {
                color: #fff !important;
                opacity: 1 !important;
            }
            #viewClassifieds .classifieds-post-btn {
                transition: all 0.25s ease !important;
                overflow: hidden !important;
            }
            #viewClassifieds .classifieds-post-btn:hover {
                width: 110px !important;
                min-width: 110px !important;
                padding: 0 20px 0 16px !important;
                background: #1c1c1c !important;
                justify-content: flex-start !important;
                gap: 8px !important;
            }
            #viewClassifieds .classifieds-post-btn:hover svg {
                stroke: #fff !important;
                position: relative !important;
                flex-shrink: 0 !important;
            }
            #viewClassifieds .classifieds-post-btn:hover::after {
                content: 'Post' !important;
                color: #fff !important;
                font-size: 16px !important;
                font-family: 'Macan', sans-serif !important;
            }

            /* Post form tablet styles - hide header buttons when form visible */
            #viewClassifieds:has(.classifieds-post-form.visible) .classifieds-header-row {
                display: none !important;
            }
            #viewClassifieds:has(.classifieds-post-form.visible) .post-form-title {
                font-family: 'Macan', sans-serif !important;
                font-size: 20px !important;
                font-weight: 400 !important;
                letter-spacing: 0 !important;
            }
            #viewClassifieds:has(.classifieds-post-form.visible) .no-fees-badge {
                display: none !important;
            }

            /* Me view tablet styles - show mobile tabs inside panel, hide sidebar */
            #viewMe {
                flex-direction: column !important;
                padding: 0 !important;
            }
            #viewMe .me-sidebar,
            #viewMe .classifieds-left-panel {
                display: none !important;
            }
            #viewMe .me-content {
                flex: 1 !important;
                display: flex !important;
                flex-direction: column !important;
                padding: 8px !important;
                background: #D6D1CB !important;
            }
            #viewMe .me-main {
                flex: 1 !important;
                width: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
                border-radius: 24px !important;
                display: flex !important;
                flex-direction: column !important;
                overflow: hidden !important;
            }
            #viewMe .me-mobile-tabs {
                display: flex !important;
                justify-content: center;
                gap: 24px;
                margin: 0;
                padding: 16px 20px 0 20px;
                border-bottom: 1px solid rgba(0,0,0,0.1);
                background: transparent;
                position: relative;
                z-index: 10;
                flex-shrink: 0;
            }
            #viewMe .me-main-container {
                flex: 1 !important;
                display: flex !important;
                flex-direction: column !important;
                padding-top: 0 !important;
                padding-bottom: 0 !important;
                border-radius: 24px !important;
                overflow-y: auto !important;
                overflow-x: hidden !important;
                background: #E2DFDB !important;
            }
            #viewMe .me-main-container::after {
                display: none !important;
            }
            #viewMe .me-main-scroll {
                flex: 1 !important;
                overflow: visible !important;
            }
            #viewMe .me-section.active {
                height: auto !important;
            }
            #viewMe .me-chats-list {
                overflow: visible !important;
                padding: 16px !important;
            }
            #viewMe .me-mobile-tab {
                flex: 0 0 auto;
                padding: 12px 16px;
                background: none;
                border: none;
                font-family: 'Inter', sans-serif;
                font-size: 13px;
                font-weight: 500;
                color: rgba(0,0,0,0.4);
                cursor: pointer;
                position: relative;
            }
            #viewMe .me-mobile-tab.active {
                color: #1c1c1c;
            }
            #viewMe .me-mobile-tab-indicator {
                position: absolute;
                bottom: -1px;
                height: 2px;
                background: #1c1c1c;
                transition: left 0.3s cubic-bezier(0.32, 0.72, 0, 1), width 0.3s cubic-bezier(0.32, 0.72, 0, 1);
                pointer-events: none;
            }
            /* Keep tabs visible when viewing detail panel in tablet */
            #viewMe:has(.me-detail-panel.visible) .me-mobile-tabs {
                display: none !important;
            }
            /* Detail panel tablet styles */
            #viewMe .me-detail-panel.visible {
                position: absolute !important;
                top: 8px !important;
                left: 8px !important;
                right: 8px !important;
                bottom: 8px !important;
                width: auto !important;
                border-radius: 24px !important;
                background: #E2DFDB !important;
                z-index: 100 !important;
                display: flex !important;
                flex-direction: column !important;
                overflow: hidden !important;
            }
            #viewMe .me-detail-panel .me-detail-back-btn {
                display: flex !important;
                align-items: center;
                gap: 8px;
                padding: 16px 20px;
                background: none;
                border: none;
                font-family: 'Inter', sans-serif;
                font-size: 15px;
                font-weight: 500;
                color: #1c1c1c;
                cursor: pointer;
                flex-shrink: 0;
            }
            #viewMe .me-detail-panel .me-detail-back-btn svg {
                width: 20px;
                height: 20px;
            }
            #viewMe .me-detail-panel .me-detail-left {
                flex: 1 !important;
                overflow-y: auto !important;
                padding: 0 20px 20px 20px !important;
            }
            #viewMe .me-detail-panel .mobile-detail-tabs {
                margin-top: -38px !important;
                margin-bottom: 16px !important;
            }
        }

        #meLeftPanel .accordion-item,
        #classifiedsLeftPanel .accordion-item,
        .left-panel .accordion-item {
            width: 100% !important;
        }

        /* Mobile view header - hidden by default */
        .mobile-view-header {
            display: none;
        }

        /* Mobile bottom nav at smallest viewport */
        @media (max-width: 500px) {
            /* Set unified background color for entire page */
            body {
                background: #E8E4E0 !important;
                overflow-y: auto !important;
                overflow-x: hidden !important;
                scrollbar-width: none !important;
                -ms-overflow-style: none !important;
            }
            body::-webkit-scrollbar {
                display: none !important;
            }
            html {
                overflow-y: auto !important;
                overflow-x: hidden !important;
                scrollbar-width: none !important;
                -ms-overflow-style: none !important;
            }
            html::-webkit-scrollbar {
                display: none !important;
            }
            .container {
                background: #E8E4E0 !important;
                height: auto !important;
                min-height: 100vh !important;
                overflow: visible !important;
            }
            #viewClassifieds {
                background: #E8E4E0 !important;
            }
            #viewClassifieds .classifieds-content-area {
                background: #E8E4E0 !important;
                overflow: visible !important;
            }
            #viewClassifieds .classifieds-main-container {
                background: transparent !important;
            }
            #viewClassifieds .classifieds-main-container::after {
                display: none !important;
            }
            /* Show mobile header */
            .mobile-view-header {
                display: block !important;
                padding: 20px 20px 16px 20px !important;
                background: #E8E4E0 !important;
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                z-index: 99 !important;
            }
            .mobile-view-supertitle {
                font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
                font-size: 24px;
                font-weight: 500;
                letter-spacing: 0;
                color: #1c1c1c;
                margin-bottom: 2px;
            }
            .mobile-view-title {
                font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
                font-size: 14px;
                font-weight: 400;
                color: #1c1c1c;
            }
            /* Show subtitle on classifieds view */
            #viewClassifieds .mobile-view-title {
                display: block !important;
            }

            /* Move all action buttons to upper right of page */
            #viewClassifieds .classifieds-auth-buttons {
                display: flex !important;
                position: relative !important;
                top: auto !important;
                right: auto !important;
                z-index: 100 !important;
                gap: 12px !important;
            }
            #viewClassifieds .classifieds-auth-buttons .classifieds-login-btn {
                display: none !important;
            }
            #viewClassifieds #classifiedsFavBtn {
                display: none !important;
            }
            /* Remove hover expansion on mobile */
            #viewClassifieds .classifieds-chat-btn {
                width: 44px !important;
                height: 44px !important;
                padding: 0 !important;
                border-radius: 50% !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
            }
            #viewClassifieds .classifieds-chat-btn:hover {
                width: 44px !important;
                height: 44px !important;
                padding: 0 !important;
                background: #1c1c1c !important;
                border-color: #1c1c1c !important;
            }
            #viewClassifieds .classifieds-chat-btn:hover svg {
                stroke: #fff !important;
            }
            #viewClassifieds .classifieds-chat-btn-text {
                display: none !important;
            }

            /* Mobile header button hover states */
            .mobile-search-btn:hover,
            .mobile-post-btn:hover,
            .mobile-chat-btn:hover {
                background: #1c1c1c !important;
                border-color: #1c1c1c !important;
            }
            .mobile-search-btn:hover svg,
            .mobile-post-btn:hover svg,
            .mobile-chat-btn:hover svg {
                stroke: #fff !important;
            }

            /* Hide auth-required buttons when not logged in */
            .mobile-auth-required {
                display: none !important;
            }
            body.logged-in .mobile-auth-required {
                display: flex !important;
            }
            .mobile-login-btn {
                display: flex !important;
            }
            body.logged-in .mobile-login-btn {
                display: none !important;
            }

            #viewClassifieds .classifieds-search-group {
                display: flex !important;
                position: relative !important;
                top: auto !important;
                right: auto !important;
                z-index: 100 !important;
                gap: 12px !important;
            }

            /* Hide search suggestions flyout on mobile */
            .classifieds-search-suggestions {
                display: none !important;
            }

            /* Add top margin to main container so it doesn't cover fixed actions */
            #viewClassifieds .classifieds-main-container {
                margin-top: 80px !important;
                padding: 16px 16px 0 16px !important;
                overflow: visible !important;
                border-radius: 0 !important;
                background: transparent !important;
            }
            #viewClassifieds .classifieds-header-row {
                display: flex !important;
                visibility: visible !important;
                opacity: 1 !important;
                position: fixed !important;
                top: 20px !important;
                right: 20px !important;
                left: auto !important;
                width: auto !important;
                height: 44px !important;
                margin: 0 !important;
                z-index: 9998 !important;
                gap: 8px !important;
                background: transparent !important;
                pointer-events: auto !important;
            }
            #viewClassifieds .classifieds-search-group {
                display: flex !important;
                gap: 8px !important;
                height: 44px !important;
            }
            #viewClassifieds .classifieds-auth-buttons {
                display: flex !important;
                gap: 8px !important;
                height: 44px !important;
            }
            #viewClassifieds .classifieds-search {
                width: 44px !important;
                height: 44px !important;
                min-width: 44px !important;
                background: #1c1c1c !important;
                border-radius: 50% !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                position: relative !important;
                flex-shrink: 0 !important;
            }
            #viewClassifieds .classifieds-search-input {
                width: 44px !important;
                height: 44px !important;
                background: transparent !important;
                border: none !important;
                padding: 0 !important;
                cursor: pointer !important;
                position: absolute !important;
                top: 0 !important;
                left: 0 !important;
            }
            #viewClassifieds .classifieds-search .search-icon {
                position: absolute !important;
                left: 50% !important;
                top: 50% !important;
                transform: translate(-50%, -50%) !important;
                stroke: #fff !important;
                pointer-events: none !important;
                width: 20px !important;
                height: 20px !important;
            }
            #viewClassifieds .classifieds-post-btn {
                width: 44px !important;
                height: 44px !important;
                min-width: 44px !important;
                background: #1c1c1c !important;
                border: none !important;
                border-radius: 50% !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                padding: 0 !important;
                flex-shrink: 0 !important;
                font-size: 0 !important;
            }
            #viewClassifieds .classifieds-post-btn svg {
                stroke: #fff !important;
                width: 20px !important;
                height: 20px !important;
            }
            #viewClassifieds .classifieds-chat-btn {
                width: 44px !important;
                height: 44px !important;
                min-width: 44px !important;
                background: #1c1c1c !important;
                border: none !important;
                border-radius: 50% !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                padding: 0 !important;
                flex-shrink: 0 !important;
            }
            #viewClassifieds .classifieds-chat-btn svg {
                stroke: #fff !important;
                width: 20px !important;
                height: 20px !important;
            }
            #viewClassifieds {
                background: #E8E4E0 !important;
                padding: 0 !important;
            }
            #viewClassifieds .classifieds-main-container::-webkit-scrollbar {
                display: none !important;
            }
            #viewClassifieds .classifieds-grid-label {
                margin-top: 0 !important;
                margin-bottom: 8px !important;
                position: sticky !important;
                top: 0 !important;
                background: transparent !important;
                padding: 0 0 8px 4px !important;
                z-index: 10 !important;
            }
            #viewClassifieds .classifieds-main-container::after {
                display: none !important;
            }
            #viewClassifieds .classifieds-grid {
                overflow: visible !important;
                padding: 0 0 80px 0 !important;
                margin: 0 !important;
                gap: 16px !important;
            }

            /* Move nav to fixed bottom position */
            .container > .nav-rail,
            .nav-rail {
                position: fixed !important;
                bottom: 0 !important;
                left: 0 !important;
                right: 0 !important;
                top: auto !important;
                width: 100% !important;
                height: 64px !important;
                flex-direction: row !important;
                justify-content: center !important;
                align-items: center !important;
                border-right: none !important;
                border-top: 0.5px solid #ccc !important;
                border-radius: 0 !important;
                -webkit-border-radius: 0 !important;
                padding: 8px 0 !important;
                gap: 0 !important;
                z-index: 9999 !important;
                background: rgba(245, 243, 240, 0.95) !important;
                backdrop-filter: blur(20px) !important;
                -webkit-backdrop-filter: blur(20px) !important;
            }

            .nav-rail-top {
                display: none !important;
            }

            .nav-rail-center {
                flex-direction: row !important;
                gap: 12px !important;
            }

            .nav-rail-indicator {
                width: 64px !important;
                height: 44px !important;
            }

            .nav-rail-icon:not(#navMe) {
                width: 64px !important;
                height: 44px !important;
                padding: 0 !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 2px !important;
            }

            #navClassifieds,
            #navAnalyzer,
            #navForums {
                margin: 0 8px !important;
            }

            #navClassifieds {
                transform: translateX(16px);
            }

            #navAnalyzer {
                transform: translateX(16px);
            }

            #navForums {
                transform: translateX(16px);
            }

            #navMe {
                width: 64px !important;
                height: 44px !important;
                padding: 0 !important;
                display: none !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 2px !important;
            }

            body.logged-in #navMe {
                display: flex !important;
            }

            .nav-rail-icon svg {
                width: 20px !important;
                height: 20px !important;
            }

            .nav-rail-icon-label {
                font-size: 10px !important;
            }

            .nav-rail-bottom {
                display: flex !important;
                position: absolute !important;
                bottom: auto !important;
                right: 16px !important;
                left: auto !important;
                top: 50% !important;
                transform: translateY(-50%) !important;
                width: auto !important;
                padding: 0 !important;
                background: none !important;
                z-index: 1000 !important;
            }

            .nav-rail-bottom .nav-avatar {
                width: 32px !important;
                height: 32px !important;
                background: #fff !important;
                border-radius: 50% !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                box-shadow: none !important;
            }

            .nav-rail-bottom .nav-avatar svg {
                width: 16px !important;
                height: 16px !important;
            }

            .nav-flyout {
                bottom: 80px !important;
                left: auto !important;
                right: 16px !important;
                transform: translateY(0) !important;
            }
            .nav-flyout.visible {
                transform: translateY(0) !important;
            }

            /* Add bottom padding to all views to account for fixed nav */
            #viewClassifieds,
            #viewMe,
            #viewAnalyzer,
            #viewForums {
                padding-bottom: 72px !important;
            }

            /* Stack viewClassifieds vertically and hide left panel on mobile */
            #viewClassifieds {
                flex-direction: column !important;
                padding: 0 !important;
                gap: 0 !important;
                background: #E8E4E0 !important;
                min-height: 0 !important;
                flex: 1 !important;
                height: auto !important;
                overflow: visible !important;
            }
            #viewClassifieds .classifieds-main {
                display: flex !important;
                flex-direction: column !important;
                flex: 1 !important;
                min-height: 0 !important;
                overflow: visible !important;
                height: auto !important;
            }
            #viewClassifieds .classifieds-main-container {
                background: transparent !important;
                border-radius: 0 !important;
                flex: 1 !important;
                min-height: 0 !important;
                overflow: visible !important;
                height: auto !important;
                -webkit-overflow-scrolling: touch !important;
            }
            .classifieds-left-panel {
                display: none !important;
            }

            /* Stack viewAnalyzer vertically and hide left panel on mobile */
            #viewAnalyzer {
                flex-direction: column !important;
                padding: 0 !important;
            }
            #viewAnalyzer > .left-panel {
                display: none !important;
            }

            #viewAnalyzer .right-panel-scroll {
                padding-top: 0 !important;
            }

            #viewAnalyzer .mobile-view-header {
                padding: 20px 20px 0 20px !important;
            }

            /* Remove bottom border-radius on containers for mobile bottom nav */
            .classifieds-main-container,
            .classifieds-main-container::after,
            .classifieds-detail-container,
            .classifieds-detail-panel,
            .me-main-container,
            .me-main-container::after,
            .me-post-form-panel,
            #viewAnalyzer > .right-panel,
            #viewAnalyzer > .third-panel,
            #viewClassifieds .classifieds-detail-container {
                border-bottom-left-radius: 0 !important;
                border-bottom-right-radius: 0 !important;
            }

            /* Detail panel mobile layout - no panel, solid background */
            body:has(#viewClassifieds .classifieds-detail-panel.visible) {
                background: #E8E4E0 !important;
            }
            body:has(#viewClassifieds .classifieds-detail-panel.visible) .container {
                background: #E8E4E0 !important;
            }
            #viewClassifieds:has(.classifieds-detail-panel.visible) {
                background: #E8E4E0 !important;
                padding: 0 !important;
            }
            #viewClassifieds:has(.classifieds-detail-panel.visible) .mobile-view-header {
                display: none !important;
                visibility: hidden !important;
                height: 0 !important;
                padding: 0 !important;
                margin: 0 !important;
                overflow: hidden !important;
            }
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-content-area {
                padding: 0 !important;
                margin: 0 !important;
                gap: 0 !important;
                overflow-x: hidden !important;
                background: #E8E4E0 !important;
            }
            .classifieds-detail-panel.visible {
                background: #E8E4E0 !important;
            }
            .classifieds-detail-panel.visible .classifieds-detail-container {
                background: #E8E4E0 !important;
                border-radius: 0 !important;
            }
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-detail-panel {
                padding: 0 !important;
                margin: 0 !important;
                width: 100% !important;
                overflow-x: hidden !important;
                background: #E8E4E0 !important;
            }
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-detail-container {
                border-radius: 0 !important;
                margin: 0 !important;
                padding: 0 !important;
                width: 100% !important;
                height: 100% !important;
                overflow: hidden !important;
                background: #E8E4E0 !important;
            }
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-detail-scroll {
                padding: 0 20px 160px 20px !important;
                overflow-y: auto !important;
                overflow-x: hidden !important;
                height: 100% !important;
                background: #E8E4E0 !important;
            }
            /* Override scroll when on non-Details tabs */
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-detail-scroll.fixed-tabs-active {
                overflow: hidden !important;
                display: flex !important;
                flex-direction: column !important;
                height: 100vh !important;
                padding-top: 44px !important;
                padding-bottom: 0 !important;
            }
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-detail-scroll.fixed-tabs-active .mobile-detail-tabs {
                flex-shrink: 0 !important;
            }
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-detail-scroll.fixed-tabs-active .mobile-detail-tab-content.active {
                flex: 1 !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch !important;
                overscroll-behavior-y: contain !important;
                background: #E8E4E0 !important;
                padding: 70px 20px 180px 20px !important;
            }
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-detail-back-btn {
                margin: 8px 20px 0 20px !important;
                font-size: 13px !important;
                text-transform: none !important;
            }
            #viewClassifieds:has(.classifieds-detail-panel.visible) .listing-header {
                position: static !important;
                padding: 0 !important;
                margin: 0 0 12px 0 !important;
                background: transparent !important;
            }
            .classifieds-detail-scroll {
                background: #E8E4E0 !important;
            }
            /* Make content wrappers transparent to show parent background */
            .classifieds-detail-scroll > *,
            .mobile-detail-tab-content,
            .listing-header,
            .listing-header-text,
            .listing-image-container,
            .listing-thumbnails,
            .listing-price-section,
            .listing-section,
            .listing-seller-row,
            .listing-description,
            .listing-specs {
                background: transparent !important;
            }
            /* Preserve specific element backgrounds */
            .listing-seller {
                background: #F1EFEC !important;
            }
            .mobile-detail-tabs {
                background: #E8E4E0 !important;
            }
            .classifieds-detail-back-btn {
                background: #E8E4E0 !important;
            }
            /* Direct overrides without :has() */
            .classifieds-content-area {
                background: #E8E4E0 !important;
                flex: 1 !important;
                min-height: 0 !important;
                overflow: visible !important;
                height: auto !important;
            }
            .classifieds-detail-panel {
                background: #E8E4E0 !important;
            }
            .classifieds-detail-container {
                background: #E8E4E0 !important;
                border-radius: 0 !important;
            }
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-auth-buttons {
                display: none !important;
            }
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-main {
                display: none !important;
            }
            /* When detail panel visible, restore contained scroll */
            #viewClassifieds:has(.classifieds-detail-panel.visible) {
                overflow: hidden !important;
                height: 100vh !important;
            }
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-content-area {
                overflow: hidden !important;
                height: 100% !important;
            }
            /* Prevent horizontal scroll on entire view */
            #viewClassifieds {
                overflow-x: hidden !important;
            }

            /* Post form mobile styles - hide header when form visible */
            #viewClassifieds:has(.classifieds-post-form.visible) .mobile-view-header {
                display: none !important;
            }
            #viewClassifieds:has(.classifieds-post-form.visible) .classifieds-main-container {
                margin-top: 0 !important;
                padding-top: 0 !important;
                scrollbar-width: none !important;
                -ms-overflow-style: none !important;
            }
            #viewClassifieds:has(.classifieds-post-form.visible) .classifieds-main-container::-webkit-scrollbar {
                display: none !important;
            }
            body:has(.classifieds-post-form.visible) {
                scrollbar-width: none !important;
                -ms-overflow-style: none !important;
            }
            body:has(.classifieds-post-form.visible)::-webkit-scrollbar {
                display: none !important;
            }
            body:has(.classifieds-post-form.visible) *::-webkit-scrollbar {
                display: none !important;
            }

            /* Post form fields - equal sizing on mobile */
            .post-form-row {
                gap: 8px !important;
            }
            .post-form-field {
                flex: 1 1 0 !important;
                min-width: 0 !important;
            }
            .post-form-input,
            .post-form-select {
                width: 100% !important;
                min-width: 0 !important;
                padding: 16px 12px !important;
            }
            #viewClassifieds:has(.classifieds-post-form.visible) .post-form-header {
                margin: 8px 0 0 0 !important;
            }
            #viewClassifieds:has(.classifieds-post-form.visible) .post-form-back-btn {
                font-size: 13px !important;
                padding: 0 !important;
            }
            #viewClassifieds:has(.classifieds-post-form.visible) .post-form-title-row {
                margin-bottom: 12px !important;
            }
            #viewClassifieds:has(.classifieds-post-form.visible) .post-form-title {
                font-family: 'Macan', sans-serif !important;
                font-size: 20px !important;
                font-weight: 400 !important;
                letter-spacing: 0 !important;
            }
            #viewClassifieds:has(.classifieds-post-form.visible) .no-fees-badge {
                display: none !important;
            }

            /* Me Post Form mobile styles */
            #viewMe:has(#mePostFormView[style*="flex"]) {
                padding: 0 !important;
            }
            #mePostFormView[style*="flex"] {
                padding: 0 !important;
            }
            #mePostFormView[style*="flex"] .me-post-form-panel {
                padding: 0 !important;
                border-radius: 0 !important;
                background: #E8E4E0 !important;
            }
            #mePostFormView[style*="flex"] .classifieds-main-container {
                padding: 20px !important;
                background: #E8E4E0 !important;
                scrollbar-width: none !important;
                -ms-overflow-style: none !important;
            }
            #mePostFormView[style*="flex"] .classifieds-main-container::-webkit-scrollbar {
                display: none !important;
            }
            #mePostFormView[style*="flex"] .post-form-header {
                margin: 8px 0 0 0 !important;
            }
            #mePostFormView[style*="flex"] .post-form-back-btn {
                font-size: 13px !important;
                padding: 0 !important;
            }
            #mePostFormView[style*="flex"] .post-form-title-row {
                margin-bottom: 12px !important;
                margin-top: 24px !important;
            }
            #mePostFormView[style*="flex"] .post-form-title {
                font-family: 'Macan', sans-serif !important;
                font-size: 20px !important;
                font-weight: 400 !important;
                letter-spacing: 0 !important;
            }

            /* Me view mobile styles - full width, no panel */
            #viewMe {
                flex-direction: column !important;
                padding: 0 !important;
                gap: 0 !important;
                background: #E8E4E0 !important;
                overflow: visible !important;
            }
            /* Me view mobile tabs */
            .me-mobile-tabs {
                display: flex !important;
                justify-content: center;
                gap: 24px;
                margin: 0;
                padding: 16px 20px 0 20px;
                border-bottom: 1px solid rgba(0,0,0,0.1);
                background: #E8E4E0;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                z-index: 100;
            }
            #viewMe .me-content {
                padding-top: 52px !important;
            }
            .me-mobile-tab {
                flex: 0 0 auto;
                padding: 12px 16px;
                background: none;
                border: none;
                font-family: 'Inter', sans-serif;
                font-size: 13px;
                font-weight: 500;
                color: rgba(0,0,0,0.4);
                cursor: pointer;
                position: relative;
                transition: color 0.2s ease;
            }
            .me-mobile-tab.active {
                color: #000;
            }
            .me-mobile-tab-indicator {
                position: absolute;
                bottom: -1px;
                height: 2px;
                background: #000;
                transition: left 0.3s cubic-bezier(0.32, 0.72, 0, 1), width 0.3s cubic-bezier(0.32, 0.72, 0, 1);
                pointer-events: none;
            }
            /* Remove transitions on Me sections for mobile */
            #viewMe .me-section,
            #viewMe .me-content,
            #viewMe .me-main,
            #viewMe .me-main-container {
                transition: none !important;
            }
            #viewMe .me-content {
                flex-direction: column !important;
                background: #E8E4E0 !important;
                overflow: visible !important;
            }
            #viewMe .me-sidebar {
                display: none !important;
            }
            #viewMe .me-main {
                flex: 1 !important;
                background: #E8E4E0 !important;
                min-width: 0 !important;
                max-width: 100% !important;
                overflow: visible !important;
                padding: 0 !important;
                box-sizing: border-box !important;
            }
            #viewMe .me-main-scroll {
                min-width: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
                overflow-x: visible !important;
                box-sizing: border-box !important;
            }
            #viewMe .me-main-container {
                background: #E8E4E0 !important;
                border-radius: 0 !important;
                padding: 16px !important;
                min-height: 0 !important;
                height: auto !important;
                overflow: visible !important;
                min-width: 0 !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
                width: 100% !important;
            }
            #viewMe .me-main-container::after {
                display: none !important;
            }
            #viewMe .me-listings-grid {
                padding: 0 !important;
                gap: 16px !important;
                grid-template-columns: repeat(2, 1fr) !important;
                min-width: 0 !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
                width: calc(100vw - 32px) !important;
                margin-top: 16px !important;
            }
            #viewMe .me-listing-card,
            #viewMe .listing-card-base {
                border-radius: 20px !important;
            }
            #viewMe .me-section {
                min-height: 0 !important;
                height: auto !important;
                overflow: visible !important;
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
            }
            #viewMe:has(.me-detail-panel.visible) .me-mobile-tabs {
                display: none !important;
            }
            #viewMe:has(#mePostFormView[style*="flex"]) .me-mobile-tabs {
                display: none !important;
            }
            #viewMe:has(.me-chat-card.expanded) .me-mobile-tabs {
                display: none !important;
            }
            body:has(#viewMe .me-chat-card.expanded) .nav-rail {
                display: none !important;
            }
            #viewMe .me-detail-panel.visible {
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 72px !important;
                z-index: 100 !important;
                padding: 0 !important;
                display: flex !important;
                flex-direction: column !important;
                background: #E8E4E0 !important;
            }
            #viewMe .me-detail-panel .me-detail-back-btn {
                display: flex !important;
                align-items: center;
                gap: 4px;
                background: transparent;
                border: none;
                font-size: 14px;
                font-family: 'Inter', sans-serif;
                color: #1c1c1c;
                cursor: pointer;
                padding: 12px 16px 0 16px;
            }
            #viewMe .me-detail-panel .classifieds-detail-scroll {
                padding: 8px 16px 24px 16px !important;
            }
            #viewMe .me-detail-panel .me-detail-back-btn svg {
                width: 16px;
                height: 16px;
            }
            #viewMe .me-detail-panel .me-detail-left {
                flex: 1 !important;
                overflow-y: auto !important;
                display: flex !important;
                flex-direction: column !important;
                padding-bottom: 80px !important;
            }
            #viewMe .me-detail-panel .me-listing-view-mode {
                flex: 1 !important;
                display: flex !important;
                flex-direction: column !important;
                overflow: visible !important;
            }
            #viewMe .me-detail-panel .me-listing-view-mode .classifieds-detail-scroll {
                flex: 0 0 auto !important;
                overflow: visible !important;
            }
            #viewMe .me-detail-panel .me-detail-buttons {
                position: fixed !important;
                bottom: 72px !important;
                left: 0 !important;
                right: 0 !important;
                padding: 16px !important;
                background: #E8E4E0 !important;
                z-index: 100 !important;
            }
            #viewMe .me-chats-list {
                padding: 16px 0 0 0 !important;
                overflow: hidden !important;
                height: auto !important;
                width: calc(100vw - 32px) !important;
                box-sizing: border-box !important;
            }
            #viewMe .me-chat-card {
                opacity: 1 !important;
                animation: none !important;
            }
            #viewMe .me-chat-card-img {
                transition: background-image 0.2s ease;
            }
            #viewMe .me-chat-card-title {
                transition: none;
            }
            #viewMe .me-chat-card .accordion-chevron {
                display: none !important;
            }
            #viewMe .me-chat-card.expanded {
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                height: auto !important;
                max-height: none !important;
                display: flex !important;
                flex-direction: column !important;
                overflow: hidden !important;
                margin: 0 !important;
                z-index: 200 !important;
                border-radius: 0 !important;
                background: #E8E4E0 !important;
                padding: 16px 0 0 0 !important;
                transition: none !important;
            }
            #viewMe .me-chat-card.expanded .me-chat-card-header {
                padding: 0 16px 16px 16px !important;
                background: #E8E4E0 !important;
            }
            #viewMe .me-chat-card.expanded .me-chat-card-img {
                width: 45px !important;
                height: 45px !important;
            }
            #viewMe .me-chat-card.expanded .me-chat-card-time,
            #viewMe .me-chat-card.expanded .me-chat-card-preview {
                display: none !important;
            }
            #viewMe .me-chat-card.expanded .me-chat-back-btn {
                display: flex !important;
                padding: 0 16px !important;
                margin-bottom: 24px !important;
            }
            #viewMe .me-chat-card.expanded .accordion-chevron {
                display: none !important;
            }
            #viewMe .me-chat-card.expanded .me-chat-expanded-content {
                flex: 1 !important;
                height: auto !important;
                max-height: none !important;
                display: flex !important;
                flex-direction: column !important;
                min-height: 0 !important;
                overflow: hidden !important;
                padding: 0 16px !important;
                opacity: 1 !important;
                transition: none !important;
                margin-top: 0 !important;
                padding-top: 0 !important;
            }
            #viewMe .me-chat-card.expanded .me-chat-messages {
                flex: 1 !important;
                min-height: 0 !important;
                overflow-y: auto !important;
                padding-bottom: 100px !important;
            }
            #viewMe .me-chat-card.expanded .me-chat-input-row {
                position: fixed !important;
                bottom: 0 !important;
                left: 0 !important;
                right: 0 !important;
                padding: 12px 16px !important;
                background: #E8E4E0 !important;
                z-index: 201 !important;
                margin: 0 !important;
            }

            /* Mobile detail tabs */
            .mobile-detail-tabs {
                display: flex !important;
                gap: 0;
                margin: 0;
                padding: 16px 20px 0 20px;
                border-bottom: 1px solid rgba(0,0,0,0.1);
                position: sticky;
                top: 0;
                z-index: 99;
                background: #E8E4E0;
                margin-left: -20px;
                margin-right: -20px;
            }
            .mobile-detail-tabs.fixed-tabs {
                position: fixed;
                top: 44px;
                left: 0;
                right: 0;
                margin: 0;
                padding: 16px 20px 0 20px;
                animation: slideTabsUp 0.3s cubic-bezier(0.32, 0.72, 0, 1) forwards;
            }
            @keyframes slideTabsUp {
                from {
                    transform: translateY(20px);
                    opacity: 0.8;
                }
                to {
                    transform: translateY(0);
                    opacity: 1;
                }
            }
            .mobile-detail-tabs.fixed-tabs ~ .mobile-detail-tab-content.active {
                /* padding handled by fixed positioning */
            }
            .mobile-detail-tab {
                flex: 1;
                padding: 12px 8px;
                background: none;
                border: none;
                font-family: 'Inter', sans-serif;
                font-size: 13px;
                font-weight: 500;
                color: rgba(0,0,0,0.4);
                cursor: pointer;
                position: relative;
                transition: color 0.2s ease;
            }
            .mobile-detail-tab.active {
                color: #000;
            }
            .mobile-detail-tab.active::after {
                content: '';
                position: absolute;
                bottom: -1px;
                left: 0;
                right: 0;
                height: 2px;
                background: #000;
            }
            .mobile-detail-tab-content {
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                opacity: 0;
                visibility: hidden;
                transition: opacity 0.5s ease-out, visibility 0.5s;
                padding-top: 28px;
            }
            .mobile-detail-tab-content.active {
                position: relative;
                opacity: 1;
                visibility: visible;
                min-height: calc(100vh - 100px);
                display: block !important;
            }
            @keyframes tabFadeIn {
                from { opacity: 0; }
                to { opacity: 1; }
            }
            /* When fixed tabs are active, disable parent scroll and make tab content scrollable */
            .classifieds-detail-scroll.fixed-tabs-active {
                overflow: hidden !important;
                display: flex !important;
                flex-direction: column !important;
                height: 100vh !important;
                padding-top: 44px !important;
            }
            .classifieds-detail-scroll.fixed-tabs-active .mobile-detail-tabs {
                flex-shrink: 0 !important;
            }
            .classifieds-detail-scroll.fixed-tabs-active .mobile-detail-tab-content.active {
                flex: 1 !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch !important;
                overscroll-behavior-y: contain !important;
                padding: 28px 20px 100px 20px !important;
            }
        }

        /* ══════════════════════════════════════════════════════════════════════
           FINAL OVERRIDE: Detail panel backgrounds
           These rules MUST come last to win the CSS cascade.
           ══════════════════════════════════════════════════════════════════════ */

        /* MOBILE (500px and below): Solid #E8E4E0 background, no panels */
        @media (max-width: 500px) {
            .classifieds-detail-panel,
            .classifieds-detail-panel.visible,
            #classifiedsDetailPanel,
            #classifiedsDetailPanel.visible,
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-detail-panel {
                background: #E8E4E0 !important;
            }
            .classifieds-detail-container,
            #classifiedsDetailPanel .classifieds-detail-container,
            .classifieds-detail-panel .classifieds-detail-container,
            .classifieds-detail-panel.visible .classifieds-detail-container,
            #viewClassifieds .classifieds-detail-container,
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-detail-container {
                background: #E8E4E0 !important;
                border-radius: 0 !important;
            }
            .classifieds-detail-scroll,
            #classifiedsDetailPanel .classifieds-detail-scroll,
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-detail-scroll {
                background: #E8E4E0 !important;
            }
            .classifieds-detail-back-btn,
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-detail-back-btn {
                background: #E8E4E0 !important;
            }
            /* Content wrappers transparent */
            .classifieds-detail-scroll > *,
            .mobile-detail-tab-content,
            .listing-header,
            .listing-header-text,
            .listing-image-container,
            .listing-thumbnails,
            .listing-price-section,
            .listing-section,
            .listing-seller-row,
            .listing-description,
            .listing-specs {
                background: transparent !important;
            }
            /* Preserve seller card background */
            .listing-seller {
                background: #F1EFEC !important;
            }
            .mobile-detail-tabs {
                background: #E8E4E0 !important;
            }
            /* Mobile chat tab styles */
            .mobile-chat-container {
                display: flex;
                flex-direction: column;
                height: calc(100vh - 380px);
                min-height: 300px;
            }
            .mobile-chat-container .chat-messages {
                flex: 1;
                overflow-y: auto;
                padding: 0;
                display: flex;
                flex-direction: column;
                gap: 8px;
            }
            .mobile-chat-input-area {
                padding: 12px 0;
                background: #E8E4E0;
                border-top: 1px solid rgba(0,0,0,0.08);
                margin-top: auto;
            }
            .mobile-chat-input-area .chat-input-row {
                display: flex;
                gap: 8px;
                align-items: center;
            }
            .mobile-chat-input-area .chat-input-wrapper {
                flex: 1;
                position: relative;
                display: flex;
                align-items: center;
                gap: 8px;
                padding: 8px 60px 8px 12px;
                border: none;
                border-radius: 50px;
                background: #fff;
                transition: border-color 0.25s cubic-bezier(0.32, 0.72, 0, 1);
            }
            .mobile-chat-input-area .chat-input-wrapper:focus-within {
                border-color: #1c1c1c;
            }
            .mobile-chat-input-area .chat-input {
                flex: 1;
                padding: 16px 0 16px 12px;
                border: none;
                outline: none;
                font-family: 'Macan', 'Inter', sans-serif;
                font-size: 18px;
                background: transparent;
                min-height: 24px;
                max-height: 120px;
                overflow-y: auto;
                word-break: break-word;
                -webkit-user-select: text;
                user-select: text;
                -webkit-touch-callout: none;
            }
            .mobile-chat-input-area .chat-input:empty:before {
                content: attr(data-placeholder);
                color: #999;
                pointer-events: none;
            }
            /* Try to hide iOS keyboard accessories */
            .mobile-chat-input-area .chat-input:focus {
                -webkit-appearance: none;
            }
            .mobile-chat-input-area .chat-image-btn {
                position: absolute;
                right: 12px;
                width: 44px;
                height: 44px;
                border: none;
                border-radius: 50%;
                background: transparent;
                color: #1c1c1c;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: background 0.2s ease;
                opacity: 1;
                padding: 0;
            }
            .mobile-chat-input-area .chat-image-btn:hover {
                background: rgba(0, 0, 0, 0.05);
            }
            .mobile-chat-input-area .chat-image-btn svg {
                width: 22px;
                height: 22px;
            }
            .mobile-chat-input-area .chat-send-btn {
                width: 68px;
                height: 68px;
                border-radius: 50%;
                border: none;
                background: #DFFF00;
                color: #1c1c1c;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
                transition: background 0.2s ease, transform 0.15s cubic-bezier(0.32, 0.72, 0, 1);
            }
            .mobile-chat-input-area .chat-send-btn:hover {
                background: #E8FF33;
                transform: scale(1.05);
            }
            .mobile-chat-input-area .chat-send-btn:active {
                transform: scale(0.95);
            }
            .mobile-chat-input-area .chat-send-btn svg {
                width: 28px;
                height: 28px;
                stroke: #1c1c1c;
                transition: transform 0.2s ease;
            }
            .mobile-chat-input-area .chat-send-btn:hover svg {
                transform: translateY(-2px);
            }
            .mobile-chat-input-area .chat-image-preview {
                display: none;
                position: relative;
                margin-bottom: 8px;
            }
            .mobile-chat-input-area .chat-image-preview.visible {
                display: block;
            }
            .mobile-chat-input-area .chat-image-preview img {
                max-width: 100px;
                max-height: 100px;
                border-radius: 8px;
            }
            .mobile-chat-input-area .chat-image-preview-remove {
                position: absolute;
                top: -6px;
                right: -6px;
                width: 20px;
                height: 20px;
                border-radius: 50%;
                background: #333;
                color: white;
                border: none;
                font-size: 14px;
                line-height: 1;
                cursor: pointer;
            }

            /* When chat tab is active on mobile, hide nav and pin compose bar */
            .mobile-detail-tab-content[data-tab-content="chat"].active {
                display: flex !important;
                flex-direction: column !important;
                padding-bottom: 0 !important;
            }
            .mobile-detail-tab-content[data-tab-content="chat"].active .mobile-chat-container {
                display: flex !important;
                flex-direction: column !important;
                flex: 1 !important;
                min-height: 0 !important;
            }
            .mobile-detail-tab-content[data-tab-content="chat"].active .chat-messages {
                flex: 1 !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch !important;
            }
            .mobile-detail-tab-content[data-tab-content="chat"].active .mobile-chat-input-area {
                position: fixed !important;
                bottom: 0 !important;
                left: 0 !important;
                right: 0 !important;
                padding: 12px 20px !important;
                padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
                background: #E8E4E0 !important;
                z-index: 100 !important;
            }
            /* Hide nav rail when chat tab is active */
            body.chat-tab-active .nav-rail {
                display: none !important;
            }
        }

        /* Hide nav when chat tab active - applies only on very small mobile */
        @media (max-width: 500px) {
            body.chat-tab-active {
                overflow: hidden !important;
                position: fixed !important;
                width: 100% !important;
                height: 100% !important;
            }
            body.chat-tab-active .nav-rail {
                display: none !important;
            }
            /* Keep tabs fixed at top when in chat tab */
            body.chat-tab-active #viewClassifieds .mobile-detail-tabs,
            body.chat-tab-active .classifieds-detail-scroll .mobile-detail-tabs {
                position: fixed !important;
                top: 44px !important;
                left: 0 !important;
                right: 0 !important;
                z-index: 101 !important;
                margin: 0 !important;
                padding: 16px 20px 0 20px !important;
                -webkit-transform: translateZ(0) !important;
                transform: translateZ(0) !important;
            }
            body.chat-tab-active .classifieds-detail-scroll {
                overflow: hidden !important;
            }
            body.chat-tab-active .mobile-detail-tab-content[data-tab-content="chat"].active {
                position: fixed !important;
                top: 48px !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                overflow: visible !important;
                padding: 0 20px !important;
                background: transparent !important;
            }
            body.chat-tab-active .mobile-detail-tab-content[data-tab-content="chat"].active .mobile-chat-container {
                height: 100% !important;
                display: flex !important;
                flex-direction: column !important;
                overflow: visible !important;
                background: transparent !important;
                padding-bottom: 0 !important;
            }
            body.chat-tab-active .mobile-detail-tab-content[data-tab-content="chat"].active .chat-messages {
                flex: 1 !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch !important;
                justify-content: flex-end !important;
                padding: 0 !important;
                padding-bottom: 8px !important;
                background: transparent !important;
            }
            body.chat-tab-active .mobile-detail-tab-content[data-tab-content="chat"].active .mobile-chat-input-area {
                position: fixed !important;
                bottom: 0 !important;
                left: 0 !important;
                right: 0 !important;
                padding: 8px 20px !important;
                padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
                background: #E8E4E0 !important;
                z-index: 100 !important;
            }
        }

        /* LARGER VIEWPORTS (501px and above): Original panel styling */
        @media (min-width: 501px) {
            .classifieds-detail-panel,
            .classifieds-detail-panel.visible,
            #classifiedsDetailPanel,
            #classifiedsDetailPanel.visible {
                background: #D6D1CB !important;
            }
            .classifieds-detail-container,
            #classifiedsDetailPanel .classifieds-detail-container,
            .classifieds-detail-panel .classifieds-detail-container,
            .classifieds-detail-panel.visible .classifieds-detail-container,
            #viewClassifieds .classifieds-detail-container,
            #viewClassifieds:has(.classifieds-detail-panel.visible) .classifieds-detail-container {
                background: rgba(255, 255, 255, 0.3) !important;
                border-radius: 32px !important;
            }
            .classifieds-detail-scroll,
            #classifiedsDetailPanel .classifieds-detail-scroll {
                background: transparent !important;
            }
            .classifieds-detail-back-btn {
                background: transparent !important;
            }
        }

        /* MOBILE BUTTONS - MUST BE LAST */
        @media (max-width: 500px) {
            #viewClassifieds .classifieds-header-row {
                display: none !important;
            }
        }
    