/* GoldZone live themes — loaded last. Switching html[data-theme] is instant. */

/* ---- Light (default): keep current look, colorful header / plus icons ---- */
html[data-theme="light"] {
  --bg-deep:#f4f0fb; --bg-app:#f4f0fb; --bg:#f4f0fb; --bg-panel:#ffffff; --bg-elevated:#efe8fb; --bg-hover:#e4d7fa;
  --border:rgba(124,58,237,.16); --text:#2a1748; --text-muted:#5b4a78; --text-dim:#7c6b99;
  --primary:#7c3aed; --primary-dark:#6d28d9; --gold:#b45309;
  --ico-nav:#7c3aed; --ico-dm:#db2777; --ico-bell:#d97706; --ico-users:#2563eb; --ico-plus:#16a34a;
  --ico-nav-bg:#ede9fe; --ico-dm-bg:#fce7f3; --ico-bell-bg:#fef3c7; --ico-users-bg:#dbeafe; --ico-plus-bg:#ecfdf5;
  --header-bg:#ffffff; --composer-bg:#ffffff; --chip:#f5f3ff; --on-primary:#ffffff;
}

/* ---- Dark: true dark, bright readable text, neon-bright unique icons ---- */
html[data-theme="dark"] {
  --bg-deep:#07060c; --bg-app:#07060c; --bg:#07060c; --bg-panel:#12101c; --bg-elevated:#1b1828; --bg-hover:#262233;
  --border:rgba(167,139,250,.28); --text:#f8fafc; --text-muted:#cbd5e1; --text-dim:#94a3b8;
  --primary:#a78bfa; --primary-dark:#8b5cf6; --gold:#fbbf24;
  --ico-nav:#c4b5fd; --ico-dm:#fb7185; --ico-bell:#fbbf24; --ico-users:#38bdf8; --ico-plus:#4ade80;
  --ico-nav-bg:#2e1064; --ico-dm-bg:#4c0519; --ico-bell-bg:#422006; --ico-users-bg:#082f49; --ico-plus-bg:#052e16;
  --header-bg:#12101c; --composer-bg:#12101c; --chip:#1e1b2e; --on-primary:#ffffff;
}

/* ---- Rose ---- */
html[data-theme="rose"] {
  --bg-deep:#1a0b12; --bg-app:#1a0b12; --bg:#1a0b12; --bg-panel:#2a121c; --bg-elevated:#3b1826; --bg-hover:#4c1d2f;
  --border:rgba(251,113,133,.32); --text:#fff1f2; --text-muted:#fecdd3; --text-dim:#fb7185;
  --primary:#fb7185; --primary-dark:#e11d48; --gold:#f59e0b;
  --ico-nav:#fb7185; --ico-dm:#f472b6; --ico-bell:#fb923c; --ico-users:#f43f5e; --ico-plus:#f9a8d4;
  --ico-nav-bg:#4c0519; --ico-dm-bg:#500724; --ico-bell-bg:#431407; --ico-users-bg:#4c0519; --ico-plus-bg:#500724;
  --header-bg:#2a121c; --composer-bg:#2a121c; --chip:#3b1826; --on-primary:#ffffff;
}

/* ---- Ocean ---- */
html[data-theme="ocean"] {
  --bg-deep:#04151c; --bg-app:#04151c; --bg:#04151c; --bg-panel:#0b2a36; --bg-elevated:#123948; --bg-hover:#164556;
  --border:rgba(34,211,238,.28); --text:#ecfeff; --text-muted:#a5f3fc; --text-dim:#22d3ee;
  --primary:#22d3ee; --primary-dark:#0891b2; --gold:#fbbf24;
  --ico-nav:#22d3ee; --ico-dm:#38bdf8; --ico-bell:#2dd4bf; --ico-users:#67e8f9; --ico-plus:#34d399;
  --ico-nav-bg:#083344; --ico-dm-bg:#082f49; --ico-bell-bg:#042f2e; --ico-users-bg:#0c4a6e; --ico-plus-bg:#064e3b;
  --header-bg:#0b2a36; --composer-bg:#0b2a36; --chip:#123948; --on-primary:#042f2e;
}

