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

        .miro-landing,
        .miro-landing button,
        .miro-landing a {
            font-family: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
        }

        .miro-board {
            background-image:
                linear-gradient(rgba(5, 5, 5, 0.035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(5, 5, 5, 0.035) 1px, transparent 1px);
            background-size: 28px 28px;
        }

        .miro-btn-primary,
        .miro-btn-secondary {
            min-height: 44px;
        }

        .miro-feature-card {
            transition: transform 180ms ease, box-shadow 180ms ease;
        }

        .miro-feature-card:hover {
            transform: translateY(-4px) rotate(-0.5deg);
            box-shadow: 0 16px 0 rgba(5, 5, 5, 0.08);
        }

        .dark .miro-landing {
            background:
                radial-gradient(circle at 18% 8%, rgba(255, 208, 47, 0.16), transparent 28%),
                radial-gradient(circle at 86% 18%, rgba(126, 93, 255, 0.18), transparent 30%),
                linear-gradient(135deg, #070a12 0%, #101827 48%, #07111f 100%) !important;
            color: #f8fafc;
        }

        .dark .miro-landing .bg-white,
        .dark .miro-landing .bg-white\/90 {
            background-color: rgba(15, 23, 42, 0.94) !important;
        }

        .dark .miro-landing .text-\[\#050505\] {
            color: #f8fafc !important;
        }

        .dark .miro-landing .text-\[\#424242\],
        .dark .miro-landing .text-\[\#686868\] {
            color: #cbd5e1 !important;
        }

        .dark .miro-landing .border-\[\#050505\]\/10,
        .dark .miro-landing .border-\[\#050505\] {
            border-color: rgba(248, 250, 252, 0.22) !important;
        }

        .dark .miro-board {
            background-color: #111827 !important;
            border-color: rgba(248, 250, 252, 0.18) !important;
            box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58) !important;
            background-image:
                linear-gradient(rgba(248, 250, 252, 0.06) 1px, transparent 1px),
                linear-gradient(90deg, rgba(248, 250, 252, 0.06) 1px, transparent 1px);
        }

        .dark .miro-board-canvas {
            background: #0f172a !important;
            border-color: rgba(248, 250, 252, 0.14) !important;
        }

        .dark .miro-board-stats {
            background: rgba(15, 23, 42, 0.92) !important;
            border-color: rgba(248, 250, 252, 0.18) !important;
        }

        .dark .miro-note-yellow,
        .dark .miro-feature-yellow {
            background: #facc15 !important;
            color: #1f1a00 !important;
        }

        .dark .miro-note-green,
        .dark .miro-feature-green {
            background: #34d399 !important;
            color: #052e22 !important;
        }

        .dark .miro-note-coral,
        .dark .miro-feature-coral {
            background: #fb7185 !important;
            color: #3f0713 !important;
        }

        .dark .miro-note-purple,
        .dark .miro-feature-purple {
            background: #a78bfa !important;
            color: #1e0b4b !important;
        }

        .dark .miro-note *,
        .dark .miro-feature-card * {
            color: inherit !important;
        }

        .dark .miro-btn-secondary {
            background: #f8fafc !important;
            color: #050505 !important;
            border-color: #f8fafc !important;
        }

        .dark .miro-btn-primary {
            background: #facc15 !important;
            color: #050505 !important;
        }

        @media (max-width: 479px) {
            .miro-landing {
                min-height: auto;
            }

            .miro-landing-shell {
                padding-top: 24px !important;
                padding-bottom: 28px !important;
            }

            .miro-landing-top {
                margin-bottom: 28px !important;
            }

            .miro-brand-pill {
                width: 100%;
                justify-content: center;
                padding: 10px 14px !important;
                font-size: 11px !important;
                box-shadow: 0 5px 0 rgba(5, 5, 5, 0.08) !important;
            }

            .miro-hero-grid {
                gap: 22px !important;
            }

            .miro-hero-copy {
                text-align: center;
            }

            .miro-hero-title {
                max-width: 340px;
                margin: 0 auto;
                font-size: clamp(38px, 11.8vw, 48px) !important;
                line-height: 0.96 !important;
                letter-spacing: -1.7px !important;
            }

            .miro-hero-actions {
                margin-top: 24px !important;
                gap: 10px !important;
            }

            .miro-hero-actions .miro-btn-primary,
            .miro-hero-actions .miro-btn-secondary {
                width: 100%;
                min-height: 48px;
                padding: 12px 20px !important;
            }

            .miro-hero-visual {
                min-height: 210px !important;
                margin: 4px -10px 0;
            }

            .miro-hero-glow {
                inset: 8px !important;
                filter: blur(28px);
            }

            .miro-hero-visual img {
                max-width: 112%;
                transform: rotate(-1deg);
                filter: drop-shadow(0 18px 24px rgba(5, 5, 5, 0.18));
            }

            .miro-feature-grid {
                gap: 10px !important;
                margin-top: 28px !important;
            }

            .miro-feature-card {
                display: grid;
                grid-template-columns: 34px 1fr;
                column-gap: 12px;
                align-items: start;
                border-radius: 18px !important;
                padding: 16px !important;
            }

            .miro-feature-card i {
                margin-bottom: 0 !important;
                font-size: 20px !important;
                line-height: 1.2;
            }

            .miro-feature-card h3 {
                margin-bottom: 4px !important;
                font-size: 20px !important;
                line-height: 1.05 !important;
            }

            .miro-feature-card p {
                grid-column: 2;
                font-size: 13px !important;
                line-height: 1.45 !important;
            }
        }

        ::-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%);
        }

        #mobileProfit.auth-hidden,
        #mobileModuleNav.auth-hidden {
            display: none !important;
        }

        /* 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;
        }

/* Miro-inspired visual refresh */
:root {
    --miro-yellow: #ffd02f;
    --miro-yellow-light: #fff7c2;
    --miro-blue: #4262ff;
    --miro-coral-light: #ffd7cc;
    --miro-teal-light: #c7f0e9;
    --miro-rose-light: #ffd9ef;
    --miro-mint-light: #d8f7d0;
    --miro-ink: #050038;
    --miro-charcoal: #1f2937;
    --miro-slate: #5f5c80;
    --miro-surface: #f7f7f8;
    --miro-hairline: #e7e6ef;
    --miro-footer-bg: #050038;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fffdf6;
    color: var(--miro-ink);
    letter-spacing: -0.01em;
}

