/* ==========================================================================
   Lustora v2 — customer & public design layer.
   Loaded last on every page with <html class="lx">. The scope
   `:root.lx:not(#lx)` carries ID-level specificity so it reliably wins over
   the older page-level <style> blocks without !important everywhere.
   ========================================================================== */

:root.lx {
    color-scheme: dark;
    --lx-bg: #07060b;
    --lx-bg-2: #0d0b14;
    --lx-glass: rgba(20, 16, 30, 0.55);
    --lx-glass-2: rgba(28, 22, 42, 0.62);
    --lx-glass-solid: #15121e;
    --lx-line: rgba(255, 255, 255, 0.09);
    --lx-line-2: rgba(255, 255, 255, 0.16);
    --lx-text: #f7f4fb;
    --lx-text-2: #d2cbdc;
    --lx-muted: #9a92a8;
    --lx-faint: #6a6377;
    --lx-pink: #ff3d8b;
    --lx-pink-2: #ff6aa8;
    --lx-violet: #a855f7;
    --lx-gold: #fbbf24;
    --lx-green: #34d399;
    --lx-red: #f87171;
    --lx-grad: linear-gradient(135deg, #ff4f97 0%, #ff3d8b 38%, #b44dff 100%);
    --lx-grad-soft: linear-gradient(135deg, rgba(255, 61, 139, 0.18), rgba(168, 85, 247, 0.18));
    --lx-ring: rgba(255, 61, 139, 0.4);
    --lx-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 50px -20px rgba(0, 0, 0, 0.75);
    --lx-shadow-pink: 0 12px 34px -12px rgba(255, 61, 139, 0.65);
    --lx-r-sm: 10px; --lx-r: 16px; --lx-r-lg: 22px; --lx-r-xl: 28px;
    --lx-ease: cubic-bezier(0.23, 1, 0.32, 1);
    --lx-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --lx-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable", "Segoe UI", "Inter", Roboto, "Helvetica Neue", sans-serif;
    --lx-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
    --lx-header-h: 68px;

    /* Re-point legacy variables used by older inline styles. */
    --primary-color: var(--lx-pink);
    --primary-hover: var(--lx-pink-2);
    --secondary-color: var(--lx-violet);
    --background-color: var(--lx-bg);
    --card-bg: var(--lx-glass);
    --text-color: var(--lx-text);
    --text-muted: var(--lx-muted);
    --border-color: var(--lx-line-2);
    --member-pink: var(--lx-pink);
    --member-text: var(--lx-text);
    --member-muted: var(--lx-muted);
    --member-line: var(--lx-line);
    --member-surface: var(--lx-glass);
    --member-raised: var(--lx-glass-2);
    --member-bg: rgba(10, 8, 16, 0.6);
    --member-blush: rgba(255, 61, 139, 0.14);
    --wa-text-primary: var(--lx-text);
    --wa-text-secondary: var(--lx-muted);
    --wa-border: var(--lx-line);
    --wa-input-bg: rgba(10, 8, 16, 0.6);
    --wa-header-bg: var(--lx-glass-solid);
    --wa-sidebar-bg: transparent;
    background:
        radial-gradient(1100px 620px at 88% -8%, rgba(168, 85, 247, 0.20), transparent 62%),
        radial-gradient(900px 520px at -6% 8%, rgba(255, 61, 139, 0.16), transparent 60%),
        radial-gradient(700px 500px at 50% 110%, rgba(255, 61, 139, 0.10), transparent 60%),
        var(--lx-bg);
    background-attachment: fixed;
    min-height: 100%;
}

:root.lx:not(#lx) {
    /* ---------- Base ---------- */
    body {
        position: relative;
        z-index: 1;
        min-height: 100dvh;
        background: transparent;
        color: var(--lx-text);
        font-family: var(--lx-font);
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }
    h1, h2, h3, h4 { color: var(--lx-text); letter-spacing: -0.02em; text-shadow: none; }
    h1 { font-weight: 700; }
    a { color: var(--lx-pink-2); transition: color 160ms var(--lx-ease); }
    a:hover { color: #fff; text-shadow: none; }
    ::selection { background: rgba(255, 61, 139, 0.32); color: #fff; }
    :focus-visible { outline: 2px solid var(--lx-pink); outline-offset: 3px; border-radius: 8px; }
    * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border: 3px solid transparent; border-radius: 99px; background-clip: padding-box; }
    .lx-ico { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

    /* ---------- Buttons ---------- */
    .btn, .btn-submit, .btn-register, .btn-primary {
        position: relative; overflow: hidden; isolation: isolate;
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
        background: var(--lx-grad); color: #fff; font-weight: 650; font-size: 0.92rem; letter-spacing: 0.005em; text-decoration: none;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, var(--lx-shadow-pink);
        transition: transform 160ms var(--lx-ease), box-shadow 220ms var(--lx-ease), filter 200ms;
        cursor: pointer;
    }
    .btn::after, .btn-submit::after, .btn-register::after {
        content: ""; position: absolute; inset: 0; z-index: -1;
        background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
        transform: translateX(-120%); transition: transform 0s;
    }
    .btn:hover, .btn-submit:hover, .btn-register:hover { transform: translateY(-1px); filter: saturate(1.1) brightness(1.05); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 16px 40px -12px rgba(255, 61, 139, 0.8); color: #fff; }
    .btn:hover::after, .btn-submit:hover::after, .btn-register:hover::after { transform: translateX(120%); transition: transform 750ms var(--lx-ease); }
    .btn:active, .btn-submit:active { transform: scale(0.97); }
    .btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
    .btn-outline, .btn-secondary, .btn-login {
        background: rgba(255, 255, 255, 0.04); color: var(--lx-text);
        box-shadow: inset 0 0 0 1px var(--lx-line-2);
        backdrop-filter: blur(12px);
    }
    .btn-outline:hover, .btn-secondary:hover, .btn-login:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 61, 139, 0.55), 0 10px 30px -14px rgba(255, 61, 139, 0.6); }
    .btn-small { min-height: 34px; padding: 0 14px; font-size: 0.8rem; }

    /* ---------- Surfaces ---------- */
    .card, .auth-card, .modal-content, .payment-card, .public-creator-card, .member-result-card {
        background: var(--lx-glass);
        border: 1px solid var(--lx-line);
        border-radius: var(--lx-r-lg);
        box-shadow: var(--lx-shadow);
        backdrop-filter: blur(22px) saturate(150%);
        -webkit-backdrop-filter: blur(22px) saturate(150%);
        color: var(--lx-text);
    }
    .card:hover { transform: none; border-color: var(--lx-line-2); }

    input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), textarea, select {
        background: rgba(10, 8, 16, 0.55); color: var(--lx-text);
        border: 1px solid var(--lx-line-2); border-radius: 14px;
        transition: border-color 160ms var(--lx-ease), box-shadow 200ms var(--lx-ease), background 160ms;
    }
    input:not([type=checkbox]):not([type=radio]):focus, textarea:focus, select:focus { border-color: var(--lx-pink); box-shadow: 0 0 0 4px rgba(255, 61, 139, 0.18); outline: 0; background: rgba(10, 8, 16, 0.75); }
    input::placeholder, textarea::placeholder { color: var(--lx-faint); }
    input[type=checkbox], input[type=radio] { accent-color: var(--lx-pink); }

    table { border-collapse: separate; border-spacing: 0; }
    th { color: var(--lx-muted); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 1px solid var(--lx-line); }
    td { border-bottom: 1px solid var(--lx-line); }
    tr:hover td { background: rgba(255, 255, 255, 0.025); }

    .badge { background: var(--lx-grad); color: #fff; box-shadow: 0 0 0 2px var(--lx-bg), 0 6px 16px -4px rgba(255, 61, 139, 0.8); animation: lx-badge-pop 420ms var(--lx-spring); font-weight: 700; }

    /* ---------- Modals (shared) ---------- */
    .modal { background: rgba(5, 3, 10, 0.66) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
    .modal-content { animation: lx-pop 320ms var(--lx-spring); }
    .close-modal { border-radius: 50%; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--lx-line); color: var(--lx-text); }
    .lx-modal { position: fixed; inset: 0; z-index: 30000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 3, 10, 0.66); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: lx-fade 200ms var(--lx-ease); }
    .lx-modal__card { position: relative; width: min(400px, 100%); padding: 30px 26px 24px; border: 1px solid var(--lx-line-2); border-radius: var(--lx-r-xl); background: linear-gradient(180deg, rgba(36, 26, 52, 0.92), rgba(18, 14, 28, 0.94)); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04) inset; text-align: center; animation: lx-pop 360ms var(--lx-spring); overflow: hidden; }
    .lx-modal__card::before { content: ""; position: absolute; inset: -40% -20% auto; height: 220px; background: radial-gradient(closest-side, rgba(255, 61, 139, 0.35), transparent); pointer-events: none; }
    .lx-modal__card > * { position: relative; }
    .lx-modal__card h3 { margin: 14px 0 8px; font-size: 1.25rem; }
    .lx-modal__card p { margin: 0 0 22px; color: var(--lx-muted); line-height: 1.55; }
    .lx-modal__icon { display: grid; width: 72px; height: 72px; margin: 0 auto; place-items: center; border-radius: 24px; background: var(--lx-grad); box-shadow: var(--lx-shadow-pink); color: #fff; animation: lx-float 3.2s ease-in-out infinite; }
    .lx-modal__icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .lx-modal__icon--coin { background: radial-gradient(circle at 35% 30%, #fff1b8, #fbbf24 45%, #b45309); box-shadow: 0 14px 34px -10px rgba(251, 191, 36, 0.7); }
    .lx-modal__icon--coin .wallet-coin { width: 30px; height: 30px; }
    .lx-modal__actions { display: flex; gap: 10px; }
    .lx-modal__actions > * { flex: 1; }

    /* ---------- Toasts ---------- */
    #toast-container { z-index: 40000; }
    .toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border: 1px solid var(--lx-line-2); border-radius: 18px; background: rgba(24, 18, 36, 0.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: var(--lx-text); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85); animation: lx-toast-in 460ms var(--lx-spring); }
    .toast-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--lx-grad); font-size: 1rem; color: #fff; }
    .toast-text { flex: 1; font-size: 0.9rem; line-height: 1.4; }
    .toast-action { margin-left: auto; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--lx-grad); color: #fff; font-weight: 650; white-space: nowrap; cursor: pointer; box-shadow: var(--lx-shadow-pink); }

    /* ======================================================================
       MEMBER HEADER
       ====================================================================== */
    #mainHeader {
        background: rgba(10, 8, 16, 0.62);
        border-bottom: 1px solid var(--lx-line);
        backdrop-filter: blur(22px) saturate(160%);
        -webkit-backdrop-filter: blur(22px) saturate(160%);
        box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.9);
        transition: transform 360ms var(--lx-ease), background 300ms;
    }
    #mainHeader.header-hidden { transform: translateY(-105%); }
    .logo-area img { filter: drop-shadow(0 4px 14px rgba(255, 61, 139, 0.35)); transition: transform 300ms var(--lx-spring); }
    .logo-area:hover img { transform: scale(1.04); }
    #navMenu a { position: relative; border-radius: 999px; color: var(--lx-text-2); font-weight: 550; transition: color 160ms, background 160ms; background: transparent; }
    #navMenu a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
    #navMenu a.active { color: #fff; background: var(--lx-grad-soft); box-shadow: inset 0 0 0 1px rgba(255, 61, 139, 0.35); }
    #navMenu .nav-logout-btn { color: var(--lx-muted); }
    .member-wallet {
        display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 8px;
        border: 1px solid rgba(251, 191, 36, 0.28); border-radius: 999px;
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(255, 61, 139, 0.10));
        color: #fff4d6; text-decoration: none; font-variant-numeric: tabular-nums;
        transition: transform 200ms var(--lx-spring), box-shadow 200ms;
    }
    .member-wallet:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -12px rgba(251, 191, 36, 0.7); color: #fff; }
    .member-wallet strong { font-weight: 750; }
    .member-wallet-label { color: rgba(255, 244, 214, 0.7); font-size: 0.78rem; }
    .wallet-coin { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c9 0 18%, #fcd34d 40%, #d97706 100%); box-shadow: inset 0 -2px 3px rgba(120, 53, 15, 0.5), 0 0 12px rgba(251, 191, 36, 0.55); animation: lx-coin-spin 6s ease-in-out infinite; }
    .wallet-plus { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--lx-grad); color: #fff; }
    .wallet-plus .lx-ico { width: 15px; height: 15px; stroke-width: 2.4; }
    .header-chat-icon { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--lx-line); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--lx-text); text-decoration: none; transition: background 160ms, border-color 160ms; }
    .header-chat-icon:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 61, 139, 0.45); color: #fff; }
    .header-chat-icon .badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; font-size: 0.68rem; }
    .header-chat-icon { position: relative; }
    .menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--lx-line); border-radius: 14px; background: rgba(255, 255, 255, 0.04); color: var(--lx-text); place-items: center; }
    .menu-toggle::before, .menu-toggle span:not(.menu-text) { display: none; }
    .menu-text { display: grid; place-items: center; font-size: 0; }
    .mobile-menu { background: rgba(8, 6, 14, 0.82); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); }
    .mobile-menu__header h2 { font-family: var(--lx-display); font-style: italic; font-size: 1.7rem; }
    #mobileMenuClose { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; border: 1px solid var(--lx-line); background: rgba(255, 255, 255, 0.05); color: var(--lx-text); }
    .mobile-menu__balance { border: 1px solid rgba(251, 191, 36, 0.3); border-radius: var(--lx-r-lg); background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(255, 61, 139, 0.12)); }
    .mobile-menu__links a { border-radius: 16px; transition: background 160ms, transform 200ms var(--lx-spring); }
    .mobile-menu__links a:hover, .mobile-menu__links a.active { background: var(--lx-grad-soft); transform: translateX(4px); }
    .mobile-menu.is-open .mobile-menu__links li { animation: lx-slide-in 420ms var(--lx-ease) both; }
    .mobile-menu.is-open .mobile-menu__links li:nth-child(2) { animation-delay: 40ms; } .mobile-menu.is-open .mobile-menu__links li:nth-child(3) { animation-delay: 80ms; } .mobile-menu.is-open .mobile-menu__links li:nth-child(4) { animation-delay: 120ms; } .mobile-menu.is-open .mobile-menu__links li:nth-child(5) { animation-delay: 160ms; } .mobile-menu.is-open .mobile-menu__links li:nth-child(6) { animation-delay: 200ms; }

    @media (max-width: 900px) {
        .menu-toggle { display: grid; }
        .header-chat-icon .icon-label, .member-wallet-label { display: none; }
        .header-chat-icon { width: 42px; padding: 0; justify-content: center; }
        .member-bottom-nav {
            left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); padding: 6px;
            border: 1px solid var(--lx-line-2); border-radius: 24px;
            background: rgba(14, 10, 22, 0.72); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
            box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.9);
        }
        .member-bottom-nav > a { border-radius: 18px; color: var(--lx-muted); font-size: 10px; font-weight: 600; transition: color 200ms, background 200ms; }
        .member-bottom-nav > a[aria-current] { background: var(--lx-grad-soft); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 61, 139, 0.3); }
        .member-bottom-nav > a[aria-current] .member-bottom-icon { color: var(--lx-pink); transform: translateY(-1px) scale(1.08); }
        .member-bottom-icon { display: grid; place-items: center; font-size: 0; transition: transform 300ms var(--lx-spring); }
        .member-bottom-icon .lx-ico { width: 22px; height: 22px; }
        .member-bottom-nav .badge { top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; border-radius: 99px; }
        .member-content { padding-bottom: 110px; }
    }

    /* ======================================================================
       MEMBER PAGES
       ====================================================================== */
    .member-eyebrow, .unlocked-library__eyebrow { color: var(--lx-pink-2); font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }
    .member-intro h1, .unlocked-library h1, .coin-shop__header h1 {
        font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.035em;
        background: linear-gradient(180deg, #fff 30%, #f3c6dc); -webkit-background-clip: text; background-clip: text; color: transparent;
    }
    .member-intro h1 em, .coin-shop__header h1 br + * { font-family: var(--lx-display); }

    /* Online creators strip */
    .online-creators-bar { gap: 14px; padding: 6px 2px 10px; scroll-snap-type: x mandatory; }
    .online-creator-item { scroll-snap-align: start; transition: transform 300ms var(--lx-spring); }
    .online-creator-item:hover { transform: translateY(-3px); }
    .online-creator-avatar { position: relative; padding: 3px; border-radius: 50%; background: conic-gradient(from var(--lx-angle, 0deg), #ff3d8b, #a855f7, #fbbf24, #ff3d8b); animation: lx-ring-spin 4s linear infinite; }
    .online-creator-avatar img { border: 3px solid var(--lx-bg); border-radius: 50%; }
    .online-creator-name { color: var(--lx-text-2); font-weight: 600; }

    /* Creator grid */
    .creator-card, .media-card, .member-result-card, .public-creator-card {
        transform: perspective(900px) rotateX(var(--lx-rx, 0)) rotateY(var(--lx-ry, 0));
        transition: transform 500ms var(--lx-ease), box-shadow 300ms, border-color 300ms;
        will-change: transform;
    }
    .lx-tilting { transition: transform 80ms linear, box-shadow 300ms, border-color 300ms !important; }
    .creator-card { overflow: hidden; border: 1px solid var(--lx-line); border-radius: var(--lx-r-lg); background: var(--lx-glass); box-shadow: var(--lx-shadow); }
    .creator-card::after, .media-card::after, .tier-card-body::after {
        content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 300ms;
        background: radial-gradient(420px circle at var(--lx-mx, 50%) var(--lx-my, 0%), rgba(255, 255, 255, 0.14), transparent 45%);
    }
    .creator-card:hover, .media-card:hover { border-color: rgba(255, 61, 139, 0.45); box-shadow: 0 30px 70px -30px rgba(255, 61, 139, 0.55); }
    .creator-card:hover::after, .media-card:hover::after, .tier-card-body:hover::after { opacity: 1; }
    .creator-img-wrapper { overflow: hidden; }
    .creator-img { transition: transform 900ms var(--lx-ease), filter 600ms; }
    .creator-card:hover .creator-img { transform: scale(1.07); filter: saturate(1.15); }
    .online-dot { background: var(--lx-green); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25), 0 0 14px rgba(52, 211, 153, 0.9); animation: lx-breathe 2.4s ease-in-out infinite; }

    /* Feed posts */
    #feedContainer > .card, #feedContent > .card, .feed > .card { overflow: hidden; padding: 0; }
    .post-header { padding: 14px 16px; }
    .post-header img { border-radius: 50%; box-shadow: 0 0 0 2px var(--lx-bg), 0 0 0 3.5px rgba(255, 61, 139, 0.65); }
    .album-grid { gap: 3px; }
    .album-grid img, .album-grid video { transition: transform 700ms var(--lx-ease), filter 400ms; }
    .album-grid > *:hover img { transform: scale(1.04); }
    .post-footer { padding: 12px 16px 16px; color: var(--lx-text-2); }

    /* Profile */
    /* The avatar intentionally hangs below the banner, so the banner must not clip it. */
    .profile-header { overflow: visible; border: 1px solid var(--lx-line); border-radius: var(--lx-r-xl); background: radial-gradient(120% 140% at 85% 0%, rgba(255, 61, 139, 0.32), transparent 60%), radial-gradient(90% 120% at 0% 100%, rgba(168, 85, 247, 0.28), transparent 60%), var(--lx-glass); box-shadow: var(--lx-shadow); }
    .profile-avatar-container { z-index: 2; }
    .profile-avatar { border: 0 !important; box-shadow: 0 0 0 4px var(--lx-bg), 0 0 0 7px rgba(255, 61, 139, 0.75), 0 20px 60px -10px rgba(255, 61, 139, 0.6); }
    .stats-bar { gap: 10px; }
    .stats-bar { border: 1px solid var(--lx-line); border-radius: var(--lx-r-lg); background: var(--lx-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
    .stat-item { padding: 0; border: 0; background: none; }
    .stat-item strong { background: var(--lx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.4rem; }

    /* Unlocked library */
    .media-card { position: relative; overflow: hidden; border: 1px solid var(--lx-line) !important; border-radius: var(--lx-r-lg) !important; background: var(--lx-glass) !important; }
    .media-filter { border-radius: 999px; border: 1px solid var(--lx-line-2); background: rgba(255, 255, 255, 0.04); color: var(--lx-text-2); transition: background 200ms, color 200ms; }
    .media-filter.is-active { background: var(--lx-grad); color: #fff; border-color: transparent; box-shadow: var(--lx-shadow-pink); }
    .media-viewer { background: rgba(4, 2, 8, 0.86) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
    .media-viewer.is-open .media-viewer__dialog { animation: lx-pop 380ms var(--lx-spring); }

    /* Coin shop */
    .coin-shop__balance { border: 1px solid rgba(251, 191, 36, 0.3); border-radius: var(--lx-r-lg); background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(255, 61, 139, 0.10)); }
    .coin-shop__balance strong { color: #fff4d6; }
    .tier-card { position: relative; perspective: 900px; }
    .tier-card-body {
        position: relative; overflow: hidden;
        border: 1px solid var(--lx-line) !important; border-radius: var(--lx-r-lg) !important;
        background: var(--lx-glass) !important; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        transform: rotateX(var(--lx-rx, 0)) rotateY(var(--lx-ry, 0));
        transition: transform 500ms var(--lx-ease), border-color 300ms, box-shadow 300ms;
    }
    .tier-card input:checked + .tier-card-body {
        border-color: transparent !important;
        box-shadow: 0 0 0 2px var(--lx-pink), 0 30px 70px -28px rgba(255, 61, 139, 0.75);
        background: linear-gradient(160deg, rgba(255, 61, 139, 0.16), rgba(168, 85, 247, 0.12)) !important;
    }
    .tier-badge { background: var(--lx-grad) !important; color: #fff !important; border-radius: 999px; box-shadow: var(--lx-shadow-pink); }
    .tier-badge--value { background: linear-gradient(135deg, #fde68a, #f59e0b) !important; color: #3b1d00 !important; }
    .tier-coins { color: #fff4d6 !important; }
    .tier-price { color: #fff !important; }
    .tier-select { border-radius: 999px !important; }
    .tier-checkout { border: 1px solid var(--lx-line) !important; border-radius: var(--lx-r-xl) !important; background: var(--lx-glass) !important; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
    .tier-pay { width: 100%; min-height: 52px; font-size: 1rem; }
    .tier-sticky { background: rgba(14, 10, 22, 0.82) !important; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--lx-line) !important; }

    /* ======================================================================
       PUBLIC PAGES
       ====================================================================== */
    .public-header {
        background: rgba(10, 8, 16, 0.6) !important; border-bottom: 1px solid var(--lx-line) !important;
        backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
    }
    .public-header img { filter: drop-shadow(0 4px 14px rgba(255, 61, 139, 0.35)); }
    .search-container { position: relative; }
    .search-input {
        border-radius: 999px !important; padding-left: 48px !important; height: 52px;
        background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239a92a8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 18px 50% !important;
        border: 1px solid var(--lx-line-2) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    }
    .cta-banner {
        position: relative; overflow: hidden; isolation: isolate;
        border: 1px solid rgba(255, 255, 255, 0.14) !important; border-radius: var(--lx-r-xl) !important;
        background: linear-gradient(135deg, rgba(255, 61, 139, 0.85), rgba(168, 85, 247, 0.85)) !important;
        box-shadow: 0 40px 90px -40px rgba(255, 61, 139, 0.8) !important;
    }
    .cta-banner::before { content: ""; position: absolute; inset: -50%; z-index: -1; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.25), transparent 30%); animation: lx-spin 9s linear infinite; }
    .cta-banner h2 { font-family: var(--lx-display); font-style: italic; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; }
    .cta-banner p { color: rgba(255, 255, 255, 0.9) !important; }
    .cta-banner h2 { border: 0 !important; }
    #age-modal { background: rgba(5, 3, 10, 0.78) !important; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
    #age-modal > div { border: 1px solid var(--lx-line-2) !important; border-radius: var(--lx-r-xl) !important; background: linear-gradient(180deg, rgba(36, 26, 52, 0.94), rgba(16, 12, 26, 0.96)) !important; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 80px -20px rgba(255, 61, 139, 0.45) !important; animation: lx-pop 420ms var(--lx-spring); }
    #age-modal h1 { font-family: var(--lx-display); font-style: italic; color: #fff !important; font-size: clamp(2rem, 5vw, 2.8rem); }
    #age-modal p { color: var(--lx-text-2) !important; }
    #age-modal a.btn { background: rgba(255, 255, 255, 0.04) !important; color: var(--lx-text-2) !important; border: 0 !important; box-shadow: inset 0 0 0 1px var(--lx-line-2) !important; }
    .cta-banner .btn { background: #fff !important; color: var(--lx-pink) !important; border-radius: 999px !important; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.5); }

    /* Auth split screen (login / register) */
    .split-screen { background: transparent !important; min-height: 100dvh; }
    .left-pane { background: rgba(10, 8, 16, 0.55) !important; backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%); border-right: 1px solid var(--lx-line); }
    .right-pane { position: relative; overflow: hidden; background: transparent !important; }
    .right-pane::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 40%, rgba(255, 61, 139, 0.25), transparent 70%); pointer-events: none; }
    .right-pane > * { position: relative; }
    .quote { font-family: var(--lx-display); font-style: italic; font-size: clamp(2.2rem, 4.4vw, 3.6rem) !important; line-height: 1.08 !important; background: linear-gradient(180deg, #fff, #ffc2dc 70%, #d8b4fe); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none !important; animation: lx-rise 900ms var(--lx-ease) both; }
    .quote-author { color: var(--lx-text-2) !important; animation: lx-rise 900ms 200ms var(--lx-ease) both; }
    .auth-form { animation: lx-rise 700ms var(--lx-ease) both; }
    .auth-form h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.03em; }
    .auth-form .subtitle { color: var(--lx-muted); }
    .input-group input { height: 56px !important; border-radius: 16px !important; background: rgba(255, 255, 255, 0.04) !important; border: 1px solid var(--lx-line-2) !important; }
    .input-group input:focus { border-color: var(--lx-pink) !important; box-shadow: 0 0 0 4px rgba(255, 61, 139, 0.18) !important; }
    .input-group label { color: var(--lx-muted); }
    .input-group input:focus + label, .input-group input:not(:placeholder-shown) + label { background: #120e1b !important; color: var(--lx-pink-2) !important; border-radius: 6px; padding: 0 6px; }
    .btn-submit { width: 100%; min-height: 54px; border-radius: 16px; font-size: 1rem; }
    .alert { border-radius: 14px; border: 1px solid var(--lx-line); }
    .alert-success { background: rgba(52, 211, 153, 0.12) !important; color: #a7f3d0 !important; border-color: rgba(52, 211, 153, 0.3); }
    .alert-error { background: rgba(248, 113, 113, 0.12) !important; color: #fecaca !important; border-color: rgba(248, 113, 113, 0.3); }

    /* ======================================================================
       CHAT
       ====================================================================== */
    &.lx body.member-page-chat > .member-content { max-width: 1520px; padding: 18px 24px 24px; }
    .lx-chat { background: transparent; padding: 0; }
    .lx-chat-title { margin: 0 0 14px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.03em; }
    .lx-chat .chat-container {
        display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
        height: var(--chat-pane-height, calc(100dvh - 170px)); min-height: 420px;
        border: 1px solid var(--lx-line); border-radius: var(--lx-r-xl); overflow: hidden;
        background: rgba(12, 9, 20, 0.5); backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
        box-shadow: var(--lx-shadow);
    }
    .lx-chat .chat-sidebar { display: flex; flex-direction: column; min-width: 0; min-height: 0; width: auto; max-width: none; border-right: 1px solid var(--lx-line); background: rgba(255, 255, 255, 0.015); }
    .lx-chat .mobile-home-link { display: none; }
    .lx-chat .search-bar { position: relative; padding: 14px 14px 8px; background: transparent; border: 0; }
    .lx-chat .search-bar .lx-ico { position: absolute; left: 28px; top: 50%; width: 17px; height: 17px; color: var(--lx-faint); transform: translateY(-25%); pointer-events: none; }
    .lx-chat .search-bar input { width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 999px; border: 1px solid var(--lx-line); background: rgba(255, 255, 255, 0.04); font-size: 0.9rem; }
    .lx-chat .chat-filter-tabs { display: flex; gap: 6px; padding: 4px 14px 12px; overflow-x: auto; scrollbar-width: none; border: 0; }
    .lx-chat .chat-filter-tabs::-webkit-scrollbar { display: none; }
    .lx-chat .filter-tab { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--lx-line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); color: var(--lx-text-2); font-size: 0.78rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background 200ms, color 200ms, border-color 200ms; }
    .lx-chat .filter-tab:hover { background: rgba(255, 255, 255, 0.07); }
    .lx-chat .filter-tab.active { background: var(--lx-grad); border-color: transparent; color: #fff; box-shadow: var(--lx-shadow-pink); }
    .lx-chat .badge-count { min-width: 18px; padding: 0 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 0.68rem; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
    .lx-chat .user-list { flex: 1; min-height: 0; margin: 0; padding: 4px 8px 12px; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
    .lx-chat .user-list-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 72px; margin: 2px 0; padding: 10px 12px; border: 1px solid transparent; border-radius: 18px; cursor: pointer; background: transparent; transition: background 200ms, border-color 200ms, transform 250ms var(--lx-spring); }
    .lx-chat .user-list-item:hover { background: rgba(255, 255, 255, 0.05); transform: translateX(2px); }
    .lx-chat .user-list-item.active { background: var(--lx-grad-soft); border-color: rgba(255, 61, 139, 0.35); }
    .lx-chat .user-list-item.active::before { content: ""; position: absolute; left: -8px; top: 22%; bottom: 22%; width: 4px; border-radius: 0 4px 4px 0; background: var(--lx-grad); box-shadow: 0 0 14px rgba(255, 61, 139, 0.8); }
    .lx-chat .user-avatar { position: relative; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; }
    .lx-chat .user-avatar img, .lx-chat .user-avatar-initial { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
    .lx-chat .user-avatar-initial { display: grid; place-items: center; background: var(--lx-grad); color: #fff; font-weight: 700; }
    .online-ring { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--lx-green); box-shadow: 0 0 0 2.5px #110d19, 0 0 10px rgba(52, 211, 153, 0.9); }
    .lx-chat .user-info { flex: 1; min-width: 0; }
    .lx-chat .user-info-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .lx-chat .user-info h4 { display: flex; align-items: center; gap: 5px; min-width: 0; margin: 0; overflow: hidden; color: var(--lx-text); font-size: 0.95rem; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
    .lx-chat .user-info-meta { margin-top: 3px; }
    .lx-chat .status-online { margin: 0; color: var(--lx-green); font-size: 0.74rem; font-weight: 550; }
    .verified-badge { display: inline-grid; width: 15px; height: 15px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #60a5fa, #3b82f6); box-shadow: 0 0 10px rgba(59, 130, 246, 0.6); vertical-align: middle; margin-left: 4px; }
    .verified-badge svg { width: 10px; height: 10px; fill: #fff; }
    .fav-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; cursor: pointer; transition: transform 300ms var(--lx-spring), background 200ms; }
    .fav-icon svg { width: 17px; height: 17px; fill: var(--lx-gold); filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.7)); transition: fill 200ms, filter 200ms; }
    .fav-icon.inactive svg { fill: rgba(255, 255, 255, 0.16); filter: none; }
    .fav-icon:hover { background: rgba(255, 255, 255, 0.07); transform: scale(1.15); }
    .fav-icon:active { transform: scale(0.85); }
    .unread-pill { min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--lx-grad); color: #fff; font-size: 0.72rem; font-weight: 750; box-shadow: var(--lx-shadow-pink); animation: lx-badge-pop 420ms var(--lx-spring); }

    .lx-chat .chat-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: transparent; }
    .lx-chat .chat-interface { flex-direction: column; height: 100%; min-height: 0; }
    .chat-empty { height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--lx-muted); text-align: center; padding: 24px; }
    .chat-empty-orb { position: relative; display: grid; width: 120px; height: 120px; place-items: center; }
    .chat-empty-orb span { position: absolute; inset: 0; border: 1px solid rgba(255, 61, 139, 0.45); border-radius: 50%; animation: lx-orb 3.6s var(--lx-ease) infinite; }
    .chat-empty-orb span:nth-child(2) { animation-delay: 1.8s; border-color: rgba(168, 85, 247, 0.45); }
    .chat-empty-orb svg { width: 56px; height: 56px; padding: 14px; border-radius: 22px; background: var(--lx-grad); fill: none; stroke: #fff; stroke-width: 1.8; box-shadow: var(--lx-shadow-pink); animation: lx-float 3.2s ease-in-out infinite; }

    .lx-chat .conversation-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 12px 18px; border-bottom: 1px solid var(--lx-line); background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
    .conversation-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .conversation-avatar { position: relative; flex: 0 0 auto; }
    .conversation-avatar img { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #120e1b, 0 0 0 3.5px rgba(255, 61, 139, 0.7); }
    .conversation-name { display: flex; align-items: center; color: var(--lx-text); font-weight: 700; font-size: 1rem; }
    .conversation-status { display: inline-flex; align-items: center; gap: 6px; color: var(--lx-green); font-size: 0.76rem; font-weight: 550; }
    .live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--lx-green); }
    .live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--lx-green); opacity: 0.4; animation: lx-ping 1.8s var(--lx-ease) infinite; }
    .conversation-actions { display: flex; align-items: center; gap: 10px; }
    .cost-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid rgba(251, 191, 36, 0.3); border-radius: 999px; background: rgba(251, 191, 36, 0.1); color: #fde68a; font-size: 0.76rem; font-weight: 600; white-space: nowrap; }
    .mobile-back-btn { display: none; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.05); color: var(--lx-text); cursor: pointer; }

    .lx-chat .chat-messages {
        flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px;
        padding: 22px clamp(14px, 4vw, 48px); overflow-y: auto; overscroll-behavior: contain;
        background: transparent;
        mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 10px), transparent 100%);
    }
    .chat-date-heading { position: sticky; top: 4px; z-index: 2; align-self: center; margin: 10px 0 6px; }
    .chat-date-heading span { display: inline-block; padding: 4px 12px; border: 1px solid var(--lx-line); border-radius: 999px; background: rgba(18, 14, 28, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--lx-muted); font-size: 0.72rem; font-weight: 600; }
    .lx-chat .message {
        position: relative; display: flex; flex-direction: column; gap: 4px;
        max-width: min(76%, 560px); margin: 0; padding: 10px 14px 7px;
        border-radius: 20px; font-size: 0.93rem; line-height: 1.5; overflow-wrap: anywhere;
        color: var(--lx-text); box-shadow: none; animation: none;
    }
    .lx-chat .message.received { align-self: flex-start; border: 1px solid var(--lx-line); border-bottom-left-radius: 6px; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
    .lx-chat .message.sent { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--lx-grad); color: #fff; box-shadow: 0 10px 28px -14px rgba(255, 61, 139, 0.85); }
    .lx-chat .message.has-media { padding: 5px 5px 6px; }
    .lx-chat .message.has-media .msg-time { padding: 0 8px; }
    .lx-chat .message.lx-new.sent { animation: lx-msg-sent 520ms var(--lx-spring) both; transform-origin: bottom right; }
    .lx-chat .message.lx-new.received { animation: lx-msg-received 560ms var(--lx-spring) both; transform-origin: bottom left; }
    .lx-chat .message.temp { opacity: 0.72; }
    .lx-chat .message.temp .msg-time::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 6px; border: 2px solid rgba(255, 255, 255, 0.5); border-top-color: transparent; border-radius: 50%; animation: lx-spin 700ms linear infinite; vertical-align: -1px; }
    .lx-chat .message.temp.is-failed { opacity: 1; background: rgba(248, 113, 113, 0.25); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.6); }
    .lx-chat .message.temp.is-failed .msg-time::after { display: none; }
    .msg-media { display: block; max-width: min(300px, 100%); max-height: 360px; border-radius: 16px; object-fit: cover; cursor: zoom-in; transition: transform 400ms var(--lx-ease), filter 300ms; }
    .msg-media:hover { filter: brightness(1.06); }
    .msg-audio { max-width: 260px; }
    .msg-time { align-self: flex-end; display: inline-flex; align-items: center; gap: 4px; color: var(--lx-muted); font-size: 0.68rem; font-variant-numeric: tabular-nums; }
    .lx-chat .message.sent .msg-time { color: rgba(255, 255, 255, 0.78); }
    .msg-tick { width: 15px; height: 14px; fill: currentColor; }

    .locked-media { position: relative; display: grid; justify-items: center; gap: 8px; min-width: 220px; padding: 26px 22px 18px; border-radius: 16px; overflow: hidden; isolation: isolate; text-align: center; }
    .locked-media__veil { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 30% 20%, rgba(255, 61, 139, 0.55), transparent 60%), radial-gradient(100% 80% at 80% 90%, rgba(168, 85, 247, 0.6), transparent 60%), #1a1226; filter: blur(0.5px); }
    .locked-media__veil::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%); animation: lx-shimmer 2.8s ease-in-out infinite; }
    .locked-media__lock { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 18px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: lx-float 3s ease-in-out infinite; }
    .locked-media__lock svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
    .locked-media__price { color: #fde68a; font-weight: 750; font-size: 1rem; text-shadow: 0 0 18px rgba(251, 191, 36, 0.6); }
    .unlock-btn { min-height: 38px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; color: var(--lx-pink); font-weight: 750; cursor: pointer; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.6); transition: transform 200ms var(--lx-spring); }
    .unlock-btn:hover { transform: scale(1.05); }

    .lx-chat .chat-input-area { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 16px 14px; border-top: 1px solid var(--lx-line); background: rgba(255, 255, 255, 0.015); }
    .composer-pill { position: relative; display: flex; flex: 1; align-items: center; gap: 2px; min-width: 0; min-height: 50px; padding: 4px 6px 4px 6px; border: 1px solid var(--lx-line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.045); transition: border-color 200ms, box-shadow 250ms var(--lx-ease); }
    .composer-pill:focus-within { border-color: rgba(255, 61, 139, 0.65); box-shadow: 0 0 0 4px rgba(255, 61, 139, 0.15), 0 14px 40px -20px rgba(255, 61, 139, 0.7); }
    .lx-chat .composer-icon { display: grid; width: 40px; height: 40px; min-width: 40px; flex: 0 0 auto; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--lx-muted); cursor: pointer; transition: color 160ms, background 160ms, transform 250ms var(--lx-spring); }
    .lx-chat .composer-icon:hover { color: #fff; background: rgba(255, 255, 255, 0.08); transform: rotate(-8deg) scale(1.06); }
    .poke-emoji { font-size: 1.05rem; line-height: 1; }
    .lx-chat #messageInput { flex: 1; min-width: 0; height: 42px; min-height: 0; padding: 0 10px; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--lx-text); font-size: 16px; }
    .lx-chat .chat-submit { display: grid; width: 50px; height: 50px; min-width: 50px; flex: 0 0 auto; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--lx-grad) !important; color: #fff; cursor: pointer; box-shadow: var(--lx-shadow-pink); transition: transform 250ms var(--lx-spring), box-shadow 250ms; }
    .lx-chat .chat-submit .lx-ico { width: 21px; height: 21px; transform: translateX(-1px); }
    .lx-chat .chat-submit:hover { transform: scale(1.07) rotate(-10deg); box-shadow: 0 16px 40px -10px rgba(255, 61, 139, 0.95); }
    .lx-chat .chat-submit:active { transform: scale(0.9); }
    .emoji-picker { position: absolute; left: 0; bottom: calc(100% + 12px); z-index: 50; grid-template-columns: repeat(8, 1fr); gap: 2px; width: min(340px, calc(100vw - 32px)); max-height: 240px; padding: 10px; overflow-y: auto; border: 1px solid var(--lx-line-2); border-radius: 20px; background: rgba(22, 16, 34, 0.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9); animation: lx-pop 260ms var(--lx-spring); transform-origin: bottom left; }
    .emoji-option { display: grid; min-height: 36px; place-items: center; border-radius: 10px; font-size: 1.25rem; cursor: pointer; transition: transform 180ms var(--lx-spring), background 150ms; }
    .emoji-option:hover { background: rgba(255, 255, 255, 0.08); transform: scale(1.25); }

    @media (min-width: 769px) {
        .lx-chat .chat-sidebar { display: flex !important; }
        .lx-chat .chat-main { display: flex !important; }
    }
    @media (max-width: 768px) {
        &.lx body.member-page-chat { overflow: hidden; }
        &.lx body.member-page-chat > .member-content { padding: 0; }
        .lx-chat-title { display: none; }
        .lx-chat .chat-container { display: block; height: var(--chat-viewport-height, 100dvh); min-height: 0; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
        .lx-chat .chat-sidebar { height: 100%; border-right: 0; }
        .lx-chat .mobile-home-link { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: max(12px, env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid var(--lx-line); background: rgba(10, 8, 16, 0.6); color: var(--lx-text); font-weight: 650; text-decoration: none; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
        .lx-chat .mobile-home-link .lx-ico { width: 18px; height: 18px; color: var(--lx-pink-2); }
        .lx-chat .chat-main { display: none; position: fixed; inset: 0; top: var(--chat-viewport-top, 0px); height: var(--chat-viewport-height, 100dvh); z-index: 15000; background: rgba(8, 6, 14, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
        .lx-chat .chat-main.active { display: flex; animation: lx-slide-up 380ms var(--lx-ease); }
        .mobile-back-btn { display: grid; }
        .lx-chat .conversation-header { padding: max(10px, env(safe-area-inset-top)) 12px 10px; min-height: 64px; }
        .conversation-avatar img { width: 38px; height: 38px; }
        .conversation-actions { flex-direction: column; align-items: flex-end; gap: 4px; }
        .cost-chip { height: 22px; padding: 0 8px; font-size: 0.66rem; }
        .conversation-actions .btn { min-height: 28px; padding: 0 10px; font-size: 0.72rem; }
        .lx-chat .chat-messages { padding: 14px 10px; }
        .lx-chat .message { max-width: 86%; }
        .lx-chat .chat-input-area { padding: 8px 10px max(10px, env(safe-area-inset-bottom)); gap: 8px; }
        .lx-chat .composer-icon { width: 36px; height: 36px; min-width: 36px; }
        .lx-chat .chat-submit { width: 46px; height: 46px; min-width: 46px; }
    }

    /* ======================================================================
       MOTION UTILITIES (driven by lustora-fx.js)
       ====================================================================== */
    .lx-reveal { opacity: 0; translate: 0 18px; scale: 0.985; transition: opacity 700ms var(--lx-ease) var(--lx-delay, 0ms), translate 800ms var(--lx-ease) var(--lx-delay, 0ms), scale 800ms var(--lx-ease) var(--lx-delay, 0ms); }
    .lx-reveal.lx-in { opacity: 1; translate: 0 0; scale: 1; }
    .lx-pos { position: relative; overflow: hidden; }
    .lx-ripple { position: absolute; z-index: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 60%); transform: scale(0); opacity: 1; pointer-events: none; animation: lx-ripple 650ms var(--lx-ease) forwards; }
    .lx-bump-up { display: inline-block; animation: lx-bump-up 700ms var(--lx-spring); }
    .lx-bump-down { display: inline-block; animation: lx-bump-down 500ms var(--lx-ease); }
    body { animation: lx-page-in 600ms var(--lx-ease) both; }
}

/* No-WebGL / reduced-motion fallbacks */
:root.lx.lx-no-webgl { background-attachment: scroll; }
@media (prefers-reduced-motion: reduce) {
    :root.lx *, :root.lx *::before, :root.lx *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    :root.lx .lx-reveal { opacity: 1; translate: none; scale: none; }
}

@property --lx-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes lx-ring-spin { to { --lx-angle: 360deg; } }
@keyframes lx-spin { to { transform: rotate(360deg); } }
@keyframes lx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lx-pop { from { opacity: 0; transform: scale(0.92) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lx-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lx-page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lx-slide-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes lx-slide-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes lx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes lx-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes lx-ping { 0% { transform: scale(0.6); opacity: 0.55; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes lx-orb { 0% { transform: scale(0.5); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes lx-shimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes lx-ripple { to { transform: scale(1); opacity: 0; } }
@keyframes lx-badge-pop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes lx-coin-spin { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(180deg); } }
@keyframes lx-toast-in { from { opacity: 0; transform: translateY(16px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes lx-msg-sent { 0% { opacity: 0; transform: translate(14px, 14px) scale(0.6); } 100% { opacity: 1; transform: none; } }
@keyframes lx-msg-received { 0% { opacity: 0; transform: translate(-14px, 10px) scale(0.7); filter: blur(4px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes lx-bump-up { 0% { transform: scale(1); color: inherit; } 35% { transform: scale(1.35); color: #fde68a; text-shadow: 0 0 18px rgba(251, 191, 36, 0.9); } 100% { transform: scale(1); } }
@keyframes lx-bump-down { 0% { transform: translateY(0); } 40% { transform: translateY(3px); color: #fca5a5; } 100% { transform: none; } }