/* ---- Forest ---- */
html[data-theme="forest"] {
  --bg-deep:#08140c; --bg-app:#08140c; --bg:#08140c; --bg-panel:#122318; --bg-elevated:#1b3324; --bg-hover:#244530;
  --border:rgba(74,222,128,.28); --text:#ecfdf5; --text-muted:#bbf7d0; --text-dim:#4ade80;
  --primary:#22c55e; --primary-dark:#15803d; --gold:#facc15;
  --ico-nav:#4ade80; --ico-dm:#34d399; --ico-bell:#a3e635; --ico-users:#2dd4bf; --ico-plus:#86efac;
  --ico-nav-bg:#052e16; --ico-dm-bg:#064e3b; --ico-bell-bg:#1a2e05; --ico-users-bg:#134e4a; --ico-plus-bg:#14532d;
  --header-bg:#122318; --composer-bg:#122318; --chip:#1b3324; --on-primary:#052e16;
}

/* ---- Sunset ---- */
html[data-theme="sunset"] {
  --bg-deep:#1a0c08; --bg-app:#1a0c08; --bg:#1a0c08; --bg-panel:#2a1610; --bg-elevated:#3b2016; --bg-hover:#4c2a1c;
  --border:rgba(251,146,60,.32); --text:#fff7ed; --text-muted:#fed7aa; --text-dim:#fb923c;
  --primary:#fb923c; --primary-dark:#ea580c; --gold:#fbbf24;
  --ico-nav:#fb923c; --ico-dm:#f43f5e; --ico-bell:#fbbf24; --ico-users:#f472b6; --ico-plus:#f97316;
  --ico-nav-bg:#431407; --ico-dm-bg:#4c0519; --ico-bell-bg:#422006; --ico-users-bg:#500724; --ico-plus-bg:#7c2d12;
  --header-bg:#2a1610; --composer-bg:#2a1610; --chip:#3b2016; --on-primary:#1c0a04;
}

/* ---- Neon ---- */
html[data-theme="neon"] {
  --bg-deep:#05010a; --bg-app:#05010a; --bg:#05010a; --bg-panel:#12061c; --bg-elevated:#1c0a2c; --bg-hover:#2a1040;
  --border:rgba(217,70,239,.4); --text:#fdf4ff; --text-muted:#e9d5ff; --text-dim:#e879f9;
  --primary:#e879f9; --primary-dark:#c026d3; --gold:#bef264;
  --ico-nav:#e879f9; --ico-dm:#22d3ee; --ico-bell:#a3e635; --ico-users:#38bdf8; --ico-plus:#f472b6;
  --ico-nav-bg:#4a044e; --ico-dm-bg:#083344; --ico-bell-bg:#1a2e05; --ico-users-bg:#082f49; --ico-plus-bg:#500724;
  --header-bg:#12061c; --composer-bg:#12061c; --chip:#1c0a2c; --on-primary:#ffffff;
}

/* ---- Arctic ---- */
html[data-theme="arctic"] {
  --bg-deep:#0b1220; --bg-app:#0b1220; --bg:#0b1220; --bg-panel:#152033; --bg-elevated:#1e2d45; --bg-hover:#29405c;
  --border:rgba(147,197,253,.28); --text:#f0f9ff; --text-muted:#bfdbfe; --text-dim:#93c5fd;
  --primary:#60a5fa; --primary-dark:#2563eb; --gold:#fde68a;
  --ico-nav:#93c5fd; --ico-dm:#67e8f9; --ico-bell:#a5b4fc; --ico-users:#38bdf8; --ico-plus:#7dd3fc;
  --ico-nav-bg:#1e3a8a; --ico-dm-bg:#155e75; --ico-bell-bg:#312e81; --ico-users-bg:#075985; --ico-plus-bg:#0e7490;
  --header-bg:#152033; --composer-bg:#152033; --chip:#1e2d45; --on-primary:#ffffff;
}

