
        :root {
            --bg-color: #050505;
            --text-main: #ffffff;
            --text-muted: rgba(255, 255, 255, 0.6);
            --glass-bg: rgba(255, 255, 255, 0.08);
            --glass-border: rgba(255, 255, 255, 0.12);
            --glass-hover: rgba(255, 255, 255, 0.15);
            --accent-glow-1: #4a25e1;
            --accent-glow-2: #2cb5e8;
            --accent-glow-3: #9b2df1;
            --grid-dot-base: rgba(255, 255, 255, 0.15);
            --grid-dot-glow: rgba(255, 255, 255, 0.8);
            --nav-bg: rgba(5, 5, 5, 0.4);
            --nav-border: rgba(255, 255, 255, 0.05);
            --mobile-nav-bg: #080808;
            --mobile-nav-border: rgba(255, 255, 255, 0.08);
            --feed-bg: #000000;
            --post-card-bg: rgba(255, 255, 255, 0.03);
            --post-card-border: rgba(255, 255, 255, 0.08);
            --post-text-color: #e0e0e0;
        }

        /* ═══════════════════════════════════════════════════════════
           ✨  LIGHT MODE — Creative Ivory & Glass Theme
           Activated by adding class "light-mode" to <html>
        ═══════════════════════════════════════════════════════════ */
        /* ── YouTube-style clean light mode ── */
        html.light-mode {
            --bg-color: #ffffff;
            --text-main: #0f0f0f;
            --text-muted: #606060;
            --glass-bg: rgba(255, 255, 255, 0.9);
            --glass-border: rgba(0, 0, 0, 0.1);
            --glass-hover: rgba(255, 255, 255, 1);
            --accent-glow-1: #4a25e1;
            --accent-glow-2: #0e97d0;
            --accent-glow-3: #7c1fd4;
            --grid-dot-base: rgba(0, 0, 0, 0.07);
            --grid-dot-glow: rgba(74, 37, 225, 0.35);
            --nav-bg: rgba(255, 255, 255, 0.92);
            --nav-border: #e5e5e5;
            --mobile-nav-bg: #ffffff;
            --mobile-nav-border: #e5e5e5;
            --feed-bg: #ffffff;
            --post-card-bg: #ffffff;
            --post-card-border: #e5e5e5;
            --post-text-color: #0f0f0f;
        }

        /* Light mode body */
        html.light-mode body {
            background-color: var(--bg-color);
        }

        /* Light mode aurora – cool blue/purple tint matching brand accent */
        html.light-mode .aurora-blob {
            opacity: 0.18;
            filter: blur(160px) saturate(1.6);
        }
        html.light-mode .blob-1 {
            background: linear-gradient(135deg, #2cb5e8, #6ee7f7);
        }
        html.light-mode .blob-2 {
            background: linear-gradient(135deg, #4a25e1, #818cf8);
        }
        html.light-mode .blob-3 {
            background: linear-gradient(135deg, #9b2df1, #c084fc);
        }

        /* Light mode grid dots */
        html.light-mode .grid-bg {
            background-image: radial-gradient(var(--grid-dot-base) 1px, transparent 1px);
        }
        html.light-mode .grid-glow {
            background-image: radial-gradient(var(--grid-dot-glow) 1.5px, transparent 1.5px);
            opacity: 0.6;
        }

        /* Light mode nav */
        html.light-mode header {
            background: var(--nav-bg) !important;
            backdrop-filter: blur(20px) saturate(2);
            border-bottom-color: var(--nav-border) !important;
        }
        html.light-mode .logo-text { color: var(--text-main); }
        html.light-mode .badge { border-color: var(--text-muted); color: var(--text-muted); }
        html.light-mode .signup-btn { background: #0f0f0f; color: #fff; }
        html.light-mode .signup-btn:hover { background: #1a1a1a; }
        html.light-mode .btn-primary { background: #0f0f0f; color: #fff; }

        /* Light mode profile link */
        html.light-mode .profile-link {
            background: rgba(255, 255, 255, 0.6);
            border-color: rgba(0, 0, 0, 0.12);
            color: #0f0f0f;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }
        html.light-mode .profile-link:hover {
            background: rgba(255, 255, 255, 0.85);
            border-color: rgba(0, 0, 0, 0.2);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        }
        html.light-mode .profile-link span { color: #0f0f0f; }
        html.light-mode .profile-link:hover span { color: var(--accent-glow-2); }

        /* Light mode prompt/search bar */
        html.light-mode .prompt-container {
            background: rgba(255, 255, 255, 0.65);
            border-color: rgba(0, 0, 0, 0.1);
            box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255,255,255,0.9);
            backdrop-filter: blur(30px) saturate(1.8);
        }
        html.light-mode .prompt-container:focus-within {
            border-color: var(--accent-glow-2);
            box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(44, 181, 232, 0.15);
        }
        html.light-mode .prompt-input { color: var(--text-main); }
        html.light-mode .prompt-input::placeholder { color: var(--text-muted); }
        html.light-mode .icon-btn { color: var(--text-muted); }
        html.light-mode .icon-btn:hover { color: var(--text-main); background: rgba(0, 0, 0, 0.06); }
        html.light-mode .platform-toggle { background: rgba(0, 0, 0, 0.05); }
        html.light-mode .toggle-btn { color: var(--text-muted); }
        html.light-mode .toggle-btn.active { background: rgba(0, 0, 0, 0.12); color: var(--text-main); }
        html.light-mode .toggle-btn:not(.active):hover { background: rgba(0, 0, 0, 0.07); color: var(--text-main); }
        html.light-mode .submit-btn { background: rgba(0, 0, 0, 0.05); }
        html.light-mode .submit-btn:hover { background: #0f0f0f; color: #fff; }

        /* Light mode glass action buttons */
        html.light-mode .glass-action-btn {
            background: rgba(255, 255, 255, 0.65);
            border-color: rgba(0, 0, 0, 0.1);
            color: #0f0f0f;
            backdrop-filter: blur(20px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        html.light-mode .glass-action-btn:hover {
            background: rgba(255, 255, 255, 0.9);
            border-color: rgba(0, 0, 0, 0.15);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        }
        /* Light mode QOON Pay logo — slightly larger to match visual scale */
        html.light-mode .qpay-extra-logo { filter: none; opacity: 0.85; height: 48px !important; }

        /* Light mode hero text — no shadows */
        html.light-mode .hero-text h1 {
            text-shadow: none;
            color: var(--text-main);
        }
        html.light-mode .hero-text p {
            color: var(--text-muted);
            text-shadow: none;
        }

        /* Light mode category cards */
        html.light-mode .cat-card {
            background: rgba(255, 255, 255, 0.6);
            border-color: rgba(0, 0, 0, 0.07);
            box-shadow: 0 4px 12px rgba(0,0,0,0.04);
            backdrop-filter: blur(20px);
            background-image: radial-gradient(at 0% 0%, rgba(44, 181, 232, 0.05) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(155, 45, 241, 0.05) 0px, transparent 50%);
        }
        html.light-mode .cat-card:hover {
            background-color: rgba(255, 255, 255, 0.85);
            border-color: rgba(0, 0, 0, 0.1);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }
        html.light-mode .cat-name { color: var(--text-main); }
        html.light-mode .cat-tag { background: rgba(0, 0, 0, 0.06); color: var(--text-muted); }
        html.light-mode .cat-img-wrapper {
            border-color: rgba(0,0,0,0.05);
            background: linear-gradient(90deg,
                rgba(44, 181, 232, 0.12) 25%,
                rgba(155, 45, 241, 0.2) 50%,
                rgba(74, 37, 225, 0.1) 75%);
        }
        html.light-mode .nav-arrow {
            border-color: rgba(0, 0, 0, 0.1);
            background: rgba(255, 255, 255, 0.5);
            color: var(--text-muted);
        }
        html.light-mode .nav-arrow:hover {
            background: rgba(255, 255, 255, 0.85);
            border-color: rgba(0, 0, 0, 0.2);
            color: var(--text-main);
        }

        /* Light mode feed section */
        html.light-mode .feed-section {
            background-color: var(--feed-bg);
            border-top-color: rgba(0,0,0,0.06);
        }
        html.light-mode .post-card {
            background: var(--post-card-bg);
            border-color: var(--post-card-border);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
        }
        html.light-mode .post-text { color: var(--post-text-color); }
        html.light-mode .post-shop-name { color: var(--text-main); }
        html.light-mode .post-time { color: var(--text-muted); }
        html.light-mode .post-actions { border-top-color: rgba(0,0,0,0.06); }
        html.light-mode .action-btn { color: var(--text-muted); }
        html.light-mode .action-btn:hover { color: var(--text-main); }
        html.light-mode .post-avatar { border-color: rgba(0,0,0,0.1); }
        html.light-mode .order-btn { background: #0f0f0f; color: #fff; }
        html.light-mode .carousel-dot { background: rgba(0,0,0,0.25); }
        html.light-mode .carousel-dot.active { background: #0f0f0f; }

        /* Light mode reel shimmer */
        html.light-mode .reel-shimmer {
            background: rgba(0, 0, 0, 0.06) !important;
        }

        /* Light mode section title */
        html.light-mode .section-title { color: var(--text-main) !important; }

        /* Light mode scrollbars */
        html.light-mode ::-webkit-scrollbar-track { background: rgba(0,0,0,0.02); }
        html.light-mode ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }
        html.light-mode ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }

        /* Light mode modals */
        html.light-mode .auth-modal {
            background: #ffffff;
            border-color: rgba(0,0,0,0.08);
            box-shadow: 0 32px 64px rgba(0,0,0,0.15);
        }
        html.light-mode .auth-title { color: #0f0f0f; }
        html.light-mode .auth-subtitle { color: var(--text-muted); }
        html.light-mode .form-input {
            background: rgba(255,255,255,0.8);
            border-color: rgba(0,0,0,0.12);
            color: #0f0f0f;
        }
        html.light-mode .form-input:focus { border-color: var(--accent-glow-2); background: #fff; }
        html.light-mode .auth-submit-btn { background: #0f0f0f; color: #fff; }
        html.light-mode .auth-toggle-link { color: var(--text-muted); }
        html.light-mode .auth-toggle-link span { color: #0f0f0f; }
        html.light-mode .btn-email {
            background: rgba(0,0,0,0.05);
            color: #0f0f0f;
            border-color: rgba(0,0,0,0.1);
        }
        html.light-mode .btn-email:hover { background: rgba(0,0,0,0.08); }
        html.light-mode .social-btn { border-color: rgba(0,0,0,0.1); }

        /* Light mode profile dropdown */
        html.light-mode .profile-dropdown {
            background: #ffffff;
            border-color: rgba(0,0,0,0.08);
            box-shadow: 0 25px 60px rgba(0,0,0,0.15);
        }
        html.light-mode .dropdown-item { color: rgba(15,14,13,0.75); }
        html.light-mode .dropdown-item:hover { background: rgba(0,0,0,0.05); color: #0f0f0f; }
        html.light-mode .dropdown-divider { background: rgba(0,0,0,0.06); }

        /* Light mode mobile nav */
        html.light-mode .mobile-nav {
            background-color: var(--mobile-nav-bg) !important;
            border-top-color: var(--mobile-nav-border) !important;
        }
        html.light-mode .mobile-nav-item { color: rgba(15,14,13,0.4); }
        html.light-mode .mobile-nav-item.active { color: #0f0f0f; }
        html.light-mode .mobile-nav-center {
            background: #fff;
            border-color: rgba(0,0,0,0.1);
            box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        }

        /* Light mode teleport modal */
        html.light-mode #teleport-modal {
            background: #ffffff;
            border-color: rgba(0,0,0,0.08);
            box-shadow: 0 40px 100px rgba(0,0,0,0.2);
        }
        html.light-mode #teleport-search-bar {
            background: rgba(255,255,255,0.8);
            border-color: rgba(0,0,0,0.12);
            color: #0f0f0f;
        }
        html.light-mode .teleport-close {
            background: rgba(0,0,0,0.06);
            color: #0f0f0f;
        }
        html.light-mode #teleport-results {
            background: #ffffff;
            border-color: rgba(0,0,0,0.1);
        }
        html.light-mode .teleport-result-item { border-bottom-color: rgba(0,0,0,0.05); }
        html.light-mode .teleport-result-item:hover { background: rgba(0,0,0,0.04); }

        /* Light mode location overlay */
        html.light-mode .location-overlay {
            background: rgba(240, 237, 232, 0.6);
            border-color: rgba(0,0,0,0.06);
            box-shadow: 0 30px 60px rgba(0,0,0,0.12);
        }
        html.light-mode .location-content {
            background: rgba(255,255,255,0.7);
            border-color: rgba(0,0,0,0.08);
            box-shadow: 0 40px 100px rgba(0,0,0,0.15);
        }
        html.light-mode .location-btn { background: #0f0f0f; color: #fff; }
        html.light-mode .location-status { color: var(--accent-glow-2); }

        /* Light mode — s-commerce title gradient stays vibrant */
        html.light-mode .s-commerce-anim { text-shadow: none; }

        /* Light mode logout/QR cards */
        html.light-mode .logout-card {
            background: rgba(255,255,255,0.8);
            border-color: rgba(0,0,0,0.08);
        }
        html.light-mode .logout-card h2 { color: #0f0f0f; }
        html.light-mode .logout-card p { color: var(--text-muted); }
        html.light-mode .l-btn.cancel { background: rgba(0,0,0,0.05); color: #0f0f0f; border-color: rgba(0,0,0,0.1); }
        html.light-mode .qr-card {
            background: rgba(255,255,255,0.75);
            border-color: rgba(0,0,0,0.08);
        }
        html.light-mode .qr-card h2 { color: #0f0f0f; }
        html.light-mode .qr-card p { color: var(--text-muted); }
        html.light-mode .close-qr { background: rgba(0,0,0,0.06); color: #0f0f0f; }
        html.light-mode .u-phone-qr { color: var(--text-muted); }

        /* ── Theme Toggle Button ── */
        .theme-fab {
            position: fixed;
            bottom: 28px;
            right: 28px;
            width: 52px;
            height: 52px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
            /* Dark mode look */
            background: linear-gradient(135deg, #4a25e1, #2cb5e8);
            color: #fff;
            box-shadow: 0 4px 20px rgba(44, 181, 232, 0.4), 0 0 0 1px rgba(255,255,255,0.1);
        }
        .theme-fab:hover {
            transform: scale(1.12) rotate(20deg);
            box-shadow: 0 8px 32px rgba(44, 181, 232, 0.5), 0 0 0 1px rgba(255,255,255,0.15);
        }
        .theme-fab:active { transform: scale(0.96); }

        html.light-mode .theme-fab {
            background: linear-gradient(135deg, #ffffff, #f2f2f2);
            color: #4a25e1;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px #e5e5e5;
        }
        html.light-mode .theme-fab:hover {
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0,0,0,0.1);
        }

        /* Icon spin animation on toggle */
        .theme-fab .fab-icon {
            transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s;
            display: block;
        }
        .theme-fab.spinning .fab-icon {
            transform: rotate(360deg);
        }

        /* ── Mobile: hide FAB when nav is at bottom to avoid overlap ── */
        @media (max-width: 768px) {
            .theme-fab { bottom: 84px; right: 16px; width: 44px; height: 44px; font-size: 17px; }
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
        }

        /* --- Location Request Overlay --- */
        .location-overlay {
            position: relative;
            width: 100%;
            padding: 80px 20px;
            background: rgba(20, 20, 30, 0.4);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            margin: 40px auto;
            max-width: 800px;
            box-shadow: 0 30px 60px rgba(0,0,0,0.5);
        }

        .location-overlay::before {
            content: '';
            position: absolute;
            width: 150%;
            height: 150%;
            background: radial-gradient(circle at 30% 30%, var(--accent-glow-1) 0%, transparent 40%),
                        radial-gradient(circle at 70% 70%, var(--accent-glow-2) 0%, transparent 40%),
                        radial-gradient(circle at 50% 50%, var(--accent-glow-3) 0%, transparent 50%);
            opacity: 0.2;
            filter: blur(80px);
            animation: rotateBG 20s infinite linear;
        }

        @keyframes rotateBG {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .location-content {
            position: relative;
            z-index: 2;
            text-align: center;
            max-width: 440px;
            padding: 40px;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(40px);
            -webkit-backdrop-filter: blur(40px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 48px;
            box-shadow: 0 40px 100px rgba(0,0,0,0.8);
            transform: translateY(0);
            animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

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

        .location-icon-pulsar {
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, var(--accent-glow-1), var(--accent-glow-2));
            border-radius: 35%;
            margin: 0 auto 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            color: #fff;
            position: relative;
            box-shadow: 0 20px 40px rgba(44, 181, 232, 0.3);
        }

        .location-icon-pulsar::after {
            content: '';
            position: absolute;
            inset: -10px;
            border-radius: inherit;
            border: 2px solid var(--accent-glow-2);
            opacity: 0;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); opacity: 0.5; }
            100% { transform: scale(1.4); opacity: 0; }
        }

        .location-content h1 {
            font-size: 32px;
            font-weight: 800;
            margin-bottom: 16px;
            letter-spacing: -1px;
        }

        .location-content p {
            font-size: 16px;
            color: var(--text-muted);
            line-height: 1.6;
            margin-bottom: 40px;
        }

        .location-btn {
            width: 100%;
            background: #fff;
            color: #000;
            border: none;
            padding: 20px 32px;
            border-radius: 24px;
            font-size: 18px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        .location-btn:hover {
            transform: scale(1.02);
            box-shadow: 0 20px 40px rgba(255,255,255,0.1);
        }

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

        .location-status {
            margin-top: 20px;
            font-size: 14px;
            color: var(--accent-glow-2);
            font-weight: 500;
            min-height: 20px;
        }

        body.location-locked {
            /* overflow: hidden removed so user can scroll to see categories */
        }

        html {
            
            
        }
        
        body {
            background-color: var(--bg-color);
            color: var(--text-main);
            min-height: 100vh;
            width: 100%;
            max-width: 100%;
            overflow-x: clip !important; /* Block horizontal swipe */
            
            position: relative;
            margin: 0;
            padding: 0;
        }

        /* --- Interactive Dot Grid Background --- */
        .grid-bg {
            position: fixed;
            inset: 0;
            z-index: 1;
            /* Faint base grid — uses CSS var so it changes with light/dark mode */
            background-image: radial-gradient(var(--grid-dot-base) 1px, transparent 1px);
            background-size: 24px 24px;
            pointer-events: none;
        }

        /* The glowing layer that follows the mouse */
        .grid-glow {
            position: fixed;
            inset: 0;
            z-index: 2;
            /* Brighter grid — uses CSS var so it responds to light/dark mode */
            background-image: radial-gradient(var(--grid-dot-glow) 1.5px, transparent 1.5px);
            background-size: 24px 24px;
            pointer-events: none;
            /* Mask reveals this brighter grid only near the mouse */
            mask-image: radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 100%);
            -webkit-mask-image: radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 100%);
            opacity: 0.8;
            transition: opacity 0.3s;
        }

        /* On mobile: hide dot grid (no mouse), keep aurora clipped */
        @media (max-width: 768px) {
            .grid-bg, .grid-glow { display: none; }
            .aurora-container { overflow: hidden; clip: rect(0, 100vw, 100vh, 0); }
        }

        .aurora-container {
            position: fixed;
            inset: 0;
            z-index: 0;
            overflow: hidden;
            pointer-events: none;
        }

        .aurora-blob {
            position: absolute;
            border-radius: 50%;
            filter: blur(120px);
            opacity: 0.6;
            animation: moveBlob 20s infinite alternate ease-in-out;
            /* Slight movement based on mouse */
            transform: translate(calc(var(--mouse-x-norm, 0) * 40px), calc(var(--mouse-y-norm, 0) * 40px));
            transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        .blob-1 {
            width: 70vw;
            height: 40vh;
            background: var(--accent-glow-2);
            bottom: -5vh;
            left: 0;
            animation-delay: 0s;
        }

        .blob-2 {
            width: 60vw;
            height: 50vh;
            background: var(--accent-glow-1);
            bottom: -10vh;
            right: 0;
            animation-delay: -5s;
        }

        .blob-3 {
            width: 50vw;
            height: 30vh;
            background: var(--accent-glow-3);
            bottom: 10vh;
            left: 15vw;
            opacity: 0.4;
            animation-delay: -10s;
        }

        @keyframes moveBlob {
            0% {
                transform: scale(1) translate(0, 0) rotate(0deg);
            }

            50% {
                transform: scale(1.1) translate(5%, -10%) rotate(5deg);
            }

            100% {
                transform: scale(0.9) translate(-5%, 5%) rotate(-5deg);
            }
        }

        @keyframes shimmer {
            0% {
                background-position: 400% 0;
            }

            100% {
                background-position: -400% 0;
            }
        }

        /* --- Layout & Navbar --- */
        .content-wrapper {
            position: relative;
            z-index: 10;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            padding: 24px 40px;
            overflow-x: clip; /* Prevent horizontal iOS drag */
        }

        @media (max-width: 768px) {
            .content-wrapper {
                padding: 16px 0;
            }
            .content-wrapper > main {
                padding: 0 16px;
            }
        }

        .categories-section {
            width: 100%;
            padding: 16px 0 0 0;
        }

        .cat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            margin-bottom: 24px;
        }

        .section-title {
            font-size: clamp(32px, 4vw, 44px);
            font-weight: 500;
            letter-spacing: -1px;
            margin: 0;
        }

        .cat-nav {
            display: flex;
            gap: 12px;
        }

        .nav-arrow {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.3);
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .nav-arrow:hover {
            color: var(--text-main);
            border-color: rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 0.05);
        }

        .category-grid {
            display: flex;
            gap: 20px;
            padding: 20px 4px 40px 4px;
            margin: -20px -4px -40px -4px;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            scrollbar-width: none;
        }

        .category-grid::after {
            content: '';
            display: block;
            flex: 0 0 20px;
        }

        .category-grid::-webkit-scrollbar {
            display: none;
            /* Chrome/Safari */
        }

        .cat-card {
            flex: 0 0 auto;
            width: clamp(240px, 20vw, 280px);
            /* Slightly smaller to fit 5 cleanly */
            height: auto;
            /* Shrink to fit without empty bottom space */
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 32px;
            padding: 32px;
            display: flex;
            flex-direction: column;
            scroll-snap-align: start;
            transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            /* Default abstract mesh gradient background for style */
            background-image: radial-gradient(at 0% 0%, rgba(44, 181, 232, 0.15) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(155, 45, 241, 0.15) 0px, transparent 50%);
        }

        .cat-card:hover {
            transform: translateY(-8px);
            background-color: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .cat-img-wrapper {
            width: 100%;
            aspect-ratio: 1;
            /* Full screen square shape */
            border-radius: 20px;
            /* the requested curve */
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.05);
            margin-bottom: 24px;
            box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.2);
            /* Shimmer loading backdrop matching UI colors */
            background: linear-gradient(90deg,
                    rgba(44, 181, 232, 0.1) 25%,
                    rgba(155, 45, 241, 0.3) 50%,
                    rgba(74, 37, 225, 0.1) 75%);
            background-size: 200% 100%;
            animation: shimmer 3s infinite linear;
            position: relative;
        }

        .cat-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* Fill the square fully */
            transition: transform 0.5s;
        }

        .cat-card:hover .cat-img {
            transform: scale(1.1);
        }

        .cat-name {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-main);
            line-height: 1.2;
            margin-bottom: 8px;
        }

        .cat-tag {
            font-size: 13px;
            color: var(--text-muted);
            background: rgba(255, 255, 255, 0.08);
            padding: 4px 12px;
            border-radius: 99px;
            display: inline-block;
            align-self: flex-start;
        }

        /* --- Social Feed Section (Black Background) --- */
        .reels-track {
            padding-right: 0 !important;
        }
        .reels-track::after {
            content: '';
            display: block;
            flex: 0 0 max(20px, calc(50vw - 340px));
            height: 1px;
        }

        .feed-section {
            background-color: var(--feed-bg);
            width: 100%;
            margin: 0;
            padding: 80px 0;
            min-height: 100vh;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            position: relative;
            z-index: 10;
        }

        .feed-container {
            max-width: 680px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

        .post-card {
            background: var(--post-card-bg);
            border: 1px solid var(--post-card-border);
            border-radius: 24px;
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

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

        .post-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .post-shop-info {
            flex: 1;
        }

        .post-shop-name {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-main);
        }

        .post-time {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .post-text {
            font-size: 15px;
            line-height: 1.5;
            color: #e0e0e0;
        }

        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }

        .no-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .carousel-dot {
            height: 5px;
            width: 5px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 99px;
            transition: all 0.3s;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
        }

        .carousel-dot.active {
            width: 18px;
            background: #fff;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
        }

        .post-img {
            width: 100%;
            border-radius: 16px;
            object-fit: cover;
            max-height: 500px;
            background: #111;
        }

        /* Engagement Actions */
        .post-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 16px;
            margin-top: 8px;
        }

        .action-group {
            display: flex;
            gap: 16px;
        }

        .action-btn {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: color 0.2s;
        }

        .action-btn:hover {
            color: var(--text-main);
        }

        .action-btn i {
            font-size: 18px;
        }

        .order-btn {
            background: var(--text-main);
            color: #000;
            padding: 8px 20px;
            border-radius: 99px;
            font-weight: 600;
            font-size: 14px;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: opacity 0.2s;
        }

        .order-btn:hover {
            opacity: 0.9;
        }

        .signup-btn {
            background: #fff;
            color: #000;
            padding: 10px 24px;
            border-radius: 99px;
            font-weight: 600;
            font-size: 14px;
            text-decoration: none;
            transition: transform 0.2s, opacity 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .signup-btn:hover {
            opacity: 0.9;
            transform: scale(1.03);
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo-area {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-text {
            font-size: 24px;
            font-weight: 600;
            letter-spacing: -0.5px;
        }

        .badge {
            border: 1px solid var(--text-muted);
            border-radius: 99px;
            padding: 3px 10px;
            font-size: 11px;
            font-weight: 500;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-primary {
            background: #ffffff;
            color: #000000;
            border: none;
            border-radius: 99px;
            padding: 10px 24px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s, opacity 0.2s;
        }

        .btn-primary:hover {
            opacity: 0.9;
            transform: scale(1.02);
        }

        /* --- Hero Section --- */
        main {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding-bottom: 5vh;
            /* Push everything slightly up */
        }

        .hero-text {
            text-align: center;
            margin-top: 80px;
            margin-bottom: 60px;
        }

        .hero-text h1 {
            font-size: clamp(48px, 6vw, 84px);
            font-weight: 600;
            line-height: 1.1;
            letter-spacing: -2px;
            margin-bottom: 24px;
            /* Optional: slight text shadow to pop off background */
            text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
        }

        .hero-text p {
            font-size: clamp(16px, 2vw, 22px);
            color: var(--text-main);
            font-weight: 400;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        /* --- Prompt / Chat Search Bar --- */
        .prompt-container {
            width: 100%;
            max-width: 900px;
            /* Slightly wider */
            background: rgba(255, 255, 255, 0.03);
            /* Extremely subtle glass */
            backdrop-filter: blur(28px);
            -webkit-backdrop-filter: blur(28px);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 99px;
            /* Pill shape */
            box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
            padding: 8px 12px;
            /* Horizontal padding for pill */
            display: flex;
            flex-direction: row;
            /* Horizontal layout */
            align-items: center;
            transition: box-shadow 0.3s, border-color 0.3s;
            position: relative;
            overflow: hidden;
        }

        /* Optional: Add a subtle ambient glow inside the box that follows mouse */
        .prompt-container::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle 200px at var(--local-mouse-x, 50%) var(--local-mouse-y, 50%), rgba(255, 255, 255, 0.05), transparent);
            pointer-events: none;
            z-index: 0;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .prompt-container:hover::before {
            opacity: 1;
        }

        .prompt-container:focus-within {
            border-color: rgba(255, 255, 255, 0.15);
            box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
        }

        /* Input styling */
        .prompt-input {
            flex: 1;
            /* Take up remaining space */
            background: transparent;
            border: none;
            color: var(--text-main);
            font-size: 16px;
            outline: none;
            font-family: 'Inter', sans-serif;
            position: relative;
            z-index: 1;
            margin: 0 12px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .prompt-input::placeholder {
            color: var(--text-muted);
        }

        /* Toolbar */
        .prompt-toolbar {
            display: flex;
            align-items: center;
            position: relative;
            z-index: 1;
            gap: 8px;
        }

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

        /* Icon buttons */
        .icon-btn {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 16px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .icon-btn:hover {
            color: var(--text-main);
            background: var(--glass-hover);
        }

        /* Toggle switches (Appli / Web) */
        .platform-toggle {
            display: flex;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 99px;
            padding: 4px;
            gap: 4px;
        }

        .toggle-btn {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 13px;
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 99px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .toggle-btn i {
            font-size: 12px;
        }

        .toggle-btn.active {
            background: rgba(255, 255, 255, 0.15);
            color: var(--text-main);
        }

        .toggle-btn:not(.active):hover {
            color: var(--text-main);
            background: rgba(255, 255, 255, 0.08);
        }

        /* Model Selector Dropdown styling */
        .model-select {
            background: rgba(255, 255, 255, 0.05);
            border: none;
            border-radius: 99px;
            padding: 8px 16px;
            color: var(--text-main);
            font-size: 13px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .model-select:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        /* Submit Button (Up Arrow) */
        .submit-btn {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-muted);
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .prompt-input:not(:placeholder-shown)~.prompt-toolbar .submit-btn {
            background: var(--text-main);
            color: var(--bg-color);
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            background: var(--text-main);
            color: var(--bg-color);
        }

        /* --- Signup Modal (Auth) --- */
        .auth-overlay {
            position: fixed;
            inset: 0;
            z-index: 10001;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(12px);
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .auth-modal {
            background: rgba(20, 20, 20, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 32px;
            width: 100%;
            max-width: 400px;
            padding: 40px;
            text-align: center;
            box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
            transform: scale(0.9);
            transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        .auth-title {
            font-size: 26px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #fff;
        }

        .auth-subtitle {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 32px;
            line-height: 1.5;
        }

        .social-btns {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .social-btn {
            height: 52px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.2s;
        }

        .btn-google {
            background: #fff;
            color: #000;
            border: none;
        }

        .btn-google:hover {
            filter: brightness(0.92);
            transform: translateY(-2px);
        }

        .btn-apple {
            background: #000;
            color: #fff;
            border-color: rgba(255, 255, 255, 0.2);
        }

        .btn-apple:hover {
            background: #111;
            border-color: rgba(255, 255, 255, 0.4);
            transform: translateY(-2px);
        }

        .social-btn i {
            font-size: 20px;
        }

        .btn-email {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
            border: 1px solid rgba(255,255,255,0.1);
        }
        .btn-email:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255,255,255,0.3);
            transform: translateY(-2px);
        }

        /* Email Form Styles */
        .auth-form {
            display: none;
            flex-direction: column;
            gap: 16px;
            margin-top: 24px;
            text-align: left;
            animation: fadeIn 0.3s ease-out;
        }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        
        .form-group { display: flex; flex-direction: column; gap: 8px; }
        .form-group label { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
        .form-input {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 12px;
            height: 48px;
            padding: 0 16px;
            color: #fff;
            font-size: 14px;
            outline: none;
            transition: 0.2s;
        }
        .form-input:focus { border-color: var(--accent-glow-2); background: rgba(255,255,255,0.08); }
        
        .auth-submit-btn {
            height: 50px;
            border-radius: 14px;
            background: var(--text-main);
            color: #000;
            font-weight: 700;
            border: none;
            cursor: pointer;
            margin-top: 8px;
            transition: 0.2s;
        }
        .auth-submit-btn:hover { opacity: 0.9; transform: scale(1.02); }
        .auth-toggle-link {
            text-align: center;
            font-size: 13px;
            color: var(--text-muted);
            margin-top: 12px;
        }
        .auth-toggle-link span { color: #fff; cursor: pointer; text-decoration: underline; }

        /* Liquid Glass Profile Link Base */
        .profile-link {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(16px) saturate(180%);
            -webkit-backdrop-filter: blur(16px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 99px;
            padding: 4px 18px 4px 4px;
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: #fff;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(255,255,255,0.05);
            margin-left: 10px;
        }

        .profile-link img {
            width: 36px !important;
            height: 36px !important;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.2);
            object-fit: cover;
            transition: all 0.4s ease;
        }

        .profile-link span {
            font-weight: 600;
            font-size: 14px;
            letter-spacing: -0.2px;
            transition: 0.3s;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 140px; /* Dynamic grow up to 140px, then truncate */
            display: inline-block;
        }

        .profile-link:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.1);
        }

        .profile-link:hover img {
            border-color: #fff;
            transform: scale(1.05) rotate(-5deg);
        }

        .profile-link:hover span {
            color: var(--accent-glow-2);
        }

        /* Profile Dropdown Menu */
        .profile-menu-container {
            position: relative;
        }

        .profile-dropdown {
            position: absolute;
            top: calc(100% + 15px);
            right: 0;
            width: 240px;
            background: rgba(15, 15, 15, 0.85);
            backdrop-filter: blur(30px) saturate(180%);
            -webkit-backdrop-filter: blur(30px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            padding: 10px;
            display: none;
            flex-direction: column;
            gap: 4px;
            z-index: 2000;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
            transform-origin: top right;
            animation: dropdownEntry 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        }

        @keyframes dropdownEntry {
            from { opacity: 0; transform: translateY(-10px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 16px;
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            border-radius: 16px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .dropdown-item i {
            font-size: 18px;
            width: 24px;
            text-align: center;
            color: var(--accent-glow-2);
            transition: 0.3s;
        }

        .dropdown-item:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            transform: translateX(6px);
        }

        .dropdown-item:hover i {
            transform: scale(1.1);
            color: #fff;
        }

        .dropdown-divider {
            height: 1px;
            background: rgba(255, 255, 255, 0.05);
            margin: 6px 12px;
        }

        .dropdown-item.logout {
            color: #ff4d64;
        }

        .dropdown-item.logout i {
            color: #ff4d64;
        }

        .dropdown-item.logout:hover {
            background: rgba(255, 77, 100, 0.1);
        }

        .auth-step { display: none; flex-direction: column; gap: 16px; animation: fadeIn 0.4s ease-out; }
        .auth-step.active { display: flex; }

        .gender-group { display: flex; gap: 12px; }
        .gender-btn { 
            flex: 1; height: 48px; border-radius: 12px; background: rgba(255,255,255,0.05); 
            border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); 
            display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: 0.2s;
        }
        .gender-btn.active { background: var(--text-main); color: #000; border-color: var(--text-main); }

        .avatar-preview-box {
            width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.05); 
            border: 2px dashed rgba(255,255,255,0.1); margin: 0 auto 16px; display: flex; 
            align-items: center; justify-content: center; overflow: hidden;
        }
        .avatar-preview-box img { width: 100%; height: 100%; object-fit: cover; }

        /* --- MOBILE OPTIMIZATION --- */
        @media (max-width: 768px) {
            .content-wrapper {
                padding: 16px;
                padding-top: 80px;
            }

            header {
                position: fixed !important;
                top: 0;
                left: 0;
                right: 0;
                height: 70px;
                padding: 0 24px;
                z-index: 15000;
                background: var(--nav-bg) !important;
                backdrop-filter: blur(12px);
                border-bottom: 1px solid var(--nav-border) !important;
                margin-bottom: 0;
            }

            .logo-area img {
                height: 30px !important;
            }

            .signup-btn {
                padding: 8px 18px;
                font-size: 13px;
            }

            .profile-link {
                background: rgba(255, 255, 255, 0.05);
                backdrop-filter: blur(15px);
                -webkit-backdrop-filter: blur(15px);
                border: 1px solid rgba(255, 255, 255, 0.2);
                border-radius: 99px;
                padding: 4px 14px 4px 5px;
                display: flex;
                align-items: center;
                gap: 10px;
                text-decoration: none;
                color: #fff;
                transition: all 0.4s ease;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            }

            .profile-link img {
                width: 32px !important;
                height: 32px !important;
                border-radius: 50%;
                border: 2px solid rgba(255, 255, 255, 0.4);
                object-fit: cover;
            }

            .profile-link:hover {
                background: rgba(255, 255, 255, 0.12);
                border-color: #fff;
                transform: translateY(-2px);
            }

            .profile-link:hover img {
                transform: scale(1.1);
            }

            .profile-link span {
                font-size: 13px;
                font-weight: 700;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                max-width: 100px; /* Tighter truncation for mobile screens */
                display: inline-block;
            }

            .hero-text {
                margin-top: 40px;
                margin-bottom: 40px;
                padding: 0 10px;
            }

            .hero-text h1 {
                font-size: clamp(34px, 10vw, 48px);
                letter-spacing: -1px;
            }

            .hero-text p {
                font-size: 16px;
                line-height: 1.4;
                opacity: 0.8;
            }

            .prompt-container {
                border-radius: 99px;
                padding: 4px 8px;
                flex-direction: row;
                height: 50px;
                gap: 0;
                align-items: center;
            }

            .prompt-input {
                flex: 1;
                margin: 0 8px;
                font-size: 14px;
                min-width: 0;
            }

            .prompt-toolbar {
                width: auto;
                border-top: none;
                padding: 0;
                gap: 4px;
            }

            .platform-toggle {
                background: transparent;
                padding: 0;
                gap: 2px;
            }

            .toggle-btn {
                padding: 6px 10px;
            }

            .toggle-btn span {
                display: none;
            }

            .toggle-btn i {
                font-size: 14px;
            }

            .submit-btn {
                width: 36px;
                height: 36px;
            }

            .icon-btn {
                display: none;
            }

            /* Hide search icon to save space if needed, or keep it tiny */

            .auth-modal {
                padding: 32px 24px;
                border-radius: 24px;
            }

            .auth-title {
                font-size: 22px;
            }

            /* --- BULLETPROOF DOCKED NAV MOBILE --- */
            .mobile-nav {
                display: flex;
                position: fixed !important;
                bottom: 0 !important;
                left: 0 !important;
                right: 0 !important;
                width: 100% !important;
                height: 70px !important;
                padding-bottom: env(safe-area-inset-bottom);
                background-color: var(--mobile-nav-bg) !important;
                border-top: 1px solid var(--mobile-nav-border) !important;
                z-index: 999999 !important;
                align-items: center;
                justify-content: space-around;
                margin: 0 !important;
            }

            .mobile-nav-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                color: rgba(255, 255, 255, 0.4);
                height: 100%;
                position: relative;
                flex: 1;
            }

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

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

            .mobile-nav-center {
                position: absolute;
                left: 50%;
                top: -30px;
                margin-left: -33px;
                width: 66px;
                height: 66px;
                border-radius: 50%;
                background: #000;
                display: flex;
                align-items: center;
                justify-content: center;
                border: 2px solid rgba(255, 255, 255, 0.1);
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
                z-index: 2;
            }

            .mobile-nav-center img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 50%;
            }

            .nav-dot {
                position: absolute;
                top: 18px;
                margin-left: 12px;
                width: 8px;
                height: 8px;
                background: #ff2d55;
                border-radius: 50%;
            }

            .categories-section {
                padding: 0 16px;
                margin-bottom: 40px;
            }

            .category-grid {
                padding: 0 0 40px;
                gap: 12px;
            }

            .cat-chunk {
                gap: 12px !important;
            }

            .cat-card {
                width: 140px;
                border-radius: 24px;
                padding: 16px;
                background-image: none;
                background: rgba(255, 255, 255, 0.05);
            }

            .cat-img-wrapper {
                border-radius: 16px;
            }

            .cat-name {
                font-size: 13px;
                margin-top: 10px;
                font-weight: 600;
                text-align: center;
            }

            .cat-tag {
                display: none;
            }

            .cat-nav {
                display: none;
            }

            .feed-section {
                padding: 20px 0 100px 0;
                width: calc(100% + 32px);
                margin-left: -16px;
                background-color: #000;
            }

            .post-card {
                border-radius: 0;
                padding: 20px 0;
                border-left: none;
                border-right: none;
                margin: 0 -20px 10px -20px;
                width: auto;
                background: #0a0a0a;
                border-top: 1px solid rgba(255, 255, 255, 0.05);
                border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            }

            /* Apply side padding only to text/headers, allowing images to stretch 100% horizontally */
            .post-header,
            .post-text,
            .post-actions {
                padding-left: 16px;
                padding-right: 16px;
            }

            .post-img {
                border-radius: 0 !important;
                max-height: 60vh;
            }

            .carousel-container, .carousel-container > div {
                border-radius: 0 !important;
            }

            .post-avatar {
                width: 40px;
                height: 40px;
            }

            .post-shop-name {
                font-size: 15px;
            }

            .post-text {
                font-size: 14px;
                line-height: 1.4;
                margin-top: 8px;
                margin-bottom: 12px;
            }

            .order-btn {
                width: 100%;
                justify-content: center;
                margin-top: 10px;
            }

            .post-actions {
                flex-direction: column;
                gap: 16px;
                align-items: flex-start;
            }

            .action-group {
                width: 100%;
                justify-content: flex-start;
                gap: 24px;
            }
        }
    

                .search-wrapper {
                    max-width: 800px;
                    width: 95%;
                    margin: 0 auto;
                }
                .search-extras {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    margin-top: 14px;
                    padding: 0 10px;
                }
                .qpay-extra-logo {
                    height: 34px;
                    opacity: 0.9;
                    filter: brightness(0) invert(1);
                    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
                }
                .qpay-extra-logo:hover { 
                    opacity: 1; 
                    transform: scale(1.05);
                }

                .extra-right {
                    display: flex;
                    gap: 10px;
                }
                .glass-action-btn {
                    background: rgba(255, 255, 255, 0.05);
                    backdrop-filter: blur(20px);
                    -webkit-backdrop-filter: blur(20px);
                    border: 1px solid rgba(255, 255, 255, 0.08);
                    color: #fff;
                    padding: 8px 16px;
                    border-radius: 99px;
                    font-size: 13px;
                    font-weight: 600;
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    cursor: pointer;
                    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
                }
                .glass-action-btn:hover {
                    background: rgba(255, 255, 255, 0.1);
                    transform: translateY(-2px);
                    border-color: rgba(255, 255, 255, 0.2);
                    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
                }
                .glass-action-btn i {
                    font-size: 12px;
                    color: var(--accent-glow-2);
                }

                @media (max-width: 600px) {
                    .search-extras {
                        flex-direction: column;
                        gap: 12px;
                        align-items: center;
                    }
                    .extra-right {
                        width: 100%;
                        justify-content: center;
                        gap: 6px;
                    }
                    .glass-action-btn {
                        padding: 10px 12px;
                        font-size: 11px;
                        flex: 1;
                        justify-content: center;
                        border-radius: 12px;
                    }
                    .qpay-extra-logo {
                        height: 28px;
                    }
                }

                @media (max-width: 600px) {
                    .search-extras {
                        flex-direction: column;
                        gap: 16px;
                        align-items: flex-start;
                    }
                    .extra-right {
                        width: 100%;
                        justify-content: space-between;
                    }
                    .glass-action-btn {
                        padding: 8px 12px;
                        font-size: 12px;
                        flex: 1;
                        justify-content: center;
                    }
                }
            

                        @keyframes shimmer {
                            0% {
                                background-position: -200% 0
                            }

                            100% {
                                background-position: 200% 0
                            }
                        }

                        .reel-card-real {
                            width: 200px;
                            aspect-ratio: 9/16;
                            border-radius: 16px;
                            overflow: hidden;
                            flex-shrink: 0;
                            position: relative;
                            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
                            cursor: pointer;
                            border: 1px solid rgba(255, 255, 255, 0.1);
                            background: #000;
                            transition: transform .2s;
                        }

                        .reel-card-real:hover {
                            transform: scale(1.03);
                        }

                        .reel-card-real video,
                        .reel-card-real img {
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                            display: block;
                        }
                    

        @keyframes spin {
            100% {
                transform: rotate(360deg);
            }
        }

        .reel-action>div:hover {
            background: rgba(255, 255, 255, 0.2) !important;
        }
    

        #teleport-modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(12px);
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        #teleport-modal {
            width: 90%;
            max-width: 600px;
            background: rgba(30, 30, 30, 0.4);
            backdrop-filter: blur(24px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
            border-radius: 24px;
            padding: 24px;
            transform: scale(0.95) translateY(20px);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        #teleport-modal-overlay.open {
            display: flex;
            opacity: 1;
        }

        #teleport-modal-overlay.open #teleport-modal {
            transform: scale(1) translateY(0);
        }

        .teleport-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .teleport-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        #teleport-search-bar {
            width: 100%;
            border: 1px solid rgba(255, 255, 255, 0.15);
            background: rgba(0, 0, 0, 0.4);
            border-radius: 12px;
            padding: 14px 20px;
            color: white;
            outline: none;
            font-size: 16px;
            font-family: 'Inter', sans-serif;
            transition: border-color 0.2s;
        }

        #teleport-search-bar:focus {
            border-color: #2cb5e8;
        }

        #teleport-results {
            position: absolute;
            top: 54px;
            left: 0;
            right: 0;
            background: rgba(20, 20, 20, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            max-height: 200px;
            /* overflow-y: auto; */
            z-index: 10000;
            display: none;
            padding: 8px 0;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
        }

        .teleport-result-item {
            padding: 12px 20px;
            cursor: pointer;
            font-size: 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .teleport-result-item:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #2cb5e8;
        }

        .teleport-result-item i {
            color: #2cb5e8;
        }

        #teleport-map {
            width: 100%;
            height: 340px;
            border-radius: 16px;
            background: rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.05);
            z-index: 1;
        }

        /* Glass Leaflet Popups */
        .leaflet-popup-content-wrapper {
            background: rgba(20, 20, 20, 0.85) !important;
            backdrop-filter: blur(12px) !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            color: #fff !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
            border-radius: 12px !important;
        }

        .leaflet-popup-tip {
            background: rgba(20, 20, 20, 0.85) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
            border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
        }

        .leaflet-control-zoom a {
            background: rgba(20, 20, 20, 0.8) !important;
            color: white !important;
            border-color: rgba(255, 255, 255, 0.1) !important;
        }
    

                    .logout-overlay { position:fixed; inset:0; z-index:10000; background:rgba(0,0,0,0.6); backdrop-filter:blur(10px); display:flex; align-items:center; justify-content:center; animation: fadeIn 0.3s forwards; }
                    .logout-card { width:90%; max-width:340px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:30px; padding:30px; text-align:center; box-shadow:0 30px 60px rgba(0,0,0,0.5); transform:scale(0.9); animation: zoomIn 0.3s forwards; }
                    @keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
                    @keyframes zoomIn { from { transform:scale(0.9); opacity:0; } to { transform:scale(1); opacity:1; } }
                    .logout-icon-box { width:64px; height:64px; background:rgba(255,59,48,0.1); color:#ff3b30; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 20px; font-size:24px; }
                    .logout-card h2 { margin-bottom:10px; font-weight:800; font-size:22px; }
                    .logout-card p { color:rgba(255,255,255,0.6); font-size:14px; margin-bottom:25px; }
                    .logout-btns { display:flex; gap:12px; }
                    .l-btn { flex:1; padding:14px; border-radius:15px; font-size:14px; font-weight:700; border:none; cursor:pointer; transition:all 0.3s; }
                    .l-btn.cancel { background:rgba(255,255,255,0.05); color:#fff; border:1px solid rgba(255,255,255,0.1); }
                    .l-btn.cancel:hover { background:rgba(255,255,255,0.1); }
                    .l-btn.confirm { background:#ff3b30; color:#fff; }
                    .l-btn.confirm:hover { background:#ff453a; transform:translateY(-2px); box-shadow:0 10px 20px rgba(255,59,48,0.3); }
                

                    .qr-overlay { position:fixed; inset:0; z-index:10001; background:rgba(0,0,0,0.8); backdrop-filter:blur(15px); display:flex; align-items:center; justify-content:center; animation: fadeIn 0.3s forwards; }
                    .qr-card { width:90%; max-width:380px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.1); border-radius:35px; padding:40px 30px; text-align:center; position:relative; box-shadow:0 40px 80px rgba(0,0,0,0.6); animation: slideUpModal 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
                    @keyframes slideUpModal { from { transform:translateY(50px); opacity:0; } to { transform:translateY(0); opacity:1; } }
                    .close-qr { position:absolute; top:20px; right:20px; background:rgba(255,255,255,0.05); border:none; width:36px; height:36px; border-radius:50%; color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; }
                    .qr-card h2 { font-weight:800; font-size:24px; margin-bottom:5px; }
                    .qr-card p { font-size:14px; color:rgba(255,255,255,0.6); margin-bottom:30px; }
                    .qr-frame { width:220px; height:220px; padding:15px; background:#fff; border-radius:24px; margin:0 auto 25px; position:relative; }
                    .qr-frame img { width:100%; height:100%; object-fit:contain; border-radius:10px; }
                    .qr-corner { position:absolute; width:40px; height:40px; border:4px solid var(--accent-glow-2); }
                    .qr-corner.top-left { top:-10px; left:-10px; border-right:none; border-bottom:none; border-radius:20px 0 0 0; }
                    .qr-corner.top-right { top:-10px; right:-10px; border-left:none; border-bottom:none; border-radius:0 20px 0 0; }
                    .qr-corner.bottom-left { bottom:-10px; left:-10px; border-right:none; border-top:none; border-radius:0 0 0 20px; }
                    .qr-corner.bottom-right { bottom:-10px; right:-10px; border-left:none; border-top:none; border-radius:0 0 20px 0 ; }
                    .user-badge-qr { margin-bottom:30px; }
                    .u-name-qr { font-size:18px; font-weight:700; }
                    .u-phone-qr { font-size:13px; color:rgba(255,255,255,0.5); font-family:monospace; }
                    .share-qr-btn { width:100%; background:linear-gradient(135deg, #2cb5e8 0%, #1e88e5 100%); color:#fff; border:none; padding:16px; border-radius:18px; font-size:15px; font-weight:700; display:flex; align-items:center; justify-content:center; gap:10px; cursor:pointer; transition:all 0.3s; }
                    .share-qr-btn:hover { transform:scale(1.02); box-shadow:0 15px 30px rgba(44, 181, 232, 0.3); }
                



    
.s-commerce-anim {
    background: linear-gradient(90deg, #ff007f, #7f00ff, #00d4ff, #ff007f);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s ease infinite, floatTitle 4s ease-in-out infinite;
    text-shadow: 0 4px 15px rgba(255,255,255,0.05);
    display: block;
    width: fit-content;
    margin: 0 auto 48px auto;
}
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes floatTitle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