body.dark {
    background: #0f172a;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 14% 16%, rgba(255, 208, 47, 0.20), transparent 30%),
        radial-gradient(circle at 86% 12%, rgba(66, 98, 255, 0.12), transparent 28%),
        radial-gradient(circle at 78% 86%, rgba(199, 240, 233, 0.24), transparent 34%);
}

#mainNav {
    background: rgba(255, 253, 246, 0.92) !important;
    border-bottom: 1px solid var(--miro-hairline) !important;
    box-shadow: none !important;
    backdrop-filter: blur(18px);
}

.dark #mainNav {
    background: rgba(15, 23, 42, 0.88) !important;
}

#mainNav .bg-gradient-to-br {
    background: var(--miro-yellow) !important;
    color: var(--miro-ink) !important;
    border-radius: 9999px !important;
    box-shadow: none !important;
}

#mainNav h1 {
    color: var(--miro-ink) !important;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.dark #mainNav h1 {
    color: #fff !important;
}

#mainNav h1 .text-orange-500 {
    color: var(--miro-blue) !important;
}

#btnCloudLogin,
#btnLandingLogin {
    background: #050038 !important;
    color: #fff !important;
    border-radius: 9999px !important;
    box-shadow: 0 10px 24px rgba(5, 0, 56, 0.16) !important;
}

#btnCloudPush,
#btnCloudPull,
#btnCompare,
#btnSaveScenario,
#mainNav button[onclick="toggleTheme()"],
#mainNav button[onclick="toggleLanguage()"] {
    border-radius: 9999px !important;
}

