/* ============================================================================
   MANGLZ FUTURISTIC (11/22/2026) - the third site look, from Luna's design board (owner: "every page wrapped in a futuristic zone").
   Space black #080A12 with a faint grid and soft violet / cyan glows, glass indigo #151A2B panels (16px corners, 1px line), a cyan edge
   glow on what is selected, violet #A788FF + cyan #5EE7F4 accents, prize gold #FFC875, text #F2F5FF / #ABB6D1, primary buttons #6838D4.
   Space Grotesk headings, Inter text. Linked from _head.tpl after every other style; the server sets html.mz-fx (includes/mz_look.php).
   Futuristic is laid over Dark: the page still has html.mz-night + body.night-mode, so midnight.css (and its 11/22 APP FIT phone block)
   keeps every size; this file only re-skins.
   RULES: rules start with :where(html.mz-fx) (adds no weight) so they tie midnight's and win by order, and a member's profile Look still
   wins on their profile. html.mz-fx (real weight) only for styles that sit inside <body> (Luna, podcast, the front door).
   NEVER here: any rule on Luna's face (the img/svg in .ln-bubble, .ln-ava, .ln-offer-head), filters/opacity/blend on member photos,
   sizes of the header, the bottom bar, inputs or Luna's bubble, anything in Escape, Crossfire or the admin panel.
   Keep a space after every opening brace. Bump ?v= in _head.tpl on every edit (Cloudflare keeps CSS a year).
   ============================================================================ */

/* ---------- the look switch (all three looks): the menu row, the header button, the settings cards ---------- */
.mz-look-row { display: flex; gap: 6px; padding: 6px 8px; }
.mz-look-row .mz-chip { flex: 1 1 0; min-width: 0; height: auto; min-height: 52px; padding: 6px 4px; flex-direction: column; justify-content: center; align-items: center; gap: 3px; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.15; white-space: nowrap; }
.mz-look-row .mz-chip i { display: inline-block; font-size: 15px; line-height: 1; }
.mz-look-row .mz-chip span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mz-look-btn i { display: inline-block; margin-right: 7px; font-size: 13px; }
.mz-look-btn { min-width: 0; }
@media (max-width: 1199px) { .mz-look-btn [data-mz-look-label] { display: none; } .mz-look-btn i { margin-right: 0; } }

