        body {
            font-family: 'Inter', sans-serif;
        }

        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 3px;
        }

        .platform-btn.active {
            border-color: currentColor;
            background-color: rgba(255, 255, 255, 0.9);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .toggle-checkbox:checked {
            right: 0;
            border-color: #EE4D2D;
        }

        .toggle-checkbox:checked+.toggle-label {
            background-color: #EE4D2D;
        }

        input:focus,
        select:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        /* Range Slider Styling */
        input[type=range] {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            background: transparent;
        }

        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            height: 16px;
            width: 16px;
            border-radius: 50%;
            background: #4f46e5;
            cursor: pointer;
            margin-top: -6px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        input[type=range]::-webkit-slider-runnable-track {
            width: 100%;
            height: 4px;
            cursor: pointer;
            background: #e2e8f0;
            border-radius: 2px;
        }

        /* Column Layout for Modal */
        .cat-col {
            height: 450px;
            overflow-y: auto;
            border-right: 1px solid #f1f5f9;
            padding-top: 0.5rem;
        }

        .cat-item {
            padding: 10px 16px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.875rem;
            color: #334155;
            transition: all 0.1s;
        }

        .cat-item:hover {
            background-color: #f8fafc;
            color: #EE4D2D;
        }

        .cat-item.active {
            color: #EE4D2D;
            font-weight: 500;
            background-color: #fff1f0;
        }

        /* Search Result Item */
        .search-item {
            padding: 12px 16px;
            cursor: pointer;
            border-bottom: 1px solid #f1f5f9;
            transition: background-color 0.15s;
        }

        .search-item:hover {
            background-color: #f8fafc;
        }

        .group-badge {
            font-size: 0.65rem;
            padding: 1px 4px;
            border-radius: 4px;
            margin-left: 6px;
            font-weight: bold;
            opacity: 0.7;
        }

        .badge-A {
            background: #fee2e2;
            color: #991b1b;
        }

        .badge-B {
            background: #ffedd5;
            color: #9a3412;
        }

        .badge-C {
            background: #fef9c3;
            color: #854d0e;
        }

        .badge-D {
            background: #d1fae5;
            color: #065f46;
        }

        .badge-E {
            background: #dbeafe;
            color: #1e40af;
        }

        .badge-F {
            background: #e0e7ff;
            color: #3730a3;
        }

        .badge-G {
            background: #f3e8ff;
            color: #6b21a8;
        }

        .tab-btn {
            padding: 8px 16px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            color: #64748b;
        }

        .tab-btn.active {
            color: #4f46e5;
            border-bottom-color: #4f46e5;
        }

        /* Toggle Mode Switch */
        .mode-switch {
            position: relative;
            display: inline-flex;
            background: #f1f5f9;
            border-radius: 999px;
            padding: 4px;
        }

        .mode-switch button {
            position: relative;
            z-index: 10;
            padding: 6px 16px;
            font-size: 0.75rem;
            font-weight: 700;
            border-radius: 999px;
            transition: all 0.3s;
            color: #64748b;
        }

        .mode-switch button.active {
            color: #ffffff;
            background: #3b82f6;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .group:hover .group-hover\:block {
            display: block;
            animation: fadeIn 0.2s ease-in-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(5px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ==================== NEW UI/UX ENHANCEMENTS ==================== */

        /* Mobile Responsive Styles */
        @media (max-width: 768px) {
            .cat-col {
                height: 300px;
            }

            #categoryModal>div>div {
                height: 90vh;
                max-height: none;
            }

            #catColsContainer {
                flex-direction: column;
            }

            #catColsContainer>div {
                width: 100% !important;
                height: auto;
                max-height: 200px;
                border-right: none;
                border-bottom: 1px solid #e2e8f0;
            }

            .dark #catColsContainer>div {
                border-bottom-color: #475569;
            }

            /* Hide desktop-only buttons on mobile */
            #btnSaveScenario,
            #btnCompare {
                display: flex !important;
                font-size: 0.65rem;
                padding: 6px 8px;
            }
        }

        /* Sticky Mobile Profit Bar */
        #mobileProfit {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 50;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            padding: 12px 16px;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s ease, background 0.3s ease;
        }

        #mobileProfit.negative {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        }

        /* Tablet mode (>= 768px - 1024px): no mobile nav, so bar at bottom */
        /* Note: Tailwind md is 768px, so at 768px nav is hidden */
        @media (min-width: 768px) and (max-width: 1024px) {
            #mobileProfit {
                display: none;
                bottom: 0px;
                /* At bottom since no mobile nav in tablet/ipad */
            }

            #mobileProfit.show {
                display: flex;
            }

            main {
                padding-bottom: 100px !important;
                /* Massive buffer for tablet sticky bar */
            }

            /* Fix Riwayat Kalkulasi container on tablet */
            #historyContainer {
                max-height: none;
                overflow-y: visible;
                margin-bottom: 40px;
                padding-bottom: 60px;
            }

            /* Layout Fixes for Tablet */
            .grid-cols-3 {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        /* Mobile mode (<768px): has mobile nav, so bar above it */
        @media (max-width: 767.9px) {
            #mobileProfit {
                display: none;
                bottom: 56px;
                /* Above mobile navigation */
            }

            #mobileProfit.show {
                display: flex;
            }

            main {
                padding-bottom: 160px !important;
                /* Buffer: Mobile Nav (56px) + Profit Bar (~80px) + Margin (24px) */
            }

            /* Fix header line on mobile - target nav element directly */
            nav,
            nav.border-b,
            .border-b,
            #mainNav {
                border-bottom: none !important;
                box-shadow: none !important;
            }

            /* Hide desktop tabs container on mobile */
            #desktopTabsNav {
                display: none !important;
            }

            /* Ensure sticky save button is hidden on mobile */
            .sticky-save-btn {
                display: none !important;
            }

            /* Fix content truncation in cards - more aggressive */
            .card-content,
            .result-card,
            .p-6,
            .p-5 {
                overflow-x: visible;
                overflow-y: visible;
            }

            /* Main container needs room */
            .max-w-7xl {
                padding-left: 12px;
                padding-right: 12px;
            }

            /* Fix grid on small screens - make single column for very tight layouts */
            .grid.grid-cols-2 {
                gap: 8px;
            }

            /* Fix Strategi Harga content - ensure no truncation */
            .flex.gap-2 {
                flex-wrap: wrap;
            }

            /* Fix Final price display */
            .final-price-display {
                min-width: auto;
                flex-shrink: 1;
                font-size: 12px;
                padding: 4px 8px;
            }

            /* Fix Riwayat Kalkulasi container - ensure proper height */
            #historyContainer {
                max-height: none;
                overflow-y: visible;
                margin-bottom: 24px;
                padding-bottom: 40px;
            }

            /* History list card - ensure full visibility */
            #historyContainer>div {
                margin-bottom: 8px;
            }

            /* Ensure inputs don't overflow */
            input[type="text"],
            input[type="number"],
            select {
                max-width: 100%;
                box-sizing: border-box;
                font-size: 14px;
            }

            /* Card padding reduction for mobile */
            .rounded-2xl.p-6,
            .rounded-xl.p-6 {
                padding: 16px;
            }

            /* Reduce gap in flex layouts */
            .gap-4 {
                gap: 12px;
            }

            .gap-6 {
                gap: 16px;
            }
        }

        /* Desktop Sticky Save Button */
        .sticky-save-btn {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 100;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 14px 24px;
            background: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);
            color: white;
            font-weight: 700;
            font-size: 14px;
            border-radius: 50px;
            box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
        }

        .sticky-save-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 40px rgba(6, 182, 212, 0.5);
        }

        .dark .sticky-save-btn {
            background: linear-gradient(135deg, #0891b2 0%, #0d9488 100%);
        }

        @media (max-width: 1024px) {
            .sticky-save-btn {
                display: none !important;
            }
        }

        /* Profit Health Indicator Bar */
        .profit-health-bar {
            height: 8px;
            border-radius: 999px;
            background: #e2e8f0;
            overflow: hidden;
            margin-top: 8px;
        }

        .profit-health-fill {
            height: 100%;
            border-radius: 999px;
            transition: width 0.5s ease, background 0.3s ease;
        }

        .profit-health-fill.danger {
            background: linear-gradient(90deg, #ef4444, #f87171);
        }

        .profit-health-fill.warning {
            background: linear-gradient(90deg, #f59e0b, #fbbf24);
        }

        .profit-health-fill.healthy {
            background: linear-gradient(90deg, #10b981, #34d399);
        }

        /* Number Transition Animation */
        .animate-value {
            transition: transform 0.2s ease, color 0.2s ease;
        }

        .animate-value.updating {
            transform: scale(1.05);
        }

        /* Toast Notification */
        #toastContainer {
            position: fixed;
            top: 80px;
            right: 16px;
            z-index: 100;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .toast {
            padding: 12px 16px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            display: flex;
            align-items: center;
            gap: 10px;
            animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
            font-size: 0.875rem;
            font-weight: 500;
            backdrop-filter: blur(10px);
        }

        .toast.success {
            background: rgba(16, 185, 129, 0.95);
            color: white;
        }

        .toast.error {
            background: rgba(239, 68, 68, 0.95);
            color: white;
        }

        .toast.info {
            background: rgba(59, 130, 246, 0.95);
            color: white;
        }

        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }

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

        @keyframes fadeOut {
            from {
                opacity: 1;
            }

            to {
                opacity: 0;
                transform: translateX(20px);
            }
        }

        /* Input Format Enhancement */
        input[type="number"]::-webkit-outer-spin-button,
        input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        input[type="number"] {
            -moz-appearance: textfield;
        }

        .input-formatted {
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.5px;
        }

        /* Collapsible Section for Mobile */
        .section-collapsible .section-content {
            max-height: 2000px;
            overflow: hidden;
            transition: max-height 0.4s ease;
        }

        .section-collapsible.collapsed .section-content {
            max-height: 0;
        }

        .section-collapsible .collapse-icon {
            transition: transform 0.3s ease;
        }

        .section-collapsible.collapsed .collapse-icon {
            transform: rotate(-90deg);
        }

        /* Share Button Styles */
        .share-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            transition: all 0.2s ease;
            cursor: pointer;
        }


        /* WhatsApp share removed */

        .share-btn.copy {
            background: #6366f1;
            color: white;
        }

        .share-btn.copy:hover {
            background: #4f46e5;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

        /* Preset Buttons */
        .preset-btn {
            padding: 6px 10px;
            border-radius: 6px;
            font-size: 0.65rem;
            font-weight: 600;
            border: 1px solid #e2e8f0;
            background: white;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .preset-btn:hover {
            border-color: #3b82f6;
            color: #3b82f6;
            background: #eff6ff;
        }

        .preset-btn.active {
            border-color: #3b82f6;
            background: #3b82f6;
            color: white;
        }

        .dark .preset-btn {
            background: #334155;
            border-color: #475569;
            color: #94a3b8;
        }

        .dark .preset-btn:hover {
            border-color: #60a5fa;
            color: #60a5fa;
            background: #1e3a5f;
        }

        /* Quick Category Selector Buttons */
        .quick-cat-btn {
            background: white;
            border-color: #e2e8f0;
            color: #64748b;
            cursor: pointer;
        }

        .quick-cat-btn:hover {
            border-color: #f97316;
            color: #f97316;
            background: #fff7ed;
        }

        .quick-cat-btn.active {
            background: #f97316;
            border-color: #f97316;
            color: white;
            box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
        }

        .dark .quick-cat-btn {
            background: #334155;
            border-color: #475569;
            color: #94a3b8;
        }

        .dark .quick-cat-btn:hover {
            border-color: #fb923c;
            color: #fb923c;
            background: #431407;
        }

        .dark .quick-cat-btn.active {
            background: #f97316;
            border-color: #f97316;
            color: white;
        }

        /* Pulse Animation for Important Values */
        @keyframes pulse-success {

            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
            }

            50% {
                box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
            }
        }

        @keyframes pulse-danger {

            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
            }

            50% {
                box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
            }
        }

        .pulse-success {
            animation: pulse-success 2s infinite;
        }

        .pulse-danger {
            animation: pulse-danger 2s infinite;
        }

        /* Module Navigation Tabs */
        .module-tabs {
            display: flex;
            gap: 4px;
            background: rgba(241, 245, 249, 0.8);
            padding: 4px;
            border-radius: 12px;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .module-tabs::-webkit-scrollbar {
            display: none;
        }

        .dark .module-tabs {
            background: rgba(30, 41, 59, 0.8);
        }

        .module-tab {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            color: #64748b;
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .module-tab:hover {
            background: rgba(255, 255, 255, 0.5);
            color: #334155;
        }

        .dark .module-tab:hover {
            background: rgba(51, 65, 85, 0.5);
            color: #e2e8f0;
        }

        .module-tab.active {
            background: white;
            color: #1e293b;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .dark .module-tab.active {
            background: #334155;
            color: #f1f5f9;
        }

        .module-tab i {
            font-size: 14px;
        }

        .module-tab.active i {
            color: #f97316;
        }

        /* Module Content Panels */
        .module-panel {
            display: none;
        }

        .module-panel.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        /* Mobile Bottom Navigation */
        .mobile-module-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-top: 1px solid #e2e8f0;
            padding: 8px 12px;
            padding-bottom: calc(8px + env(safe-area-inset-bottom));
            z-index: 100;
            justify-content: space-around;
        }

        .dark .mobile-module-nav {
            background: #1e293b;
            border-color: #334155;
        }

        @media (max-width: 768px) {
            .module-tabs {
                display: none;
            }

            .mobile-module-nav {
                display: flex;
            }

            main {
                padding-bottom: 80px !important;
            }
        }

        .mobile-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 500;
            color: #94a3b8;
            transition: all 0.2s ease;
        }

        .mobile-nav-item i {
            font-size: 18px;
        }

        .mobile-nav-item.active {
            color: #f97316;
        }

        .mobile-nav-item.active i {
            transform: scale(1.1);
        }

        /* Searchable Combobox */
        .combobox-wrapper {
            position: relative;
        }

        .combobox-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 0.625rem 1rem;
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
            background: #f8fafc;
            color: #334155;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .combobox-trigger:hover {
            border-color: #a78bfa;
        }

        .combobox-trigger:focus {
            outline: none;
            border-color: #8b5cf6;
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
        }

        .dark .combobox-trigger {
            background: #334155;
            border-color: #475569;
            color: #e2e8f0;
        }

        .combobox-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            margin-top: 4px;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            z-index: 50;
            max-height: 280px;
            overflow: hidden;
            display: none;
        }

        .combobox-dropdown.open {
            display: block;
            animation: dropdownFade 0.15s ease-out;
        }

        @keyframes dropdownFade {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .dark .combobox-dropdown {
            background: #1e293b;
            border-color: #334155;
        }

        .combobox-search {
            padding: 0.5rem;
            border-bottom: 1px solid #e2e8f0;
        }

        .dark .combobox-search {
            border-color: #334155;
        }

        .combobox-search input {
            width: 100%;
            padding: 0.5rem 0.75rem;
            padding-left: 2rem;
            border: 1px solid #e2e8f0;
            border-radius: 0.375rem;
            font-size: 0.875rem;
            background: #f8fafc;
        }

        .combobox-search input:focus {
            outline: none;
            border-color: #8b5cf6;
        }

        .dark .combobox-search input {
            background: #0f172a;
            border-color: #334155;
            color: #e2e8f0;
        }

        .combobox-options {
            max-height: 200px;
            overflow-y: auto;
            padding: 0.25rem;
        }

        .combobox-option {
            padding: 0.5rem 0.75rem;
            cursor: pointer;
            border-radius: 0.375rem;
            font-size: 0.875rem;
            transition: background 0.1s;
        }

        .combobox-option:hover {
            background: #f1f5f9;
        }

        .combobox-option.selected {
            background: #ede9fe;
            color: #6d28d9;
            font-weight: 500;
        }

        .dark .combobox-option:hover {
            background: #334155;
        }

        .dark .combobox-option.selected {
            background: #4c1d95;
            color: #c4b5fd;
        }

        .combobox-empty {
            padding: 1rem;
            text-align: center;
            color: #94a3b8;
            font-size: 0.875rem;
        }

        /* Toggle Switch */
        .toggle-switch {
            position: relative;
            width: 36px;
            height: 20px;
            background: #cbd5e1;
            border-radius: 10px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .toggle-switch.active {
            background: #8b5cf6;
        }

        .toggle-switch::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 16px;
            height: 16px;
            background: white;
            border-radius: 50%;
            transition: transform 0.3s;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        .toggle-switch.active::after {
            transform: translateX(16px);
        }

        .dark .toggle-switch {
            background: #475569;
        }

        .dark .toggle-switch.active {
            background: #8b5cf6;
        }

        /* Multi-Select Combobox */
        .multiselect-wrapper {
            position: relative;
        }

        .multiselect-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 0.625rem 1rem;
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
            background: #f8fafc;
            color: #334155;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            min-height: 44px;
            height: auto;
            flex-wrap: wrap;
            gap: 8px;
        }

        .multiselect-trigger:hover {
            border-color: #3b82f6;
        }

        .dark .multiselect-trigger {
            background: #334155;
            border-color: #475569;
            color: #e2e8f0;
        }

        .multiselect-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            max-width: 90%;
        }

        .multiselect-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
        }

        .multiselect-badge.shopee {
            background: #FDEDE8;
            color: #EE4D2D;
        }

        .multiselect-badge.tokopedia {
            background: #E6F7E9;
            color: #03AC0E;
        }

        .multiselect-badge.tiktok {
            background: #f1f5f9;
            color: #000;
        }

        .multiselect-badge.lazada {
            background: #E8E9F5;
            color: #10156F;
        }

        .multiselect-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            margin-top: 4px;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            z-index: 50;
            max-height: 320px;
            overflow: hidden;
            display: none;
        }

        .multiselect-dropdown.open {
            display: block;
            animation: dropdownFade 0.15s ease-out;
        }

        .dark .multiselect-dropdown {
            background: #1e293b;
            border-color: #334155;
        }

        .multiselect-options {
            max-height: 260px;
            overflow-y: auto;
            padding: 0.25rem;
        }

        .multiselect-option {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            cursor: pointer;
            border-radius: 6px;
            font-size: 14px;
            transition: background 0.1s;
        }

        .multiselect-option:hover {
            background: #f1f5f9;
        }

        .dark .multiselect-option:hover {
            background: #334155;
        }

        .multiselect-option input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: #3b82f6;
        }

        .mp-tag {
            font-size: 10px;
            padding: 3px 8px;
            /* Increased padding */
            border-radius: 6px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            display: inline-block;
            /* Ensure padding works correctly */
            line-height: normal;
        }

        .mp-tag.shopee {
            background: #fff1f0;
            color: #ff4d4f;
            border: 1px solid #ffccc7;
        }

        .mp-tag.tokopedia {
            background: #f6ffed;
            color: #52c41a;
            border: 1px solid #b7eb8f;
        }

        .mp-tag.tiktok {
            background: #f8f9fa;
            color: #1f2937;
            border: 1px solid #e5e7eb;
        }

        .mp-tag.lazada {
            background: #f0f5ff;
            color: #2f54eb;
            border: 1px solid #adc6ff;
        }

        /* Dark mode adjustments for tags */
        .dark .mp-tag.shopee {
            background: #431418;
            color: #ff7875;
            border-color: #5c2227;
        }

        .dark .mp-tag.tokopedia {
            background: #135200;
            color: #95de64;
            border-color: #237804;
        }

        .dark .mp-tag.tiktok {
            background: #000000;
            color: #ffffff;
            border-color: #374151;
        }

        .dark .mp-tag.lazada {
            background: #10239e;
            color: #85a5ff;
            border-color: #1d39c4;
        }

        /* Badge styles for selected items */
        .multiselect-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            flex: 1;
        }

        .multiselect-badges .badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 8px 3px 6px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            color: #334155;
            transition: all 0.2s;
        }

        .dark .multiselect-badges .badge {
            background: #1e293b;
            border-color: #334155;
            color: #e2e8f0;
        }

        .multiselect-badges .badge .mp-tag {
            font-size: 9px;
            padding: 1px 4px;
            border-radius: 4px;
            border: none;
            /* Remove border inside badge */
        }

        .badge.shopee {
            background: #fff2e8;
            border-color: #ffbb96;
            color: #d4380d;
        }

        .badge.tokopedia {
            background: #f6ffed;
            border-color: #b7eb8f;
            color: #389e0d;
        }

        .badge.tiktok {
            background: #f8f9fa;
            border-color: #e5e7eb;
            color: #1f2937;
        }

        .badge.lazada {
            background: #f0f5ff;
            border-color: #adc6ff;
            color: #1d39c4;
        }

        .dark .badge.shopee {
            background: #431418;
            border-color: #5c2227;
            color: #ff9c6e;
        }

        .dark .badge.tokopedia {
            background: #135200;
            border-color: #237804;
            color: #95de64;
        }

        .dark .badge.tiktok {
            background: #111827;
            border-color: #374151;
            color: #e5e7eb;
        }

        .dark .badge.lazada {
            background: #10239e;
            border-color: #1d39c4;
            color: #85a5ff;
        }

        .badge-remove {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.1);
            color: currentColor;
            font-size: 10px;
            line-height: 1;
            cursor: pointer;
            transition: all 0.2s;
        }

        .badge-remove:hover {
            background: rgba(0, 0, 0, 0.2);
        }

        .dark .badge-remove {
            background: rgba(255, 255, 255, 0.1);
        }

        .dark .badge-remove:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .badge-remove {
            margin-left: 2px;
            padding: 0 2px;
            font-size: 14px;
            line-height: 1;
            border: none;
            background: none;
            cursor: pointer;
            opacity: 0.6;
            color: inherit;
        }

        .badge-remove:hover {
            opacity: 1;
        }

        /* ==================== GLASSMORPHISM ENHANCEMENTS ==================== */

        /* Upgrade Standard Cards to Glass */
        .bg-white.rounded-2xl.shadow-sm,
        .bg-white.rounded-xl.shadow-sm,
        .bg-white.dark\:bg-slate-800.rounded-2xl {
            background: rgba(255, 255, 255, 0.85) !important;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.5);
            box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08) !important;
        }

        .dark .bg-white.rounded-2xl.shadow-sm,
        .dark .bg-white.rounded-xl.shadow-sm,
        .dark .bg-white.dark\:bg-slate-800.rounded-2xl {
            background: rgba(30, 41, 59, 0.7) !important;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3) !important;
        }

        /* Navbar Glass */
        nav#mainNav {
            background: rgba(255, 255, 255, 0.8) !important;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
        }

        .dark nav#mainNav {
            background: rgba(30, 41, 59, 0.8) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        }

        /* Smooth Transitions for Theme Switch */
        body,
        .bg-slate-50,
        .dark\:bg-slate-900 {
            transition: background-color 0.5s ease, color 0.5s ease;
        }

        /* Modern Gradient Text for Logo */
        .text-orange-500 {
            background: linear-gradient(135deg, #EE4D2D 0%, #ff7e5f 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Exclude icons from gradient text */
        i.text-orange-500 {
            background: none;
            -webkit-text-fill-color: initial;
            color: #EE4D2D;
        }

        /* Button Upgrades */
        button {
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        button:active {
            transform: scale(0.96);
        }

        /* Mobile Bottom Nav Glass */
        .mobile-module-nav {
            background: rgba(255, 255, 255, 0.9) !important;
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
        }

        .dark .mobile-module-nav {
            background: rgba(30, 41, 59, 0.9) !important;
            border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
        }