#landingPage {
    background: linear-gradient(135deg, #fffdf6 0%, #ffffff 42%, #f5f7ff 100%) !important;
}

.dark #landingPage {
    background: linear-gradient(135deg, #0f172a 0%, #111827 52%, #050038 100%) !important;
}

#landingPage h2 {
    max-width: 780px;
    color: var(--miro-ink) !important;
    font-size: clamp(3rem, 7vw, 5.6rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.07em !important;
    font-weight: 900 !important;
}

.dark #landingPage h2 {
    color: #fff !important;
}

#landingPage .rounded-3xl,
#landingFeatures > div {
    border-radius: 28px !important;
    border-color: var(--miro-hairline) !important;
    box-shadow: 0 12px 32px -10px rgba(5, 0, 56, 0.16) !important;
}

#landingFeatures > div:nth-child(1) {
    background: var(--miro-yellow-light) !important;
}

#landingFeatures > div:nth-child(2) {
    background: var(--miro-teal-light) !important;
}

#landingFeatures > div:nth-child(3) {
    background: var(--miro-rose-light) !important;
}

#landingFeatures > div:nth-child(4) {
    background: var(--miro-mint-light) !important;
}

.dark #landingFeatures > div {
    background: rgba(30, 41, 59, 0.94) !important;
}

#desktopTabsNav {
    background: rgba(255, 253, 246, 0.92) !important;
    border-bottom: 1px solid var(--miro-hairline) !important;
    backdrop-filter: blur(18px);
}

.dark #desktopTabsNav {
    background: rgba(15, 23, 42, 0.88) !important;
}

.module-tabs {
    gap: 8px;
    background: transparent !important;
    padding: 0;
}

.module-tab {
    border: 1px solid var(--miro-hairline);
    background: #fff;
    color: var(--miro-slate);
    border-radius: 9999px;
    padding: 10px 18px;
    font-weight: 700;
    box-shadow: none;
}

.module-tab.active {
    background: #050038 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.module-tab.active i {
    color: var(--miro-yellow) !important;
}

.dark .module-tab {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.dark .module-tab.active {
    background: var(--miro-yellow) !important;
    color: var(--miro-ink) !important;
}

#main-content > .module-panel > div,
#main-content .bg-white,
#main-content .dark\:bg-slate-800 {
    border-radius: 24px !important;
}

#main-content .shadow-sm,
#main-content .shadow-md,
#main-content .shadow-lg {
    box-shadow: 0 4px 14px rgba(5, 0, 56, 0.06) !important;
}

input,
select,
textarea {
    border-radius: 12px !important;
    border-color: var(--miro-hairline) !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--miro-blue) !important;
    box-shadow: 0 0 0 4px rgba(66, 98, 255, 0.12) !important;
}

.platform-btn,
.marketplace-toggle,
.mobile-nav-item {
    border-radius: 9999px !important;
}

.platform-btn.active,
.marketplace-toggle.active {
    background: var(--miro-yellow) !important;
    color: var(--miro-ink) !important;
    border-color: var(--miro-yellow) !important;
    box-shadow: none !important;
    transform: none !important;
}

.sticky-save-btn {
    border-radius: 9999px !important;
    background: #050038 !important;
    color: #fff !important;
    box-shadow: 0 16px 36px rgba(5, 0, 56, 0.18) !important;
}

#mobileProfit {
    background: #050038 !important;
    border-radius: 24px 24px 0 0;
}

.mobile-module-nav {
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 30px rgba(5, 0, 56, 0.08);
}

.mobile-nav-item.active {
    background: var(--miro-yellow) !important;
    color: var(--miro-ink) !important;
}

.toast {
    border-radius: 9999px !important;
    border: 1px solid var(--miro-hairline);
    box-shadow: 0 16px 48px -8px rgba(5, 0, 56, 0.20) !important;
}

@media (max-width: 768px) {
    #landingPage h2 {
        font-size: clamp(2.8rem, 13vw, 4.2rem) !important;
    }

    body[data-authenticated="false"] #mainNav .flex.gap-1 > button:not(#btnCloudLogin) {
        display: none;
    }
}