.mz-look-intro { color: var(--mz-text-2); margin: 0 0 14px; }
.mz-look-note { margin: 16px 0 0; color: var(--mz-text-3); font-size: 13px; }
.mz-look-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mz-look-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 120px; padding: 12px; border-radius: 16px; border: 1px solid var(--mz-line); background: var(--mz-surface); color: var(--mz-text); text-align: left; cursor: pointer; font: inherit; transition: border-color .18s ease, box-shadow .18s ease; }
.mz-look-card:hover { border-color: var(--mz-line-strong); }
.mz-look-card.on { border-color: rgba(94, 231, 244, .8); box-shadow: 0 0 0 1px rgba(94, 231, 244, .55), 0 0 18px rgba(94, 231, 244, .28); }
.mz-look-card:focus-visible { outline: 2px solid #5EE7F4; outline-offset: 2px; }
.mz-look-prev { display: block; position: relative; width: 100%; height: 86px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(127, 127, 127, .28); }
.mz-look-prev .mz-lp-bar { position: absolute; left: 0; right: 0; top: 0; height: 14px; }
.mz-look-prev .mz-lp-card { position: absolute; left: 12px; right: 12px; top: 24px; bottom: 10px; border-radius: 9px; padding: 9px; display: flex; flex-direction: column; gap: 6px; }
.mz-look-prev .mz-lp-line { display: block; height: 6px; width: 80%; border-radius: 3px; }
.mz-look-prev .mz-lp-short { width: 50%; }
.mz-look-prev .mz-lp-pill { display: block; margin-top: auto; width: 44px; height: 12px; border-radius: 6px; }
.mz-look-prev-light { background: #f4f6fa; }
.mz-look-prev-light .mz-lp-bar { background: #ffffff; border-bottom: 1px solid #e3e7ef; }
.mz-look-prev-light .mz-lp-card { background: #ffffff; border: 1px solid #e3e7ef; }
.mz-look-prev-light .mz-lp-line { background: #dfe4ee; }
.mz-look-prev-light .mz-lp-pill { background: #7d49d4; }
.mz-look-prev-dark { background: #0b0e14; }
.mz-look-prev-dark .mz-lp-bar { background: #10141c; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mz-look-prev-dark .mz-lp-card { background: #121722; border: 1px solid rgba(255, 255, 255, .08); }
.mz-look-prev-dark .mz-lp-line { background: rgba(255, 255, 255, .14); }
.mz-look-prev-dark .mz-lp-pill { background: #7d49d4; }
.mz-look-prev-fx { background: radial-gradient(120% 90% at 0% 0%, rgba(104, 56, 212, .55), transparent 60%), radial-gradient(90% 80% at 100% 100%, rgba(94, 231, 244, .25), transparent 60%), linear-gradient(rgba(167, 136, 255, .09) 1px, transparent 1px) 0 0 / 12px 12px, linear-gradient(90deg, rgba(167, 136, 255, .09) 1px, transparent 1px) 0 0 / 12px 12px, #080A12; }
.mz-look-prev-fx .mz-lp-bar { background: rgba(8, 10, 18, .75); border-bottom: 1px solid rgba(167, 136, 255, .3); }
.mz-look-prev-fx .mz-lp-card { background: rgba(21, 26, 43, .85); border: 1px solid rgba(94, 231, 244, .7); box-shadow: 0 0 12px rgba(94, 231, 244, .3); }
.mz-look-prev-fx .mz-lp-line { background: rgba(242, 245, 255, .28); }
.mz-look-prev-fx .mz-lp-pill { background: #6838D4; box-shadow: 0 0 10px rgba(167, 136, 255, .6); }
.mz-look-name { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 800; font-size: 15px; color: var(--mz-text); }
.mz-look-name i { color: var(--mz-accent-2); }
.mz-look-desc { color: var(--mz-text-2); font-size: 13px; line-height: 1.35; }
.mz-look-check { position: absolute; top: 18px; right: 18px; width: 26px; height: 26px; border-radius: 50%; display: none; align-items: center; justify-content: center; background: #5EE7F4; color: #061018; font-size: 13px; box-shadow: 0 0 12px rgba(94, 231, 244, .5); }
.mz-look-card.on .mz-look-check { display: flex; }
@media (max-width: 767px) {
  .mz-look-cards { grid-template-columns: 1fr; gap: 10px; }
  .mz-look-card { display: grid; grid-template-columns: 108px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 2px; min-height: 0; align-items: start; }
  .mz-look-card .mz-look-prev { grid-row: 1 / span 2; height: 72px; }
  .mz-look-card .mz-look-name { margin-top: 2px; padding-right: 30px; }
  .mz-look-check { top: 10px; right: 10px; }
}
/* the switch while the look changes: colours ease over (skipped when the device asks for less motion) */
html.mz-look-anim body, html.mz-look-anim .main-header, html.mz-look-anim .footer-bottom-bar, html.mz-look-anim .card, html.mz-look-anim .post, html.mz-look-anim .dropdown-menu { transition: background-color .25s ease, color .25s ease, border-color .25s ease !important; }

/* ============================================================================
   FUTURISTIC (everything below: html.mz-fx only)
   ============================================================================ */

/* ---------- tokens (midnight.css is built on these, so most of the site follows them) ---------- */
html.mz-fx { color-scheme: dark; background: #080A12; }
:where(html.mz-fx) body.night-mode {
  --body-font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mz-hud: "Space Grotesk", Inter, "Segoe UI", sans-serif;
  --mz-fx-head: "Space Grotesk", Inter, "Segoe UI", sans-serif;
  --body-bg-color-dark: #080A12; --body-color-dark: #F2F5FF; --header-bg-color-dark: rgba(8, 10, 18, .72);
  --card-dark-color: #151A2B; --card-dark-divider: rgba(171, 182, 209, .13); --card-dark-hover: #1B2136; --card-dark-input: #0D1120; --card-dark-input-color: #F2F5FF;
  --link-color: #A788FF; --plyr-color-main: #A788FF;
  --mz-ground: #080A12; --mz-surface: #151A2B; --mz-raised: #1B2136; --mz-sunken: #0D1120;
  --mz-fx-glass: rgba(21, 26, 43, .78); --mz-fx-glass-hi: rgba(21, 26, 43, .95);
  --mz-line: rgba(171, 182, 209, .13); --mz-line-strong: rgba(167, 136, 255, .32);
  --mz-text: #F2F5FF; --mz-text-2: #ABB6D1; --mz-text-3: #8D97B3; --mz-white: #FFFFFF;
  --mz-accent: #6838D4; --mz-accent-2: #A788FF; --mz-accent-soft: rgba(167, 136, 255, .16); --mz-accent-line: rgba(167, 136, 255, .45);
  --mz-teal: #5EE7F4; --mz-teal-2: #5EE7F4; --mz-teal-soft: rgba(94, 231, 244, .12); --mz-teal-line: rgba(94, 231, 244, .5);
  --mz-gold: #FFC875; --mz-gold-soft: rgba(255, 200, 117, .14);
  --mz-glow: 0 0 0 1px rgba(94, 231, 244, .55), 0 0 18px rgba(94, 231, 244, .28);
  --mz-fx-vglow: 0 0 24px rgba(167, 136, 255, .35);
  --mz-fx-ink: #061018;
  --mz-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  --bs-body-bg: #080A12; --bs-body-color: #F2F5FF; --bs-secondary-color: #ABB6D1; --bs-tertiary-bg: #151A2B; --bs-border-color: rgba(171, 182, 209, .13);
  --bs-primary: #6838D4; --bs-primary-rgb: 104, 56, 212; --bs-link-color: #A788FF; --bs-link-color-rgb: 167, 136, 255; --bs-link-hover-color: #C9B8FF; --bs-link-hover-color-rgb: 201, 184, 255; --bs-emphasis-color: #fff;
}

/* ---------- the space background: violet glow top-left, cyan glow bottom-right, a faint grid fading down (fixed, no repaint on scroll) ---------- */
:where(html.mz-fx) body.night-mode, :where(html.mz-fx) body.night-mode.index-body { background-color: transparent; background-image: none; }
html.mz-fx body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70vw 55vh at 6% -8%, rgba(104, 56, 212, .32), transparent 62%), radial-gradient(60vw 50vh at 104% 108%, rgba(94, 231, 244, .14), transparent 60%), radial-gradient(40vw 40vh at 100% 0%, rgba(167, 136, 255, .10), transparent 60%); }
html.mz-fx body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(167, 136, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 136, 255, .055) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .45) 50%, transparent 92%); mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .45) 50%, transparent 92%); }
:where(html.mz-fx) ::selection { background: rgba(167, 136, 255, .4); color: #fff; }
:where(html.mz-fx) :focus-visible { outline: 2px solid #5EE7F4; outline-offset: 2px; }
:where(html.mz-fx) body.night-mode a:hover { color: #C9B8FF; }

/* ---------- type: Space Grotesk headings, Inter everything else ---------- */
:where(html.mz-fx) body.night-mode :is(h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5, .card-title, .mz-h1, .mz-h2, .modal-title, .fr_welcome_title, .notfound h1, .page-header h2, .profile-name-wrapper) { font-family: var(--mz-fx-head); letter-spacing: -.01em; }
:where(html.mz-fx) body.night-mode :is(.card-header > strong, .card-header .title, .card-header.with-icon) { font-family: var(--mz-fx-head); font-weight: 700; letter-spacing: -.005em; }
:where(html.mz-fx) body.night-mode .card-header > strong.text-muted { color: var(--mz-text-2) !important; }
:where(html.mz-fx) body.night-mode :is(.mz-stat b, .mz-big, .mz-num, .counter, .post-stats, .stat-panel h3, .wallet-balance) { font-variant-numeric: tabular-nums; }

/* ---------- header (computer + phone): smoked glass, violet hairline, the white MANGLZ wordmark with a soft glow ---------- */
:where(html.mz-fx) body.night-mode .main-header { background: rgba(8, 10, 18, .74); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid rgba(167, 136, 255, .16); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
:where(html.mz-fx) body.night-mode .main-header .logo img.logo-dark { filter: drop-shadow(0 0 10px rgba(167, 136, 255, .35)); }
:where(html.mz-fx) body.night-mode .main-header .search-wrapper .form-control { background: rgba(13, 17, 32, .85); border: 1px solid var(--mz-line); color: var(--mz-text); }
:where(html.mz-fx) body.night-mode .main-header .search-wrapper .form-control:focus { border-color: rgba(167, 136, 255, .6); box-shadow: 0 0 0 3px rgba(167, 136, 255, .2); }
:where(html.mz-fx) body.night-mode .header-icon, :where(html.mz-fx) body.night-mode .header-icon * { color: #ABB6D1 !important; fill: #ABB6D1 !important; }
:where(html.mz-fx) body.night-mode .main-header .navbar-wrapper > ul > li > a:hover .header-icon, :where(html.mz-fx) body.night-mode .main-header .navbar-wrapper > ul > li > a:hover .header-icon * { color: #F2F5FF !important; fill: #F2F5FF !important; }
:where(html.mz-fx) body.night-mode .header-icon.active, :where(html.mz-fx) body.night-mode .header-icon.active *, :where(html.mz-fx) body.night-mode .main-header .show > a .header-icon, :where(html.mz-fx) body.night-mode .main-header .show > a .header-icon * { color: #A788FF !important; fill: #A788FF !important; }
:where(html.mz-fx) body.night-mode .main-header .navbar-wrapper > ul > li > a:hover { background: rgba(167, 136, 255, .10); }
:where(html.mz-fx) body.night-mode .counter.red, :where(html.mz-fx) body.night-mode .main-header .counter { box-shadow: 0 0 0 2px #080A12; }
:where(html.mz-fx) body.night-mode .mz-theme-btn { background: rgba(21, 26, 43, .7); border-color: rgba(167, 136, 255, .35); color: #F2F5FF; }
:where(html.mz-fx) body.night-mode .mz-theme-btn i { color: #A788FF; }
:where(html.mz-fx) body.night-mode .mz-theme-btn:hover { border-color: rgba(94, 231, 244, .6); box-shadow: 0 0 14px rgba(94, 231, 244, .2); }
:where(html.mz-fx) body.night-mode .main-header .user-menu img { box-shadow: 0 0 0 2px rgba(167, 136, 255, .55); }

/* ---------- side menus (left nav, phone off-canvas, settings): glass rows, the active one glass + cyan edge + violet icon ---------- */
:where(html.mz-fx) body.night-mode :is(.main-side-nav > li > a, .main-side-nav a) { color: #ABB6D1; }
:where(html.mz-fx) body.night-mode .main-side-nav > li > a:hover, :where(html.mz-fx) body.night-mode .main-side-nav a:hover { background: rgba(167, 136, 255, .09); color: #F2F5FF; }
:where(html.mz-fx) body.night-mode .main-side-nav > li.active > a { background: var(--mz-fx-glass); color: #F2F5FF; box-shadow: var(--mz-glow); }
:where(html.mz-fx) body.night-mode .main-side-nav .mz-sec, :where(html.mz-fx) body.night-mode .main-side-nav > li.ptb5 > small { color: #8D97B3 !important; letter-spacing: .16em; }
:where(html.mz-fx) body.night-mode .side-nav > li > a:hover { background: rgba(167, 136, 255, .09); color: #F2F5FF; }
:where(html.mz-fx) body.night-mode .side-nav > li.active > a { background: var(--mz-fx-glass); color: #F2F5FF; box-shadow: var(--mz-glow); }
:where(html.mz-fx) body.night-mode .side-nav > li.active > a .main-icon, :where(html.mz-fx) body.night-mode .side-nav > li.active > a .main-icon * { color: #A788FF !important; fill: #A788FF !important; }
:where(html.mz-fx) body.night-mode .mz-tag-new { background: rgba(94, 231, 244, .12); color: #5EE7F4; box-shadow: inset 0 0 0 1px rgba(94, 231, 244, .3); }
@media (max-width: 991px) {
  :where(html.mz-fx) body.night-mode .sg-offcanvas-sidebar .main-side-nav-card, :where(html.mz-fx) body.night-mode .main-left-panel { background: transparent; }
}

/* ---------- cards and panels: glass, 16px corners, 1px line, no shadow at rest (no blur on feed cards: cheap phones) ---------- */
:where(html.mz-fx) body.night-mode :is(.card, .post, .publisher, .x-form, .user-box, .page-header, .profile-header, .mz-card, .mz-room-card, .mz-drift-card, .mz-call-card, .mz-mini, .static-page-content, .ui-box, .blog-container, .product-card, .stat-panel) { background-color: var(--mz-fx-glass); border-color: var(--mz-line); }
:where(html.mz-fx) body.night-mode :is(.card, .post, .publisher, .x-form, .mz-card) { border-radius: 16px; }
:where(html.mz-fx) body.night-mode .main-side-nav-card { background: transparent; border: 0; }
:where(html.mz-fx) body.night-mode :is(.card-header, .card-footer) { background: transparent; border-color: var(--mz-line); }
:where(html.mz-fx) body.night-mode :is(a.mz-room-card, .mz-room-card, a.mz-card, .ui-box, .user-box):hover { border-color: rgba(94, 231, 244, .5); box-shadow: var(--mz-glow); }
:where(html.mz-fx) body.night-mode :is(.mz-card, .mz-room-card, .ui-box, .user-box, .mz-chip):is(.active, .on, [aria-current]) { border-color: rgba(94, 231, 244, .6); box-shadow: var(--mz-glow); }
:where(html.mz-fx) body.night-mode :is(.mz-card.mz-glow, .mz-drift-in) { background: linear-gradient(165deg, rgba(104, 56, 212, .22) 0%, rgba(21, 26, 43, .82) 60%); border-color: rgba(167, 136, 255, .45); box-shadow: var(--mz-fx-vglow); }
:where(html.mz-fx) body.night-mode .daytime_message { background-color: var(--mz-fx-glass); border-left: 3px solid #A788FF !important; }
:where(html.mz-fx) body.night-mode .alert-info { background: rgba(94, 231, 244, .09); border: 1px solid rgba(94, 231, 244, .3); border-left: 3px solid #5EE7F4; color: var(--mz-text); }
:where(html.mz-fx) body.night-mode .alert-warning { background: linear-gradient(160deg, rgba(255, 200, 117, .14), rgba(255, 200, 117, .06)); border: 1px solid rgba(255, 200, 117, .42); color: var(--mz-text); box-shadow: 0 0 26px rgba(255, 200, 117, .06); }
:where(html.mz-fx) body.night-mode .alert-danger { background: rgba(224, 36, 94, .12); border-color: rgba(255, 107, 147, .4); color: var(--mz-text); }
:where(html.mz-fx) body.night-mode .alert-success { background: rgba(94, 231, 244, .09); border-color: rgba(94, 231, 244, .35); color: var(--mz-text); }
:where(html.mz-fx) body.night-mode .alert-post, :where(html.mz-fx) body.night-mode .js_see-more.alert-info { background: rgba(27, 33, 54, .85); border: 1px solid var(--mz-line); border-left-width: 1px; color: var(--mz-text-2); }
:where(html.mz-fx) body.night-mode .alert-secondary { background-color: rgba(27, 33, 54, .85); }
:where(html.mz-fx) body.night-mode .badge.bg-light { background: rgba(167, 136, 255, .16) !important; color: #C9B8FF !important; }
:where(html.mz-fx) body.night-mode .text-primary { color: #A788FF !important; }
:where(html.mz-fx) body.night-mode .text-link { color: #A788FF; }
:where(html.mz-fx) body.night-mode .bg-gradient-primary { background: linear-gradient(135deg, #6838D4, #2fb6c4) !important; }
:where(html.mz-fx) body.night-mode .bg-indigo { background: linear-gradient(170deg, rgba(104, 56, 212, .25), rgba(21, 26, 43, .9)) !important; }
:where(html.mz-fx) body.night-mode .bg-teal { background: linear-gradient(170deg, rgba(94, 231, 244, .14), rgba(21, 26, 43, .9)) !important; }
:where(html.mz-fx) body.night-mode .progress { background: #0D1120; }
:where(html.mz-fx) body.night-mode .progress-bar { background: linear-gradient(90deg, #6838D4, #A788FF 60%, #5EE7F4); box-shadow: 0 0 12px rgba(167, 136, 255, .45); }
:where(html.mz-fx) body.night-mode .divider, :where(html.mz-fx) body.night-mode hr { border-color: var(--mz-line); }

/* ---------- buttons: violet primary, outline secondary, cyan with dark ink (white on cyan fails contrast) ---------- */
:where(html.mz-fx) body.night-mode .btn-primary, :where(html.mz-fx) body.night-mode .mz-btn-primary { color: #fff; }
:where(html.mz-fx) body.night-mode .btn-primary:hover, :where(html.mz-fx) body.night-mode .btn-primary:focus-visible { background: #7646E6 !important; border-color: #7646E6 !important; color: #fff; box-shadow: var(--mz-fx-vglow); }
:where(html.mz-fx) body.night-mode .mz-btn-primary:hover { filter: none; background: #7646E6; color: #fff; box-shadow: var(--mz-fx-vglow); }
:where(html.mz-fx) body.night-mode :is(.btn-primary, .mz-btn-primary, .btn-light, .btn-default, .btn-secondary, .mz-btn-ghost, .btn-outline-primary):active { translate: 0 1px; }
:where(html.mz-fx) body.night-mode :is(.btn-light, .btn-default, .btn-secondary) { background: rgba(21, 26, 43, .55); border: 1px solid rgba(171, 182, 209, .3); color: #F2F5FF; }
:where(html.mz-fx) body.night-mode :is(.btn-light, .btn-default, .btn-secondary):hover { background: rgba(167, 136, 255, .14); border-color: rgba(167, 136, 255, .6); color: #F2F5FF; }
:where(html.mz-fx) body.night-mode .btn-outline-primary { color: #C9B8FF; border-color: rgba(167, 136, 255, .55); }
:where(html.mz-fx) body.night-mode .btn-outline-primary:hover { background: rgba(167, 136, 255, .16); border-color: #A788FF; color: #fff; }
:where(html.mz-fx) body.night-mode .mz-btn-ghost { border-color: rgba(171, 182, 209, .3); color: #F2F5FF; }
:where(html.mz-fx) body.night-mode .mz-btn-ghost:hover { background: rgba(167, 136, 255, .12); border-color: rgba(167, 136, 255, .6); }
:where(html.mz-fx) body.night-mode :is(.btn-info, .btn-success, .mz-btn-on, .mz-btn-teal) { background: #5EE7F4; border-color: #5EE7F4; color: #061018; }
:where(html.mz-fx) body.night-mode :is(.btn-info, .btn-success, .mz-btn-on, .mz-btn-teal):hover { background: #8BF0F8; border-color: #8BF0F8; color: #061018; box-shadow: 0 0 18px rgba(94, 231, 244, .35); }
:where(html.mz-fx) body.night-mode :is(.btn-info, .btn-success) :is(i, .main-icon, .main-icon *) { color: #061018 !important; fill: #061018 !important; }
:where(html.mz-fx) body.night-mode .mz-bigcast { background: linear-gradient(135deg, #6838D4, #2b9fb0); box-shadow: 0 0 26px rgba(104, 56, 212, .35); }
:where(html.mz-fx) body.night-mode .btn-icon-social:not([class*="btn-"]) { border-color: var(--mz-line); }
:where(html.mz-fx) body.night-mode .tips-bar, :where(html.mz-fx) body.night-mode .timer { background: #6838D4; }

/* ---------- forms: sunken fields, violet focus ring (sizes stay as APP FIT set them: 16px text on phones) ---------- */
:where(html.mz-fx) body.night-mode :is(.form-control, .form-select) { background-color: #0D1120; border-color: var(--mz-line); color: var(--mz-text); border-radius: 12px; }
:where(html.mz-fx) body.night-mode :is(.form-control, .form-select):focus { background-color: #0D1120; border-color: rgba(167, 136, 255, .7); box-shadow: 0 0 0 3px rgba(167, 136, 255, .22); color: var(--mz-text); }
:where(html.mz-fx) body.night-mode .form-control::placeholder { color: #8D97B3; }
:where(html.mz-fx) body.night-mode .input-group-text { background: #1B2136; border-color: var(--mz-line); color: var(--mz-text-2); }
:where(html.mz-fx) body.night-mode .form-check-input { background-color: #0D1120; border-color: rgba(171, 182, 209, .38); }
:where(html.mz-fx) body.night-mode .form-check-input:checked { background-color: #6838D4; border-color: #6838D4; }
:where(html.mz-fx) body.night-mode .form-check-input:focus { box-shadow: 0 0 0 3px rgba(167, 136, 255, .25); }
:where(html.mz-fx) body.night-mode .switch input:checked + .slider { background-color: #6838D4; box-shadow: 0 0 12px rgba(167, 136, 255, .45); }
:where(html.mz-fx) body.night-mode :is(.publisher-message textarea, .comment-form textarea, .chat-form textarea, .chat-box-footer textarea, .mz-sendbar input, .mz-input) { background-color: #0D1120; border-color: var(--mz-line); color: var(--mz-text); }
:where(html.mz-fx) body.night-mode :is(.publisher-message textarea, .comment-form textarea, .chat-form textarea, .chat-box-footer textarea, .mz-sendbar input, .mz-input):focus { border-color: rgba(167, 136, 255, .7); box-shadow: 0 0 0 3px rgba(167, 136, 255, .2); }
:where(html.mz-fx) body.night-mode .publisher-message textarea, :where(html.mz-fx) body.night-mode .comment-form textarea { border-radius: 14px; }

/* ---------- tabs, pills, chips: the active tab gets the glowing violet underline (the board's "Posts" tab) ---------- */
:where(html.mz-fx) body.night-mode :is(.nav-tabs .nav-link, .profile-tabs .nav-link, .content-tabs a) { color: #ABB6D1; }
:where(html.mz-fx) body.night-mode .nav-tabs .nav-link.active, :where(html.mz-fx) body.night-mode .profile-tabs .nav-link.active { color: #F2F5FF; border-bottom-color: #A788FF; box-shadow: 0 12px 14px -12px rgba(167, 136, 255, .95); background: transparent; }
:where(html.mz-fx) body.night-mode .content-tabs li.active a, :where(html.mz-fx) body.night-mode .content-tabs a.active { color: #F2F5FF; border-bottom-color: #A788FF; }
:where(html.mz-fx) body.night-mode .profile-tabs .nav-link.active .main-icon, :where(html.mz-fx) body.night-mode .profile-tabs .nav-link.active .main-icon * { color: #A788FF !important; fill: #A788FF !important; }
:where(html.mz-fx) body.night-mode .nav-pills .nav-link.active, :where(html.mz-fx) body.night-mode .nav-pills .show > .nav-link { background: #6838D4; color: #fff; box-shadow: 0 0 16px rgba(104, 56, 212, .4); }
:where(html.mz-fx) body.night-mode .mz-chip { border-color: rgba(171, 182, 209, .22); background: rgba(21, 26, 43, .55); color: #ABB6D1; }
:where(html.mz-fx) body.night-mode .mz-chip:hover { color: #F2F5FF; border-color: rgba(167, 136, 255, .55); }
:where(html.mz-fx) body.night-mode .mz-chip.on { background: rgba(167, 136, 255, .16); border-color: rgba(94, 231, 244, .6); color: #F2F5FF; box-shadow: var(--mz-glow); }
:where(html.mz-fx) body.night-mode .mz-chip.on i { color: #A788FF; }
:where(html.mz-fx) body.night-mode .posts-filter .btn { background: rgba(21, 26, 43, .7); border: 1px solid var(--mz-line); color: #F2F5FF; }
:where(html.mz-fx) body.night-mode .posts-filter .btn:hover { border-color: rgba(167, 136, 255, .55); }

/* ---------- dropdowns, popovers, tooltips: near-opaque glass (no blur: most open from the blurred header or bottom bar), a faint violet edge, 180ms fade + 4px rise ---------- */
:where(html.mz-fx) body.night-mode :is(.dropdown-menu, .popover, .mz-menu, .mz-picker) { background: rgba(21, 26, 43, .97); border: 1px solid rgba(167, 136, 255, .24); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(167, 136, 255, .06), 0 0 30px rgba(104, 56, 212, .12); color: var(--mz-text); }
:where(html.mz-fx) body.night-mode .dropdown-menu { border-radius: 16px; }
:where(html.mz-fx) body.night-mode .dropdown-menu.show { animation: mzfx-in .18s cubic-bezier(.2, .7, .2, 1) backwards; }
:where(html.mz-fx) body.night-mode .dropdown-item { color: var(--mz-text); }
:where(html.mz-fx) body.night-mode .dropdown-item:hover, :where(html.mz-fx) body.night-mode .dropdown-item:focus { background: rgba(167, 136, 255, .13); color: #fff; }
:where(html.mz-fx) body.night-mode .dropdown-item.active, :where(html.mz-fx) body.night-mode .dropdown-item:active { background: rgba(167, 136, 255, .18); color: #fff; box-shadow: inset 3px 0 0 #5EE7F4; }
:where(html.mz-fx) body.night-mode :is(.dropdown-widget-header, .dropdown-widget-footer) { background: transparent; border-color: var(--mz-line); color: var(--mz-text); }
:where(html.mz-fx) body.night-mode .dropdown-widget-header .title { font-family: var(--mz-fx-head); font-weight: 700; }
:where(html.mz-fx) body.night-mode .dropdown-divider { border-color: rgba(171, 182, 209, .12); }
:where(html.mz-fx) body.night-mode .tooltip-inner { background: #151A2B; border: 1px solid rgba(167, 136, 255, .35); color: #F2F5FF; }
:where(html.mz-fx) body.night-mode .popover-header { background: transparent; border-color: var(--mz-line); color: var(--mz-text); }
@keyframes mzfx-in { from { opacity: 0; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }

/* ---------- modals: glass panel, violet edge and outer glow ---------- */
:where(html.mz-fx) body.night-mode :is(.modal-content, .mz-modal) { background: rgba(21, 26, 43, .97); border: 1px solid rgba(167, 136, 255, .32); border-radius: 20px; box-shadow: 0 0 0 1px rgba(167, 136, 255, .10), 0 30px 80px rgba(0, 0, 0, .6), 0 0 50px rgba(104, 56, 212, .18); color: var(--mz-text); }
:where(html.mz-fx) body.night-mode :is(.modal-header, .modal-footer) { border-color: var(--mz-line); }
:where(html.mz-fx) body.night-mode .modal-backdrop.show { opacity: .72; }
:where(html.mz-fx) body.night-mode .mz-modal-bg { background: rgba(4, 5, 10, .7); }
:where(html.mz-fx) body.night-mode .mz-modal { animation: mzfx-in .18s cubic-bezier(.2, .7, .2, 1) backwards; }

/* ---------- toasts ---------- */
:where(html.mz-fx) body.night-mode .mz-toast { background: rgba(21, 26, 43, .96); color: #F2F5FF; border: 1px solid rgba(94, 231, 244, .55); box-shadow: 0 0 18px rgba(94, 231, 244, .25), 0 18px 40px rgba(0, 0, 0, .5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
:where(html.mz-fx) body.night-mode .mz-toast.mz-toast-err { background: #e0245e; color: #fff; border-color: transparent; }
:where(html.mz-fx) body.night-mode .toast { background-color: rgba(21, 26, 43, .96) !important; color: #F2F5FF !important; border: 1px solid rgba(94, 231, 244, .45); border-radius: 14px; box-shadow: 0 0 18px rgba(94, 231, 244, .2), 0 18px 40px rgba(0, 0, 0, .5); }
:where(html.mz-fx) body.night-mode .toast :is(.toast-header, .toast-body) { background: transparent; color: #F2F5FF; border-color: var(--mz-line); }

/* ---------- posts, comments, reactions ---------- */
:where(html.mz-fx) body.night-mode .post .post-header .name a { font-weight: 700; }
:where(html.mz-fx) body.night-mode :is(.post-header .time, .post-time, .post-header .post-time a) { color: #8D97B3; }
:where(html.mz-fx) body.night-mode .post-stats { color: #8D97B3; border-color: var(--mz-line); }
:where(html.mz-fx) body.night-mode :is(.post-actions, .post-comments) { border-color: var(--mz-line); }
:where(html.mz-fx) body.night-mode :is(.post-actions .action-btn, .post-actions .btn, .post-actions a) { color: #ABB6D1; }
:where(html.mz-fx) body.night-mode :is(.post-actions .action-btn, .post-actions .btn, .post-actions a):hover { background: rgba(167, 136, 255, .12); color: #F2F5FF; border-radius: 12px; }
:where(html.mz-fx) body.night-mode .post-actions .action-btn .main-icon:not([style]), :where(html.mz-fx) body.night-mode .post-actions .action-btn .main-icon:not([style]) * { color: #ABB6D1 !important; fill: #ABB6D1 !important; }
:where(html.mz-fx) body.night-mode :is(.comment-data, .comment-text-wrapper) { background: #1B2136; border: 1px solid var(--mz-line); border-radius: 14px; }
:where(html.mz-fx) body.night-mode .reactions-container { background: rgba(21, 26, 43, .97); border: 1px solid rgba(167, 136, 255, .3); box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 20px rgba(104, 56, 212, .2); }
:where(html.mz-fx) body.night-mode :is(.pg_wrapper a, .post-media, .post-media-image, .post-media-meta) { border-radius: 12px; }
:where(html.mz-fx) body.night-mode .publisher-tools-tab:hover { background: rgba(167, 136, 255, .12); }
:where(html.mz-fx) body.night-mode .publisher-avatar { box-shadow: 0 0 0 2px rgba(167, 136, 255, .45); }
:where(html.mz-fx) body.night-mode .post-avatar-picture { box-shadow: 0 0 0 2px rgba(167, 136, 255, .35); }

/* ---------- stories: round rings with a violet-to-cyan edge (the board's top row); the photo itself is untouched, only its frame is round ---------- */
:where(html.mz-fx) body.night-mode .add-story { width: 88px; height: auto; margin-bottom: 22px; }
:where(html.mz-fx) body.night-mode .add-story .img { height: auto; aspect-ratio: 1 / 1; border-radius: 50%; box-shadow: 0 0 0 2px #6838D4, 0 0 0 4px rgba(94, 231, 244, .55), 0 0 18px rgba(167, 136, 255, .45); }
:where(html.mz-fx) body.night-mode .add-story .add { bottom: -12px; background: #6838D4; border-radius: 50%; padding: 5px; box-shadow: 0 0 0 3px #10131f, 0 0 12px rgba(167, 136, 255, .6); }
:where(html.mz-fx) body.night-mode .add-story .add .main-icon, :where(html.mz-fx) body.night-mode .add-story .add .main-icon * { color: #fff !important; fill: #fff !important; }
:where(html.mz-fx) body.night-mode .stories.sngine.carousel .story { width: 88px; }
:where(html.mz-fx) body.night-mode .stories.sngine.carousel .story > .item-link > .item-preview { height: 88px; }
:where(html.mz-fx) body.night-mode .stories.sngine .story > a > .item-preview > img { border-radius: 50%; border: 2px solid transparent; padding: 2px; background: linear-gradient(#10131f, #10131f) padding-box, linear-gradient(135deg, #A788FF, #5EE7F4) border-box; box-shadow: 0 0 14px rgba(167, 136, 255, .35); }
:where(html.mz-fx) body.night-mode .stories.sngine .story.seen { opacity: 1; }
:where(html.mz-fx) body.night-mode .stories.sngine .story.seen > a > .item-preview > img { background: linear-gradient(#10131f, #10131f) padding-box, linear-gradient(135deg, #2a3048, #2a3048) border-box; box-shadow: none; }
:where(html.mz-fx) body.night-mode .stories.carousel .story > .item-link > .info { color: #ABB6D1; }
@media (max-width: 767px) {
  :where(html.mz-fx) body.night-mode .add-story { width: 64px; height: auto; margin-bottom: 18px; }
  :where(html.mz-fx) body.night-mode .stories.sngine.carousel .story { width: 64px; }
  :where(html.mz-fx) body.night-mode .stories.sngine.carousel .story > .item-link > .item-preview { height: 64px; }
}

/* ---------- profile, page, group, event headers: aurora behind the cover (a real cover photo sits on top of it), ringed picture ---------- */
:where(html.mz-fx) body.night-mode .profile-cover-wrapper { border-color: rgba(167, 136, 255, .2); background-color: #0D1120; background-image: radial-gradient(ellipse at 28% 18%, rgba(104, 56, 212, .75), transparent 55%), radial-gradient(ellipse at 76% 34%, rgba(94, 231, 244, .42), transparent 55%), radial-gradient(ellipse at 50% 120%, rgba(167, 136, 255, .35), transparent 60%), linear-gradient(180deg, #151A2B, #0D1120); }
:where(html.mz-fx) body.night-mode .profile-avatar-wrapper { box-shadow: 0 0 0 3px #A788FF, 0 0 0 6px rgba(94, 231, 244, .18), 0 0 34px rgba(167, 136, 255, .5); }
:where(html.mz-fx) body.night-mode .profile-name-wrapper, :where(html.mz-fx) body.night-mode .profile-name-wrapper a { font-family: var(--mz-fx-head); font-weight: 700; color: #F2F5FF; }
:where(html.mz-fx) body.night-mode .profile-buttons .btn:not(.btn-primary):not(.btn-success):not(.btn-info):not(.btn-danger) { background: rgba(21, 26, 43, .7); border: 1px solid rgba(171, 182, 209, .35); color: #F2F5FF; }
:where(html.mz-fx) body.night-mode .profile-buttons .btn:not(.btn-primary):not(.btn-success):not(.btn-info):not(.btn-danger):hover { border-color: #A788FF; background: rgba(167, 136, 255, .14); }
:where(html.mz-fx) body.night-mode .profile-tabs { background-color: rgba(21, 26, 43, .6); }
:where(html.mz-fx) body.night-mode .mz-creator-badge { background: rgba(167, 136, 255, .16); color: #C9B8FF; box-shadow: inset 0 0 0 1px rgba(167, 136, 255, .35); }

/* ---------- chat: violet "me" bubbles, glass "theirs", glass send bar with a cyan send button ---------- */
:where(html.mz-fx) body.night-mode :is(.panel-messages, .card-messages, .chat-conversations) { background-color: transparent; }
:where(html.mz-fx) body.night-mode .chat-message-inner { background: #1B2136; border: 1px solid var(--mz-line); border-radius: 16px 16px 16px 4px; color: var(--mz-text); }
:where(html.mz-fx) body.night-mode .chat-message.chat-message-right .chat-message-inner { background: linear-gradient(135deg, #6838D4, #7B4BEA); border-color: transparent; color: #fff; border-radius: 16px 16px 4px 16px; box-shadow: 0 6px 18px rgba(104, 56, 212, .3); }
:where(html.mz-fx) body.night-mode :is(.chat-message-header .time, .chat-message .time, .chat-message .seen) { color: #ABB6D1; }
:where(html.mz-fx) body.night-mode :is(.chat-form, .chat-box-footer) { background: rgba(13, 17, 32, .72); border-top: 1px solid rgba(167, 136, 255, .16); }
:where(html.mz-fx) body.night-mode .chat-box { background: rgba(21, 26, 43, .97); border-color: rgba(167, 136, 255, .3); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 30px rgba(104, 56, 212, .15); }
:where(html.mz-fx) body.night-mode .chat-box-header { background: linear-gradient(180deg, #1B2136, #151A2B); border-bottom: 1px solid rgba(167, 136, 255, .18); }
:where(html.mz-fx) body.night-mode .chat-box-body { background: transparent; }
:where(html.mz-fx) body.night-mode :is(.conversation-list li.active, .mz-chatpage .feeds-item.active) { background: var(--mz-fx-glass); box-shadow: var(--mz-glow); }
:where(html.mz-fx) body.night-mode .mz-msg .mz-b { background: #1B2136; border-color: var(--mz-line); border-radius: 16px 16px 16px 4px; }
:where(html.mz-fx) body.night-mode .mz-msg.mz-me .mz-b { background: linear-gradient(135deg, #6838D4, #7B4BEA); color: #fff; border-color: transparent; border-radius: 16px 16px 4px 16px; }
:where(html.mz-fx) body.night-mode .mz-sendbar { background: rgba(13, 17, 32, .72); border-top-color: rgba(167, 136, 255, .16); }
:where(html.mz-fx) body.night-mode .mz-sendbar .mz-btn-primary { background: #5EE7F4; color: #061018; box-shadow: 0 0 16px rgba(94, 231, 244, .35); }
:where(html.mz-fx) body.night-mode .mz-sendbar .mz-btn-primary:hover { background: #8BF0F8; color: #061018; }

/* ---------- lists (notifications, people, messages, search): hairlines, unread rows violet with a cyan edge ---------- */
:where(html.mz-fx) body.night-mode .feeds-item:hover { background: rgba(167, 136, 255, .08); }
:where(html.mz-fx) body.night-mode .feeds-item.unread { background: rgba(167, 136, 255, .10); box-shadow: inset 3px 0 0 #5EE7F4; border-radius: 12px; }
:where(html.mz-fx) body.night-mode :is(.feeds-item .data-content .time, .feeds-item .data-title span) { color: #8D97B3; }
:where(html.mz-fx) body.night-mode .user-box img, :where(html.mz-fx) body.night-mode .circled-user-box .user-box img { box-shadow: 0 0 0 2px rgba(167, 136, 255, .4); }

/* ---------- the phone bottom bar: smoked glass; the open tab is violet with a soft violet pill behind its icon (sizes stay APP FIT's) ---------- */
:where(html.mz-fx) body.night-mode .footer-bottom-bar { background: rgba(8, 10, 18, .84); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-top: 1px solid rgba(167, 136, 255, .18); box-shadow: 0 -10px 30px rgba(0, 0, 0, .35); }
:where(html.mz-fx) body.night-mode .footer-bottom-bar .link a { color: #ABB6D1; }
:where(html.mz-fx) body.night-mode .footer-bottom-bar .link.active a, :where(html.mz-fx) body.night-mode .footer-bottom-bar .link.active .title { color: #A788FF; }
:where(html.mz-fx) body.night-mode .footer-bottom-bar-links > .link > a { position: relative; isolation: isolate; }
:where(html.mz-fx) body.night-mode .footer-bottom-bar-links > .link.active > a::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 2px; width: 46px; height: 30px; margin-left: -23px; border-radius: 11px; background: rgba(167, 136, 255, .18); box-shadow: 0 0 16px rgba(167, 136, 255, .35); }
:where(html.mz-fx) body.night-mode .footer-bottom-bar .link.active .header-icon, :where(html.mz-fx) body.night-mode .footer-bottom-bar .link.active .header-icon * { color: #A788FF !important; fill: #A788FF !important; }
:where(html.mz-fx) body.night-mode .footer-bottom-bar .link > a.user-menu > img { box-shadow: 0 0 0 2px rgba(167, 136, 255, .5); }
:where(html.mz-fx) body.night-mode .footer-bottom-bar .link > .show .header-icon, :where(html.mz-fx) body.night-mode .footer-bottom-bar .link > a.show .header-icon * { color: #F2F5FF !important; fill: #F2F5FF !important; }
/* the + sheet: glass tiles, violet icons, a cyan edge when pressed */
:where(html.mz-fx) body.night-mode .footer-quick-adds .add-quick-item { background: rgba(21, 26, 43, .85); border: 1px solid var(--mz-line); border-radius: 14px; color: #F2F5FF; }
:where(html.mz-fx) body.night-mode .footer-quick-adds .add-quick-item :is(.main-icon, .main-icon *) { color: #A788FF !important; fill: #A788FF !important; }
:where(html.mz-fx) body.night-mode .footer-quick-adds .add-quick-item:hover, :where(html.mz-fx) body.night-mode .footer-quick-adds .add-quick-item:active { border-color: rgba(94, 231, 244, .6); box-shadow: var(--mz-glow); background: rgba(27, 33, 54, .95); }

/* ---------- signed-out pages: the front door (log in / create account / KRONOS) re-tinted to the board ---------- */
html.mz-fx .mz-door { --mzl-bg: #080A12; --mzl-panel: #151A2B; --mzl-panel-deep: #0D1120; --mzl-field: #0D1120; --mzl-line: rgba(167, 136, 255, .26); --mzl-text: #F2F5FF; --mzl-muted: #ABB6D1; --mzl-purple: #6838D4; --mzl-violet: #A788FF; --mzl-cyan: #5EE7F4; --mzl-gold: #FFC875; font-family: Inter, "Segoe UI", system-ui, sans-serif; }
html.mz-fx .mz-door .mzl-shell { background: radial-gradient(circle at 18% 30%, rgba(94, 231, 244, .13), transparent 30%), radial-gradient(circle at 52% 8%, rgba(104, 56, 212, .38), transparent 34%), radial-gradient(circle at 88% 82%, rgba(167, 136, 255, .15), transparent 28%), linear-gradient(125deg, #070912 0%, #080A12 50%, #070810 100%); }
html.mz-fx .mz-door .mzl-shell::before { opacity: .45; background-image: linear-gradient(rgba(167, 136, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 136, 255, .08) 1px, transparent 1px); background-size: 44px 44px; }
html.mz-fx .mz-door h1 { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 600; letter-spacing: -.045em; }
html.mz-fx .mz-door .mzl-glow-word { background: linear-gradient(100deg, #ffffff 0%, #D9CCFF 40%, #A788FF 72%, #5EE7F4 112%); -webkit-background-clip: text; background-clip: text; }
html.mz-fx .mz-door .mzl-auth { background: linear-gradient(165deg, rgba(21, 26, 43, .97), rgba(13, 17, 32, .97)); border-color: rgba(167, 136, 255, .28); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(94, 231, 244, .06) inset, 0 0 60px rgba(104, 56, 212, .18); }
html.mz-fx .mz-door .mzl-auth::before { background: linear-gradient(90deg, transparent, #A788FF, #5EE7F4, transparent); box-shadow: 0 0 13px rgba(167, 136, 255, .7); }
html.mz-fx .mz-door .mzl-auth h2 { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 600; }
html.mz-fx .mz-door .js_panel .btn-primary, html.mz-fx .mz-door .fr_welcome_btn { background: #6838D4 !important; color: #fff !important; font-weight: 600; box-shadow: 0 12px 30px rgba(104, 56, 212, .35), 0 0 0 1px rgba(167, 136, 255, .35) inset; }
html.mz-fx .mz-door .js_panel .btn-primary:hover, html.mz-fx .mz-door .fr_welcome_btn:hover { background: #7646E6 !important; filter: none; box-shadow: 0 12px 34px rgba(104, 56, 212, .45), 0 0 22px rgba(167, 136, 255, .35); }
html.mz-fx .mz-door :is(.fr_welcome_field input, .fr_welcome_field select, .js_panel .form-control, .js_panel .form-select) { border-color: rgba(171, 182, 209, .16) !important; }
html.mz-fx .mz-door :is(.fr_welcome_field input, .fr_welcome_field select, .js_panel .form-control, .js_panel .form-select):focus { border-color: #A788FF !important; box-shadow: 0 0 0 3px rgba(167, 136, 255, .2), 0 0 18px rgba(167, 136, 255, .12); }
html.mz-fx .mz-door .mzl-secondary { border-color: rgba(171, 182, 209, .3); background: rgba(21, 26, 43, .5); }
html.mz-fx .mz-door .mzl-secondary:hover { border-color: rgba(94, 231, 244, .6); box-shadow: 0 0 16px rgba(94, 231, 244, .2); background: rgba(21, 26, 43, .8); }
html.mz-fx .mz-door :is(.js_panel form a, .mzl-link) { color: #C9B8FF; }
html.mz-fx .mz-door .mzl-kicker { color: #5EE7F4; }
/* Sngine's own sign in / sign up / reset card (when it shows outside the door) */
:where(html.mz-fx) body.night-mode .fr_auth_form { background: rgba(21, 26, 43, .9); border: 1px solid rgba(167, 136, 255, .3); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 50px rgba(104, 56, 212, .16); }
:where(html.mz-fx) body.night-mode .fr_welcome_field input, :where(html.mz-fx) body.night-mode .fr_welcome_field select { background: #0D1120; border-color: var(--mz-line); }
:where(html.mz-fx) body.night-mode .fr_auth_form .nav-pills { background: #0D1120; }

/* ---------- 404 and static pages ---------- */
:where(html.mz-fx) body.night-mode .notfound h1, :where(html.mz-fx) body.night-mode .page-not-found h1 { background: linear-gradient(100deg, #F2F5FF 10%, #A788FF 55%, #5EE7F4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
:where(html.mz-fx) body.night-mode .page-header { background-image: radial-gradient(ellipse at 15% 0%, rgba(104, 56, 212, .35), transparent 60%), radial-gradient(ellipse at 95% 100%, rgba(94, 231, 244, .14), transparent 55%); border-color: rgba(167, 136, 255, .22); }
:where(html.mz-fx) body.night-mode :is(.footer, .footer-mini) { border-color: var(--mz-line); }
:where(html.mz-fx) body.night-mode :is(.footer a, .footer-mini a) { color: #8D97B3; }
:where(html.mz-fx) body.night-mode :is(.footer a, .footer-mini a):hover { color: #C9B8FF; }

/* ---------- podcast hub and show pages (their own tokens; teal kept as it was, white text sits on it) ---------- */
html.mz-fx .pc-wrap { --pc-bg: rgba(13, 17, 32, .6); --pc-panel: #151A2B; --pc-card: #1B2136; --pc-line: rgba(167, 136, 255, .18); --pc-ink: #E3E8F7; --pc-mute: #ABB6D1; --pc-dim: #8D97B3; --pc-accent: #6838D4; font-family: Inter, "Segoe UI", system-ui, sans-serif; }
html.mz-fx .pc-wrap :is(h1, h2, h3, .pc-title) { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -.01em; }

/* ---------- Rooms, Drift, Stage, Legacy, Creator ---------- */
:where(html.mz-fx) body.night-mode .mz-room { background: rgba(21, 26, 43, .78); border-color: var(--mz-line); }
:where(html.mz-fx) body.night-mode .mz-room-head { border-color: rgba(167, 136, 255, .16); }
:where(html.mz-fx) body.night-mode .mz-orb { background: radial-gradient(circle at 35% 30%, #fff 0%, #C9B8FF 18%, #6838D4 46%, #5EE7F4 100%); box-shadow: 0 0 24px rgba(167, 136, 255, .6); }
:where(html.mz-fx) body.night-mode .mz-eyebrow { font-family: var(--mz-hud); }
:where(html.mz-fx) body.night-mode .mz-kanban .mz-colm { background: rgba(13, 17, 32, .7); }
:where(html.mz-fx) body.night-mode .mz-cal-d.has { background: rgba(167, 136, 255, .16); }
:where(html.mz-fx) body.night-mode .mz-vocab span { background: rgba(167, 136, 255, .08); }

/* ---------- market, wallet, money: prices and balances in prize gold ---------- */
:where(html.mz-fx) body.night-mode :is(.product-price, .post-product-details .price, .wallet-balance, .mz-money) { color: #FFC875; }

/* ---------- Luna: her FACE is never touched (no rule on the img/svg in .ln-bubble, .ln-ava, .ln-offer-head). Only the frame around it,
   the glow ring and her panel get the futuristic glass. Bubble size and border width stay as they are. ---------- */
html.mz-fx .ln-root { --ln-accent: #A788FF; --ln-accent-2: #C9B8FF; --ln-bg: rgba(21, 26, 43, .97); --ln-fg: #F2F5FF; --ln-muted: #ABB6D1; --ln-border: rgba(167, 136, 255, .24); --ln-card: #1B2136; --ln-me: #6838D4; --ln-me-fg: #fff; --ln-luna: #1B2136; --ln-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(167, 136, 255, .12), 0 0 40px rgba(104, 56, 212, .18); font-family: Inter, "Segoe UI", system-ui, sans-serif; }
html.mz-fx .ln-root .ln-bubble { border-color: rgba(94, 231, 244, .85); box-shadow: 0 0 0 3px rgba(167, 136, 255, .32), 0 0 22px rgba(167, 136, 255, .55), 0 0 34px rgba(94, 231, 244, .22); }
html.mz-fx .ln-root .ln-bubble:hover { box-shadow: 0 0 0 3px rgba(94, 231, 244, .4), 0 0 26px rgba(167, 136, 255, .7), 0 0 40px rgba(94, 231, 244, .3); }
@media (max-width: 899px) {
  html.mz-fx .ln-root:not(.ln-embed) .ln-bubble { box-shadow: 0 0 0 3px rgba(167, 136, 255, .32), 0 0 16px rgba(167, 136, 255, .55), 0 0 26px rgba(94, 231, 244, .2); }
}
html.mz-fx .ln-root .ln-panel { border-color: rgba(167, 136, 255, .3); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
html.mz-fx .ln-root.open .ln-panel { animation: mzfx-in .18s cubic-bezier(.2, .7, .2, 1) backwards; }
html.mz-fx .ln-root .ln-head { background: linear-gradient(180deg, #151A2B, rgba(21, 26, 43, 0)); border-bottom-color: rgba(167, 136, 255, .22); }
html.mz-fx .ln-root .ln-title b { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; }
html.mz-fx .ln-root .ln-ava { box-shadow: 0 0 0 2px rgba(94, 231, 244, .25), 0 0 14px rgba(167, 136, 255, .55); }
html.mz-fx .ln-root .ln-avas .ln-ava { box-shadow: none; }
html.mz-fx .ln-root .ln-avas .ln-ava.on { box-shadow: 0 0 0 2px rgba(94, 231, 244, .5), 0 0 14px rgba(94, 231, 244, .3); }
html.mz-fx .ln-root .ln-plus { background: linear-gradient(135deg, #A788FF, #6838D4); }
html.mz-fx .ln-root .ln-tab.on { background: rgba(167, 136, 255, .16); color: #F2F5FF; box-shadow: inset 0 -2px 0 #A788FF; }
html.mz-fx .ln-root .ln-chip { background: rgba(27, 33, 54, .9); }
html.mz-fx .ln-root .ln-chip.on { border-color: rgba(94, 231, 244, .8); background: rgba(94, 231, 244, .12); box-shadow: 0 0 12px rgba(94, 231, 244, .25); }
html.mz-fx .ln-root .ln-msg.me { background: linear-gradient(135deg, #6838D4, #7B4BEA); }
html.mz-fx .ln-root .ln-msg.luna { border: 1px solid rgba(171, 182, 209, .12); }
html.mz-fx .ln-root .ln-in { background: #0D1120; }
html.mz-fx .ln-root .ln-in:focus { border-color: #A788FF; box-shadow: 0 0 0 3px rgba(167, 136, 255, .2); }
html.mz-fx .ln-root .ln-send { background: #5EE7F4; color: #061018; box-shadow: 0 0 14px rgba(94, 231, 244, .35); }
html.mz-fx .ln-root .ln-btn { background: #6838D4; color: #fff; }
html.mz-fx .ln-root .ln-btn.ghost { background: transparent; color: var(--ln-fg); border: 1px solid var(--ln-border); }
html.mz-fx .ln-root .ln-btn.danger { background: #ff4d6d; }
html.mz-fx .ln-root .ln-confirm .ln-btn { background: #ffb347; color: #1c1005; }
html.mz-fx .ln-root .ln-confirm .ln-btn.ghost { background: transparent; color: var(--ln-fg); }
html.mz-fx .ln-root .ln-offer { background: linear-gradient(180deg, #1B2136, #151A2B); }
html.mz-fx .ln-root .ln-hello { border-color: rgba(167, 136, 255, .3); box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 22px rgba(104, 56, 212, .2); }

/* ---------- motion: 180ms colour/edge fades; nothing moves for people who ask their device for less motion ---------- */
:where(html.mz-fx) :is(a, button, .btn, .mz-btn, .mz-chip, .card, .post, .dropdown-item, .nav-link, .form-control, .feeds-item, .add-quick-item, .footer-bottom-bar .link > a) { transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease; }
@media (prefers-reduced-motion: reduce) {
  :where(html.mz-fx) :is(a, button, .btn, .mz-btn, .mz-chip, .card, .post, .dropdown-item, .nav-link, .form-control, .feeds-item, .add-quick-item, .footer-bottom-bar .link > a, .mz-look-card) { transition: none !important; }
  :where(html.mz-fx) :is(.dropdown-menu.show, .mz-modal, .ln-root.open .ln-panel) { animation: none !important; }
  html.mz-fx .mz-marquee .mz-track { animation: none !important; }
  html.mz-look-anim body, html.mz-look-anim .main-header, html.mz-look-anim .footer-bottom-bar, html.mz-look-anim .card, html.mz-look-anim .post, html.mz-look-anim .dropdown-menu { transition: none !important; }
}