/* ---- Ember ---- */
html[data-theme="ember"] {
  --bg-deep:#140806; --bg-app:#140806; --bg:#140806; --bg-panel:#24110c; --bg-elevated:#351910; --bg-hover:#462116;
  --border:rgba(248,113,113,.32); --text:#fef2f2; --text-muted:#fecaca; --text-dim:#f87171;
  --primary:#f87171; --primary-dark:#dc2626; --gold:#fbbf24;
  --ico-nav:#f87171; --ico-dm:#fb7185; --ico-bell:#fbbf24; --ico-users:#fb923c; --ico-plus:#ef4444;
  --ico-nav-bg:#450a0a; --ico-dm-bg:#4c0519; --ico-bell-bg:#422006; --ico-users-bg:#7c2d12; --ico-plus-bg:#7f1d1d;
  --header-bg:#24110c; --composer-bg:#24110c; --chip:#351910; --on-primary:#ffffff;
}

/* ---- Purple / Gold / Midnight (existing, fully painted) ---- */
html[data-theme="purple"] {
  --bg-deep:#12081c; --bg-app:#12081c; --bg:#12081c; --bg-panel:#1e1030; --bg-elevated:#2b1744; --bg-hover:#3a1d5c;
  --border:rgba(192,132,252,.3); --text:#fae8ff; --text-muted:#e9d5ff; --text-dim:#c084fc;
  --primary:#c084fc; --primary-dark:#a855f7; --gold:#fbbf24;
  --ico-nav:#c084fc; --ico-dm:#f472b6; --ico-bell:#fbbf24; --ico-users:#a78bfa; --ico-plus:#d8b4fe;
  --ico-nav-bg:#3b0764; --ico-dm-bg:#500724; --ico-bell-bg:#422006; --ico-users-bg:#2e1064; --ico-plus-bg:#4a044e;
  --header-bg:#1e1030; --composer-bg:#1e1030; --chip:#2b1744; --on-primary:#ffffff;
}
html[data-theme="gold"] {
  --bg-deep:#140f06; --bg-app:#140f06; --bg:#140f06; --bg-panel:#241c0c; --bg-elevated:#352910; --bg-hover:#463614;
  --border:rgba(250,204,21,.3); --text:#fffbeb; --text-muted:#fde68a; --text-dim:#facc15;
  --primary:#eab308; --primary-dark:#ca8a04; --gold:#facc15;
  --ico-nav:#facc15; --ico-dm:#fbbf24; --ico-bell:#f59e0b; --ico-users:#eab308; --ico-plus:#84cc16;
  --ico-nav-bg:#422006; --ico-dm-bg:#713f12; --ico-bell-bg:#78350f; --ico-users-bg:#365314; --ico-plus-bg:#14532d;
  --header-bg:#241c0c; --composer-bg:#241c0c; --chip:#352910; --on-primary:#1c1917;
}
html[data-theme="midnight"] {
  --bg-deep:#020617; --bg-app:#020617; --bg:#020617; --bg-panel:#0f172a; --bg-elevated:#1e293b; --bg-hover:#334155;
  --border:rgba(56,189,248,.28); --text:#e2e8f0; --text-muted:#94a3b8; --text-dim:#38bdf8;
  --primary:#38bdf8; --primary-dark:#0284c7; --gold:#fbbf24;
  --ico-nav:#38bdf8; --ico-dm:#818cf8; --ico-bell:#fbbf24; --ico-users:#22d3ee; --ico-plus:#34d399;
  --ico-nav-bg:#0c4a6e; --ico-dm-bg:#1e1b4b; --ico-bell-bg:#422006; --ico-users-bg:#155e75; --ico-plus-bg:#064e3b;
  --header-bg:#0f172a; --composer-bg:#0f172a; --chip:#1e293b; --on-primary:#ffffff;
}

/* ========== Surfaces (all non-light themes) ========== */
html[data-theme]:not([data-theme="light"]) body,
html[data-theme]:not([data-theme="light"]) .app-body,
html[data-theme]:not([data-theme="light"]) .app-shell,
html[data-theme]:not([data-theme="light"]) .main-content,
html[data-theme]:not([data-theme="light"]) .chat-layout,
html[data-theme]:not([data-theme="light"]) .chat-panel,
html[data-theme]:not([data-theme="light"]) .panel,
html[data-theme]:not([data-theme="light"]) .rooms-panel,
html[data-theme]:not([data-theme="light"]) .users-panel,
html[data-theme]:not([data-theme="light"]) .message-list,
html[data-theme]:not([data-theme="light"]) .sidebar,
html[data-theme]:not([data-theme="light"]) .admin-body,
html[data-theme]:not([data-theme="light"]) .admin-shell,
html[data-theme]:not([data-theme="light"]) .admin-main,
html[data-theme]:not([data-theme="light"]) .admin-content,
html[data-theme]:not([data-theme="light"]) .auth-landing {
  background: var(--bg-app) !important;
  color: var(--text) !important;
}
html[data-theme]:not([data-theme="light"]) .chat-header,
html[data-theme]:not([data-theme="light"]) .panel-header,
html[data-theme]:not([data-theme="light"]) .users-panel-head,
html[data-theme]:not([data-theme="light"]) .composer,
html[data-theme]:not([data-theme="light"]) footer.composer,
html[data-theme]:not([data-theme="light"]) .sidebar-brand,
html[data-theme]:not([data-theme="light"]) .admin-sidebar,
html[data-theme]:not([data-theme="light"]) .admin-topbar,
html[data-theme]:not([data-theme="light"]) .admin-card,
html[data-theme]:not([data-theme="light"]) .admin-page,
html[data-theme]:not([data-theme="light"]) .page-panel,
html[data-theme]:not([data-theme="light"]) .profile-dropdown,
html[data-theme]:not([data-theme="light"]) .notif-panel,
html[data-theme]:not([data-theme="light"]) .user-modal,
html[data-theme]:not([data-theme="light"]) .gif-panel,
html[data-theme]:not([data-theme="light"]) .emoji-panel,
html[data-theme]:not([data-theme="light"]) .sticker-bar,
html[data-theme]:not([data-theme="light"]) .custom-emoji-panel,
html[data-theme]:not([data-theme="light"]) .composer-tools,
html[data-theme]:not([data-theme="light"]) .composer-radio-panel {
  background: var(--bg-panel) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
html[data-theme]:not([data-theme="light"]) h1,
html[data-theme]:not([data-theme="light"]) h2,
html[data-theme]:not([data-theme="light"]) h3,
html[data-theme]:not([data-theme="light"]) .chat-title h1,
html[data-theme]:not([data-theme="light"]) .panel-header h2,
html[data-theme]:not([data-theme="light"]) .admin-topbar h1,
html[data-theme]:not([data-theme="light"]) .admin-page h1,
html[data-theme]:not([data-theme="light"]) .admin-card h3,
html[data-theme]:not([data-theme="light"]) .admin-page label,
html[data-theme]:not([data-theme="light"]) .msg-content,
html[data-theme]:not([data-theme="light"]) .user-info,
html[data-theme]:not([data-theme="light"]) .gz-user-meta strong {
  color: var(--text) !important;
}
html[data-theme]:not([data-theme="light"]) .text-muted,
html[data-theme]:not([data-theme="light"]) .msg-meta time,
html[data-theme]:not([data-theme="light"]) .topic {
  color: var(--text-muted) !important;
}

html[data-theme]:not([data-theme="light"]) input,
html[data-theme]:not([data-theme="light"]) select,
html[data-theme]:not([data-theme="light"]) textarea,
html[data-theme]:not([data-theme="light"]) #message-input,
html[data-theme]:not([data-theme="light"]) .composer-inner,
html[data-theme]:not([data-theme="light"]) .admin-page input,
html[data-theme]:not([data-theme="light"]) .admin-page select,
html[data-theme]:not([data-theme="light"]) .admin-page textarea,
html[data-theme]:not([data-theme="light"]) .settings-form input,
html[data-theme]:not([data-theme="light"]) .settings-form select,
html[data-theme]:not([data-theme="light"]) .settings-form textarea {
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  -webkit-text-fill-color: var(--text) !important;
}
html[data-theme]:not([data-theme="light"]) .user-item,
html[data-theme]:not([data-theme="light"]) .user-section:not(.rank-section),
html[data-theme]:not([data-theme="light"]) .staff-section,
html[data-theme]:not([data-theme="light"]) .online-section,
html[data-theme]:not([data-theme="light"]) .offline-section {
  background: var(--bg-elevated) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
html[data-theme]:not([data-theme="light"]) #message-list .msg-content {
  background: var(--bg-elevated) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
html[data-theme]:not([data-theme="light"]) .nav-item,
html[data-theme]:not([data-theme="light"]) .admin-nav-item,
html[data-theme]:not([data-theme="light"]) .pd-nav a,
html[data-theme]:not([data-theme="light"]) .menu-link:not(.nav-box) {
  color: var(--text) !important;
}
html[data-theme]:not([data-theme="light"]) .nav-item:hover,
html[data-theme]:not([data-theme="light"]) .nav-item.active,
html[data-theme]:not([data-theme="light"]) .admin-nav-item:hover,
html[data-theme]:not([data-theme="light"]) .admin-nav-item.active {
  background: var(--bg-hover) !important;
  color: var(--text) !important;
}
html[data-theme]:not([data-theme="light"]) .admin-table,
html[data-theme]:not([data-theme="light"]) .admin-table th,
html[data-theme]:not([data-theme="light"]) .admin-table td {
  background: var(--bg-panel) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
html[data-theme]:not([data-theme="light"]) .btn-ghost {
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

/* Keep on-air / system message boxes readable on every theme */
html[data-theme]:not([data-theme="light"]) #message-list .message.msg-onair .msg-content,
html[data-theme]:not([data-theme="light"]) #message-list .message.msg-onair .msg-content * { color:#fff !important; }
html[data-theme]:not([data-theme="light"]) #message-list .message.msg-system .msg-content,
html[data-theme]:not([data-theme="light"]) #message-list .message.msg-system .msg-content * { color:#fff !important; }

/* ========== Colorful header / plus / composer icons (every theme) ========== */
.ico-nav, #toggle-rooms, .nav-toggle-wrap { color: var(--ico-nav) !important; background: var(--ico-nav-bg) !important; }
.ico-dm, .header-dm-btn, .chat-header .ico-dm { color: var(--ico-dm) !important; background: var(--ico-dm-bg) !important; }
.ico-bell, .notif-bell, .chat-header .notif-bell, .chat-header .ico-bell { color: var(--ico-bell) !important; background: var(--ico-bell-bg) !important; }
.ico-users, .chat-header .ico-users, #toggle-users { color: var(--ico-users) !important; background: var(--ico-users-bg) !important; }
#composer-plus, .composer-plus {
  color: var(--ico-plus) !important;
  background: var(--ico-plus-bg) !important;
  border: 1px solid color-mix(in srgb, var(--ico-plus) 35%, transparent) !important;
}
#composer-plus svg, .composer-plus svg { stroke: var(--ico-plus) !important; color: var(--ico-plus) !important; }
.chat-header .btn-icon,
.chat-header .notif-bell,
.chat-header .header-dm-btn {
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent) !important;
}
.composer-tool#emoji-btn i, #emoji-btn i { color: #eab308 !important; }
.composer-tool#sticker-btn i, #sticker-btn i { color: #f97316 !important; }
.composer-tool#gif-btn .gif-label, #gif-btn .gif-label { color: #06b6d4 !important; }
.composer-tool#voice-btn i, #voice-btn i { color: #ef4444 !important; }
.composer-tool#attach-btn i, #attach-btn i { color: #14b8a6 !important; }
.composer-tool#radio-tool-btn i, #radio-tool-btn i { color: var(--ico-nav) !important; }

/* Sidebar / profile menu unique colors stay bright on dark */
html[data-theme]:not([data-theme="light"]) .sidebar-nav .nav-item i,
html[data-theme]:not([data-theme="light"]) .admin-nav-item i,
html[data-theme]:not([data-theme="light"]) .pd-nav a i {
  filter: saturate(1.35) brightness(1.28);
}
html[data-theme="rose"] .admin-nav-item i,
html[data-theme="rose"] .sidebar-nav .nav-item i { filter: saturate(1.45) brightness(1.2); }
html[data-theme="ocean"] .admin-nav-item i,
html[data-theme="ocean"] .sidebar-nav .nav-item i { filter: saturate(1.4) brightness(1.25); }

html[data-theme]:not([data-theme="light"]) .welcome-card { background: var(--bg-elevated) !important; color: var(--text) !important; border-color: var(--border) !important; }
html[data-theme]:not([data-theme="light"]) .onair-bar { background: var(--chip) !important; color: var(--text) !important; }
html[data-theme]:not([data-theme="light"]) .msg-more-btn { background: var(--bg-hover) !important; color: var(--primary) !important; }

/* Theme picker swatches */
.theme-picker { display:grid; grid-template-columns:repeat(auto-fill,minmax(108px,1fr)); gap:10px; }
.theme-swatch {
  border:2px solid transparent; border-radius:12px; padding:12px 8px 10px; cursor:pointer;
  font-weight:800; font-size:.82rem; color:#fff; min-height:64px;
  display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:6px;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}
.theme-swatch.active { outline:3px solid var(--primary); box-shadow:0 0 0 3px color-mix(in srgb, var(--primary) 40%, transparent); }
.theme-swatch.theme-light { background:linear-gradient(160deg,#f5f3ff,#fff); color:#5b21b6; }
.theme-swatch.theme-dark { background:linear-gradient(160deg,#07060c,#2e1064); }
.theme-swatch.theme-rose { background:linear-gradient(160deg,#9f1239,#fb7185); }
.theme-swatch.theme-ocean { background:linear-gradient(160deg,#083344,#22d3ee); }
.theme-swatch.theme-forest { background:linear-gradient(160deg,#14532d,#4ade80); }
.theme-swatch.theme-sunset { background:linear-gradient(160deg,#7c2d12,#fb923c); }
.theme-swatch.theme-neon { background:linear-gradient(160deg,#4a044e,#22d3ee); }
.theme-swatch.theme-arctic { background:linear-gradient(160deg,#1e3a8a,#93c5fd); }
.theme-swatch.theme-ember { background:linear-gradient(160deg,#7f1d1d,#f87171); }
.theme-swatch.theme-purple { background:linear-gradient(160deg,#3b0764,#c084fc); }
.theme-swatch.theme-gold { background:linear-gradient(160deg,#713f12,#facc15); color:#1c1917; }
.theme-swatch.theme-midnight { background:linear-gradient(160deg,#020617,#38bdf8); }

/* ========== Visibility pack: nav, userlist headings, buttons (non-light) ========== */
html[data-theme]:not([data-theme="light"]) html,
html[data-theme]:not([data-theme="light"]) body,
html[data-theme]:not([data-theme="light"]) body.app-body,
html[data-theme]:not([data-theme="light"]) body.admin-body,
html[data-theme]:not([data-theme="light"]) body.auth-body,
html[data-theme]:not([data-theme="light"]) body.chat-page {
  background: var(--bg-app) !important;
  color: var(--text) !important;
}

/* Navigate menu: theme bg + readable text (fixes white cards / invisible labels) */
html[data-theme]:not([data-theme="light"]) .rooms-panel,
html[data-theme]:not([data-theme="light"]) .rooms-scroll,
html[data-theme]:not([data-theme="light"]) .menu-section,
html[data-theme]:not([data-theme="light"]) .menu-navigate,
html[data-theme]:not([data-theme="light"]) .menu-rooms {
  background: var(--bg-panel) !important;
  color: var(--text) !important;
}
html[data-theme]:not([data-theme="light"]) .menu-heading {
  color: var(--text-muted) !important;
}
html[data-theme]:not([data-theme="light"]) .menu-link:not(.nav-box),
html[data-theme]:not([data-theme="light"]) a.menu-link:not(.nav-box),
html[data-theme]:not([data-theme="light"]) .rooms-panel .menu-link:not(.nav-box),
html[data-theme]:not([data-theme="light"]) .room-item {
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}
html[data-theme]:not([data-theme="light"]) .menu-link:not(.nav-box):hover,
html[data-theme]:not([data-theme="light"]) .room-item:hover,
html[data-theme]:not([data-theme="light"]) .room-item.active {
  background: var(--bg-hover) !important;
  color: var(--text) !important;
}
html[data-theme]:not([data-theme="light"]) .nav-box,
html[data-theme]:not([data-theme="light"]) .menu-link.nav-box,
html[data-theme]:not([data-theme="light"]) .rooms-panel .menu-link.nav-box,
html[data-theme]:not([data-theme="light"]) .sidebar-nav .nav-item.nav-box {
  background: color-mix(in srgb, var(--nk, #7c3aed) 28%, var(--bg-panel, #1a1028)) !important;
  border: 1px solid color-mix(in srgb, var(--nk, #7c3aed) 55%, var(--border, #3b0764)) !important;
  color: var(--text) !important;
}
html[data-theme]:not([data-theme="light"]) .nav-box .nb-label,
html[data-theme]:not([data-theme="light"]) .nav-box .nb-ico {
  color: var(--text) !important;
}
html[data-theme]:not([data-theme="light"]) .nav-box .nb-ico {
  background: color-mix(in srgb, var(--nk, #7c3aed) 35%, var(--chip, #2a1848)) !important;
}
html[data-theme]:not([data-theme="light"]) .menu-link span,
html[data-theme]:not([data-theme="light"]) .room-item strong,
html[data-theme]:not([data-theme="light"]) .room-item small {
  color: var(--text) !important;
}
html[data-theme]:not([data-theme="light"]) .rooms-brand strong,
html[data-theme]:not([data-theme="light"]) .panel-header,
html[data-theme]:not([data-theme="light"]) .panel-header h2 {
  color: var(--text) !important;
}

/* User list Staff / Online / Offline headings match theme */
html[data-theme]:not([data-theme="light"]) .users-panel,
html[data-theme]:not([data-theme="light"]) .user-list,
html[data-theme]:not([data-theme="light"]) .gz-user-list,
html[data-theme]:not([data-theme="light"]) .users-panel-head {
  background: var(--bg-panel) !important;
  color: var(--text) !important;
}
html[data-theme]:not([data-theme="light"]) .user-section:not(.rank-section),
html[data-theme]:not([data-theme="light"]) .staff-section,
html[data-theme]:not([data-theme="light"]) .online-section,
html[data-theme]:not([data-theme="light"]) .offline-section,
html[data-theme]:not([data-theme="light"]) .onair-section {
  background: var(--bg-panel) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}
html[data-theme]:not([data-theme="light"]) .user-section:not(.rank-section) h3,
html[data-theme]:not([data-theme="light"]) .staff-section h3,
html[data-theme]:not([data-theme="light"]) .online-section h3,
html[data-theme]:not([data-theme="light"]) .offline-section h3,
html[data-theme]:not([data-theme="light"]) .onair-section h3,
html[data-theme]:not([data-theme="light"]) .user-list .user-section:not(.rank-section) h3,
html[data-theme]:not([data-theme="light"]) .gz-rank-head {
  background: var(--chip) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}
html[data-theme]:not([data-theme="light"]) .rank-section {
  background: color-mix(in srgb, var(--rk, #7c3aed) 26%, var(--bg-panel, #1a1028)) !important;
  border: 1px solid color-mix(in srgb, var(--rk, #7c3aed) 55%, var(--border, #3b0764)) !important;
  color: var(--text) !important;
}
html[data-theme]:not([data-theme="light"]) .rank-section h3 {
  background: color-mix(in srgb, var(--rk, #7c3aed) 38%, var(--chip, #2a1848)) !important;
  color: #fff !important;
  border-color: color-mix(in srgb, var(--rk, #7c3aed) 40%, transparent) !important;
}
html[data-theme]:not([data-theme="light"]) .rank-section .sec-label {
  color: #fff !important;
}
html[data-theme]:not([data-theme="light"]) .rank-section .sec-count {
  background: var(--rk, #7c3aed) !important;
  color: #fff !important;
}
html[data-theme]:not([data-theme="light"]) .user-item,
html[data-theme]:not([data-theme="light"]) .gz-user,
html[data-theme]:not([data-theme="light"]) .user-item .name,
html[data-theme]:not([data-theme="light"]) .gz-user-meta strong {
  color: var(--text) !important;
  background: transparent !important;
}
html[data-theme]:not([data-theme="light"]) .user-item:hover,
html[data-theme]:not([data-theme="light"]) .gz-user:hover {
  background: var(--bg-hover) !important;
}
html[data-theme]:not([data-theme="light"]) .user-item .mood,
html[data-theme]:not([data-theme="light"]) .list-empty,
html[data-theme]:not([data-theme="light"]) .last-seen {
  color: var(--text-muted) !important;
}

/* Buttons match theme, readable label */
html[data-theme]:not([data-theme="light"]) .btn,
html[data-theme]:not([data-theme="light"]) .btn-ghost,
html[data-theme]:not([data-theme="light"]) button.btn,
html[data-theme]:not([data-theme="light"]) a.btn,
html[data-theme]:not([data-theme="light"]) .user-modal-actions .btn,
html[data-theme]:not([data-theme="light"]) .composer-tool {
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}
html[data-theme]:not([data-theme="light"]) .btn-primary,
html[data-theme]:not([data-theme="light"]) .btn-send,
html[data-theme]:not([data-theme="light"]) button.btn-primary,
html[data-theme]:not([data-theme="light"]) button.btn-send,
html[data-theme]:not([data-theme="light"]) .btn.btn-primary {
  background: var(--primary) !important;
  color: var(--on-primary, #fff) !important;
  border-color: var(--primary) !important;
}
html[data-theme]:not([data-theme="light"]) .btn-primary i,
html[data-theme]:not([data-theme="light"]) .btn-send i { color: var(--on-primary, #fff) !important; }
html[data-theme]:not([data-theme="light"]) .btn:hover,
html[data-theme]:not([data-theme="light"]) .btn-ghost:hover,
html[data-theme]:not([data-theme="light"]) .composer-tool:hover {
  background: var(--bg-hover) !important;
  color: var(--text) !important;
}

/* Cards / dropdowns / flyovers */
html[data-theme]:not([data-theme="light"]) .user-modal,
html[data-theme]:not([data-theme="light"]) .user-modal-inner,
html[data-theme]:not([data-theme="light"]) .profile-dropdown,
html[data-theme]:not([data-theme="light"]) .notif-panel,
html[data-theme]:not([data-theme="light"]) .page-panel,
html[data-theme]:not([data-theme="light"]) .profile-page,
html[data-theme]:not([data-theme="light"]) .profile-card,
html[data-theme]:not([data-theme="light"]) .admin-card,
html[data-theme]:not([data-theme="light"]) .pm-page,
html[data-theme]:not([data-theme="light"]) .pm-sidebar,
html[data-theme]:not([data-theme="light"]) .pm-main,
html[data-theme]:not([data-theme="light"]) .pm-header {
  background: var(--bg-panel) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
html[data-theme]:not([data-theme="light"]) .message .msg-body {
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
}
html[data-theme]:not([data-theme="light"]) .composer-inner,
html[data-theme]:not([data-theme="light"]) .composer-inner textarea,
html[data-theme]:not([data-theme="light"]) #message-input {
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}

